Change font size
It is currently Fri 21. Jul 2017, 08:33


Post a new topicPost a reply Page 1 of 1   [ 3 posts ]
Author Message
PostPosted: Sun 6. Mar 2011, 13:06 
User avatar

Joined: Wed 23. Feb 2011, 18:30
Posts: 44
In newer kernels /proc/acpi/processor is DEPRECATED and moving to /sys/devices/system/cpu.

This causes bugs on cpu detection and makes GUI crash.

I found at list two bugs:

Code:
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


Which I completely solved and:

Code:
Traceback (most recent call last):
  File "./phctool.py", line 468, in <module>
    app=appgui()
  File "./phctool.py", line 83, in __init__
    self.throttling=throttling.throttlecontrol(self.cpuinfo.data)
  File "inc/libs/throttling.py", line 16, in __init__
    self._cpus_have_interface()         ##check which CPU has a trottling interface
  File "inc/libs/throttling.py", line 23, in _cpus_have_interface
    if os.path.exists('/proc/acpi/processor/'+self.cpus[cpu]['acpi']['acpiname']+'/throttling') & os.path.exists('/proc/acpi/processor/'+self.cpus[cpu]['acpi']['acpiname']+'/limit'):
KeyError: 'acpiname'


Which is related to throttling interface. I proper fixed the throttling path, but no idea on how to set the data as my CPU has no throttling.

Hope someone can help, fell free to replace older cpuinfo.py with this version.



Cheers

EDIT: 07/21/12

Fixed Bug with 4-8 cores


Attachments:
cpuinfo.py.tar.gz [2.19 KiB]
Downloaded 504 times


Last edited by Docet on Sat 21. Jul 2012, 11:46, edited 4 times in total.
Top
 Profile  
Reply with quote  
PostPosted: Sun 10. Apr 2011, 15:12 

Joined: Sat 5. Feb 2011, 09:34
Posts: 6
Hi,

any chance on getting the GUI to work without throttling? I think my P8600 also doesn't support this, but at least the GUI on 2.6.35-25 showed up...I'm tired of using an old kernel just because phc doesn't work on the new one.


Top
 Profile  
Reply with quote  
PostPosted: Sun 10. Apr 2011, 23:48 
User avatar

Joined: Wed 23. Feb 2011, 18:30
Posts: 44
Follow this guide and I can say kernel *.38 is supported, without throttling.

http://linuxsolver.blogspot.com/2011/02 ... buntu.html

Cheers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 3 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB® Forum Software © phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net