Bug 442086

Summary: Volume bar on OSD breaks after raising maximum volume above 100%
Product: [Plasma] plasmashell Reporter: Namor Niradnug <roma57linux>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED DOWNSTREAM    
Severity: minor CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.22.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: osb volume bar broken

Description Namor Niradnug 2021-09-06 17:09:14 UTC
STEPS TO REPRODUCE
1. Turn on "Raise Maximum Volume"
2. Change volume to maximum (more than 100%)
3. Change volume with shortcuts such as Osd appears.

OBSERVED RESULT
Volume progress bar on obs is always on maximum, if volume less than 100% too.
Icon changes right. Volume itself works and changes right.

Also if turns "Raise Maximum Volume" off, progress bar still stays broken.
It fixes after shell restart.

EXPECTED RESULT
Volume bar on obs should changes.

SOFTWARE/OS VERSIONS
Linux: 5.13.13-zen1-1-zen (64-bits) 
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Theme: Sweet

Bug probably at plasma-workspace/shell/obs.cpp, line 45, on calling. maximum_percent must be not 100, but 150 if raising maximum volume turned on.
Comment 1 Nate Graham 2021-09-08 20:56:49 UTC
> plasma-workspace/shell/obs.cpp
I don't see this file; can you point to where you found it?
Comment 2 Namor Niradnug 2021-09-14 04:36:26 UTC
(In reply to Nate Graham from comment #1)
> > plasma-workspace/shell/obs.cpp
> I don't see this file; can you point to where you found it?

here is GitLab link: https://invent.kde.org/plasma/plasma-workspace/blob/master/shell/osd.cpp#L43
Comment 3 Nate Graham 2021-09-14 14:01:56 UTC
Oh, when you said obs, you meant osd. I see now, thanks.

Cannot reproduce though. Raising volume with global shortcuts causes the bar to eventually go above 100% correctly.

Can you please attach a screenshot that shows the problem? Or better yet, a screen recording?
Comment 4 Namor Niradnug 2021-09-14 19:38:13 UTC
Created attachment 141551 [details]
osb volume bar broken
Comment 5 Namor Niradnug 2021-09-14 19:39:47 UTC
(In reply to Nate Graham from comment #3)
> Oh, when you said obs, you meant osd. I see now, thanks.
> 
> Cannot reproduce though. Raising volume with global shortcuts causes the bar
> to eventually go above 100% correctly.
> 
> Can you please attach a screenshot that shows the problem? Or better yet, a
> screen recording?

Sorry for typo :)
Recording attached
Comment 6 Nate Graham 2021-09-14 21:53:20 UTC
Ah, This is a bug in the 3rd-party Plasma theme you're using. It needs to be updated to visually support >100% progress bar values and text.