1. read the Code of Conduct and abstain from future bumping.
2. include information of your graphics setup; what cards, what drivers, output of `lspci`, ... Best to replace your previous bump with that information.
3. As a temporary workaround, you might look into whether there is a way to have lightdm run `xrandr --auto && xrandr --output eDP1 --off --output HDMI1 --auto` upon unlocking.
# lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 515 (rev 07)
I use xf86-video-intel without any specific xorg.conf's.
I was try to run my xrandr script from llightdm, but I didn't find how to execute it before every login or unlock.
]]> 11:54:33 [hxss@lenovo] # cat /sys/class/drm/card0-eDP-1/enabled
disabled
11:54:35 [hxss@lenovo] # cat /sys/class/drm/card0-eDP-1/dpms
Off
11:54:36 [hxss@lenovo] #
11:54:43 [hxss@lenovo] # light-locker-command -l # <- lock & unlock system
11:54:43 [hxss@lenovo] #
11:54:43 [hxss@lenovo] # cat /sys/class/drm/card0-eDP-1/enabled
enabled
11:55:02 [hxss@lenovo] # cat /sys/class/drm/card0-eDP-1/dpms
On
but X still think that only external monitor in use, so neither xrandr nor xset dpms can disable internal display:
11:59:19 [hxss@lenovo] # xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected (normal left inverted right x axis y axis)
1920x1080 60.00 +
1400x1050 59.98
1600x900 60.00
1280x1024 60.02
1280x960 60.00
1368x768 60.00
1280x720 60.00
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
640x360 60.00
HDMI1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
If I now enable & disable internal display in X, then this display switch off:
11:59:22 [hxss@lenovo] # xrandr --auto && xrandr --output eDP1 --off --output HDMI1 --auto
12:09:37 [hxss@lenovo] # cat /sys/class/drm/card0-eDP-1/enabled
disabled
12:09:40 [hxss@lenovo] # cat /sys/class/drm/card0-eDP-1/dpms
Off
Can I just disable this display by command without its activation?
]]>How to restore state of displays after unlock?
]]>