Skip to content

raspberry pi

see also raspbian

disable wifi / bluetooth

add the following to /boot/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 available.

check available governors:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

the output will look like this: conservative ondemand userspace powersave performance schedutil

check current governor:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

change 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_governor

to reduce power consumption, use powersave instead of performance.

cpu temperature

vcgencmd measure_temp

read-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 /boot

and afterwards, read only again:

sudo mount -o remount,ro /
sudo mount -o remount,ro /boot

disable 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.desktop

disable mouse cursor on touch screens

  • open /etc/lightdm/lightdm.conf

  • find xserver-command in the [Seat section of the file, edit like so:

xserver-command=X -nocursor

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/ with these contents:

cd /home/pi/Desktop
sleep 10
lxterminal --working-directory='/home/pi/Desktop' --command='python3' -t 'pos'
sleep 10

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/

edit the file /etc/xdg/lxsession/LXDE-pi/autostart as root:

sudo vi /etc/xdg/lxsession/LXDE-pi/autostart

and add this line:

@lxterminal -e /usr/local/bin/

since it's linux, things might work or might not.

credit for all this mess