Bug#280079: marked as done (gnome-cpufreq-applet: selector doesnt work)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 07 Nov 2004 07:18:07 -0800


Your message dated Mon, 8 Nov 2004 02:11:01 +1100
with message-id <20041107151101.GA19662@espresso>
and subject line Bug#280079: gnome-cpufreq-applet: selector doesnt work
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Nov 2004 01:08:22 +0000
>From aleitner@raboof.at Sat Nov 06 17:08:22 2004
Return-path: <aleitner@raboof.at>
Received: from mailrelay.tu-graz.ac.at (mailrelay01.tugraz.at) [129.27.3.7] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CQbXZ-0002gb-00; Sat, 06 Nov 2004 17:08:21 -0800
Received: from graz (Debian-exim@chello212186206250.3.sc-graz.chello.at [212.186.206.250])
	(authenticated bits=0)
	by mailrelay01.tugraz.at (8.13.1/8.13.1) with ESMTP id iA717ngr003190
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO)
	for <submit@bugs.debian.org>; Sun, 7 Nov 2004 02:07:49 +0100 (CET)
Received: from linz ([192.168.6.6])
	by graz with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16)
	(Exim 4.34)
	id 1CQbX3-0003PG-5C; Sun, 07 Nov 2004 02:07:49 +0100
Received: from aleitner by linz with local (Exim 4.34)
	id 1CQbX0-0001JL-Jl; Sun, 07 Nov 2004 02:07:47 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Andreas Leitner <aleitner@raboof.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gnome-cpufreq-applet: selector doesnt work
X-Mailer: reportbug 2.64
Date: Sun, 07 Nov 2004 02:07:46 +0100
Message-Id: <E1CQbX0-0001JL-Jl@linz>
Sender: Debian User <aleitner@raboof.at>
X-Scanned-By: MIMEDefang 2.48 on 129.27.5.7
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: gnome-cpufreq-applet
Version: 0.3.1-2
Severity: important

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.

I then tried to use the cpufreq-selector manually, both as regular user and root; it segfaults.

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:

#strace cpufreq-selector -f 10
[...]
access("/sys/devices/system/cpu/cpu0/cpufreq", F_OK) = 0
open("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40001000
read(3, "1700000\n", 4096)              = 8
close(3)                                = 0
munmap(0x40001000, 4096)                = 0
open("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40001000
read(3, "600000\n", 4096)               = 7
close(3)                                = 0
munmap(0x40001000, 4096)                = 0
open("/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


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 ...

The cpufreq kernel options look like this:

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_PROC_INTF is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=m
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_24_API is not set
CONFIG_CPU_FREQ_TABLE=y

#
# CPUFreq processor drivers
#
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
# CONFIG_X86_POWERNOW_K6 is not set
# CONFIG_X86_POWERNOW_K7 is not set
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_GX_SUSPMOD is not set
CONFIG_X86_SPEEDSTEP_CENTRINO=m
# CONFIG_X86_SPEEDSTEP_ICH is not set
# CONFIG_X86_SPEEDSTEP_SMI is not set
# CONFIG_X86_P4_CLOCKMOD is not set
# CONFIG_X86_LONGRUN is not set
# CONFIG_X86_LONGHAUL is not set


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.5
Locale: LANG=C, LC_CTYPE=C

Versions of packages gnome-cpufreq-applet depends on:
ii  debconf [debconf-2.0]     1.4.30         Debian configuration management sy
ii  gconf2                    2.8.1-1        GNOME configuration database syste
ii  libart-2.0-2              2.3.16-6       Library of functions for 2D graphi
ii  libatk1.0-0               1.8.0-2        The ATK accessibility toolkit
ii  libbonobo2-0              2.8.0-1        Bonobo CORBA interfaces library
ii  libbonoboui2-0            2.8.0-1        The Bonobo UI library
ii  libc6                     2.3.2.ds1-13   GNU C Library: Shared libraries an
ii  libgconf2-4               2.8.1-1        GNOME configuration database syste
ii  libglade2-0               1:2.4.0-1      Library to load .glade files at ru
ii  libglib2.0-0              2.4.7-1        The GLib library of C routines
ii  libgnome2-0               2.8.0-1        The GNOME 2 library - runtime file
ii  libgnomecanvas2-0         2.7.1-1        A powerful object-oriented display
ii  libgnomeui-0              2.8.0-1        The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            2.8.1-1        The GNOME virtual file-system libr
ii  libgtk2.0-0               2.4.9-1        The GTK+ graphical user interface 
ii  libice6                   4.3.0-3        Inter-Client Exchange library
ii  liborbit2                 1:2.10.0-0.1   libraries for ORBit2 - a CORBA ORB
ii  libpanel-applet2-0        2.8.1-1        Library for GNOME 2 Panel applets
ii  libpango1.0-0             1.6.0-1        Layout and rendering of internatio
ii  libpopt0                  1.7-4          lib for parsing cmdline parameters
ii  libsm6                    4.3.0-3        X Window System Session Management
ii  libxml2                   2.6.11-1       GNOME XML library
ii  xlibs                     4.3.0.dfsg.1-6 X Window System client libraries m
ii  zlib1g                    1:1.2.1.1-5    compression library - runtime

-- debconf information:
* gnome-cpufreq-applet/SUID_bit: true


many thanks in advance,
Andreas

---------------------------------------
Received: (at 280079-done) by bugs.debian.org; 7 Nov 2004 15:11:05 +0000
>From netsnipe@optusnet.com.au Sun Nov 07 07:11:05 2004
Return-path: <netsnipe@optusnet.com.au>
Received: from mail02.syd.optusnet.com.au [211.29.132.183] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CQoh6-0006hc-00; Sun, 07 Nov 2004 07:11:04 -0800
Received: from espresso.caffeine (c211-30-49-101.mirnd1.nsw.optusnet.com.au [211.30.49.101])
	by mail02.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id iA7FB2CY025484
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO)
	for <280079-done@bugs.debian.org>; Mon, 8 Nov 2004 02:11:03 +1100
Received: from netsnipe by espresso.caffeine with local (Exim 4.34)
	id 1CQoh3-000581-CD
	for 280079-done@bugs.debian.org; Mon, 08 Nov 2004 02:11:01 +1100
Date: Mon, 8 Nov 2004 02:11:01 +1100
From: Andrew Lau <netsnipe@users.sourceforge.net>
To: 280079-done@bugs.debian.org
Subject: Re: Bug#280079: gnome-cpufreq-applet: selector doesnt work
Message-ID: <20041107151101.GA19662@espresso>
References: <E1CQbX0-0001JL-Jl@linz>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF"
Content-Disposition: inline
In-Reply-To: <E1CQbX0-0001JL-Jl@linz>
X-PGP-Key-ID: 0x2E8B68BD
X-PGP-Fingerprint: 0B77 73D0 4F3B F286 63F1 9F4A 9B24 C07D 2E8B 68BD
X-PGP-Key: http://pgp.dtype.org:11371/pks/lookup?op=get&search=0x2E8B68BD
User-Agent: Mutt/1.5.6+20040907i
Sender: Andrew Lau <netsnipe@optusnet.com.au>
Delivered-To: 280079-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 


--h31gzZEtNLTqOjlF
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:
> 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 ...

> -- System Information:
> Debian Release: 3.1
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.5

Hi Andreas,

I've tracked down your bug. It's not in cpufreq-selector, but its
actually a bug in the kernel you're using which was fixed in 2.6.6.

http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.6:
<davej@redhat.com>
	[CPUFREQ] Export an array of available frequency settings of the
	centrino driver.

That's why the file doesn't exist in the first place!

Yours sincerely,
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!"
---------------------------------------------------------------------------

--h31gzZEtNLTqOjlF
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)

iD8DBQFBjjsEmyTAfS6LaL0RApmnAKCKutWO2+AMKtfnf/yNl0hLNqY5vwCglPz+
octuq6OZESjk/nss9F6rEas=
=NK21
-----END PGP SIGNATURE-----

--h31gzZEtNLTqOjlF--