After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 376612 - Doesn't start up correctly with two CPUs
Doesn't start up correctly with two CPUs
Status: RESOLVED OBSOLETE
Product: gnome-applets
Classification: Other
Component: cpufreq
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 376615 377570 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-11-18 11:03 UTC by Sven Herzberg
Modified: 2007-05-08 10:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to make second CPU display correctly after suspend/resume (838 bytes, patch)
2007-01-18 01:38 UTC, Bernard Duggan
none Details | Review

Description Sven Herzberg 2006-11-18 11:03:43 UTC
I have two CPU-Frequency Applets (one for each CPU). Both applets should display the icon and the frequency.

After adding and configuring both applets everything seemed to work. Then I logged off and logged in later. The applet for CPU0 seemed to work allright, but the applet for CPU1 was not displaying the text. In the properties everything seemed to be fine and after unchecking and rechecking the checkbox for the text, everything was the way I wanted it to be.
Comment 1 Carlos Garcia Campos 2006-11-18 11:24:26 UTC
hmm, I think it's also fixed. Could you upgrade gnome-applets from cvs and try again, please? I have also two applets with icon and text, and I don't have this problem. 

Thanks for the bug report. 
Comment 2 Carlos Garcia Campos 2006-11-20 23:39:45 UTC
*** Bug 377570 has been marked as a duplicate of this bug. ***
Comment 3 Anders Olsson 2006-12-02 10:00:30 UTC
I can confirm this bug in 2.16.1. I would upgrade from cvs to confirm it's fixed, if it's easy to do so. I suspect it's not though.
Comment 4 Carlos Garcia Campos 2006-12-06 11:00:32 UTC
*** Bug 376615 has been marked as a duplicate of this bug. ***
Comment 5 Sven Herzberg 2006-12-06 11:14:22 UTC
Will we get the fix also for the stable version, please?
Comment 6 Carlos Garcia Campos 2006-12-07 10:32:13 UTC
I thought this change:

http://cvs.gnome.org/viewcvs/gnome-applets/cpufreq/src/cpufreq-applet.c?r1=1.23&r2=1.24&only_with_tag=gnome-2-16

fixed this bug, but Anders has confirmed it's still present in 2.16.1, so right now I don't know where is the problem. 

I can't reproduce it, but it would be great if someone with gnome-applets from cvs head could confirm that it's actually fixed in head.
Comment 7 Bernard Duggan 2007-01-18 01:38:24 UTC
Created attachment 80562 [details] [review]
Patch to make second CPU display correctly after suspend/resume
Comment 8 Bernard Duggan 2007-01-18 01:38:56 UTC
I suspect this is much the same problem that I've been seeing.  In my case, at least, it's actually linked to suspend/resume.  During this process, all CPUs beyond the first are disabled.  This causes the applet to be unable to get the policy, causing the timer callback cpufreq_monitor_libcpufreq_run() to return FALSE, thus in turn causing further updates not to occur (except those that are triggered as a result of a non-timer action such as changing the display style).

I've attached a patch (against CVS head) that resolves it for this case by checking if the CPU exists, and returning TRUE, even if the policy could not be acquired.  It's not especially pretty and I suppose would give slightly incorrect behaviour if someone actually disabled a CPU during normal operation (would anyone do that?) in that it would continue to display the last known speed, rather than indicating that it's disabled.  But it works for me :)

Note that if you're using gnome-power-manager, this fix seems to expose a bug in it where after suspend, the second CPU is using the wrong governor.  Of course, this probably always used to happen but you couldn't see it because the cpufreq display wasn't working.  I'll get to that next...
Comment 9 Carlos Garcia Campos 2007-01-18 14:19:07 UTC
Thanks a lot for your comments, I understand the problem now :-) However the problem you are describing is not related to this bug, but to bug #356694. I've just committed a fix to svn trunk. 
Comment 10 Bernard Duggan 2007-01-18 20:37:23 UTC
Aw, dammit :)  I didn't find that other one when I was searching.  I need to look harder next time.  Incidentally, I unfairly besmirched gnome-power-manager - the problem I described is apparently a kernel bug.
Comment 11 Carlos Garcia Campos 2007-03-19 15:56:01 UTC
Is this bug still reproducible for anybody with gnome 2.18?

Thanks.
Comment 12 Sven Herzberg 2007-05-08 10:57:54 UTC
No, not reproducable with 2.18 anymore.