[ltp] T40 cpufreq

Alexander Gran linux-thinkpad@linux-thinkpad.org
Mon, 18 Aug 2003 12:37:57 +0200


--Boundary-00=_FyKQ/La3uBAVLw7
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Description: clearsigned data
Content-Disposition: inline

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 18. August 2003 04:03 schrieb Dan Borello:
> I am using your config for test2.  I did get the mouse to work.  Seems
> to be X related problems, I will look into those farther tonight.  What
> interface do you use to change the cpufreq?

I have the new sysfs mounted to /sys
(sys             /sys            sysfs   defaults                0       0 =
)=20
in fstab.=20
The files you need are in /sys/devices/system/cpu/cpu0/cpufreq/
I wrote a script to simpify it, it just switches between the slow and the f=
ast=20
mode. It's attached.

regards
Alex

=2D --=20
Some operating systems are called `user friendly',
	Linux however is `expert friendly'.
Encrypted Mails welcome.
PGP-Key at http://zodiac.dnsalias.org/misc/pgpkey.asc | Key-ID: 0x6D7DD291
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/QKyL/aHb+2190pERAhEcAKCD3+o3FmkIl0qmKQ86jHWKrcwmSgCfd53V
QfglRB2JdgaOIc6hvcO/KtQ=3D
=3DRW+i
=2D----END PGP SIGNATURE-----

--Boundary-00=_FyKQ/La3uBAVLw7
Content-Type: application/x-shellscript;
  name="changespeed"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="changespeed"

#!/bin/bash
if [ `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` = "performance" ] ; then
	echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
else
	echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

	fi

--Boundary-00=_FyKQ/La3uBAVLw7--