kde-guidance fails to launch, linux-2.6.20-5

Bug #78891 reported by Henry Finucane
4
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Fix Released
Undecided
Sebastian Kügler

Bug Description

Binary package hint: kde-guidance

On the latest development version of Fiesty, run 'guidance-power-manager'.

 It will fail, looking for a nonexistent file in /sys.

Observe:

File "/usr/share/python-support/kde-guidance/powermanage.py", line 337, in getCpuState
    state['cur'] = int(_readValue("/sys/devices/system/cpu/"+cpu+"/cpufreq/scaling_cur_freq"))/1000
  File "/usr/share/python-support/kde-guidance/powermanage.py", line 42, in _readValue
    fhandle = open(file)
IOError: [Errno 2] No such file or directory: '/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq'

Revision history for this message
Sebastian Kügler (sebasje) wrote :

Fixed in SVN as of yesterday :-)

Changed in kde-guidance:
assignee: nobody → sebas-kde
status: Unconfirmed → Fix Committed
Revision history for this message
Henry Finucane (h-finucane) wrote :

Cool :). I await the updated package eagerly.

Revision history for this message
Sebastian Kügler (sebasje) wrote :

You can apply this patch in the meantime.

Revision history for this message
Henry Finucane (h-finucane) wrote :

Fix confirmed, though it still gives this (scary looking) output:

power-manager: ERROR: Communication problem with power-manager, it probably crashed.

Revision history for this message
daniel2501 (daniel2501) wrote :

So how do I install this patch?

Revision history for this message
Luka Renko (lure) wrote :

These are the steps to install the patch:
1. Save attachement to temporary file (for example: /tmp/guidance.diff)
2. Perform the following
cd /usr/share/python-support/kde-guidance
cp powermanage.py powermanage.py.orig
patch -p0 < /tmp/guidance.diff

Then restart guidance-power-manager

Revision history for this message
daniel2501 (daniel2501) wrote :

Thanks for the instructions. Works fine now. Although of course I have no cpu frequency readings. I'll let you know about how the auto suspend works.

Revision history for this message
Luka Renko (lure) wrote :

Feisty package: 0.7.1~svn20070129-0ubuntu1

Changed in kde-guidance:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.