Tuesday, December 23, 2014

Custom Intel HD graphics shortcuts for display modes

Usually you don't find anymore xorg.conf file after installation because the current X doesn't need it anymore.

My problem was that when I closed the TV and the Monitor and opened those again in next morning the TV picture wasn't anymore on the TV and the monitor picture was distorted.

Monitor picture was distorted that bad that I wasn't able to activate the TV using the Display Configuration GUI.

Only way to fix the issue was the restart the computer. I didn't have this kind of issues when I used the nVidia GPU's. Im not sure what is main reason for the problem that cause this issue with integrated Intel HD 4600 graphics. So I solved this issue with two icons that refresh/reset my display mode configuration.

Custom shortcuts for display modes (Intel HD graphics)

Here is command lines that I linked those shortcut icons.

Monitor + TV (both on)
xrandr --output HDMI1 --off && xrandr --output DP1 --mode 3840x2160 --rate 60+ --pos 0x0 && xrandr --output HDMI1 --mode 1920x1080 --rate 60+ --pos 3840x1080  && xrandr --output DP1 --primary

Just monitor (TV off)

xrandr --output HDMI1 --off && xrandr --output DP1 --mode 3840x2160 --rate 60+ --pos 0x0 && xrandr --output DP1 --primary

In both of those commands I first disabled TV (hdmi). Then I activated it again if needed. That solved my issues. When I opened the monitor and found that picture was distorted I just needed to click one of those shortcuts.

For those who still want to configure all the settings in configuration file you can create a new xorg.conf by typing in a tty (not running gdm/kdm) the following:

X -configure