Skip to content

Instantly share code, notes, and snippets.

@heiso
Last active November 11, 2025 19:25
Show Gist options
  • Select an option

  • Save heiso/d67ec332c3cb3c3f328de0d4ca1dbb82 to your computer and use it in GitHub Desktop.

Select an option

Save heiso/d67ec332c3cb3c3f328de0d4ca1dbb82 to your computer and use it in GitHub Desktop.
TVpi
change volume -> `amixer -c 2 sset PCM 80%`
play m3u8 -> `mpv --video-aspect-override=16:10 --video-zoom=0 --video-pan-x=0 --video-pan-y=0 --panscan=1.0 --osc=no --video-osd=no --audio-device=alsa/default:CARD=Headphones --video-rotate=270 https://artesimulcast.akamaized.net/hls/live/2031003/artelive_fr/index.m3u8`
low brightness -> `echo 60 > /sys/class/backlight/10-0045/brightness`
full brightness -> `echo 255 > /sys/class/backlight/10-0045/brightness`
enable readonly fs -> `sudo raspi-config nonint enable_overlayfs`
`sudo raspi-config nonint enable_bootro`
disable readonly fs -> `sudo raspi-config nonint disable_overlayfs`
`sudo raspi-config nonint disable_bootro`
cmdline.txt
```
console=tty1 root=PARTUUID=e2908015-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=FR video=DSI-1:800x1280M@60,rotate=270 fbcon=rotate:3
```
config.txt
```
# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# Disable HDMI interface
dtparam=hdmi=off
# Additional overlays and parameters are documented
# /boot/firmware/overlays/README
# Automatically load overlays for detected cameras
camera_auto_detect=0
# Automatically load overlays for detected DSI displays
#display_auto_detect=1
dtoverlay=vc4-kms-dsi-waveshare-panel-v2,10_1_inch_a
# Automatically load initramfs files, if found
auto_initramfs=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1
# Run in 64-bit mode
arm_64bit=1
# Disable compensation for displays with overscan
disable_overscan=1
# Run as fast as firmware / board allows
arm_boost=1
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[cm5]
dtoverlay=dwc2,dr_mode=host
[all]
boot_delay=0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment