By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 918 - kpowersave doesn't call pm-suspend or pm-hibernate on Wheezy amd64
Summary: kpowersave doesn't call pm-suspend or pm-hibernate on Wheezy amd64
Status: NEW
Alias: None
Product: TDE
Classification: Unclassified
Component: other (any) (show other bugs)
Version: 3.5.13.x [Trinity]
Hardware: amd64 Other
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks: 2968
  Show dependency treegraph
 
Reported: 2012-03-15 00:01 CDT by Philip Ashmore
Modified: 2018-08-30 02:52 CDT (History)
5 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Ashmore 2012-03-15 00:01:15 CDT
I get a locked screen but no suspend/hibernate.
Running pm-suspend and pm-hibernate with sudo work fine.
Comment 1 Timothy Pearson 2014-12-10 23:30:13 CST
This was likely fixed with the transition to the TDE hardware library, which does not use HAL in favor of DBUS calls, in R14.0.0.  Can you confirm?

Thanks!
Comment 2 Sergey Frolov 2017-11-28 04:55:55 CST
I'm afraid this might be still the case with preliminary stable builds for Debian Stretch.

Suspend/resume from Trinity does work, but evidently no pm scripts are being run.
At first I was sure that's somehow the systemd's fault (although I have just a shim installed), but /etc/pm/sleep.d scripts are being executed if I request sleep from KDE4 or call pm-suspend directly.

What is the current method for TDE to invoke suspend? Perhaps I might be able to trigger sleep scripts anyway by injecting something like

hooks=/etc/pm/sleep.d/*; for hook in $hooks; do bash $hook resume; done;

in the right place?
Comment 3 Michele Calgaro 2018-07-28 10:01:14 CDT
Can you try with the latest preliminary stable builds or R14.0.5 when released? Is the problem still happening?
Comment 4 Philip Ashmore 2018-07-28 18:07:38 CDT
I've gone through a few laptops since I reported this.

My current laptop is an MSI GE72MVR 7RG Apache Pro.
I voided the "Warranty sticker void if tampered" to open it up so I could swap out the HDD with an SSD.

I'm using
# Trinity preliminary stable builds
deb http://mirror.xcer.cz/trinity-sb/ stretch deps-r14 main-r14

Suspend to ram works.

I just tried hibernate and it came back to the desktop but the caps-lock and num-lock didn't respond and there was no mouse cursor.
After a couple of seconds the desktop crashed and returned me to the Trinity graphical login prompt.
Comment 5 Philip Ashmore 2018-07-28 18:31:45 CDT
I just noticed I've got updates from preliminary stable.
I'll install them, reboot and try hibernate/suspend-to-ram again.
Comment 6 Philip Ashmore 2018-07-28 18:42:42 CDT
When hibernate starts I hear a loud pop from the built-in speakers, even though I have earphones plugged in.
Hibernation is fast.
When resuming it takes 19 seconds from the time the desktop reappears for the mouse to appear.
Then, like before, the desktop crashes and I'm back to the Trinity login window.
Comment 7 Michele Calgaro 2018-07-29 01:16:15 CDT
Hi Philip,
thanks for testing and feedback. I have run into simialr issues sometimes, even using different distros that have nothing to do with TDE. In particular the loud bang from the speaker (even with headset in) after a desktop crash, terriibly loud :-(
I will keep the bug open and we will take a look for the R14.1.x series (although perhaps not for R14.1.0).
Comment 8 Sergey Frolov 2018-07-30 00:57:47 CDT
Yes, the problem is still there.

I believe there might be some misunderstooding. I believe the key problem isn't that the system won't suspend/hibernate. It does for me and other people.
But it doesn't go throught the pm-utils route at all. No pm scripts are being executed.

This is important, because said scripts can contain machine-specific
workarounds and convenience features (like reloading wifi module to
trigger immediate reconnect).
Also, some mission-critical tools put their own scripts that can
optionally inhibit sleep/hibernation if it's dangerous to do so.
For example, unattended-upgrades in Debian will deny sleep/hibernation
if it's in the middle of updating a package.

If sleep/hibernation is being performed through
pm-suspend/pm-hibernate, those script hooks are being correctly called.
If sleep/hibernation is being performed through kde4, those script
hooks are being correctly called.
If sleep/hibernation is being performed through tdepowersave, none of
the script hooks are executed.
Comment 9 Michele Calgaro 2018-07-30 06:12:11 CDT
Ok, thanks for the feedback Sergey. I will be in touch again when we look at this problem. It won't be very soon, though. This is currently planned for R14.1.x series, but not R14.1.0.
Comment 10 Sergey Frolov 2018-07-30 07:38:00 CDT
Glad to be of help.
Thanks for the attention to this issue.