[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#743682: kdm: Laptop with lid closed: System goes to suspend when shutting down (using systemd)



Package: kdm
Version: 4:4.11.7-1+b1
Severity: important

Dear Maintainer,

Steps to reproduce:
* On a laptop, after pressing the power button, close the lid and
  exclusively use the external mouse, keyboard and screen.
* Make sure the power plug is plugged in all the time.
* Log in to KDE, work for a while, then shut the machine down.
Actual behaviour:
* The machine logs out, and then goes to suspend.
  After resuming from suspend, the shutdown continues.
Expected behaviour:
* The machine should shut down.

Note that I am using systemd. I can "fix" this by telling systemd
not to go to suspend when the lid is closed: I just have to add
'HibernateMode=disabled' to /etc/systemd/sleep.conf.
However, I'd definitely like the machine to suspend when the lid is
closed and AC power is off, so that's not a good solution.

I don't think it's that uncommon to use a laptop with the lid closed,
so this setup should work without any special configuration.

Maybe this bug ought to be assigned to systemd instead, I don't know.
Certainly, systemd does not suspend my machine when I close the lid while
I am logged in to KDE, presumably because PowerDevil does the work then
and tells systemd not to get in its way.

Kind regards
Ralf



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kdm depends on:
ii  adduser                       3.113+nmu3
ii  consolekit                    0.4.6-4
ii  debconf [debconf-2.0]         1.5.52
ii  kde-runtime                   4:4.11.5-1
ii  kde-wallpapers-default        4:4.11.5-1
ii  kde-workspace-kgreet-plugins  4:4.11.7-1+b1
ii  libc6                         2.18-4
ii  libck-connector0              0.4.6-4
ii  libdbus-1-3                   1.8.0-3
ii  libkdecore5                   4:4.11.5-1
ii  libkdeui5                     4:4.11.5-1
ii  libkio5                       4:4.11.5-1
ii  libknewstuff3-4               4:4.11.5-1
ii  libkworkspace4abi2            4:4.11.7-1+b1
ii  libpam0g                      1.1.8-2
ii  libqimageblitz4               1:0.0.6-4
ii  libqt4-svg                    4:4.8.5+git242-g0315971+dfsg-2
ii  libqt4-xml                    4:4.8.5+git242-g0315971+dfsg-2
ii  libqtcore4                    4:4.8.5+git242-g0315971+dfsg-2
ii  libqtgui4                     4:4.8.5+git242-g0315971+dfsg-2
ii  libstdc++6                    4.8.2-16
ii  libx11-6                      2:1.6.2-1
ii  libxau6                       1:1.0.8-1
ii  libxdmcp6                     1:1.1.1-1
ii  libxtst6                      2:1.2.2-1
ii  lsb-base                      4.1+Debian12

Versions of packages kdm recommends:
ii  kde-window-manager [x-window-manager]  4:4.11.7-1+b1
ii  kde-workspace                          4:4.11.7-1
ii  konsole [x-terminal-emulator]          4:4.11.3-1
ii  logrotate                              3.8.7-1
ii  xserver-xephyr [xserver]               2:1.15.0-2
ii  xserver-xorg [xserver]                 1:7.7+6
ii  xterm [x-terminal-emulator]            303-1

Versions of packages kdm suggests:
ii  kde-wallpapers  4:4.11.5-1
ii  kdepasswd       4:4.11.5-2

-- Configuration Files:
/etc/kde4/kdm/kdmrc changed:
[General]
ConfigVersion=2.4
ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6
GreeterUID=kdm
PidFile=/var/run/kdm.pid
ReserveServers=:1,:2,:3
ServerVTs=-7
StaticServers=:0
[Shutdown]
BootManager=None
HaltCmd=/sbin/shutdown -h -P now
RebootCmd=/sbin/shutdown -r now
[X-*-Core]
AllowNullPasswd=false
AllowRootLogin=false
AllowShutdown=Root
AutoReLogin=false
ClientLogFile=.xsession-errors-%d
Reset=/etc/kde4/kdm/Xreset
Session=/etc/kde4/kdm/Xsession
Setup=/etc/kde4/kdm/Xsetup
Startup=/etc/kde4/kdm/Xstartup
[X-*-Greeter]
AntiAliasing=false
ColorScheme=
FaceSource=AdminOnly
FailFont=Sans Serif,10,-1,5,75,0,0,0,0,0
GUIStyle=
GreetFont=Serif,20,-1,5,50,0,0,0,0,0
GreetString=Welcome to %s at %n
GreeterPos=50,50
HiddenUsers=
Language=en_US
LogoArea=Logo
LogoPixmap=/usr/share/kde4/apps/kdm/pics/kdelogo.png
MaxShowUID=29999
MinShowUID=1000
Preloader=/usr/bin/preloadkde
SelectedUsers=
ShowUsers=NotHidden
SortUsers=true
StdFont=Sans Serif,10,-1,5,50,0,0,0,0,0
Theme=/usr/share/kde4/apps/kdm/themes/joy
UseBackground=true
UseTheme=true
UserCompletion=false
UserList=true
[X-:*-Core]
AllowNullPasswd=true
AllowShutdown=All
NoPassEnable=false
NoPassUsers=
ServerArgsLocal=-br -nolisten tcp
ServerCmd=/usr/bin/X
[X-:*-Greeter]
AllowClose=true
DefaultUser=kde
FocusPasswd=true
LoginMode=DefaultLocal
PreselectUser=None
[X-:0-Core]
AutoLoginEnable=false
AutoLoginLocked=false
AutoLoginUser=
ClientLogFile=.xsession-errors
[Xdmcp]
Enable=false
Willing=/etc/kde4/kdm/Xwilling


-- debconf information:
* shared/default-x-display-manager: lightdm
  kdm/daemon_name: /usr/bin/kdm
  kdm/stop_running_server_with_children: false


Reply to: