Wednesday, March 23, 2011

Phctool bug with kernels 2.6.38

Hey guys,

unfortunately another bug in phc and phctool.... with 2.6.38 kernel throttling interface has moved, so you get:

Traceback (most recent call last):
  File "./", line 468, in <module>
  File "./", line 83, in __init__
  File "inc/libs/", line 16, in __init__
    self._cpus_have_interface()            ##check which CPU has a trottling
  File "inc/libs/", line 23, in _cpus_have_interface
KeyError: 'acpiname'

this has already been reported to bugzilla, I wrote a patch but it's just a temporary solution, you can get it from here:

The file needs to be placed in

 If anyone has some python skills and/or a CPU with throttling interface available (I don't), feel free to post a comment so we can solve this!



  1. Hi. Old message maybe but you helped me out. I found a workaround. I edited the file to comment out all instances of throttling, and also commented out the "T" opts in and renamed to something innocous. Crude I know but phctool loads but I haven't tried it out yet. I'll post later to let you know how it turned out. Thanks again.

  2. You're welcome ^_^

    Actually it's a strange issue, because phctool seems to have lost its developer so I don't know what to do. Anyway AFAIK throttling is no more supported for new CPU or new drivers so it could be removed...