Bug 482748 - Display Settings Showing SDR Brightness when HDR Isn't Available
Summary: Display Settings Showing SDR Brightness when HDR Isn't Available
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kscreen (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-07 16:59 UTC by Alexander Anthis
Modified: 2024-03-08 00:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.2
Sentry Crash Report:


Attachments
Screenshot of issue and system information (1.17 MB, image/png)
2024-03-07 16:59 UTC, Alexander Anthis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Anthis 2024-03-07 16:59:06 UTC
Created attachment 166615 [details]
Screenshot of issue and system information

SUMMARY
***
After enabling HDR on a supported graphics driver then downgrading to a graphics driver version without HDR support, the HDR checkbox disappears, but the SDR Brightness and SDR Color Intensity sliders are still present. Additionally, the Color Profile option is remains greyed out (was not greyed out before HDR was enabled).
***


STEPS TO REPRODUCE
1. Install the NVIDIA 550 proprietary graphics driver
2. Update KDE to 6.0.1
3. In KDE System Settings --> Display & Monitor, enable HDR
4. Downgrade NVIDIA driver to 535
5. Open KDE System Settings and view results

OBSERVED RESULT
HDR checkbox disappears, SDR Brightness slider remains, SDR Color Intensity slider remains, Color Profile is greyed out.

EXPECTED RESULT
HDR checkbox disappears, SDR Brightness slider disappears, SDR Color Intensity slider disappears, Color Profile is accessible.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Graphics Card: NVIDIA GeForce GTX 1080
Graphics Driver Versions: 550 --> 535 (bug involves version change)
Comment 1 Alexander Anthis 2024-03-07 17:18:37 UTC
I forgot to mention: This was performed on Wayland for both driver versions.
Comment 2 Nate Graham 2024-03-07 22:50:47 UTC
Whoops, I guess we forgot to hide those UI controls as well, based on the assumption that this exact use case wouldn't happen.
Comment 3 Bug Janitor Service 2024-03-07 23:04:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kscreen/-/merge_requests/291
Comment 4 Nate Graham 2024-03-08 00:54:52 UTC
Git commit ef143b4096fd07716de89bd61370cba7f1fc23fd by Nate Graham.
Committed on 08/03/2024 at 00:54.
Pushed by ngraham into branch 'master'.

KCM: Make sure HDR UI elements aren't shown when HDR isn't available

Right now we're assuming that HDR can only be enabled when available,
but that's actually not the case, as HDR can become unavailable later
after having previously enabled it. This can cause the KCM to display
inappropriate UI elements.

Fix that by also adding an "Is HDR available?" check to the visibility
conditions that currently only check whether HDR is currently enabled.
FIXED-IN: 6.0.2

M  +8    -6    kcm/ui/OutputPanel.qml

https://invent.kde.org/plasma/kscreen/-/commit/ef143b4096fd07716de89bd61370cba7f1fc23fd
Comment 5 Nate Graham 2024-03-08 00:56:36 UTC
Git commit 9780e2c9cb5669d5816985eb520cfeb5e750a769 by Nate Graham.
Committed on 08/03/2024 at 00:55.
Pushed by ngraham into branch 'Plasma/6.0'.

KCM: Make sure HDR UI elements aren't shown when HDR isn't available

Right now we're assuming that HDR can only be enabled when available,
but that's actually not the case, as HDR can become unavailable later
after having previously enabled it. This can cause the KCM to display
inappropriate UI elements.

Fix that by also adding an "Is HDR available?" check to the visibility
conditions that currently only check whether HDR is currently enabled.
FIXED-IN: 6.0.2


(cherry picked from commit ef143b4096fd07716de89bd61370cba7f1fc23fd)

bdb731c1 KCM: Make sure HDR UI elements aren't shown when HDR isn't available
b8892082 Apply 2 suggestion(s) to 1 file(s)

M  +8    -6    kcm/ui/OutputPanel.qml

https://invent.kde.org/plasma/kscreen/-/commit/9780e2c9cb5669d5816985eb520cfeb5e750a769