raspberry pi
see also raspberry pi os / raspbian
disable wifi / bluetooth
add the following to /boot/firmware/config.txt
dtoverlay=disable-wifi
dtoverlay=disable-btcpu 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:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governorsthe output will look like this: conservative ondemand userspace powersave performance schedutil
check current governor:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governorchange cpu governor:
note, this will reset after a reboot. use something like cpufrequtils to apply a persistent configuration.
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governorto reduce power consumption, use powersave instead of performance.
cpu temperature
vcgencmd measure_tempread-only sd card
when running updates, don’t forget to make the filesystems read write:
sudo mount -o remount,rw /
sudo mount -o remount,rw /bootand afterwards, read only again:
sudo mount -o remount,ro /
sudo mount -o remount,ro /bootdisable onboarding screen for configuration
when using the desktop version of raspbian / raspberry pi os but the system has already been configured
sudo rm /etc/xdg/autostart/piwiz.desktopdisable mouse cursor on touch screens
open
/etc/lightdm/lightdm.conffind
xserver-commandin the[Seatsection of the file, edit like so:
xserver-command=X -nocursorautostart 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
exitthe 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:
sudo vi /etc/xdg/lxsession/LXDE-pi/autostartand add this line:
@lxterminal -e /usr/local/bin/start_app.shsince it’s linux, things might work or might not.
credit for all this mess