iphitus Posted March 26, 2004 Report Share Posted March 26, 2004 (edited) Mod Note: moved to laptops by tyme There are two functions I need out of apm or acpi. Problem is neither does both. I need battery status (percent) and a sleep mode. ACPI gives me battery status, but no sleep mode. swsusp also failed. there is no /proc/acpi/sleep either APM gives me the sleep mode, apm -S, however reports my battery as a constant -1% and doesnt know ifi ts on the charger or not. does anyone have any ideas to solve my predicament as they dont both runn at the same time either :( Thanks a heap! iphitus Edited March 26, 2004 by tyme Quote Link to comment Share on other sites More sharing options...
arthur Posted March 26, 2004 Report Share Posted March 26, 2004 try echo 3 > /proc/acpi/sleep or echo 4 > /proc/acpi/sleep ACPI has modes S0 S1 S2 S3 S4, consult your laptop BIOS on which modes it supports. (S4 is "hibernate") You might have to recompile the kernel to enable all ACPI features but the default 10.0 kernel works fine for me. Modprobe all the components like battery, thermal, fan, etc. I think 10.0 has a bug since I always have to manually start Klaptop...I'll solve that pretty soon. There's also a kernel patch called swsusp2 from http://swsusp.sourceforge.net . It's more like hibernate, but it's quite fast. Quote Link to comment Share on other sites More sharing options...
iphitus Posted March 27, 2004 Author Report Share Posted March 27, 2004 ACPI gives me battery status, but no sleep mode. swsusp also failed. there is no /proc/acpi/sleep either Um arthur: Tried that. Quote Link to comment Share on other sites More sharing options...
arthur Posted March 27, 2004 Report Share Posted March 27, 2004 well, recompile the kernel then. :unsure: you have to check "enable sleep modes" option in the configuration. I'll probably have to do the same thing Is there a patch for magicdev or is it a mandrake-only thing? Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted March 27, 2004 Report Share Posted March 27, 2004 For sleep mode, try calling pmsuspend2 from a command line with acpi enabled. I can't remember where the exact script is that you have to edit, but there is one that you have to change from pmsuspend to pmsuspend2 in order for this to work on lid close. Since your laptop doesn't have an nvidia chipset, it should work from within X. One thing for the pmsuspend2 script, though; you have to have a swap partition that is at least as large as the amount of memory you have. It won't work if you don't, trust me. Quote Link to comment Share on other sites More sharing options...
iphitus Posted March 27, 2004 Author Report Share Posted March 27, 2004 I had that working most of the time in Mandrake, although i havent patched my kernel in Arch yet. i guess thats my last try. thanks LZ Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted March 28, 2004 Report Share Posted March 28, 2004 I didn't know you were still using Arch on your laptop. The script should be pmsuspend (not pmsuspend2) in most distros. Mandrake is kinda screwey with some filenames. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.