[ltp] Radeon: hot-swap VGA-out monitor

Mario Theodoridis linux-thinkpad@linux-thinkpad.org
Thu, 6 Sep 2007 12:05:02 -0700 (PDT)


------=_20070906120502_75692
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

i've had this setup on a t42p.
I found the trick to be to specify monitor settings and not let them be
auto detected. Xorg.conf attached.

This was using it with my old Viewsonic GS815 on xorg 6.8. It also worked
well with projectors.


mario;>



So, Andrey Kislyuk wrote:
> Monitor hotplug is in Xorg 7.3, which was released today. All you have
> to do is wait for it to hit your distribution.
>
> Christopher Singley wrote:
>> I have a Thinkpad R51 with an ATI Radeon 250 graphics card.  The card
>> has a  VGA out port, and I like to run in dual-head configuration
>> (external monitor  attached) using the MergedFB options of the Radeon
>> X driver.
>>
>> This generally works well; however I'd like to be able to hot-swap
>> monitors &  toggle at will between single-head & dual-head
>> configuration.
>>
>> Using the radeon driver's "MergedFBAuto" option works to allow X to
>> autodetect  single/dual-head configuration when it starts up.  If it
>> starts up in  dual-head mode, setting "MetaModes" like
>> "1024x768-1024x768 1024x768"  additionally allows me to use xrandr to
>> dynamically switch back & forth  between single/dual-head when I
>> plug/unplug the external monitor.
>>
>> However, if no external monitor is detected when X starts up, I don't
>> know how  to force a configuration so that when I subsequently plug in
>> an external  monitor, I can switch over to dual-head configuration on
>> the fly without  restarting X.
>>
>> I imagine this must be a feature desired by many people other than
>> just me.   Can anyone give me a hint how to set this up?
>>
>> Thanks,
>> cs
>>
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad



------=_20070906120502_75692
Content-Type: application/octet-stream; name="xorg.conf"
Content-Disposition: attachment; filename="xorg.conf"
Content-Transfer-Encoding: base64

ClNlY3Rpb24gIkRSSSIKICAgIE1vZGUgICAgMDY2NgpFbmRTZWN0aW9uCgpTZWN0aW9uICJGaWxl
cyIKICAgICMgcGF0aCB0byBkZWZvbWEgZm9udHMKICAgIEZvbnRQYXRoIAkiL3Vzci9zaGFyZS9Y
MTEvZm9udHMvbWlzYyIKICAgIEZvbnRQYXRoIAkiL3Vzci9zaGFyZS9YMTEvZm9udHMvMTAwZHBp
OnVuc2NhbGVkIgogICAgRm9udFBhdGggCSIvdXNyL3NoYXJlL1gxMS9mb250cy83NWRwaTp1bnNj
YWxlZCIKICAgIEZvbnRQYXRoIAkiL3Vzci9zaGFyZS9YMTEvZm9udHMvVHlwZTEiCiAgICBGb250
UGF0aCAJIi91c3Ivc2hhcmUvZm9udHMvWDExL21pc2MiCiAgICBGb250UGF0aCAJIi92YXIvbGli
L2RlZm9tYS94LXR0Y2lkZm9udC1jb25mLmQvZGlycy9UcnVlVHlwZSIKICAgIEZvbnRQYXRoIAki
L3Vzci9sb2NhbC9zaGFyZS9mb250cyIKRW5kU2VjdGlvbgoKU2VjdGlvbiAiTW9kdWxlIgogICAg
TG9hZCAgICAiaTJjIgogICAgTG9hZCAgICAiYml0bWFwIgogICAgTG9hZCAgICAiZGRjIgogICAg
TG9hZCAgICAiZHJpIgogICAgTG9hZCAgICAiZXh0bW9kIgogICAgTG9hZCAgICAiZnJlZXR5cGUi
CiAgICBMb2FkICAgICJnbHgiCiAgICBMb2FkICAgICJpbnQxMCIKICAgIExvYWQgICAgInR5cGUx
IgogICAgTG9hZCAgICAidmJlIgpFbmRTZWN0aW9uCgpTZWN0aW9uICJJbnB1dERldmljZSIKICAg
IElkZW50aWZpZXIgICAgIktleWJvYXJkIgogICAgRHJpdmVyICAgICAgICAia2JkIgogICAgT3B0
aW9uICAgICAgICAiQ29yZUtleWJvYXJkIgogICAgT3B0aW9uICAgICAgICAiWGtiUnVsZXMiICAg
ICJ4b3JnIgogICAgT3B0aW9uICAgICAgICAiWGtiTW9kZWwiICAgICJwYzEwNSIKICAgIE9wdGlv
biAgICAgICAgIlhrYkxheW91dCIgICAgInVzIgpFbmRTZWN0aW9uCgpTZWN0aW9uICJJbnB1dERl
dmljZSIKICAgIElkZW50aWZpZXIgICAgIk1vdXNlIgogICAgRHJpdmVyICAgICAgICAibW91c2Ui
CiAgICBPcHRpb24gICAgICAgICJDb3JlUG9pbnRlciIKICAgIE9wdGlvbiAgICAgICAgIkRldmlj
ZSIgICAgICAgICIvZGV2L2lucHV0L21pY2UiCiAgICBPcHRpb24gICAgICAgICJQcm90b2NvbCIg
ICAgICAgICJFeHBsb3JlclBTLzIiCiAgICBPcHRpb24gICAgICAgICJaQXhpc01hcHBpbmciICAg
ICAgICAiNCA1IgogICAgT3B0aW9uICAgICAgICAiRW11bGF0ZTNCdXR0b25zIiAgICAidHJ1ZSIK
RW5kU2VjdGlvbgoKU2VjdGlvbiAiSW5wdXREZXZpY2UiCiAgICBJZGVudGlmaWVyICAgICJUb3Vj
aHBhZCIKICAgIERyaXZlciAgICAgICAgInN5bmFwdGljcyIKICAgIE9wdGlvbiAgICAgICAgIlNl
bmRDb3JlRXZlbnRzIiAgICAidHJ1ZSIKICAgIE9wdGlvbiAgICAgICAgIkRldmljZSIgICAgICAg
ICIvZGV2L3BzYXV4IgogICAgT3B0aW9uICAgICAgICAiUHJvdG9jb2wiICAgICAgICAgICAgICAg
ICJhdXRvLWRldiIKICAgIE9wdGlvbiAgICAgICAgIkxlZnRFZGdlIiAgICAgICAgICAgICAgICAi
MCIKICAgIE9wdGlvbiAgICAgICAgIlJpZ2h0RWRnZSIgICAgICAgICAgICAgICAiNTMwMCIKICAg
IE9wdGlvbiAgICAgICAgIlRvcEVkZ2UiICAgICAgICAgICAgICAgICAiMCIKICAgIE9wdGlvbiAg
ICAgICAgIkJvdHRvbUVkZ2UiICAgICAgICAgICAgICAiNTAwMCIKICAgIE9wdGlvbiAgICAgICAg
IkZpbmdlckxvdyIgICAgICAgICAgICAgICAiMjUiCiAgICBPcHRpb24gICAgICAgICJGaW5nZXJI
aWdoIiAgICAgICAgICAgICAgIjMwIgogICAgT3B0aW9uICAgICAgICAiTWF4VGFwVGltZSIgICAg
ICAgICAgICAgICIwIgogICAgT3B0aW9uICAgICAgICAiTWF4VGFwTW92ZSIgICAgICAgICAgICAg
ICIyMjAiCiAgICBPcHRpb24gICAgICAgICJNYXhEb3VibGVUYXBUaW1lIiAgICAgICAgIjE4MCIK
ICAgIE9wdGlvbiAgICAgICAgIkNsaWNrVGltZSIgICAgICAgICAgICAgICAiMTAwIgogICAgT3B0
aW9uICAgICAgICAiRW11bGF0ZU1pZEJ1dHRvblRpbWUiICAgICIwIgogICAgT3B0aW9uICAgICAg
ICAiVmVydFNjcm9sbERlbHRhIiAgICAgICAgICIxMDAiCiAgICBPcHRpb24gICAgICAgICJIb3Jp
elNjcm9sbERlbHRhIiAgICAgICAgIjEwMCIKICAgIE9wdGlvbiAgICAgICAgIk1pblNwZWVkIiAg
ICAgICAgICAgICAgICAiMC4wOSIKICAgIE9wdGlvbiAgICAgICAgIk1heFNwZWVkIiAgICAgICAg
ICAgICAgICAiMC4xOCIKICAgIE9wdGlvbiAgICAgICAgIkFjY2VsRmFjdG9yIiAgICAgICAgICAg
ICAiMC4wMDE1IgogICAgT3B0aW9uICAgICAgICAiRWRnZU1vdGlvbk1pbloiICAgICAgICAgICIz
MCIKICAgIE9wdGlvbiAgICAgICAgIkVkZ2VNb3Rpb25NYXhaIiAgICAgICAgICAiMTYwIgogICAg
T3B0aW9uICAgICAgICAiRWRnZU1vdGlvbk1pblNwZWVkIiAgICAgICIxIgogICAgT3B0aW9uICAg
ICAgICAiRWRnZU1vdGlvbk1heFNwZWVkIiAgICAgICIyMDAiCiAgICBPcHRpb24gICAgICAgICJF
ZGdlTW90aW9uVXNlQWx3YXlzIiAgICAgIjAiCiAgICBPcHRpb24gICAgICAgICJVcERvd25TY3Jv
bGxpbmciICAgICAgICAgIjEiCiAgICBPcHRpb24gICAgICAgICJUb3VjaHBhZE9mZiIgICAgICAg
ICAgICAgIjAiCiAgICBPcHRpb24gICAgICAgICJHdWVzdE1vdXNlT2ZmIiAgICAgICAgICAgIjAi
CiAgICBPcHRpb24gICAgICAgICJMb2NrZWREcmFncyIgICAgICAgICAgICAgIjAiCiAgICBPcHRp
b24gICAgICAgICJSVENvcm5lckJ1dHRvbiIgICAgICAgICAgIjAiCiAgICBPcHRpb24gICAgICAg
ICJSQkNvcm5lckJ1dHRvbiIgICAgICAgICAgIjAiCiAgICBPcHRpb24gICAgICAgICJMVENvcm5l
ckJ1dHRvbiIgICAgICAgICAgIjAiCiAgICBPcHRpb24gICAgICAgICJMQkNvcm5lckJ1dHRvbiIg
ICAgICAgICAgIjAiCiAgICBPcHRpb24gICAgICAgICJUYXBCdXR0b24xIiAgICAgICAgICAgICAg
IjEiCiAgICBPcHRpb24gICAgICAgICJUYXBCdXR0b24yIiAgICAgICAgICAgICAgIjAiCiAgICBP
cHRpb24gICAgICAgICJUYXBCdXR0b24zIiAgICAgICAgICAgICAgIjAiCiAgICBPcHRpb24gICAg
ICAgICJDaXJjdWxhclNjcm9sbGluZyIgICAgICAgIjAiCkVuZFNlY3Rpb24KClNlY3Rpb24gIkRl
dmljZSIKICAgIElkZW50aWZpZXIgICJDYXJkIgogICAgT3B0aW9uICAgICAgIkFHUE1vZGUiICAg
ICAgICAgICAiNCIKICAgIERyaXZlciAgICAgICJyYWRlb24iCiAgICBCdXNJRCAgICAgICAiUENJ
OjE6MDowIgogICAgT3B0aW9uICAgICAgIkREQ01vZGUiCiAgICBPcHRpb24gICAgICAiQ1JUMkhT
eW5jIiAgICAgICAgICIzMC4wLTEyMS4wIgogICAgT3B0aW9uICAgICAgIkNSVDJWUmVmcmVzaCIg
ICAgICAiNTAuMC0xODAuMCIKICAgIE9wdGlvbiAgICAgICJNZXJnZWRGQiIgICAgICAgICAgInRy
dWUiCiAgICBPcHRpb24gICAgICAiQ1JUMlBvc2l0aW9uIiAgICAgICJMZWZ0T2YiCiAgICBPcHRp
b24gICAgICAiTWV0YU1vZGVzIiAgICAgICAgICIxNjAweDEyMDAgMTI4MHgxMDI0IDExNTJ4ODY0
IDEwMjR4NzY4IDgwMHg2MDAgNjQweDQ4MCAxNjAweDEyMDAtMTYwMH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WZpZXIgICAgIkxheW91dCIKICAgIFNjcmVlbiAgICAgICAgIlNjcmVlbiIKICAgIElucHV0
RGV2aWNlICAgICJLZXlib2FyZCIKICAgIElucHV0RGV2aWNlICAgICJNb3VzZSIKICAgIElucHV0
RGV2aWNlICAgICJUb3VjaHBhZCIKRW5kU2VjdGlvbgoK

------=_20070906120502_75692--