TuxPPC
TuxPPC
home   |   submit: news, guide,   |   volunteer   |     |  


Sponsored by
Sponsored by PowerMax.com

Buy iMac


News Editions

About iMac

About Linux

Getting Started

Getting Help

User Resources

Advertisement

Distributions

Software Picks






Search

 

Links
  iMacLinux Edition Monday, 24 March 2003  



Posted by on Monday August 28th, 2000 11:37:10 PM
pmud is a collection several programs that help control power management for iBooks and PowerBooks in Linux. This Howto explains how to install and use pmud utilities.


Installing pmud

pmud is a collection of Power Management Utilities for PowerBooks. They include pmud (Power Management Daemon), apmd, Batmon (X11Battery Montior), snooze (sleep command) and Bat (Battery Status).

You need to get the pmud RPM or dpkg. You can get the pmud RPM from or the Debian package from apt-get.

To install the RPM: rpm -Uvh pmud-0.6-1.ppc.rpm
To install the Debian Package: apt-get install pmud

Checking the Battery Status

Batmon provides a graphical look at your current battery status. This program must run as root, so you should start it using: su -c batmon or in KDE 2: kdesu -c batmon

It will tell you if you are using AC or battery power, and if you are using battery power, how much battery remains. Batmon also gives you the option of putting you powerbook to sleep, by clicking the sleep button.

Putting the Machine to Sleep

The snooze command puts your Powerbook or iBook to sleep. Again, it must be ran as root to function properly.

If you want all users to be able to run snooze you can do this:

su # become root
ln -s /sbin/snooze /usr/bin/snooze # put a link to snooze in a user's path
chmod +s /sbin/snooze # make snooze suid

If for some reason, pmud is not working right, or you need to go to sleep very fast, you can run sleep -f. This will not spin down the disk or get you the full powersaving abilities.

Changing Your iBook or PowerBook's Backlighting

The fblevel command controls the backlighting brightness level on a PowerBook or iBook.

It can be used to turn on the backlighting, turn it off, or adjust the brightness of it. Examples:

fblevel off # backlighting completely off
fblevel on # backlighting on maxium brightness
fblevel 50 # backlighting dimed to save power

Controlling What Happens Pre-Sleep and Post-Sleep

/etc/power/pwrctl is a script defining what happens based on a change of PowerManagement status (such as a request to go to sleep, Battery to AC Power, AC to Battery Power, and low powerlevels. The defaults should be fine for most people.

/etc/power/pwrctl-local can be created to contain your own PowerBook or iBook wake up settings, like restoring the PowerBook or iBook's touchpad settings or running xrefresh (which may be neccessary on some machines).

Search for ibook

The Fine Print: The following comments are owned by whoever posted them.
(Reply)

by on Friday December 15th, 2000 10:07:27 PM
I'm running LinuxPPC 2000, and in the RPM version, the Batmon executable is capitalized, and the sleep and snooze functions don't seem to work. The version of sleep mentioned in this article doesn't exist in the RPM, because of the program sleep which causes a pause of a given interval, rather than putting the machine to sleep. snooze exists, and may just not be compatable with the 2.4 kernel, or it may be compiled wrong, but when ran with the -f option it merely gives PMU_IOC_SLEEP: Function not implemented
by dave on Sunday June 03rd, 2001 07:29:59 AM
I believe that you need to get a special 2.4 kernel from Ben H's site. I think it is penguinppc.org or you can rsync to his site and get the latest version. dave

  Legal and Privacy Notices Copyright © 2001