Linux VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04
(2015-04-27, 09:44)wsnipex Wrote: you can't run xrandr prior to starting X. Try ExecStartPost or use an autoexec.py from kodi.

If anyone else is trying this, your suggestions worked excellently after some tweaking.

ExecStartPost does, the trick, but - at least in my setup I need to sleep for about a second before running it, in order to allow X to initialize, I presume.

Also, Xrandr doesnt seem to exit cleanly, so I prefixed it with the "-" symbol, to let everything start properly.

My final working /etc/systemd/system/kodi.service for Ubuntu 15.04 with systemd looks like this:
Code:
[Unit]
Description=kodi-standalone using xinit
After=systemd-user-sessions.service network.target sound.target network-online.target

[Service]
User=kodi
Group=kodi
Type=simple
PAMName=login
ExecStart=/usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
ExecStartPost=/bin/sleep 1
ExecStartPost=-/usr/bin/xrandr -d :0 --output HDMI1 --set "Broadcast RGB" "Full"
Restart=on-abort

[Install]
WantedBy=multi-user.target
Livingroom: 65" Panasonic Plasma, Denon AVR-x3300w, Parasound A31, Fronts: RBH SX-6300 Towers, Center: RBH 441-se, Surrounds: RBH 41-se Sub: Dual SVS PC13-Ultra, Source: Custom Kodi Box
Desk: DAC: Schiit Modi Multibit,Headphones: Schiit Jotunheim -> Sennheiser HD650 & Beyerdynamic DT770 Pro, Speakers: Parasound 275v2-> RBH 41-se & SVS SB12-NSD


Messages In This Thread
EDID / HDMI Handshake workaround - by Ney - 2014-10-29, 13:58
Thank you! - by Sta11ion - 2015-01-02, 01:51
RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - by mattlach - 2015-04-28, 02:13
Logout Mark Read Team Forum Stats Members Help
VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.0416