[DEV] add documentation
This commit is contained in:
parent
34cc5b1dd8
commit
aa847ba8d7
@ -241,7 +241,7 @@ root.buttons(awful.util.table.join(
|
|||||||
|
|
||||||
-- {{{ Key bindings
|
-- {{{ Key bindings
|
||||||
globalkeys = awful.util.table.join(
|
globalkeys = awful.util.table.join(
|
||||||
awful.key({ modkey, }, "Pause",
|
awful.key({ modkey, }, "F12",
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("xlock")
|
awful.util.spawn("xlock")
|
||||||
end,
|
end,
|
||||||
@ -259,7 +259,7 @@ globalkeys = awful.util.table.join(
|
|||||||
awful.key({ modkey, }, "Right",
|
awful.key({ modkey, }, "Right",
|
||||||
function ()
|
function ()
|
||||||
-- TODO : Do the last ID better ...
|
-- TODO : Do the last ID better ...
|
||||||
if awful.tag.selected().name ~= "12" then
|
if awful.tag.selected().name ~= "11" then
|
||||||
awful.tag.viewnext()
|
awful.tag.viewnext()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
@ -399,7 +399,7 @@ clientkeys = awful.util.table.join(
|
|||||||
-- Bind all key numbers to tags.
|
-- Bind all key numbers to tags.
|
||||||
-- Be careful: we use keycodes to make it works on any keyboard layout.
|
-- Be careful: we use keycodes to make it works on any keyboard layout.
|
||||||
-- This should map on the top row of your keyboard, usually 1 to 9.
|
-- This should map on the top row of your keyboard, usually 1 to 9.
|
||||||
for i = 1, 12 do
|
for i = 1, 11 do
|
||||||
globalkeys = awful.util.table.join(globalkeys,
|
globalkeys = awful.util.table.join(globalkeys,
|
||||||
-- View tag only.
|
-- View tag only.
|
||||||
awful.key({ modkey }, "F" .. i,
|
awful.key({ modkey }, "F" .. i,
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Set first the Xautority:
|
||||||
|
|
||||||
|
```
|
||||||
|
touch ~/.Xauthority
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
gui
|
gui
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
@ -41,7 +48,7 @@ Check the Card graphic corectly install
|
|||||||
# list the output card : (permit to know wich graphic ard we have)
|
# list the output card : (permit to know wich graphic ard we have)
|
||||||
lspci | grep VGA
|
lspci | grep VGA
|
||||||
# install all the graphic card drivers:
|
# install all the graphic card drivers:
|
||||||
pacman -S xorg xorg-drivers xorg-xinit
|
pacman -S xorg xorg-xinit
|
||||||
# restart computer
|
# restart computer
|
||||||
# ...
|
# ...
|
||||||
# install bench tool
|
# install bench tool
|
||||||
|
28
7_controlCPU.md
Normal file
28
7_controlCPU.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
CPU can be downgraded to reduce fan noise
|
||||||
|
=========================================
|
||||||
|
|
||||||
|
For this you have tools
|
||||||
|
|
||||||
|
Disable intel burst
|
||||||
|
```
|
||||||
|
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||||
|
```
|
||||||
|
|
||||||
|
Force the CPU to not upper a frequency:
|
||||||
|
```
|
||||||
|
echo 30 > /sys/devices/system/cpu/intel_pstate/max_perf_pct
|
||||||
|
```
|
||||||
|
|
||||||
|
you can check the all values with :
|
||||||
|
```
|
||||||
|
cat /sys/devices/system/cpu/intel_pstate/*
|
||||||
|
```
|
||||||
|
|
||||||
|
you can check you CPU frequency with:
|
||||||
|
```
|
||||||
|
cat /proc/cpuinfo | grep MHz
|
||||||
|
```
|
||||||
|
|
||||||
|
you can check :
|
||||||
|
|
||||||
|
https://wiki.archlinux.org/index.php/CPU_frequency_scaling
|
34
8_disable_nvidia_card.md
Normal file
34
8_disable_nvidia_card.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Disable the nvidia 'nouveau driver'
|
||||||
|
===================================
|
||||||
|
|
||||||
|
see
|
||||||
|
|
||||||
|
https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver
|
||||||
|
|
||||||
|
|
||||||
|
just do:
|
||||||
|
========
|
||||||
|
|
||||||
|
According to the NVIDIA developer zone: Create a file
|
||||||
|
```
|
||||||
|
nano /etc/modprobe.d/blacklist-nouveau.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
with the following contents:
|
||||||
|
```
|
||||||
|
blacklist nouveau
|
||||||
|
options nouveau modeset=0
|
||||||
|
```
|
||||||
|
|
||||||
|
Regenerate the kernel initramfs:
|
||||||
|
```
|
||||||
|
sudo update-initramfs -u
|
||||||
|
```
|
||||||
|
|
||||||
|
and finally: reboot
|
||||||
|
```
|
||||||
|
shutdown -r now
|
||||||
|
```
|
||||||
|
|
||||||
|
Read more at: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ixzz4rQODN0jy
|
||||||
|
|
48
mosquitto.md
Normal file
48
mosquitto.md
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
Basic mosquitto interface
|
||||||
|
=========================
|
||||||
|
|
||||||
|
|
||||||
|
Install mosquitto
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
```
|
||||||
|
yaourt -S mosquitto
|
||||||
|
go get github.com/RedBeardLab/mqtt-stereo
|
||||||
|
```
|
||||||
|
|
||||||
|
Run mosquitto
|
||||||
|
-------------
|
||||||
|
|
||||||
|
```
|
||||||
|
systemctl start mosquitto
|
||||||
|
```
|
||||||
|
|
||||||
|
Read a simple topic
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
```
|
||||||
|
mosquitto_sub -h localhost -t "sensor/temperature"
|
||||||
|
```
|
||||||
|
|
||||||
|
Write on a single topic
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
```
|
||||||
|
mosquitto_pub -h localhost -t sensor/temperature -m 22.5
|
||||||
|
```
|
||||||
|
|
||||||
|
Record MQTT message:
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
```
|
||||||
|
go run github.com/RedBeardLab/mqtt-stereo --topic=sensor/temperature record
|
||||||
|
```
|
||||||
|
|
||||||
|
Play MQTT message:
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
```
|
||||||
|
go run github.com/RedBeardLab/mqtt-stereo --topic=sensor/temperature play
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user