https://bugs.kde.org/show_bug.cgi?id=482698
Bug ID: 482698 Summary: kscreen-doctor disables screen instead of enabling it Classification: Plasma Product: KScreen Version: 5.24.7 Platform: Kubuntu OS: Linux Status: REPORTED Severity: major Priority: NOR Component: common Assignee: kscreen-bugs-n...@kde.org Reporter: cont...@yannsalmon.fr Target Milestone: --- Created attachment 166575 --> https://bugs.kde.org/attachment.cgi?id=166575&action=edit Situation where DP-0 is working as single screen SUMMARY When invoking kscreen-doctor to enable a secondary screen, the primary screen gets disabled. STEPS TO REPRODUCE 1. Write a script kscreen-switch with the following content : if [[ "$(xrandr --listactivemonitors | grep -c DVI-D-0)" == "0" ]]; then kscreen-doctor output.DVI-D-0.enable output.DVI-D-0.position.-1920,0 else kscreen-doctor output.DVI-D-0.disable fi 2. Invoke the script. 3. Invoke the script again. OBSERVED RESULT On first invocation, DVI-D-0 goes live and DP-0 goes blank. On second invocation, DVI-D-0 does blank. EXPECTED RESULT On first invocation, DP-0 should not go blank. SOFTWARE/OS VERSIONS Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 5.15.0-97-generic (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Xeon® CPU E3-1245 v5 @ 3.50GHz Memory: 15.5 Gio of RAM Graphics Processor: NVIDIA GeForce GTX 1650/PCIe/SSE2 ADDITIONAL INFORMATION Explicitly adding output.DP-0.enable to each line of the script makes DP-0 go live in second invocation, but does not prevent it from going blank in the first. On first invocation with that addition, the console shows Enabling output 444 kscreen.doctor: Output position QPoint(-1920,0) kscreen.doctor: Set output position QPoint(-1920,0) Enabling output 455 kscreen.doctor: setop exec returned KScreen::Config( KScreen::Output(444, "DVI-D-0", connected enabled, pos: QPoint(0,0), res: QSize(-1, -1), modeId: "", scale: 1, clone: no, rotation: KScreen::Output::None, followPreferredMode: false) KScreen::Output(455, "DP-0", connected enabled primary, pos: QPoint(1920,0), res: QSize(3840, 2160), modeId: "456", scale: 1, clone: no, rotation: KScreen::Output::None, followPreferredMode: false) ) Which is not consistent with the fact that DP-0 goes blank. However, the log produced by kscreen-console bug show that something pertaining to DP-0 is disabled. Setting up the dual screen configuration with the GUI from Plasma works properly. -- You are receiving this mail because: You are watching all bug changes.