Click to See Complete Forum and Search --> : Klaptop doesn't change status on power off / on.


mudra
09-20-2004, 04:15 PM
I am running Slackware 10.0 on my laptop, and have reconfigured my kernel to allow ACPI. I have the Klaptop in my "system tray" and it correctly shows the state of the laptop (on battery / on AC Adapter) at boot. However, if I change by switching on the power or turning it off, nothing changes in the system tray. The Klaptop does show the correct battery level (i.e. it increases if on AC adapter), but the icon doesn't change. I have tried changing the update time in the klaptop configure but this doesn't have any effect.

I have check /proc/acpi/battery/BAT0/state and this shows the change (charging to discharging). I have tried the batt_statt app in gnome and I have exactly the same problem.

I have tried changing the permissions of the /proc/acpi/battery/BAT0 in case my user account didn't have the right access.

I know its only a small thing, but everything else works so well, I just find this is bugging me.

TIA,

Mudra. :confused:

Icarus
09-20-2004, 04:28 PM
Sounds to me like klaptop and batt_statt app are not compiled for the 2.6 kernel, or your kernel doesn't have /proc support (that's old /proc support, as with the 2.6 a lot has changed in /proc)

mudra
09-20-2004, 04:33 PM
Thanks for the quick reply. I am a little confused. Are you saying that I won't be able to make this work because the /proc support in the new kernel is not supported by klaptop OR should I try and recomplie with /proc support ?

I have one more question, how does it get it right if I reboot ? Does is not pick up the initial state from the /proc /.... etc...

Thank you for your help with this.

Mudra.

EDIT:

Looking into this some more I have found that the /proc/acpi/battery/bat0/state changes when the ac adapter is switched on and off, however, the /proc/acpi/ac_adapter/AC0/state does not change when the ac adpater is turned on and off. I guess klaptop uses the /proc/acpi/ac_adapter/AC0 and not the battery one. How can I make this notice the change in the ac adpater ?

Any help really appreciated.

Mudra.

TIA