Bug#794744: systemd-logind: Lid closed event does not suspend

Brian May bam at debian.org
Thu Aug 6 11:00:02 BST 2015


On Thu, 6 Aug 2015 at 18:31 Michael Biebl <biebl at debian.org> wrote:

> Do you use an external monitor? If logind detects an external monitor,
> it suppresses any suspend requests.
>

Yes, I saw that code. There should be no reason for it to detect in
external monitor, however that doesn't mean it isn't getting it wrong.

I notice there is a number log_debug(...) messages scattered through the
code that I thought might help, however I don't think these are getting
logged anywhere - however I am also looking at the latest git version, and
I amu running systemd from Jessie...



> It sounds, like this might be another case of
> https://github.com/systemd/systemd/issues/451
>
> I.e. the kernel reports "unknown" status for the DRM devices after the
> first suspend.
>

They get a message "Ignoring lid switch request, 4 displays connected." - I
am not seeing this. Also first suspend after reboot usually encounters this
issue. So not convinced this is it :-(

Then again, maybe I was premature; I think I should do a reboot and redo
the following:

[brian:~] % for i in /sys/class/drm/*/*/status ; do echo $i ; done
/sys/class/drm/card0/card0-DP-1/status
/sys/class/drm/card0/card0-DP-2/status
/sys/class/drm/card0/card0-eDP-1/status
/sys/class/drm/card0/card0-HDMI-A-1/status
/sys/class/drm/card0/card0-HDMI-A-2/status

[brian:~] % cat /sys/class/drm/*/*/status
unknown
unknown
unknown
unknown
unknown

[brian:~] % xrandr
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
eDP1 connected primary 2560x1440+0+0 (normal left inverted right x axis y
axis) 310mm x 174mm
   2560x1440     60.00*+
   1920x1440     60.00
   1856x1392     60.01
   1792x1344     60.01
   1920x1200     59.95
   1920x1080     59.93
   1600x1200     60.00
   1680x1050     59.95    59.88
   1600x1024     60.17
   1400x1050     59.98
   1280x1024     60.02
   1440x900      59.89
   1280x960      60.00
   1360x768      59.80    59.96
   1152x864      60.00
   1024x768      60.00
   800x600       60.32    56.25
   640x480       59.94
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150806/8cc676ed/attachment-0002.html>


More information about the Pkg-systemd-maintainers mailing list