<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>The script is as belows. Is there anyway to run it automatically when a monitor hotplug event is detected OR is there a way to display monitor hotplug completely?</span></div><div><span><br></span></div><div>#!/bin/bash<br>echo '1. Dual Monitor';<br>echo '2. Triple Monitor';<br>echo '3. TV Only';<br><br>toggle_tv_panel() {<br>  if [ "$1" == "TV" ]; then<br>        gconftool-2 --set "/apps/panel/general/toplevel_id_list" --type list --list-type string "[top_panel_screen0,panel_0,bottom_panel_screen2,bottom_panel_screen1,panel_1]"<br>        gconftool-2 --set "/apps/panel/toplevels/panel_1/monitor" --type integer 1<br>  else<br>        gconftool-2 --set "/apps/panel/general/toplevel_id_list" --type list
 --list-type string "[top_panel_screen0,panel_0,bottom_panel_screen2,bottom_panel_screen1]"<br>  fi<br>}<br><br>move_gnome_panels() {<br>        gconftool-2 --set "/apps/panel/toplevels/top_panel_screen0/monitor" --type integer $1<br>}<br><br>enable_dual() {<br>   xrandr --output DFP1 --mode 1920x1200<br>   xrandr --output DFP3 --mode 1920x1200 --right-of DFP1<br>   xrandr --output DFP2 --off<br>   move_gnome_panels "1"<br>   toggle_tv_panel<br>}<br><br>enable_tv() {<br>                xrandr --output DFP2 --mode 1920x1080 --right-of DFP3<br>                aticonfig --set-dispattrib=DFP2,positionX:0<br>                aticonfig
 --set-dispattrib=DFP2,positionY:0<br>                aticonfig --set-dispattrib=DFP2,sizeX:1920<br>                aticonfig --set-dispattrib=DFP2,sizeY:1080<br>                move_gnome_panels "2"<br>                toggle_tv_panel "TV"<br>}<br><br>case $1 in<br>        1)<br>                enable_dual<br>                ;;<br>        2)<br>               
 enable_tv<br>                ;;<br>        3)<br>                xrandr --output DFP1 --off<br>                xrandr --output DFP3 --off<br>                enable_tv<br>                ;;<br>esac</div><div><br></div><div><br></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b>
 "pkg-fglrx-devel-request@lists.alioth.debian.org" <pkg-fglrx-devel-request@lists.alioth.debian.org><br> <b><span style="font-weight: bold;">To:</span></b> pkg-fglrx-devel@lists.alioth.debian.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, February 2, 2012 3:57 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Pkg-fglrx-devel Digest, Vol 48, Issue 1<br> </font> </div> <br>
Send Pkg-fglrx-devel mailing list submissions to<br>    <a ymailto="mailto:pkg-fglrx-devel@lists.alioth.debian.org" href="mailto:pkg-fglrx-devel@lists.alioth.debian.org">pkg-fglrx-devel@lists.alioth.debian.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-fglrx-devel<br><br>or, via email, send a message with subject or body 'help' to<br>    <a ymailto="mailto:pkg-fglrx-devel-request@lists.alioth.debian.org" href="mailto:pkg-fglrx-devel-request@lists.alioth.debian.org">pkg-fglrx-devel-request@lists.alioth.debian.org</a><br><br>You can reach the person managing the list at<br>    <a ymailto="mailto:pkg-fglrx-devel-owner@lists.alioth.debian.org" href="mailto:pkg-fglrx-devel-owner@lists.alioth.debian.org">pkg-fglrx-devel-owner@lists.alioth.debian.org</a><br><br>When replying, please edit your Subject line so it
 is more specific<br>than "Re: Contents of Pkg-fglrx-devel digest..."<br><br><br>Today's Topics:<br><br>   1. disabling hotplug events (Sql Sql)<br>   2. Re: disabling hotplug events (Patrick Matth?i)<br>   3. disabling hot plug events (Sql Sql)<br>   4. What's the problem? (Kiwi Bank Limited)<br>   5. Bug#649346: fglrx-driver smplayer, suspend (aladjev.andrew)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 1 Feb 2012 07:34:34 -0800 (PST)<br>From: Sql Sql <<a ymailto="mailto:firebirdsql@yahoo.com" href="mailto:firebirdsql@yahoo.com">firebirdsql@yahoo.com</a>><br>To: "<a ymailto="mailto:pkg-fglrx-devel@lists.alioth.debian.org" href="mailto:pkg-fglrx-devel@lists.alioth.debian.org">pkg-fglrx-devel@lists.alioth.debian.org</a>"<br>    <<a ymailto="mailto:pkg-fglrx-devel@lists.alioth.debian.org"
 href="mailto:pkg-fglrx-devel@lists.alioth.debian.org">pkg-fglrx-devel@lists.alioth.debian.org</a>><br>Subject: [Pkg-fglrx-devel] disabling hotplug events<br>Message-ID:<br>    <<a ymailto="mailto:1328110474.25000.YahooMailNeo@web124708.mail.ne1.yahoo.com" href="mailto:1328110474.25000.YahooMailNeo@web124708.mail.ne1.yahoo.com">1328110474.25000.YahooMailNeo@web124708.mail.ne1.yahoo.com</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>I have a triple monitor (one is TV) setup on radeon HD 5800 and using the fglrx driver on debian Squeeze.<br><br>Monitor #1 is connected directly through DisplayPort <br><br>Monitor #2 is connected directly throught DVI.<br>Monitor #3 (TV) is connected to receiver that is connected to video card through HDMI <br><br><br>Both HDMI and DisplayPort support hot plug notification where it notifies the OS that the monitor is turned off.<br><br>The problem is that I only use 2 monitors or just the
 TV. However, when I turn on the receiver to listen to music, fglrx receives a hot plug event (cause it's connected to the receiver through HDMI).<br><br>This cause fglrx to swap the desktops. The desktop displayed on monitor #2 will be displayed on the TV etc.<br><br>It's even worse if I turn off monitor #1. Now all 3 desktops display on monitor #2. All my panels, icons, and configuration will moved to the wrong monitor and will not be moved back when monitor is turned on.<br><br>I wrote a script to fix these issues. Now when a hot plug event occurs, I manually run the script and it restores the original desktop configuration.<br><br><br>Is there a way to disable hot plug events? If there isn't, is there at least a way to have the script run automatically?<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL:
 <http://lists.alioth.debian.org/pipermail/pkg-fglrx-devel/attachments/20120201/def4cde0/attachment-0001.html><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 01 Feb 2012 16:39:17 +0100<br>From: Patrick Matth?i <<a ymailto="mailto:pmatthaei@debian.org" href="mailto:pmatthaei@debian.org">pmatthaei@debian.org</a>><br>To: <a ymailto="mailto:pkg-fglrx-devel@lists.alioth.debian.org" href="mailto:pkg-fglrx-devel@lists.alioth.debian.org">pkg-fglrx-devel@lists.alioth.debian.org</a><br>Subject: Re: [Pkg-fglrx-devel] disabling hotplug events<br>Message-ID: <<a ymailto="mailto:4F295CA5.5060103@debian.org" href="mailto:4F295CA5.5060103@debian.org">4F295CA5.5060103@debian.org</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Am 01.02.2012 16:34, schrieb Sql Sql:<br>> I have a triple monitor (one is TV) setup on radeon HD 5800 and using<br>> the fglrx driver on debian Squeeze.<br>><br>>
 Monitor #1 is connected directly through DisplayPort<br>> Monitor #2 is connected directly throught DVI.<br>> Monitor #3 (TV) is connected to receiver that is connected to video card<br>> through HDMI<br>><br>> Both HDMI and DisplayPort support hot plug notification where it<br>> notifies the OS that the monitor is turned off.<br>><br>> The problem is that I only use 2 monitors or just the TV. However, when<br>> I turn on the receiver to listen to music, fglrx receives a hot plug<br>> event (cause it's connected to the receiver through HDMI).<br>><br>> This cause fglrx to swap the desktops. The desktop displayed on monitor<br>> #2 will be displayed on the TV etc.<br>><br>> It's even worse if I turn off monitor #1. Now all 3 desktops display on<br>> monitor #2. All my panels, icons, and configuration will moved to the<br>> wrong monitor and will not be moved back when monitor is turned
 on.<br>><br>> I wrote a script to fix these issues. Now when a hot plug event occurs,<br>> I manually run the script and it restores the original desktop<br>> configuration.<br>><br>> Is there a way to disable hot plug events? If there isn't, is there at<br>> least a way to have the script run automatically?<br>><br>><br>> _______________________________________________<br>> Pkg-fglrx-devel mailing list<br>> <a ymailto="mailto:Pkg-fglrx-devel@lists.alioth.debian.org" href="mailto:Pkg-fglrx-devel@lists.alioth.debian.org">Pkg-fglrx-devel@lists.alioth.debian.org</a><br>> <a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-fglrx-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-fglrx-devel</a><br><br><br>COuld you send us the script?<br><br><br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 1 Feb 2012 08:36:06 -0800 (PST)<br>From: Sql Sql <<a
 ymailto="mailto:firebirdsql@yahoo.com" href="mailto:firebirdsql@yahoo.com">firebirdsql@yahoo.com</a>><br>To: "<a ymailto="mailto:pkg-fglrx-devel@lists.alioth.debian.org" href="mailto:pkg-fglrx-devel@lists.alioth.debian.org">pkg-fglrx-devel@lists.alioth.debian.org</a>"<br>    <<a ymailto="mailto:pkg-fglrx-devel@lists.alioth.debian.org" href="mailto:pkg-fglrx-devel@lists.alioth.debian.org">pkg-fglrx-devel@lists.alioth.debian.org</a>><br>Subject: [Pkg-fglrx-devel] disabling hot plug events<br>Message-ID:<br>    <<a ymailto="mailto:1328114166.59381.YahooMailNeo@web124708.mail.ne1.yahoo.com" href="mailto:1328114166.59381.YahooMailNeo@web124708.mail.ne1.yahoo.com">1328114166.59381.YahooMailNeo@web124708.mail.ne1.yahoo.com</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>I have a triple monitor (one is TV) setup on radeon HD 5800 and using the fglrx driver on debian Squeeze.<br><br>Monitor #1 is connected
 directly through DisplayPort <br><br>Monitor #2 is connected directly throught DVI.<br>Monitor #3 (TV) is connected to receiver that is connected to video card through HDMI <br><br><br>Both HDMI and DisplayPort support hot plug notification where it notifies the OS that the monitor is turned off.<br><br>The problem is that I only use 2 monitors or just the TV. However, when I <br>turn on the receiver to listen to music, fglrx receives a hot plug event (cause it's connected to the receiver through HDMI).<br><br>This cause fglrx to swap the desktops. The desktop displayed on monitor #2 will be displayed on the TV etc.<br><br>It's even worse if I turn off monitor <br>#1. Now all 3 desktops display on monitor #2. All my panels, icons, and <br>configuration will moved to the wrong monitor and will not be moved back when monitor is turned on.<br><br>I wrote a script to fix these issues. Now when a hot plug event occurs, I manually run the <br>script and it
 restores the original desktop configuration.<br><br>Is there a way to disable hot plug events? If there isn't, is there at least a way to have the script run automatically?<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.alioth.debian.org/pipermail/pkg-fglrx-devel/attachments/20120201/065b9213/attachment-0001.html" target="_blank">http://lists.alioth.debian.org/pipermail/pkg-fglrx-devel/attachments/20120201/065b9213/attachment-0001.html</a>><br><br>------------------------------<br><br>Message: 4<br>Date: Wed, 1 Feb 2012 10:06:20 +1000<br>From: "Kiwi Bank Limited"<<a ymailto="mailto:customerservice@kiwibank.co.nz" href="mailto:customerservice@kiwibank.co.nz">customerservice@kiwibank.co.nz</a>><br>Subject: [Pkg-fglrx-devel] What's the problem?<br>Message-ID: <<a ymailto="mailto:SERVERZ6VzvdrEb6MXb00000a38@hkyaf.com"
 href="mailto:SERVERZ6VzvdrEb6MXb00000a38@hkyaf.com">SERVERZ6VzvdrEb6MXb00000a38@hkyaf.com</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.alioth.debian.org/pipermail/pkg-fglrx-devel/attachments/20120201/4e6d151d/attachment-0001.html" target="_blank">http://lists.alioth.debian.org/pipermail/pkg-fglrx-devel/attachments/20120201/4e6d151d/attachment-0001.html</a>><br><br>------------------------------<br><br>Message: 5<br>Date: Thu, 02 Feb 2012 11:50:43 +0300<br>From: "aladjev.andrew" <<a ymailto="mailto:aladjev.andrew@gmail.com" href="mailto:aladjev.andrew@gmail.com">aladjev.andrew@gmail.com</a>><br>To: <a ymailto="mailto:649346@bugs.debian.org" href="mailto:649346@bugs.debian.org">649346@bugs.debian.org</a><br>Subject: [Pkg-fglrx-devel] Bug#649346: fglrx-driver smplayer, suspend<br>Message-ID: <<a ymailto="mailto:4F2A4E63.30303@gmail.com"
 href="mailto:4F2A4E63.30303@gmail.com">4F2A4E63.30303@gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>asus x53b: amd e-350 + ati 6470<br>debian wheezy/sid linux-image 3.1.0-1 fglrx 12.1<br>When I start watching video using mplayer computer freezes, black <br>screen, I cant do anything except hard reset<br>When I want to suspend-to-ram it works. but when I am trying to resume <br>from this suspend the same freeze appears! no usefull log errors exists! <br>only in /var/log/messages<br>[fglrx] IRQ 42 Disabled<br>[fglrx] IRQ 43 Disabled<br>Using free driver all works perfect but I cant game with free driver. <br>wine wont build with free driver and have no acceleration. ati + linux = <br>sucks. nvidia + linux = rulez!<br>But I am from very poor country I cant buy another notebook in this <br>year. Please try make a pressure on ati because this bugs exist at least <br>about a
 year!<br><br><br><br><br><br>------------------------------<br><br>_______________________________________________<br>Pkg-fglrx-devel mailing list<br><a ymailto="mailto:Pkg-fglrx-devel@lists.alioth.debian.org" href="mailto:Pkg-fglrx-devel@lists.alioth.debian.org">Pkg-fglrx-devel@lists.alioth.debian.org</a><br><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-fglrx-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-fglrx-devel</a><br><br>End of Pkg-fglrx-devel Digest, Vol 48, Issue 1<br>**********************************************<br><br><br> </div> </div>  </div></body></html>