Skip to content
Permalink
Browse files

Intel: Automatically switch to full range

  • Loading branch information...
fritsch committed Sep 19, 2015
1 parent 90ac12a commit 46a038e606c671d43a4da04ebbcaf23bf5bfe86a
@@ -0,0 +1,9 @@
#!/bin/sh
FB_TYPE="$(grep '^0 ' /proc/fb | sed 's/[^[:space:]] //')"

if [ "$FB_TYPE" == "inteldrmfb" ]; then
OUTPUT=`/usr/bin/xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
for out in $OUTPUT ; do
/usr/bin/xrandr -display :0 --output $out --set "Broadcast RGB" "Full"
done
fi
@@ -0,0 +1,13 @@
[Unit]
Description=Restore full range after suspend
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
ExecStop=-/bin/sh "/usr/bin/intel-fullrange.sh"

[Install]
WantedBy=sleep.target
@@ -0,0 +1,14 @@
[Unit]
Description=intel switch to full range
Before=kodi.service
After=graphical.target

[Service]
Type=oneshot
Environment=DISPLAY=:0.0
ExecStart=-/bin/sh "/usr/bin/intel-fullrange.sh"
StandardError=null
RemainAfterExit=yes

[Install]
WantedBy=kodi.target

0 comments on commit 46a038e

Please sign in to comment.
You can’t perform that action at this time.