Bug 252641 - Battery Monitor shows at most 4 power profiles in select list
Summary: Battery Monitor shows at most 4 power profiles in select list
Status: RESOLVED DUPLICATE of bug 219873
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-battery (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 13:19 UTC by Jonathan
Modified: 2010-09-28 18:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of the Battery Monitor showing only 4 out of 5 profiles (19.79 KB, image/png)
2010-09-28 13:19 UTC, Jonathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan 2010-09-28 13:19:29 UTC
Created attachment 52043 [details]
Screenshot of the Battery Monitor showing only 4 out of 5 profiles

Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

I have 5 power profiles: Powersave, Performance, Aggresive Powersave, Xtreme Powersave and Presentation

When I open the Battery Monitor I only get the first 4 to choose from. I can still use the Presentation mode using the arrow keys of my keyboard.

The attached screenshot shows the Battery Monitor showing only 4 out of 5 profiles.

Reproducible: Always
Comment 1 Christoph Feck 2010-09-28 14:57:45 UTC
Make sure you compile KDE against the same version of Qt that you have installed.

For example, when you use a KDE compiled against Qt 4.6, but you install Qt 4.7 later, you have to recompile KDE, as otherwise this error shows up.

It is actually a Qt bug that we work around depending on the detected Qt version, but it has been decided to make this a compile-time check only.
Comment 2 Jonathan 2010-09-28 15:42:25 UTC
I'm using the provided packages of Archlinux.

The version of qt is 4.6.3. If I check the used version for KDE I get:

$  kde4-config --version
Qt: 4.6.3
KDE Development Platform: 4.5.1 (KDE 4.5.1)
kde4-config: 1.0 

So this looks alright, doesn't it?

Also, I've already had this problem for a long time. Although I just recently found out that the presentation mode is not gone but only hidden by this bug.
Comment 3 Christoph Feck 2010-09-28 17:06:37 UTC
Could you add a 6th profile and check if now a scroll bar appears?
Comment 4 Christoph Feck 2010-09-28 17:12:34 UTC
Additionally, is there a way to find out which exact svn revision you are using? 4.5.1 got retagged after a few blocker problems got fixed. The official 4.5.1 tag is r1170240. If in doubt, ask the packagers of your distribution, or wait for the 4.5.2 release.

In the meantime I will check if the Qt bug fix got backported to 4.6.3, in that case we have to adjust the version check.
Comment 5 Christoph Feck 2010-09-28 17:19:56 UTC
Nope, it has not, the Qt bug fix is in version 4.7.0 only, so our check is good.

Need the information from comment #3 and comment #4 to proceed.
Comment 6 Jonathan 2010-09-28 18:11:37 UTC
Adding a 6th (or even 7th) profile doesn't help. There is still no scrollbar.

I'm not aware of a way to find the exact svn revision. The build date is Mon Aug 30 15:13:20 2010, one day before the release was announced on kde.org.

But as I mentioned before, I've had this problem prior using 4.5.1. For sure with 4.4 and possibly also with 4.3.
Comment 7 Christoph Feck 2010-09-28 18:23:20 UTC
If there is no scroll bar with more than 5 profiles, you definitely have a pre-r1170240 KDE.

The duplicate bug is set to "resolved in 4.5.2" because the fix was committed between retagging.

*** This bug has been marked as a duplicate of bug 219873 ***
Comment 8 Jonathan 2010-09-28 18:42:04 UTC
Sorry for submitting the duplicate bug report, I didn't check the resolved bugs. And thanks for your fast processing. :)