You are not logged in.

#1 2008-04-17 00:50:02

Olnex
Member
Registered: 2008-04-10
Posts: 89

How to make my own battery/ac event script?

Hi everyone, I use smartdimmer to adjust the screen brightness, the problem is, when I change to battery/ac, I have to manually run smartdimmer -s number, so is there a way that I can put some scripts to somewhere that would be invoked when battery/ac changed?
Thanks a lot!

Offline

#2 2008-04-17 00:56:35

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: How to make my own battery/ac event script?

If you have acpid installed, check out /etc/acpi/handler.sh.  All you'd need to do is add your command in the appropriate switch/case section.

Last edited by peart (2008-04-17 00:58:09)

Offline

Board footer

Powered by FluxBB