HD+ LED-backlit LCD screen washed out

Tom Horsley horsley1953 at gmail.com
Thu Sep 10 16:25:26 UTC 2015


On Thu, 10 Sep 2015 09:40:40 -0600
CS DBA wrote:


> Anyone have any ideas how to fix it?

I run this perl script from /etc/X11/xinit/xinitrc.d/ to fix the moronic
default in the Intel video driver that restricts color levels to
"broadcast" standards:

#!/usr/bin/perl
#
# First run xrandr --properties and look for the current setting
# for "Broadcast RGB" on output HDMI2, then set it to Full if it
# isn't already (that at least keeps the flickering to a minimum).
#
my $fd;
my $curout='';
my $curmode='';
if (open($fd, '-|', "/bin/bash -c 'xrandr --verbose'")) {
   while (<$fd>) {
      if (/^(\S+)/) {
         $curout = $1;
      } elsif (($curout eq 'HDMI2') && (/^\s*Broadcast RGB:\s*(\S+)/)) {
         $curmode = $1;
      }
   }
   close($fd);
   if ($curmode ne "Full") {
      system('xrandr', '--output', 'HDMI2', '--set', 'Broadcast RGB', 'Full');
   }
}

Probably 'HDMI2' isn't the output device you'll want, but once you
figure out which device you do want, this may fix your problem.


More information about the users mailing list