Bug#280079: gnome-cpufreq-applet: selector doesnt work

Andrew Lau Andrew Lau <netsnipe@users.sourceforge.net>, 280079@bugs.debian.org
Sun, 7 Nov 2004 15:43:05 +1100


--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 07, 2004 at 02:07:46AM +0100, Andreas Leitner wrote:
> Package: gnome-cpufreq-applet
> Version: 0.3.1-2
> Severity: important
>=20
> The readme tells me, there is now a selector available. When I click
> on the applet I should be able to select a custom cpu frequency. Here
> on my machine no such menu appears, but the regular monitoring works
> just fine.
>=20
> I then tried to use the cpufreq-selector manually, both as regular
> user and root; it segfaults.
>=20
> I am using the userspace governor on a 2.6.5 kernel on a Pentium M. I
> ran cpufreq-selector via strace and I think it uncovers the problem:
>=20
> #strace cpufreq-selector -f 10
> [...]
> access("/sys/devices/system/cpu/cpu0/cpufreq", F_OK) =3D 0
> open("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", O_RDONLY) =
=3D 3
> fstat64(3, {st_mode=3DS_IFREG|0444, st_size=3D4096, ...}) =3D 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)=
 =3D 0x40001000
> read(3, "1700000\n", 4096)              =3D 8
> close(3)                                =3D 0
> munmap(0x40001000, 4096)                =3D 0
> open("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq", O_RDONLY) =
=3D 3
> fstat64(3, {st_mode=3DS_IFREG|0444, st_size=3D4096, ...}) =3D 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)=
 =3D 0x40001000
> read(3, "600000\n", 4096)               =3D 7
> close(3)                                =3D 0
> munmap(0x40001000, 4096)                =3D 0
> open("/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies"=
, O_RDONLY) =3D -1 ENOENT (No such file or directory)
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
>=20
>=20
> So, it looks like the app is looking for the file
> scaling_available_frequencies, which does not exist on my host. I have
> no idea if it should be there ...

Dear Andreas,

It should be there, otherwise it means the CPUFreq kernel module hasn't
been loaded properly. What does dmesg say? Which kernel modules have you
got loaded?

Could you also please send us the contents of every file under
/sys/devices/system/cpu/cpu0/cpufreq/ as well?

Cheers,
Andrew "Netsnipe" Lau

--=20
---------------------------------------------------------------------------
	Andrew "Netsnipe" Lau	<http://www.cse.unsw.edu.au/~alau/>
 Debian GNU/Linux Maintainer & UNSW Computing Students' Society President
				     -
		  "Nobody expects the Debian Inquisition!
     Our two weapons are fear and surprise...and ruthless efficiency!"
---------------------------------------------------------------------------

--PEIAKu/WMn1b1Hv9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBjafZmyTAfS6LaL0RAhTFAJwKr6cQpLFYMUYR5t3UAIBzS6H9rQCfbtfY
Cx131xLdK4I+9Wb+Q8quxp4=
=z/rV
-----END PGP SIGNATURE-----

--PEIAKu/WMn1b1Hv9--