Bug 495499 - ability to query DPMS state
Summary: ability to query DPMS state
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: kscreen-doctor (show other bugs)
Version: 6.1.5
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-28 18:44 UTC by kdebugs
Modified: 2025-01-15 21:49 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs 2024-10-28 18:44:52 UTC
AFAIK there is no way on KDE/Wayland to query the state of DPMS for a monitor.

There is a method via ddccontrol or ddcutil (see here: https://unix.stackexchange.com/questions/785736/command-line-to-tell-if-monitor-is-off-in-wayland ) but it would be nice to have a more straightforward method, and kscreen-doctor seems like an appropriate tool for the job.

Having the info included in the results of -o would make sense, and we could have -d with no argument supplied print the current DPMS state.


Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4770K CPU @ 3.50GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Comment 1 Bug Janitor Service 2025-01-10 14:33:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libkscreen/-/merge_requests/218
Comment 2 Zamundaaa 2025-01-10 16:46:50 UTC
Git commit ce7cb1ef84bc0c283abd057167f4f00e34066ef1 by Xaver Hugl.
Committed on 10/01/2025 at 16:05.
Pushed by zamundaaa into branch 'master'.

doctor: fix "--dpms show"

It just hanged the process before

M  +16   -6    src/doctor/doctor.cpp

https://invent.kde.org/plasma/libkscreen/-/commit/ce7cb1ef84bc0c283abd057167f4f00e34066ef1
Comment 3 Zamundaaa 2025-01-10 16:46:51 UTC
Git commit d3efb5c3a4684da3c2eebbb08c36ad66ebeb7024 by Xaver Hugl.
Committed on 10/01/2025 at 16:06.
Pushed by zamundaaa into branch 'master'.

doctor: add dpms to help text

M  +5    -1    src/doctor/main.cpp

https://invent.kde.org/plasma/libkscreen/-/commit/d3efb5c3a4684da3c2eebbb08c36ad66ebeb7024
Comment 4 Zamundaaa 2025-01-10 17:14:55 UTC
Git commit e229d2901f82eaca5e04a6a40bfb2410c814702b by Xaver Hugl.
Committed on 10/01/2025 at 16:53.
Pushed by zamundaaa into branch 'Plasma/6.3'.

doctor: fix "--dpms show"

It just hanged the process before
(cherry picked from commit ce7cb1ef84bc0c283abd057167f4f00e34066ef1)

M  +16   -6    src/doctor/doctor.cpp

https://invent.kde.org/plasma/libkscreen/-/commit/e229d2901f82eaca5e04a6a40bfb2410c814702b
Comment 5 Zamundaaa 2025-01-10 17:14:56 UTC
Git commit a641ee4ad28bd8574475d417f1b565dd51fb0c3b by Xaver Hugl.
Committed on 10/01/2025 at 16:53.
Pushed by zamundaaa into branch 'Plasma/6.3'.

doctor: add dpms to help text
(cherry picked from commit d3efb5c3a4684da3c2eebbb08c36ad66ebeb7024)

M  +5    -1    src/doctor/main.cpp

https://invent.kde.org/plasma/libkscreen/-/commit/a641ee4ad28bd8574475d417f1b565dd51fb0c3b