[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 287320] Laptop + Docked Multi Monitors:  Laptop Display Disables on Login, Even When Undocked
From:       Brandon Kirsch <brandonkirsch () gmail ! com>
Date:       2012-06-14 17:08:52
Message-ID: bug-287320-17878-IsToQuUZcJ () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=287320

--- Comment #5 from Brandon Kirsch <brandonkirsch@gmail.com> ---
To fix this problem, I created the following bash script that does what I
believe KDE4 display manager should be doing out of the box.  It checks to make
sure monitors are attached.  If they aren't, it calls xrandr --auto to enable
whatever monitors *are* attached.

The end result is this:

1)  Boot up machine out of dock.  See login prompt.
2)  Enter user credentials and click "Login". This is where the KDE display
manager decides to activate my "Saved as Default" settings -- even though none
of the monitors it references are currently attached.  My primary and only
display shuts off.
3)  Wait about 15 seconds for KDE to finish logging in.  Then my bash script
(which is setup in the Autostart folder) executes and re-enables the only
attached display.
4)  Work!



You will need to modify the "requiredmonitors" variable in the following bash
script to suite your needs:

#!/bin/bash
# xrandr multi monitor fix for KDE4.  If search for required monitors failrs,
run `xrandr --auto`

# required monitor names separated by vertical pipes |
requiredmonitors='VGA1|HDMI1'

if xrandr | pcregrep "^(${requiredmonitors}) disconnected"
then
        echo "Multi-Monitor Check Failed: A required monitor is not present.
Executing xrandr --auto"
        xrandr --auto
else
        echo "Multi-Monitor Check: All required monitors are connected."

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic