echo 'setxkbmap de' >> /usr/share/sddm/scripts/Xsetup
sync; echo 1 > /proc/sys/vm/drop_caches
sync; echo 2 > /proc/sys/vm/drop_caches
sync; echo 3 > /proc/sys/vm/drop_caches
swapoff -a && swapon -a
Having no access to keyboard/video or mouse like on a headless root server (e.g. from Hetzner)? But want to install a custom Linux on the server (e.g. opensuse Tumbleweed)?
Hack:
$ for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
DP-1: connected
DP-2: disconnected
DP-3: disconnected
HDMI-A-1: disconnected
HDMI-A-2: disconnected
$ cat /sys/class/graphics/fb0/modes
U:1920x1080p-0
tvservice --status
tvservice --off
tvservice --preferred
echo 'standby 0.0.0.0' | cec-client -s -d 1
echo 'as 0.0.0.0' | cec-client -s -d 1
Status
echo 'pow 0.0.0.0' | cec-client -s -d 1
DISPLAY=:0 xset dpms force on dpms 0 0 0 s 0 0
https://www.raspberrypi.org/documentation/computers/os.html#vcgencmd
vcgencmd display_power -1 2
vcgencmd display_power 0
vcgencmd display_power 1