Bug#273041: gnome-cpufreq-applet: fails to notice CPU speed change
Carlos Garcia Campos
Carlos Garcia Campos <carlosgc@gnome.org>, 273041@bugs.debian.org
Mon, 27 Sep 2004 14:13:24 +0200
--=-LNpQVdK7RTu0Ykitmo/x
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
El jue, 23-09-2004 a las 19:00 +0300, Marius Gedminas escribi=C3=B3:
> I have downloaded the source code and looked into it. The applet has
> three methods for determining the CPU frequency:
>=20
> 1. from /proc/cpufreq
> 2. from /proc/cpuinfo
> 3. from /sys/devices/system/cpu/cpu[0]/cpufreq/*
>=20
> I have a 2.4 kernel without sysfs, therefore the third method is
> irrelevant. The second method would produce correct result -- the CPU
> frequency in /proc/cpuinfo changes when I change the CPU speed.
>=20
> Apparently the applet uses the first method, which is not very reliable.
> In my case /proc/cpufreq shows the same thing no matter what CPU speed
> I select:
>=20
> minimum CPU frequency - maximum CPU frequency - policy
> CPU 0 665000 kHz ( 76 %) - 864500 kHz (100 %) - userspace
>=20
> The cpufreq applet assumes that policy =3D=3D "poversave" implies the min=
imum
> CPU frequency, and all other policies imply the maximum CPU frequency.
> This is demonstrably wrong. The applet should treat "userspace" policy
> as unknown and fall back to other means of determining the CPU
> frequency, e.g. /proc/cpuinfo.
>=20
> There is another way of detecting the CPU speed:
>=20
> $ cat /proc/sys/cpu/0/speed
> 665000
Could you give me the content of all the files in /proc/sys/cpu/0/
please?
> I do not know if it is used by any released kernel. It is used by the
> CPUfreq patch for 2.4 kernels.
>=20
> FWIF I use a 2.4.26 kernel with cpufreq-LINUX_2_4-20040623.tar.gz
> applied. I got the patch from
>=20
> http://ftp.linux.org.uk/pub/linux/cpufreq/
Thanks
> Marius Gedminas
Greetings,=20
--=20
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
Carlos Garcia Campos a.k.a. KaL
elkalmail@yahoo.es
carlosgc@gnome.org
http://carlosgc.linups.org
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
=20
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0x523E6462
--=-LNpQVdK7RTu0Ykitmo/x
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQBBWAPjjxBOalI+ZGIRAh3YAJ9EXOdlBjjFhUPs2C4mD9IcouVwlQCfV5Xv
gwy86gpQcq2A2ONIy8b8guE=
=KTm0
-----END PGP SIGNATURE-----
--=-LNpQVdK7RTu0Ykitmo/x--