https://bugs.kde.org/show_bug.cgi?id=357868
Bug ID: 357868
Summary: Closing laptop lid doesn't result in suspend
Product: KScreen
Version: 5.4.3
Platform: Kubuntu Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: common
Assignee: dvra...@kde.org
Reporter: c...@neo-zeon.de
Closing the lid of the laptop doesn't result in suspend. The issue is caused by
kscreen thinking that the monitor type is unknown. "unknown" type monitors are
counted as external (see line 233 at
https://github.com/KDE/powerdevil/blob/master/daemon/actions/bundled/handlebuttonevents.cpp)
and thus the system won't suspend with the lid closed when an "external"
monitor is attached. Configuring power management to ignore externally attached
monitors will allow the system to suspend on a laptop lid closed, but then the
laptop will of course sleep when the lid is closed even when an external
monitor is attached.
The best work around is to select "suspend" from the "Power / Session" menu
under the application menu.
~/.xsession-errors shows the following when the lid is closed and :
"powerdevil: Lid action was suppressed because an external monitor is present"
xrandr seems to report the display type correctly looking at the output of
'kscreen-console bug'.
The output for 'QT_LOGGING_RULES="*" kscreen-console bug':
START: Requesting Config
kscreen: launcherDataAvailable: "org.kde.KScreen.Backend.XRandR"
kscreen: Launcher finished with exit code 1 , status 0
kscreen: Service for requested backend already running
kscreen: Primary output changed from KScreen::Output(Id: 446 , Name: "HDMI-0" )
( "HDMI-0" ) to KScreen::Output(Id: 446 , Name: "HDMI-0" ) ( "HDMI-0" )
kscreen: Primary output changed from KScreen::Output(Id: 446 , Name: "HDMI-0" )
( "HDMI-0" ) to KScreen::Output(Id: 446 , Name: "HDMI-0" ) ( "HDMI-0" )
Received config. Took 76 milliseconds
xrandr --verbose==
Screen 0: minimum 8 x 8, current 1920 x 1200, maximum 16384 x 16384
HDMI-0 connected primary 1920x1200+0+0 (0x1bf) normal (normal left inverted
right x axis y axis) 518mm x 324mm
Identifier: 0x1be
Timestamp: 1304363
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 1 0 2 3
Transform: 1.00 0.00 0.00
0.00 1.00 0.00
0.00 0.00 1.00
filter:
EDID:
000010ac7aa053544737
1718010380342078eaee95a3544c9926
0f5054a1080081408180a940b300d1c0
010101010101283c80a070b023403020
36000644211a00ff00594d59
4831343633374754530a00fc0044
454c4c2055323431324d0a2000fd
00323d1e5311000a20202020202000ed
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: TMDS
supported: TMDS
ConnectorType: HDMI
ConnectorNumber: 4
_ConnectorLocation: 4
1920x1200 (0x1bf) 154.000MHz +HSync -VSync *current +preferred
h: width 1920 start 1968 end 2000 total 2080 skew0 clock 74.04KHz
v: height 1200 start 1203 end 1209 total 1235 clock 59.95Hz
1920x1080 (0x1c0) 148.500MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew0 clock 67.50KHz
v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
1680x1050 (0x1c1) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1600x1200 (0x1c2) 162.000MHz +HSync +VSync
h: width 1600 start 1664 end 1856 total 2160 skew0 clock 75.00KHz
v: height 1200 start 1201 end 1204 total 1250 clock 60.00Hz
1280x1024 (0x1c3) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1280x960 (0x1c4) 108.000MHz +HSync +VSync
h: width 1280 start 1376 end 1488 total 1800 skew0 clock 60.00KHz
v: height 960 start 961 end 964 total 1000 clock 60.00Hz
1024x768 (0x1c5) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x1c6) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
640x480 (0x1c7) 25.175MHz -HSync -VSync
h: