raspberry pi¶
disable wifi / bluetooth¶
add the following to /boot/firmware/config.txt
cpu governor¶
change the cpu clock speed of the pi with the cpu governor. There's more and better explanation about this on kernel.org available.
check available governors:
the output will look like this: conservative ondemand userspace powersave performance schedutil
check current governor:
change cpu governor:
note, this will reset after a reboot. use something like cpufrequtils to apply a persistent configuration.
to reduce power consumption, use powersave
instead of performance.
cpu temperature¶
read-only sd card¶
when running updates, don't forget to make the filesystems read write:
and afterwards, read only again:
disable onboarding screen for configuration¶
when using the desktop version of raspbian / raspberry pi os but the system has already been configured
disable mouse cursor on touch screens¶
-
open
/etc/lightdm/lightdm.conf
-
find
xserver-command
in the[Seat
section of the file, edit like so:
autostart application on boot¶
this is just another perfect example why linux on a desktop environment is just not ready yet and will never be ready. ^fd392a
create a script to start your application, I put mine in /usr/local/bin/start_app.sh
with these contents:
#!/bin/bash
cd /home/pi/Desktop
sleep 10
lxterminal --working-directory='/home/pi/Desktop' --command='python3 application.py' -t 'pos'
sleep 10
exit
the command part might be the important one for you, for me also the working-directory
thing was important. make this script executable: chmod +x /usr/local/bin/start_app.sh
edit the file /etc/xdg/lxsession/LXDE-pi/autostart
as root:
and add this line:
since it's linux, things might work or might not.
credit for all this mess