Bug#280079: gnome-cpufreq-applet: selector doesnt work
Andreas Leitner
Andreas Leitner <aleitner@raboof.at>, 280079@bugs.debian.org
Sun, 07 Nov 2004 02:07:46 +0100
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