On Thu, Nov 19, 2009 at 6:45 PM, Space Cakex wrote: > > I'm using xf86-video-intel -> 2.9.1 ; xorg-server -> 1.6.5 and >> xorg-drivers -> 1.6 >> My hardware : >> 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 >> Integrated Graphics Controller (rev 0c) >> 00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 >> Integrated Graphics Controller (rev 0c) >> >> I using 2.6.31-gentoo-r2 with KMS and Idon't have a xorg.conf file. >> >> I set my two monitors using xrandr : >> xrandr --output LVDS1 --mode 1280x800 >> xrandr --output VGA1 --mode 1280x1024 --above LVDS1 >> >> X works fine, but XFCE display setting don't, waiting for a fix already in >> the XFCE roadmap. >> > > yes, something similar working fine for me, but what I'm really looking for > is a solution to make it automatic :) so, when I put my laptop on the > docking station this should change to dual mode, but when I remove it can > switch back to standalone > > You can do this using ACPI events. Had you emerged acpid ? If yes, you can discover the event for docking and undocking with tail -f /var/log/messages when you dock and undock the laptop. Then, create the /etc/acpi/events/docking-event file (the file name doesn't matter) like this : #event=ibm/hotkey HKEY 00000080 00001004 (put your event here) #action=/etc/acpi/actions/my-dualhead-dockingscript At finally, create the /etc/acpi/actions/my-dualhead-dockingscript file with xrandr's commands : #!/bin/bash xrandr --output LVDS1 --mode 1280x800 xrandr --output VGA1 --mode 1280x1024 --above LVDS1 Check if dock and undock events are differrents and improve this basic idea. good luck. > at least I would like to make an xorg.conf to handle my two monitors better > than currently where I have to configure resolutions and display placements > each time I reboot my machine or changing from or to docking station > > I know this is a nice dream, but I'm sure the future where this is true > with linux is not so far :) > > Laszlo > >