Raspberry Pi¶
Detect hardware model¶
Write image¶
Raspberry pi imager¶
Install:
Config is stored at ~/.config/Raspberry\ Pi/Imager.conf
Usage:
Rpi-imager needs to run with privileges to access the disk:
SD Card Image Manager (sdm)¶
Login¶
with user:pi, pw:raspberry
enable ssh¶
login via ssh¶
Change keyboard layout and locales¶
Generic 105 kb, US, no options
- en_US.UTF-8 UTF-8
- No default locale
Change pw for pi user¶
Only for GUI versions¶
Disable Screensaver¶
Go to preference ---> screensaver. You will see a screen saver main menu. In mode : section, select "disable screensaver" and close, reboot.
Autostart¶
How can I add new autostart programs in Lubuntu?
mkdir ~/.config/autostart
ln -s /usr/share/applications/firefox-esr.desktop ~/.config/autostart/firefox-esr.desktop
Issues¶
Stream Webcam¶
keyboard-setup¶
for console¶
WLAN¶
ad-hoc¶
Use connman
Permanent¶
raspi-config¶
Works with raspi-config as well.
Manual¶
edit /etc/network/interfaces:
GPIO¶
echo 4 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio4/direction # set it as an output pin
echo 1 > /sys/class/gpio/gpio4/value # set the value to ON
echo 0 > /sys/class/gpio/gpio4/value # set the value to OFF
echo in > /sys/class/gpio/gpio4/direction # set it as input
cat /sys/class/gpio/gpio4/value # get the value
echo 4 > /sys/class/gpio/unexport # disables pin 4 and removes the gpio4 directory
Video¶
What is the difference between CEA and DMT?
Show preferred resolution:
Set icon size and font for large screens¶
Settings -> Appearance Settings -> Defaults -> For large screens
Disable screen blanking¶
Use raspi-config:
- Display Options
- Disable screen blankking
Increase GPU mem¶
Use raspi-config:
- Performance options
- GPU Mem: 256
DRM¶
- Raspberry Pi OS 64bit now supports Widevine.
- Installing Widevine DRM to the Raspberry Pi
Enable sound over HDMI¶
Add this to config.boot:
No HDMI output after a while¶
How do I force the Raspberry Pi to turn on HDMI?
Add these two lines to /boot/config.txt and reboot Raspbmc: