Add notes for multimedia pi based on arch
This commit is contained in:
parent
84e65f370c
commit
a56a24567d
42
arch-config/Dokumente/notes/multimedia-pi.md
Normal file
42
arch-config/Dokumente/notes/multimedia-pi.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Multimedia Device
|
||||||
|
|
||||||
|
## Base
|
||||||
|
Arch base
|
||||||
|
Install AUR helper
|
||||||
|
Install `kitty`
|
||||||
|
`$ paru -S plasma-bigscreen-git libcec mycroft-core`
|
||||||
|
|
||||||
|
## Autologin
|
||||||
|
`# mkdir -p /etc/systemd/system/getty@tty1.service.d`
|
||||||
|
|
||||||
|
`# vim /etc/systemd/system/getty@tty1.service.d/override.conf`
|
||||||
|
```
|
||||||
|
[Service]
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=-/usr/bin/agetty --autologin (username) --noclear %I $TERM
|
||||||
|
Type=simple
|
||||||
|
```
|
||||||
|
|
||||||
|
`# systemctl enable getty@tty1`
|
||||||
|
|
||||||
|
## Plasma Bigscreen
|
||||||
|
Plasma Bigscreen has issues when started directly, so we're launching a normal plasma session first
|
||||||
|
`$ dbus-run-session startplasma-wayland`
|
||||||
|
Then we can replace that with the bigscreen session
|
||||||
|
`$ plasmashell --replace -p org.kde.plasma.mycroft.bigscreen`
|
||||||
|
|
||||||
|
## Launching Plasma and Bigscreen
|
||||||
|
Put this in `.bash_profile`
|
||||||
|
```
|
||||||
|
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
|
||||||
|
dbus-run-session startplasma-wayland
|
||||||
|
fi
|
||||||
|
```
|
||||||
|
|
||||||
|
Create a script that launches bigscreen
|
||||||
|
```
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
plasmashell --replace -p org.kde.plasma.mycroft.bigscreen
|
||||||
|
```
|
||||||
|
Add the script to "Autostart" in the settings. Make sure executable is set
|
Loading…
Reference in New Issue
Block a user