View previous topic :: View next topic |
Author |
Message |
Phk Guru


Joined: 02 Feb 2004 Posts: 428 Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time
|
Posted: Tue Jun 29, 2004 6:05 pm Post subject: No APM possible in my laptop (fsck gives protect fault) |
|
|
Hi there...
This is indeed a sad topic, because i've been looking around for info about this for months..
Well, this is my last try to find someone who helps me..
I Have a Siemens-fujitsu AmiloD8820, a great laptop! However, i can't use APM.
I (think) I've done everything right:
APM is active in the kernel (2.6.7-love2-rc3), and ACPI is not.
Grub's kernel params are: apm=on acpi=off
But when i've rebooted, the kernel boots, loads, and i get something like this: Quote: | Gentoo Linux: (...)
Copyright 2001-2004 (...)
* Mounting proc at /proc...
* Mounting sysfs at /sys...
* Mounting devpts at /dev/pts...
* Starting devfsd...
Started device management daemon v1.3.25 for /dev
* Activating (possible) swap...
* Remounting root filesystem read-only (if necessary)...
* Checking root fulesystem...
general protection fault: f000 [#1]
PREEMPT
CPU: 0
EIP: 00c0:[0000f76] Not Tainted VLI
EFLAGS: 00010046 (2.6.6-rc3-love3)
(some register value)
Process fsck.ext3 (pid: 576, threadinfo=defd7000 task=deff0640)
Stack: (...)
Call Trace:
ep_get_hash_bits
apm_bios_call
apm_get_power_status
copy_to_user
apm_get_info
apm_get_info
proc_file_read_
vfs_read
sys_read
syscall_call
Code: Bad EIP Value
(6) Note: fsck.ext3 exited with preempt_count=1
bad: scheduling while atomic!
Give root password for maintenance: |
This look awfull, doesn't it?
Of course, if i boot without "ACPI=OFF" in the kernel boot args, nothing happens, but APMD says "No APM compiled in kernel"
Isn't APM the only way to suspend the laptop? I guess i'm out of luck..
What can i do? Please help.... _________________ "# cat /dev/urandom >> /tmp/life" |
|
Back to top |
|
 |
b0fh_ Tux's lil' helper


Joined: 01 Jun 2004 Posts: 142 Location: Brazil
|
Posted: Tue Jun 29, 2004 7:47 pm Post subject: |
|
|
Some hardware (especially some japanese laptops (*cough* toshiba *cough*)) NEED acpi irq routing to work properly. Sucks, but happens. Seems to be your case, unfortunately.
But keep your faith.. First, if your laptop is newish, it is unlikely that APM will give you susupend... In my experience, APM suspend worked for old laptops, which only supported APM and not ACPI. My current one (cpq evo) supports APM, but no way it will suspend-to-ram using APM like my old toshiba 2100cdt did. AND, the ACPI suspend does not work either, it seems that it need windoze to do some voodoo with acpi for it to work. Of course linux has no idea of what to do here
BUT, you can use this wonderful piece of kernel patch called 'swsusp' (check http://swsusp.sf.net). It does full suspend-to-disk, and I got it working perfectly on my laptop. Suspend-to-disk is surely a lot slower than suspend-to-ram, but it has the advantage that you don't need to worry about the battery drains nor about data loss if the battery is removed/exhausted while suspended. Also, swsusp patch allows laptops, desktops, servers and the kitchen sync to be suspended/resumed... no need for BIOS or ACPI help at all. Try it.
peace. _________________ "Contrary to popular belief, UNIX is user-friendly. It only happens to be picky on its friends." |
|
Back to top |
|
 |
Phk Guru


Joined: 02 Feb 2004 Posts: 428 Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time
|
Posted: Tue Jun 29, 2004 8:23 pm Post subject: |
|
|
That was an excellent answer.. Thanks..
However, i don't know how to try suspending with ACPI.. Lol, is it even possible??
I'll try the other tool anyway tomorrow
Thanks a lot again,
[[ ]]'s _________________ "# cat /dev/urandom >> /tmp/life" |
|
Back to top |
|
 |
b0fh_ Tux's lil' helper


Joined: 01 Jun 2004 Posts: 142 Location: Brazil
|
Posted: Tue Jun 29, 2004 9:16 pm Post subject: |
|
|
Yes, it is possible to suspend with ACPI, but... (there is always a but...)
Most laptops implement the ACPI suspend this way:
Do some thing, ask windows to do other things, then do something else, yada, yada... IE, unlike the old APM suspend, it needs the OS to do part of the work, and, ofcourse, OS == windoze...
Surely they could implement everything in the BIOS like in the old days, but that makes things more expensive, and everybody knows laptop makers are cheap bastards.
The good thing about swsusp is its ability to work without any BIOS or ACPI support... everything is done by the linux kernel itself, which is very cool.
peace.
ooops forgot to mention :
to suspend with ACPI, try:
Code: | echo '4' > /proc/acpi/sleep |
and see what happens... maybe it works in your laptop, but... _________________ "Contrary to popular belief, UNIX is user-friendly. It only happens to be picky on its friends." |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|