Hello there 


[Newbie mode on please. It's the first time i have to deal with APM
issues, so please have patience :) ]

I have basically two APM related problems:

1) I use 2.2.10-ac10 kernel, apmd-3.0beta8 and I upgraded my machine
BIOS to v1.21 (IBM's version R00-I1). Even though apmd _seems_ to
start correctly (with APMD_OPTIONS="-v -p 10 -w 5 -W"):

[.....]
Starting up APM daemon [242]: Battery * * * (49% 1:44)
[.....]

and logs the appropriate message in the logs:

[...]
apmd[242]: Version 3.0beta8 (APM BIOS 1.2, Linux driver 1.10) 
apmd: apmd startup succeeded
[...]

and I get nice entries in /proc/apm:

$apm --debug
APM BIOS 1.2 (kernel driver 1.10)
AC off-line, battery status high: 50% (1:48)
Using device 0x0a86, 1.10: 1.2
APM Flags =      0x03; AC Line Status = 0x00
Battery Status = 0x00; Battery Flags =  0x01
Battery %age   =   50; Battery Time   =  108, use_mins=1


Despite all that, nothing works: apmd doesn't log any messages, no log 
when battery discharges w/ 10 %, no warning when battery goes below 5% , the
system dies suddenly with no warning. In other words, even though the
apmd daemon is running, it is as good as dead.

What's more important is that I configured my machine BIOS to go into
SUSPEND state after X mins idle time. After X mins nothing
happens. If my understanding is correct (please correct me if I'm
wrong) the machine BIOS tells the kernel APM driver to prepare
shutdown, which in turn notifies apmd to do the appropriate
task. Somewhere along this chain something rotten happens. Any idea
how can I debug/trace the problem ?!?


2) (Off topic and  PCMCIA related but if someone have a hint how to
nail this down i will appreciate) When I manually issue a user suspend 
my Eth card (3Com Megahertz 3CCFE575BT) gets fubar: 

apmd[366]: User Suspend
kernel: cs: cb_disable(bus 32) 
apmd[366]: Normal Resume after 02:00:40 (58% 2:22) Battery power
kernel: cs: cb_enable(bus 32) 
kernel:   bridge io map 0 (flags 0x21): 0x200-0x27f 
kernel:   bridge mem map 0 (flags 0x1): 0x60000000-0x60021fff 
cardmgr[138]: executing: './network resume eth0'
kernel: eth0: transmit timed out, tx_status 00 status 0000. 
kernel: eth0: transmit timed out, tx_status 00 status 0000. 
kernel:   Flags; bus-master 1, full 1; dirty 34084 current 34100. 
kernel:   Transmit list 00000000 vs. c7e0da40. 
kernel:   0: @c7e0da00  length 8000002a status 8001002a 
kernel: eth0: Resetting the Tx ring pointer. 

IIRC I  saw some time ago similar problems reported on linux-kernel mailing
list, but i didn't manage to find any solution


Thanks in advance for any suggestions,

Florian

Reply via email to