Hardware acceleration on Kodi 19

I found a systemd file that I believe will work to what I need. It seems to work nicely at boot time, and I also tried to restart and it seemed to have worked ok.

[Unit]
Description=Kodi Standalone (GBM) self-compiled
After=systemd-user-sessions.service network.target network-online.target sound.target upower.service mysqld.service
Requires=graphical.target
Wants=network.target network-online.target
Conflicts=getty@tty1.service

[Service]
User=alsc
Group=alsc
PAMName=login
TTYPath=/dev/tty1
Environment=WINDOWING=gbm
ExecStart=/usr/local/lib/kodi/kodi-gbm
Restart=on-abort
StandardInput=tty

[Install]
WantedBy=graphical.target
1 Like