Created attachment 57073 [details] patch for randrmonitor.cpp Version: unspecified (using KDE 4.6.0) OS: Linux This is a patch to the kded_randrmonitor service that solves the below mentioned problem. If only one output is connected and the user tries to switch the display it makes sure the connected output gets activated and deactivates all disconnected output afterwards. Reproducible: Always Steps to Reproduce: 1. Connect an external display to your laptop and use your latop's hotkey (e.g. Fn+F6) to active it and deactivate your laptop's display. 2. Disconnect the external display 3. Try to switch back to internal display with your keyboard Actual Results: Nothing happens
Created attachment 57171 [details] added: disable disconnected outputs and enable a connected output on resume from suspend I improved my patch. Now it also automatically deactivates all disconnected outputs on resume from suspend and switches to a connected monitor if needed. This should fix e.g. Bug #257642. Please test. I also want to propose to change the behaviour of RandROutput::isActive() to just check for a valid crtc, because a output can be "active" without beeing connected.
Patch submitted to reviewboard, and improved: http://svn.reviewboard.kde.org/r/6513/
Has this patch been applied to KDE's repository?
Git commit 505c9e0cdc5a6daddd300bd756278b8a9c0fa5cf by Lamarque V. Souza. Committed on 11/07/2011 at 17:52. Pushed by lvsouza into branch 'master'. Fix can't switch back to laptop display when external display gets disconnected. REVIEW: 6513 BUG: 257642 BUG: 265955 FIXED-IN: 4.7.0 M +75 -14 kcontrol/randr/module/randrmonitor.cpp M +10 -0 kcontrol/randr/module/randrmonitor.h http://commits.kde.org/kde-workspace/505c9e0cdc5a6daddd300bd756278b8a9c0fa5cf
Git commit aba27511815aacec5c9769cd7a3a1fc1fa2cf80e by Lamarque V. Souza. Committed on 11/07/2011 at 17:52. Pushed by lvsouza into branch 'KDE/4.7'. Fix can't switch back to laptop display when external display gets disconnected. REVIEW: 6513 BUG: 257642 BUG: 265955 FIXED-IN: 4.7.0 (cherry picked from commit 505c9e0cdc5a6daddd300bd756278b8a9c0fa5cf) M +75 -14 kcontrol/randr/module/randrmonitor.cpp M +10 -0 kcontrol/randr/module/randrmonitor.h http://commits.kde.org/kde-workspace/aba27511815aacec5c9769cd7a3a1fc1fa2cf80e
*** Bug 225979 has been marked as a duplicate of this bug. ***