You are not logged in.

#1 2017-11-09 18:03:24

hxss
Member
Registered: 2017-10-17
Posts: 15

xfce+light-locker internal display enabled after unlock

I use external display and usualy disable internal. Lightdm use both displays. After unlock system eDP is enabled(blank black screen with backlight).

How to restore state of displays after unlock?

Last edited by hxss (2017-11-09 18:11:44)

Online

#2 2017-11-10 07:05:08

hxss
Member
Registered: 2017-10-17
Posts: 15

Re: xfce+light-locker internal display enabled after unlock

here is how sysfs react to this actions (data-in: only external display in use):

 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?

Last edited by hxss (2017-12-02 13:12:45)

Online

#3 2018-01-05 20:42:55

hxss
Member
Registered: 2017-10-17
Posts: 15

Re: xfce+light-locker internal display enabled after unlock

My card:

# 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.

Last edited by hxss (2018-01-07 10:14:41)

Online

#4 2018-01-06 13:38:13

robg
Member
Registered: 2015-03-05
Posts: 116

Re: xfce+light-locker internal display enabled after unlock

Unfortunately I am not equipped with the knowledge to help you with your specific issue, but judging from what you have posted I suggest you to

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.

Last edited by robg (2018-01-06 13:39:27)

Offline

Board footer

Powered by FluxBB