#acl FreaknetGroup:read,write,admin,delete,revert All:read = TAPE MARK 1 = <> == Schematics == {{attachment:nannipi.png}} == Disk image == * https://drive.google.com/file/d/1yh2zGOalZUTVxVAwVRhbZodJGqCT_N0T/view?usp=sharing == Scratchpad == {{{ emiliano, [21.06.18 13:44] # pip install python-uinput # modprobe uinput # chmod 666 /dev/uinput Write an uinput_test.py like this: import uinput with uinput.Device([uinput.KEY_LEFTALT]) as device: device.emit_click(uinput.KEY_LEFTALT) then you do # setterm -blank 1 # sleep 90 && python uinput_test.py It's just a test. After 60 seconds screen will go off, and after 30 goes back on. }}} The label "TAPE MARK 1" is in /etc/init.d/console-setup Other boot stuff are in user "pi" .bashrc la pw root e' con una d. va cambiata == Screen blanking == Is connected to a movement / proximity sensor. Sensor: Digital PIR Module High Sensitivity SB412 18x10mm TTL Output Infrared Sensor https://www.evelta.com/digital-pir-modlue-sb412/ Under X-Windows : xset dpms force off ; sleep 5 ; xset dpms force on - NOT USED. Under console: (our case) {{{ setterm —blank force ; sleep 1 ; setterm —blank poke }}} == LOG IN / SHUTDOWN ETC == Devuan default login root, pw: toor {{{ ssh root@10.69.1.30 }}} log in, and press YOU MUST PRESS CTRL-C WITHIN 5 SECONDS or the balestrini sw will start again creating some problems because it's still already running... to turn the thing off: {{{ poweroff }}} and wait for the led to become still RED with no activity at all. == HOW TO FIX IF IT DOESN'T WORK == Turn it off (see above), pull the sdcard out and fix the filesystem! put the card into a pc with unix and do fsck /dev/mmcblk0p1 fsck /dev/mmcblk0p2 and that's it! == Notes == needed: libforms-dev {{{ # maybe modprobe snd-pcm-oss to have /dev/dsp #modprobe snd-aloop apt-get install kbd apt-get install console-data }}} note: aplay can't work together with rpitx / gpio output running /etc/rc.local is executed at boot and activate swapfile if exist. == Font Configuration == This method involves editing a system file called “console-setup”. You just need to load it into your preferred text editor and tweak a few lines : {{{ sudo nano /etc/default/console-setup }}} You will see the default setting. Using the arrow keys position the cursor and change the FONTFACE and FONTSIZE lines to : {{{ FONTFACE="Terminus" FONTSIZE="16x32" }}} To apply these new settings to your command prompt without rebooting you can run the following command : {{{ sudo /etc/init.d/console-setup restart }}}