You are not logged in.

#1 2009-09-09 04:04:34

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

Power management without X.

Hello. I was wondering if anyone knew how to go about setting up power management from the command line? Like adjusting brightness when ac adapter is plugged/unplugged, changing cpu profiles, suspend on lid close, etc. without having to use something like kpowersave and gnome-power-manager.

Any help would be appreciated, thank you.

Offline

#2 2009-09-09 04:06:52

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Power management without X.

hal? laptop-mode? I don't do much power management on my system, but I think all the necessary daemons and stuff aren't tied to X at all.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2009-09-09 04:08:53

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

Re: Power management without X.

ngoonee wrote:

hal? laptop-mode? I don't do much power management on my system, but I think all the necessary daemons and stuff aren't tied to X at all.

That stuff I know of. I'm talking about suspend, screen brightness dimmer, etc.

Offline

#4 2009-09-09 04:26:17

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Power management without X.

I don't know much details but you have scripts in /etc/acpi/actions/ which run in repsonse to conditions set by /etc/acpi/events/ There should be some stuff in there just from laptop-mode-tools. The only thing I ever did was add a line to run pm-suspend with a lid close, but I imagine you could get more sophisticated if you work at it.

Offline

#5 2009-09-09 05:37:45

spektre
Member
From: Sweden
Registered: 2009-05-24
Posts: 31

Re: Power management without X.

Offline

#6 2009-09-13 01:32:26

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

Re: Power management without X.

The main problem I'm having is how to get my laptop to recognize when the AC adapter has been unplugged, and change accordingly. Is there a guide for this?

Offline

#7 2009-09-13 03:29:27

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Power management without X.

Keveam wrote:

The main problem I'm having is how to get my laptop to recognize when the AC adapter has been unplugged, and change accordingly. Is there a guide for this?

$ cat /etc/acpi/handler.sh

Check out the acpid daemon and wiki.  It can do pretty much everything you're looking for, as can the laptop-mode tools.

Last edited by thayer (2009-09-13 03:29:50)


thayer williams ~ cinderwick.ca

Offline

Board footer

Powered by FluxBB