You are not logged in.

#1 2008-05-17 15:49:08

miggols99
Member
Registered: 2007-06-10
Posts: 424

So what do you use for power management in lightweight WMs?

I want to start using a lightweight WM (probably Openbox with LXDE) or maybe e17, maybe even KDE4 SVN. But the last time I tried Openbox, it made my laptop get quite hot, because I do a lot of graphics work in Inkscape. Normally in Ubuntu (my backup OS) it doesn't get hot and I think it's because it has power saving. For you people out there on a laptop using a lightweight WM...what program do you use for power management? I'm talking about suspend when you shut the laptop lid, dimming or turning off the screen when inactive etc,

Last edited by miggols99 (2008-05-17 15:49:43)

Offline

#2 2008-05-17 15:59:07

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: So what do you use for power management in lightweight WMs?

I think you need to look into CPU frequency scaling.

http://wiki.archlinux.org/index.php/CPU … cy_Scaling

Offline

#3 2008-05-17 16:00:30

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: So what do you use for power management in lightweight WMs?

That already works fine for me...

Offline

#4 2008-05-17 20:13:02

infinitycircuit
Member
Registered: 2007-07-25
Posts: 9

Re: So what do you use for power management in lightweight WMs?

Try out laptop-mode-tools.  It will dim your screen, auto-hibernate at low battery, throttle your cpu, stop intensive programs from logging while on battery, etc.

If you want your laptop to autosuspend when the lid is closed, then just make sure you have acpi support and change the acpi scripts.  I use debian and they are in /etc/acpi/ but I don't know about Arch.

Last edited by infinitycircuit (2008-05-17 20:13:45)

Offline

#5 2008-05-17 20:57:18

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: So what do you use for power management in lightweight WMs?

Will I be able to configure this easily? Without going though confusing config files?

Offline

#6 2008-05-17 21:01:14

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

Re: So what do you use for power management in lightweight WMs?

Can't you just run gnome-power-manager as a daemon in your WM ?


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

#7 2008-05-17 21:02:32

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: So what do you use for power management in lightweight WMs?

Yes, but that requires gnome-panel, which will drag in a lot of Gnome dependencies, and I don't want that.

Offline

#8 2008-05-18 05:08:01

jbromley
Member
From: Pasadena, CA
Registered: 2007-02-04
Posts: 268

Re: So what do you use for power management in lightweight WMs?

I use wmii and occasionally stumpwm and here's what I use for power management.

* pm-utils for hibernate and suspend. I use my keyboard keys to suspend/hibernate so there is no onscreen GUI. I modified /etc/acpi/handler.sh to switch between power modes and do suspend on lid close type stuff.
* acpid to help out with the above stuff. In particular it provides handling for the ACPI events.
* cpufrequtils w/ custom ACPI handler.sh script to do CPU frequency scaling. (I know this supposedly can be done with laptop mode tools, but that has never worked for me.)
* laptop-mode-tools for general power saving facilities. Yes, the configuration is long, but not too terribly confusing.
* atieventsd (if you have an ATI card) using the powersave feature is the difference between 2 and 3 hours and a half on battery.

Good luck,
j

Offline

#9 2008-05-18 06:07:49

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: So what do you use for power management in lightweight WMs?

miggols99 wrote:

Yes, but that requires gnome-panel, which will drag in a lot of Gnome dependencies, and I don't want that.

I think you have to set priorities on what you prefer. Having some "lightweight" daemons with easy to edit config files or some "heavier" tools with a GUI and some GUI-related dependencies...


Haven't been here in a while. Still rocking Arch. smile

Offline

#10 2008-05-18 09:33:15

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

Re: So what do you use for power management in lightweight WMs?

miggols99 wrote:

Yes, but that requires gnome-panel, which will drag in a lot of Gnome dependencies, and I don't want that.

hold on a minute, how does running a daemon require a panel ??
gnome-power-manager can display an icon in the system tray, but really gnome-panel isn't the only app that provides a tray :-) You can also set it to not display a tray icon.

Last edited by moljac024 (2008-05-18 10:01:24)


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

#11 2008-05-18 11:44:17

Lastebil
Member
From: Suomi
Registered: 2007-01-16
Posts: 35

Re: So what do you use for power management in lightweight WMs?

E17's extra modules have some power management features.  If you're going to try out E17, throw in the extra-modules (they're small) and try it out, see if it works for what you want.  It may be a bit TOO minimal - but I like it just fine.

Offline

#12 2008-05-18 12:47:05

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: So what do you use for power management in lightweight WMs?

moljac024 wrote:
miggols99 wrote:

Yes, but that requires gnome-panel, which will drag in a lot of Gnome dependencies, and I don't want that.

hold on a minute, how does running a daemon require a panel ??
gnome-power-manager can display an icon in the system tray, but really gnome-panel isn't the only app that provides a tray :-) You can also set it to not display a tray icon.

I think you'll see that it does.

@Lastebill: How minimal is it?

@Everyone else: So how easy are laptop-mode-tools to configure? Could someone give me an example of a config file?

Offline

#13 2008-05-18 13:12:33

xaw
Member
From: Chapel Hill
Registered: 2007-08-09
Posts: 177

Re: So what do you use for power management in lightweight WMs?

A tool that I like to use is PowerTOP, developed by Intel IIRC, and you can pinpoint apps that are draining of your system's power resources (it does a real-time evaluation of how much battery life you'd get based on which processes are running)


The water never asked for a channel, and the channel never asked for water.

Offline

#14 2008-05-18 13:15:25

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

Re: So what do you use for power management in lightweight WMs?

miggols99 wrote:
moljac024 wrote:
miggols99 wrote:

Yes, but that requires gnome-panel, which will drag in a lot of Gnome dependencies, and I don't want that.

hold on a minute, how does running a daemon require a panel ??
gnome-power-manager can display an icon in the system tray, but really gnome-panel isn't the only app that provides a tray :-) You can also set it to not display a tray icon.

I think you'll see that it does.

@Lastebill: How minimal is it?

@Everyone else: So how easy are laptop-mode-tools to configure? Could someone give me an example of a config file?

Oh, I see....I have the whole gnome desktop installed but I don't use it anymore, nevertheless, why does it need gnome-panel installed ? That's strange....

Then you should use laptop-mode-tools, just install it. The configuration file should be located at

/etc/laptop-mode/laptop-mode.conf

It is pretty well commented and easy to configure.

Last edited by moljac024 (2008-05-18 13:16:28)


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

Board footer

Powered by FluxBB