Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running 12.10 with xmonad.

Trying to ensure that the right things happen when I close laptop lid, etc. I see Internet search results for similar issues that mostly point towards gnome-power-manager. I have the package installed, but gnome-power-manager is not in my path anywhere.

The behavior I'm looking for is as following:

  • Sleep on lid close
  • Awaken on lid open
  • Turn off screen after 10 idle minutes
  • Most importantly, have better battery life. I'm supposed to be getting 9 hours and I haven't seen the battery life estimate above 2.5 hours yet.

Any tips on where to look or how to configure this would be much appreciated.

share|improve this question

1 Answer

You can see the files installed by the gnome-power-manager package by executing dpkg -L gnome-power-manager.

Your PATH is used by your shell to find commands to execute. Packages can install files anywhere they need to. Your command line never needs to execute power management commands.

I suggest that you take a look at the pm-utlls package. It does most of the lid close/open stuff.

share|improve this answer
It looks like gnome-power-manager only provides gnome-power-statistics. The statistics I see in that are pretty depressing -- it's depleting much faster than I'd anticipate. But I guess that's the subject of another question, maybe. I have jupiter running, I was under the impression that was supposed to greatly extend battery life. Any pointers? – Espressofa Nov 6 '12 at 1:16
You could run top and see what's eating CPU time, or look into "process accounting", see man -k accounting. Look at the scripts in dpkg -L pm-utils, and make sure that they work on your machine. – waltinator Nov 6 '12 at 5:32
I see quite a large number of scripts in /usr/lib/pm-utils/ but none of their titles have anything to do with laptop lid closing. pm-hibernate and pm-suspend work well. I turned on a bunch of the PowerTOP optimizations, either that or something else seemed to have improved its life a little bit. Thanks for your help so far! – Espressofa Nov 6 '12 at 17:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.