Phctool python-based graphic interface seems to not work due to the way CPUs id is defined. Looks like it's based still on /proc/acpi/processor/CPU./info which is not present in my system. It looks like that kernel 2.6.36 and later doesn't support those deprecated /proc/acpi directories even with CONFIG_ACPI_PROCFS enabled. Reproducible: Always Steps to Reproduce: 1. Run phctool from terminal or open the dialogue window from the trayicon Actual Results: No window opens, if run in terminal you get: Traceback (most recent call last): File "./phctool.py", line 468, in <module> app=appgui() File "./phctool.py", line 81, in __init__ self.cpuinfo=cpuinfo.cpuinfo() ##functions to gather CPU informations File "inc/libs/cpuinfo.py", line 12, in __init__ self._get_acpi_cpus() ##get ACPI-supported CPUs File "inc/libs/cpuinfo.py", line 43, in _get_acpi_cpus self.data[cpunr]['acpi']['exist']=False UnboundLocalError: local variable 'cpunr' referenced before assignment Expected Results: Open UI GUI. Looks like that functionality is still available, just the GUI is missing. Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5phobos x86_64) ================================================================= System uname: Linux-2.6.36-gentoo-r5phobos-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9800_@_2.93GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 17 Jan 2011 10:45:01 +0000 app-shells/bash: 4.1_p7 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://mirror.netcologne.de/gentoo/" LANG="it_IT" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="it en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/dev/shm" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/wirelay /var/lib/layman/x11" SYNC="rsync://rsync.it.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apic arch_perfmon berkdb bluetooth branding bts bzip2 cairo cdr clflush cli cmov consolekit constant_tsc cracklib crypt cups cx16 cx8 cxx dbus de dri ds_cpl dtes64 dts dvd dvdr eds emboss encode est evo exif fam fat fbcondecor fftw firefox flac flexpriority fortran fpu fxsr gallium gdbm gdu gif gnome gnome-keyring gnutls gpm gstreamer gtk ht iconv ida ipv6 jpeg lahf_lm lame laptop lcms ldap libnotify lm lm_sensors lock mad mca mce mikmod mmx mng modules monitor mozilla mp3 mp4 mpeg msr mtrr mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly ntfs nx ogg opengl openmp pae pam pango pat pbe pcre pdcm pdf pebs perl pge png pni policykit ppds pppd pse pse36 python qt3support readline rep_good sdl sep session smx spell sqlite ss sse sse2 sse4_1 ssl ssse3 startup-notification svg syscall sysfs tcpd tiff tm tm2 tpr_shadow truetype tsc udev unicode usb usb-storage v4l v4l2 vme vmx vnmi vorbis wifi x264 xcb xfs xml xorg xsave xtpr xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 260161 [details, diff] A new corrected version of the bugged file New version of the bugged file. The functionality has been restored, though some small differences in code behaviour. Full working in my system
Is this patch compartible with the older (<2.6.36) kernels?
(In reply to comment #2) > Is this patch compartible with the older (<2.6.36) kernels? > It was, but better move to this other version which I tested on both 2.6.36.r5 and 2.6.35.r15. Changes: - Fallback on old script - Relies on online CPU, no more on present (but maybe inactive) CPU.
Created attachment 260511 [details, diff] Fixed and added fallback on old script (This is the entire file, not actually a patch)
+*phctool-0.5.2.2-r1 (06 Feb 2011) + + 06 Feb 2011; Michael Weber <xmw@gentoo.org> +phctool-0.5.2.2-r1.ebuild, + +files/phctool-0.5.2.2_kernel_2.6.36.patch: + Added _kernel_2.6.36.patch by Fabio Veronese on bug 352019, thank you. +