[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: power management on iBook (mid 2005)



On Mon, Nov 24, 2008 at 06:03:14PM +0100, Cédric Boutillier wrote:
> My questions are the following:
> 1) Is pbbuttonsd obsolete and should be replaced by something else or
> simply removed?

Not really. You may want to give pommed a try, though.

> 2) Is it better to just kill gnome-power-manager and let pbbuttonsd do
> its job?

IMAO: yes

> 3) Is it possible to use ondemand scaling governor on powerpc iBook?

No. The scaling governors all pretty much assume intel.

I have this stupid perl script running, but it's less than ideal:

-----
#!/usr/bin/perl

use strict;
use warnings;

my $uptime;
my $one;
my $five;
my $fifteen;
my $tmp;

open GOV, ">/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor";
print GOV "userspace";
close GOV;
open SPEED, ">/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed";
$tmp=select SPEED;
$|=1;
select $tmp;

# Go daemon
close STDIN;
close STDOUT;
close STDERR;
chdir "/";
if(fork()) {
	exit;
}

while(1) {
	$uptime=`uptime`;
	if($uptime=~/^.*age: ([^,]*),([^,]*),(.*)$/) {
		$one=$1;
		$five=$2;
		$fifteen=$3;
	}
	if($one > 0.75) {
		print SPEED "1333333";
	} elsif ($five < 0.75) {
		print SPEED "666666";
	}
	sleep 10;
}

-- 
<Lo-lan-do> Home is where you have to wash the dishes.
  -- #debian-devel, Freenode, 2004-09-22


Reply to: