Bug 304901 - Auto suspend does not work
Summary: Auto suspend does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: solid
Classification: Unmaintained
Component: powermanagement (show other bugs)
Version: 4.8.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 02:20 UTC by sankeytms
Modified: 2013-04-19 23:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sankeytms 2012-08-10 02:20:15 UTC
System will not auto suspend even if it is enabled in the settings. xautolock works fine, KDE is at fault.

Reproducible: Always

Steps to Reproduce:
1. System Settings -> Power Management -> Energy Saving Settings -> Suspend Session = X min


Actual Results:  
2. wait X min
3. nothing happens

Expected Results:  
2. wait X min
3. system suspends

4. install xautolock and use this command: 
/usr/bin/xautolock -time X -detectsleep -locker "/usr/bin/dbus-send --print-reply --dest='org.freedesktop.PowerManagement' /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Suspend"
5. wait X min
6. system suspends
Comment 1 nick 2012-11-02 23:35:31 UTC
I can confirm that this bug affects me also
Comment 2 sankeytms 2012-11-24 22:11:29 UTC
I just found out the bug only happens if "Screen Energy Saving" is configured to turn off the screen *before* "Suspend Session". Disable screen energy saving and problem is solved.
Comment 3 Ian Turner 2013-01-20 01:55:10 UTC
This affects me also.
Comment 4 Oliver Henshaw 2013-02-07 17:52:39 UTC
If you squint, this looks a little bit like bug #306950 which was fixed in 4.9.3. Do you have this problem in any later versions?

If so, please enable 'kded' in kdebugdialog - you might need to log out and in again after the first time you run it to get 'kded' with no numbers in front of it to appear in the kdebugdialog. Then log out and in again and tell me what the output of 'grep -i xsync .xsession-errors' is.
Comment 5 Ian Turner 2013-02-09 19:51:21 UTC
I just tried this in 4.9.5 and it seems to be fixed.
Comment 6 Oliver Henshaw 2013-02-10 15:29:59 UTC
sankeytms?
Comment 7 sankeytms 2013-02-10 20:26:40 UTC
Sorry, I cannot test this bug until I have physical access to my parents' computer again. Next weekend I will go to their house and run a dist-upgrade to get Kubuntu 12.10 (coming from 12.04), which should give KDE 4.9.4 (coming from 4.8.5).

Stay tuned...
Comment 8 Oliver Henshaw 2013-04-19 13:59:40 UTC
Any news on this?
Comment 9 sankeytms 2013-04-19 23:14:16 UTC
Upgraded to Kubuntu 12.10/KDE 4.9.4 and the problem is gone.
Comment 10 Oliver Henshaw 2013-04-19 23:21:44 UTC
Ta very much.