You are not logged in.

#1 2010-01-07 05:54:43

Keveam
Member
From: St. Louis, MO
Registered: 2009-04-03
Posts: 30

Power management in a window manager.

Hey everyone. So, I love Arch, but I'm having some trouble. I want to use a window manager full time. I have everything setup just right, except for one thing: screen brightness. I want to be able to have my display dim itself whenever the AC adaptor is unplugged. I've looked at the acpid man page & arch wiki, and the solution isn't clear.

Offline

#2 2010-01-07 06:35:21

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: Power management in a window manager.

There are parts of this link I found that might help you: http://www.thinkwiki.org/wiki/Automatic … brightness


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2010-01-07 08:04:01

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: Power management in a window manager.

On my laptop there is a bios setting for this to allow automatic brightness reduction for all OSes. Check your own bios for this setting.


How's my programming? Call 1-800-DEV-NULL

Offline

#4 2010-01-07 10:55:29

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Power management in a window manager.

I just use gnome-power-manager...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#5 2010-01-07 10:57:31

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Power management in a window manager.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#6 2010-01-07 11:15:05

owain
Member
Registered: 2009-08-24
Posts: 251

Re: Power management in a window manager.

laptop-mode-tools has the option to control screen brightness, with the file /etc/laptop-mode/conf.d/lcd-brightness.conf

Edit: alternatively, add something like these xbacklight lines to /etc/acpi/handler.sh:

    ac_adapter)
        case "$2" in
            ACAD)
                case "$4" in
                    00000000)
                        #echo -n $minspeed >$setspeed
                        xbacklight -set 80
                    ;;
                    00000001)
                        #echo -n $maxspeed >$setspeed
            xbacklight -set 100
                    ;;
                esac
                ;;
            *)  logger "ACPI action undefined: $2" ;;
        esac
        ;;

Last edited by owain (2010-01-07 11:18:12)

Offline

Board footer

Powered by FluxBB