Bug 467523

Summary: Screen Energy Saving duration not remembered
Product: [Applications] systemsettings Reporter: Quinten <quinten0508>
Component: kcm_powerdevilAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, kde, p.r.worrall
Priority: NOR    
Version First Reported In: 5.27.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The setting as described in this issue. The Screen Energy Saving setting is disabled but the user defined duration value is visible. This will revert to 10 minutes upon re-opening System Setting.

Description Quinten 2023-03-18 12:34:06 UTC
Created attachment 157388 [details]
The setting as described in this issue. The Screen Energy Saving setting is disabled but the user defined duration value is visible. This will revert to 10 minutes upon re-opening System Setting.

SUMMARY
The Screen Energy Saving duration will not be saved when the setting as a whole has been turned off.


STEPS TO REPRODUCE
1. Open the System Settings application and navigate to Power Management --> Energy Saving (default tab)
2. Enable Screen Energy Saving (first setting) and change the duration from the default (10m) to another value (e.g. 1m)
3. Apply settings
4. Disable Screen Energy Saving (do not change the duration from your custom value)
5. Apply settings
6. Observe how the (now greyed-out) duration is still set to your custom value (e.g. 1m)
7. Close system settings
8. Re-open the Systems Settings application and navigate back to the Power Management tab (see step 1)
9. Observe how the (still greyed-out) duration has been reset to its default value of 10 minutes

OBSERVED RESULT
See step 9. The custom duration will not be saved upon re-opening System Settings if the Screen Energy Saving option is disabled.

EXPECTED RESULT
The custom duration, as inputted and applied by the user, should be kept. Even if the setting as a whole has been toggled off.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux kernel 6.2.6-arch1-1 (64-bit)
(available in About System)
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Using EndeavourOS, an Arch derivative.
Applied the `general` component as I was unable to find exactly which component this applies to. Feel free to move to the correct component.
Comment 1 Patrick Silva 2023-03-19 14:05:16 UTC

*** This bug has been marked as a duplicate of bug 460422 ***