Discussion:
[Mactel-linux-devel] battery alarm unsupported on macbook pro rev3?
Steffen Schulz
2008-04-06 18:29:28 UTC
Permalink
Hi,

A few days ago I noticed that the battery alarm on my Santa Rosa Macbook
Pro is not working.

When 'battery' is loaded:

cat /proc/acpi/battery/BAT0/alarm
alarm: unsupported


Witch sbshc and sbs do not even recognise a battery(no BAT0 dir).

The module help says sbs uses SMBus, so I activated i2c-core and
i2c-i801, but nothing..


Any hints on this? If this is not supported yet, how difficult would
that be?


/steffen
Soeren Sonnenburg
2008-04-06 19:43:58 UTC
Permalink
Post by Steffen Schulz
Hi,
A few days ago I noticed that the battery alarm on my Santa Rosa Macbook
Pro is not working.
cat /proc/acpi/battery/BAT0/alarm
alarm: unsupported
what is battery alarm?
Post by Steffen Schulz
Any hints on this? If this is not supported yet, how difficult would
that be?
note that this is also not supported on mbp1,1's

Soeren
Steffen Schulz
2008-04-06 20:37:48 UTC
Permalink
Post by Soeren Sonnenburg
Post by Steffen Schulz
cat /proc/acpi/battery/BAT0/alarm
alarm: unsupported
what is battery alarm?
It seems to be mandatory to let acpi do something when the battery
status gets critical. I don't get acpi events, acpid doesn't put the
macbook to sleep.

So the goal is to get the laptop into s2ram without polling the
battery status..
Steffen Schulz
2008-04-06 22:05:32 UTC
Permalink
Post by Steffen Schulz
So the goal is to get the laptop into s2ram without polling the
battery status..
"[If the battery doesn't support alarms...] the ACPI specification
requires the OS to poll the battery to check its remaining capacity".
Certainly on my Macbook 3,1 under Fedora, the laptop shuts down when the
battery reaches a critical level.
"...It appears that Linux does not yet do this."


So its a missing hardware feature. Unbelievable that neither the
battery module nor acpid or laptop-mode can handle this problem..


Thanks for the info! *running yet another deamon*

/steffen
--
_----------------
(o< ยท-_ Less CO2 | _o) +49/1781384223
//\ | for more ice! | /\\ .o) .o) gpg --recv-key A04D7875
V_/_ --------------- _\_V _(\)_(\) mailto: ***@cbg.dyndns.org
Loading...