[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Battery monitor and sound adjust short cut





On 7/13/06, Florian Kulzer <florian@molphys.leidenuniv.nl> wrote:
 

> Can any of you tell me how can I enable AC Adaptor and Control Method
> Battery please?

As far as I remember, the ACPI stuff is compiled as modules in the stock
Debian kernels. (I have been using self-compiled kernels for a long
time, therefore I am not sure.) You can start by checking if the
following modules are loaded: ac, battery, power. If they are not loaded
try to modprobe them. If that works without errors you can try to change
the setting in the KDE control center again. ACPI support can still be a
problem, AFAIK it is broken in some BIOSes and I don't know how easy it
is to set it up on Dell laptops.

I did it according the above instruction and I'm able to configure it in Control Center now. But the problem is how can I add the icons to my panel please? I tried Right click on panel-->Add Application / Applet to Panel. But I could not get it shown on the panel.

I> Secondly, under Window XP I can use Fn+Pg Up / Dn key combination to adjust
> the volumn. But I do not know how to do in under Debian. Can anyone give
> some direction please?

If that key combination is supported in the Linux ACPI routines it will
generate an ACPI event which you can use to trigger a short script to
change the volume by calling alsamixer. This is done by the acpi daemon.
You can install the "acpid" package and run "acpi_listen". Press the key
combination and check if an event/keycode is displayed. "man acpid" has
details on how to proceed from there and you can also have a look at the
event and action files which are already present in /etc/acpid.

While, after I input acpi_listen I got the following infor

########
YUNNAN:/home/lover# acpi_listen
ac_adapter AC 00000080 00000000
battery BAT0 00000080 00000001
processor CPU0 00000080 00000000
battery BAT0 00000080 00000001
battery BAT0 00000080 00000001
ac_adapter AC 00000080 00000001
battery BAT0 00000080 00000001
processor CPU0 00000080 00000000
battery BAT0 00000080 00000001
battery BAT0 00000080 00000001
#############

I will check on man acpid later.

Thanks,
Rocky

Reply to: