Skip to content

raspberry pi

see also raspbian

disable wifi / bluetooth

add the following to /boot/config.txt

dtoverlay=disable-wifi
dtoverlay=disable-bt

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:

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/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:

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

and add this line:

@lxterminal -e /usr/local/bin/start_app.sh

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

credit for all this mess