Bug 491624 - Custom Duration oddities in Power Management settings
Summary: Custom Duration oddities in Power Management settings
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_powerdevil (other bugs)
Version First Reported In: 6.1.4
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2024-08-12 14:35 UTC by John Veness
Modified: 2024-09-08 20:53 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Custom Duration dialog (482.04 KB, video/webm)
2024-08-12 14:35 UTC, John Veness
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Veness 2024-08-12 14:35:34 UTC
Created attachment 172541 [details]
Custom Duration dialog

SUMMARY
The Custom Duration dialog box that pops up in System Settings, Power Management, seems to have confusing behaviour.

STEPS TO REPRODUCE
1. Open System Settings
2. Go to Power Management page
3. Choose any power profile tab
4. Choose either of the timeout dropdowns (for Suspend Session, or Turn off screen) and choose Custom
5. Try to type numbers greater than 9999

OBSERVED RESULT
Difficult to describe, but see video. You'll notice first off I type in 5000 which shows correctly as "5,000" but then I add another zero which shows incorrectly as "5,0000" (should be "50,000"). When I press OK it changes to 5000 anyway.

I enter custom again and change the 5000 to 50000 and click OK, and it changes to 1.

I enter custom again, type 50000, then use the up arrow to increment. Instead of incrementing to 50001 it increments to 5001.

If I type in 9999 then increment, it will allow numbers greater than 9999, which I'm not sure is intentional.

EXPECTED RESULT
Custom duration should work more sanely!

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240811
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Note that the similar Custom Duration dialog in System Settings, Screen Locking seems to act sanely. It seems to allow timeouts up to 9999 minutes, doesn't allow exceeding that, and doesn't display the same oddities described above as the one in Power Management.

I wonder if it's some mismatch as to whether the textbox should allow maximum four digits or maximum five, where the intention was to limit it to four digits, but which sometimes accepts five digits.