Icon sometimes turns into generic "blank paper" icon

Bug #75531 reported by daniel2501
4
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Fix Released
Low
Luka Renko

Bug Description

Binary package hint: kde-guidance-powermanager

Presumably the icon cannot be found or displayed for whatever reason and a generic "blank paper sheet" icon is displayed in the tray instead of the battery icon.

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

I can confirm this on Feisty. You are running Feisty too?
Tonio_ is working on fix.

Changed in kde-guidance:
importance: Undecided → Low
status: Unconfirmed → Confirmed
Revision history for this message
daniel2501 (daniel2501) wrote :

I am running Feisty. Pretty trivial but annoying you know? :-)

Revision history for this message
daniel2501 (daniel2501) wrote :

Seems to be fixed now.

Changed in kde-guidance:
status: Confirmed → Fix Released
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

The "CPU Frequency"-icon in the tool tip is still a generic "blank paper".

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :
Revision history for this message
daniel2501 (daniel2501) wrote : Re: [Bug 75531] Re: Icon sometimes turns into generic "blank paper" icon

You're right. Same here. I hadn't noticed that.

Luka Renko (lure)
Changed in kde-guidance:
status: Fix Released → Confirmed
Luka Renko (lure)
Changed in kde-guidance:
assignee: nobody → lure
status: Confirmed → In Progress
Revision history for this message
daniel2501 (daniel2501) wrote :

Just upgraded today to kde-guidance-powermanager 0.7.1~svn20070109-0ubuntu1
The battery icon had been fixed in the last upgrade but this one seems to break it again. I'm also not getting a cpu frequency now.

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

Fix released for Feisty

Changed in kde-guidance:
status: In Progress → Fix Released
Revision history for this message
daniel2501 (daniel2501) wrote :

I'm running kde-guidance-powermanager 0.7.1~svn20070111-0ubuntu2 in Feisty.
Powermanager doesn't start when system boots. Running guidance-power-manager from the command line results in:
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1021, in ?
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 965, in __init__
    self.pmwidget.prepare()
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 117, in prepare
    self.poll(False)
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 595, in poll
    self._updateCpuWidgets()
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 759, in _updateCpuWidgets
    cpustate = self.powermanager.getCpuState(cpu)
  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'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/apport/python_hook.py", line 44, in apport_excepthook
    binary = os.path.normpath(os.path.join(os.getcwdu(), sys.argv[0]))
IndexError: list index out of range

Original exception was:
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1021, in ?
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 965, in __init__
    self.pmwidget.prepare()
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 117, in prepare
    self.poll(False)
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 595, in poll
    self._updateCpuWidgets()
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 759, in _updateCpuWidgets
    cpustate = self.powermanager.getCpuState(cpu)
  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'
power-manager: ERROR: Communication problem with power-manager, it probably crashed.

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

This is a different issue, it has been reported elsewhere and is fixed already. Thanks for the note anyway.

https://launchpad.net/ubuntu/+source/kde-guidance/+bug/78891

Revision history for this message
daniel2501 (daniel2501) wrote :

Thank you. How do I apply the patch?

On 1/12/07, sebas <email address hidden> wrote:
>
> This is a different issue, it has been reported elsewhere and is fixed
> already. Thanks for the note anyway.
>
> https://launchpad.net/ubuntu/+source/kde-guidance/+bug/78891
>
> --
> Icon sometimes turns into generic "blank paper" icon
> https://launchpad.net/bugs/75531
>

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

Locate the file powermanage.py, go to the same directory, then apply the patch with "patch -p0 < dont-barf-when-cpufreq-is-broken.diff"

(You'll have to apply the patch as root, otherwise you won't be able to write to that file.)

Revision history for this message
daniel2501 (daniel2501) wrote :

Thanks! Works now.

Revision history for this message
daniel2501 (daniel2501) wrote :

Hrm. After rebooting, though I can't see how that would have changed anything... attempting to run guidance-power-manager results in :

daniel@ubuntu:~$ power-manager: ERROR: Communication problem with power-manager, it probably crashed.

Weird.

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

This is false alarm (bug in PyKDE we use for dcop) and can be ignored.

Revision history for this message
daniel2501 (daniel2501) wrote :

True enough. I've seen it before and ignored it. Problem is that the tray icon isn't showing up so I thought it had crashed. I realized it was running when I unplugged AC and saw the notification. Still no icon though.

Revision history for this message
daniel2501 (daniel2501) wrote :

Sorry. Looks like my above was actually a Beryl problem. Working fine now.

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.