Little ACPI problem I had - GNU/Linux
Users browsing this thread: 3 Guest(s)
|
|||
Hello *nixer,
I have some problems with ACPI recently. I am not able to identify when the adapter of my laptop was connected or not, even the light of the computer that shows if the adapter is connected did not lit. I tried some debugging: Quote:acpi_listen I can't see whether it is plugged in or not. I also tried to add the action but in vain. Somehow I saw something weird, the light of the battery was on. I changed the command to `acpi - b` to see if the battery was recognize and it was! I don't really know if this is a problem from my computer itself but now it works. EDIT: It never worked after that. |
|||
|
|||
Really weird! The light works now for some reasons.
Here is what I get: Quote:battery PNP0C0A:00 00000081 00000001EDIT: Doesn't work anymore. |
|||
|
|||
On my laptop I have to add this in Grub. acpi_osi=Linux acpi_backlight=vendor
|
|||
|
|||
Are you still having this problem? If so, post your handler.sh script.
|
|||
|
|||
The light suddenly stopped again.
It's not a problem in itself because the battery is recognized, though the adapter is not. Quote:#!/bin/sh |
|||
|
|||
The event `ac_adapter ACPI0003:00 00000080 00000000`
reported by `acpi_listen` isn't matched against the ac_adapter rule in handler.sh, so you need to adjust that rule accordingly so that the event is handled. Change it to: Code: ... `xset led`. |
|||
|
|||
I don't think this is the problem. Most of the time acpi_listen gives me only:
battery PNP0C0A:00 00000081 00000001 battery PNP0C0A:00 00000080 00000001 battery PNP0C0A:00 00000081 00000001 battery PNP0C0A:00 00000080 00000001 and in some extremely special cases which I can't reproduce: battery PNP0C0A:00 00000081 00000001 battery PNP0C0A:00 00000080 00000001 ac_adapter ACPI0003:00 00000080 00000000 processor LNXCPU:00 00000081 00000000 processor LNXCPU:01 00000081 00000000 battery PNP0C0A:00 00000081 00000001 battery PNP0C0A:00 00000080 00000001 which should be like that all the time. I think it's a hardware problem or a problem with the adaptater itself. Anyway, I can easilly resolve this problem by doing something like this instead of basing the script over the ac_adaptater base it on the battery: battery) case "$2" in BAT0) case "$4" in 00000000) logger 'Battery online' echo -n $maxspeed >$setspeed ;; 00000001) logger 'Battery offline' echo -n $minspeed >$setspeed ;; esac |
|||
|
|||
have you tried acpi flags with grub?
|
|||