RHEL 7.4 - How to disable LVDS display output?

Latest response

How does the GUI, Xorg windows get configured in RHEL7?
My system has an unconnected LVDS display output, but X windows still tries to output to it.

The following article covers as far as RHEL6:
https://access.redhat.com/solutions/227273

$ xrandr
Screen 0: minimum 320 x 200, current 5760 x 1440, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 286mm
   1920x1080     60.16*+
   1400x1050     59.98  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024     60.02*+  75.02  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32  
   640x480       75.00    72.81    59.94  
   720x400       70.08  
DP-2 connected 2560x1440+3200+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1920x1080     60.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
HDMI-2 disconnected (normal left inverted right x axis y axis)

Responses

For a quick fix, you might just run this command in a X11 session, or perhaps add it as a one-line script in /etc/X11/xinit/xinitrc.d/:

xrandr --output eDP-1 --off

But I guess that might make the display flicker a bit at start-up or something. To stop the X11 server from even attempting to start up the non-existent display, you might add something like this xorg.conf snippet as /etc/X11/xorg.conf.d/10-disable-eDP.conf:

Section "Device"
    Identifier "You can write anything here"
    Driver "<your Xorg display driver name here>"
    Option  "Monitor-eDP-1" "Nonexistent monitor"
EndSection

Section "Monitor"
    Identifier "Nonexistent monitor"
    Option "Enable" "false"
EndSection

Basically, we need just enough of a Device section to associate the problem output to a specific Monitor section, which we'll then use to disable it.

Hey Matti,
Thank you, really nice fix! I took the first option to add the script under "/etc/X11/xinit/xinitrc.d/" and has fixed my issue, which was messing up the Gnome display manager.
Many thanks!

Hey Don,

Just saw that Matti provided a workaround that solves your display problem ... great ! :)

Congrats
Christian

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.