home · contact · privacy
For Raspbian setup, add some aliases fixing display and sound issues.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 24 Feb 2021 01:31:09 +0000 (02:31 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 24 Feb 2021 01:31:09 +0000 (02:31 +0100)
.bash_aliases [new file with mode: 0644]

diff --git a/.bash_aliases b/.bash_aliases
new file mode 100644 (file)
index 0000000..0429868
--- /dev/null
@@ -0,0 +1,10 @@
+# for whatever reason, emulationstation gets some strange screen flicker issues
+# if the second display is activated, so ensure it is only started with that off
+alias emulationstation="xrandr --output HDMI-2 --off && emulationstation"
+
+# since the second HDMI only outputs sound with video, we have to ensure it's
+# activated with xrandr if we want to use it for surround sound setup
+alias mpv51="xrandr --output HDMI-2 --auto && AUDIO_HDMI=1 mpv --alsa-ignore-chmap '--audio-channels=5.1(alsa)'"
+alias chromium-upmix="xrandr --output HDMI-2 --auto && chromium-browser --alsa-output-device=stereo51"
+alias alsamixer51="AUDIO_HDMI=1 alsamixer"
+