pm-utils: hibernate/suspend do not work right
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mythbuntu |
Expired
|
Undecided
|
Unassigned |
Bug Description
I own an ASUS P3-P5G43 (Intel GMA X4500 graphics) barebone running Mythbuntu 10.04 amd64. The following pm-utils commands work bad as shown:
- pm-hibernate:
the PC appears to correctly hibernate, but when trying to wake-up it only does a normal boot.
- pm-suspend:
It suspends the right way only the first time. Subsequent tries are ignored.
In both failure cases it seems no relevant info is written to pm-hibernate/
For suspend/hibernate purposes using MythTV I have set up the following script:
/etc/pm/
#!/bin/bash
. "${PM_FUNCTIONS}"
case "$1" in
suspend|hibernate)
killall mythfrontend.real &> /dev/null
killall mythwelcome &> /dev/null
service mythtv-backend stop &> /dev/null
service lirc stop &> /dev/null
rmmod dvb_usb_dib0700 &> /dev/null
;;
resume|thaw)
modprobe dvb_usb_dib0700 &> /dev/null
service lirc start &> /dev/null
service mythtv-backend start &> /dev/null
sleep 3
sudo -u <mi_usuario> mythfrontend &> /dev/null
;;
esac
I will provide any additional debugging info upon request.
Regards,
Changed in mythbuntu: | |
status: | New → Confirmed |
Changed in mythbuntu: | |
status: | Confirmed → Expired |
Thank's a lot for your script. When mythtv 0.24 was running on my system(Ubuntu 10.10) and during power loss it wasn't come to hibernate while running other programs such as firefox or openoffice it hibernates. I am using apcupsd to control apc ups(I have deleted gnome-power-manager after I have customized it through it's gui, because it is not working as I need and it's duplicates apcupsd functions), and these scripts https:/ /wiki.archlinux .org/index. php/APC_ UPS#Link_ the_hibernate_ script_ for_apcupsd_ to_use_ it for hibernation when power loss.
I don't know if it's a bug of mythtv or pam-utils or generally system bug.