You are not logged in.
Trying to set up correctly ACPI for battery monitoring on netbook LG x120.
Kernel versions:
linux-3.0.0-rc1
linux-2.6.39.1 #last stable version
Both are from Kernel.org and were compiled without error messages. The last one:
linux-2.6.38-ARCH
Default from current netinstall.
ACPI compilation options here: PasteBin.
Packages installed:
acpi 1.5-1
acpid 2.0.10-2
ibam 0.5.2-4
Daemon acpid is added to rc.conf
lsmod output:
i2c_i801 0
r8187se 0
battery 0
fan 0
r8168 0
ac 0
processor 0
thermal 0
Description of a problem:
When running any battery monitoring utility like osdbattery or ibam I'm recieving error "No apm data available". Other stuff like poweroff button and brightness setup keys are working.
I've already no idea how to fix battery monitor up
By the way: tried to compile ACPI as modules/into kernel, with/without APM support (aslo as module or into kernel).
Before reinstalling Arch on netboot (previous Arch was with kernel 2.6.32.1) everything worked great.
Thanks for your help.
Last edited by Alie Alexandross (2011-06-09 07:56:53)
Offline
The reason may be in changing in ACPI subsysytem: there were changes in it in recent kernels. Some old /proc files were moved to /sys and some files in /sys changed their names and locations, so utilities that rely on them refuse to work. However, there are still several options in kernel config which enable these deprecated files.
Try to enable them. Search through General setup, Power management and Kernel hacking sections, I remember that there were something you ma be interested in.
Tried already to compile with
Deprecated /proc/acpi files
Deprecated power /proc/acpi directories
Deprecated /proc/acpi/event support
but effect was the same...
Offline
Hm. If it is worked with 2.6.32 it may be a regression in kernel. Try search over kernel bugzilla.
You can try to see why exactly ibam complains with strace. Or even try to find out by looking source code.
Also, have you seen this? http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565478
Tried already to compile with
Deprecated /proc/acpi files Deprecated power /proc/acpi directories Deprecated /proc/acpi/event support
but effect was the same...
Also try enable deprecated sys files in General setup and in Kernel Hacking there was an option related to deprecated /proc files, I don't remember the exact name, but it is near the bottom:) Try them both
Also try enable deprecated sys files in General setup and in Kernel Hacking there was an option related to deprecated /proc files, I don't remember the exact name, but it is near the bottom:) Try them both
Tried different kind of options like power AC /proc and /sys support, various amp options and ACPI hardware support... Everything - without effect.
If I understood correctly - you were right. The problem is in ibam, that still uses deprecated files. According to the link, you gave me, ibam had to be fixed already in version 0.5.2-2, and it isn't. But I've found alternative way to solve the problem:
acpitool -B
gives me any information I need. Yesterday I changed some variables in a script and it's working perfectly: conky monitors a battery status and cronjobs shut down netbook before lack of power
Thank you!
Offline
Great!:)