Bug 231215

Summary: no suspend with pm-utils in apm mode
Product: [openSUSE] openSUSE 10.2 Reporter: m. bracher <mbra>
Component: Mobile DevicesAssignee: Forgotten User ZhJd0F0L3x <forgotten_ZhJd0F0L3x>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 231213    
Bug Blocks: 231216    

Description m. bracher 2007-01-01 14:56:13 UTC
OS: System upgraded from 10.1 to 10.2
Hadware: Laptop IBM T40
Boot-options: acpi=off apm=on
(using acpi is not an option, because susp-to-ram consumes approx. 10W, apm 1.5W)

When selecting "Suspend to Disk" or "Suspend to RAM" via the kpowersave applet, only the screen-lock is activated, but no suspend functionality.
(With acpi instead of apm, it did as expected, but for me not an option as already said)

It is only a problem of the kpowersave applet, when using Fn-F4 or closing the lid the laptop will be suspended.
Comment 1 Danny Al-Gaaf 2007-01-02 11:12:27 UTC
1.) you should open a bugreport for the problem with power consumtion of s2ram with ACPI. This is clearly a bug and should be checked and fixed!

2.) If KPowersave provide the option for s2disk and s2ram, KPowersave simply call HAL and pm-utils to suspend. There is no difference in KPowersave between the ACPI and the APM case.

3.) IMO in the APM case the suspend on lidclose/FnF4 is a hardware issue and not something KPowersave trigger. What happen if you call the suspend via the related powersave command?

4.) IMO this is a problem in general (maybe more pm-utils than HAL). I reassing the bug to the pm-utils ppl.
Comment 2 Holger Macht 2007-01-03 13:47:06 UTC
Please do manually as root:

  echo -n mem > /sys/power/state

Does it suspend?
Comment 3 m. bracher 2007-01-03 14:17:40 UTC
no, it does not 

# echo -n mem > /sys/power/state
-bash: echo: write error: Operation not permitted
# ls -l /sys/power/state
-rw-r--r-- 1 root root 0 Jan  3 15:08 /sys/power/state
# id
uid=0(root) gid=0(root) groups=0(root)
# 

dkukawka@novell.com: 
> 1.) you should open a bugreport for the problem with power consumtion of 
> s2ram with ACPI. This is clearly a bug and should be checked and fixed!
Thanks for the input, but unfortunately no success until now
see https://bugzilla.novell.com/show_bug.cgi?id=115141
Comment 4 Forgotten User ZhJd0F0L3x 2007-01-03 17:10:13 UTC
it looks like we finally should deprecate APM support ;-)

I will have to look into it if we can make APM work with pm-utils.
Comment 5 Forgotten User iWJ8PVCHsF 2007-01-04 10:38:47 UTC
Similar problems on HP Omnibook XE-3 (GC) laptop.
There was SuSE Linux 9.0 before upgrade to OpenSUSE 10.2 and suspend to disk by the help of APM bios worked great. After upgrade it seems unusable :-(
Comment 6 Forgotten User iWJ8PVCHsF 2007-01-04 15:36:15 UTC
Seems kernel parameter acpi=force (e.g., in Grub configuration) solved my problem with Omnibook XE-3...
Comment 7 m. bracher 2007-01-04 23:01:17 UTC
> it looks like we finally should deprecate APM support ;-)
No problem, when bug 115141 will be fixed ;-)
Comment 8 Forgotten User ZhJd0F0L3x 2007-06-06 10:41:48 UTC
As there are no plans to implement APM support upstream (there is not even an APM maintainer for the in-kernel code) in pm-utils or fix/adopt it in the kernel so that we can use it with current pm-utils, i'm sorry that i have to close this bug as WONTFIX. I know this is not satisfactory and i would like to fix that, but i can't. So please read that as CANTFIX.