1 |
On Thu, Nov 19, 2009 at 6:45 PM, Space Cakex <spacecakex@×××××.com> wrote: |
2 |
|
3 |
> |
4 |
> I'm using xf86-video-intel -> 2.9.1 ; xorg-server -> 1.6.5 and |
5 |
>> xorg-drivers -> 1.6 |
6 |
>> My hardware : |
7 |
>> 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 |
8 |
>> Integrated Graphics Controller (rev 0c) |
9 |
>> 00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 |
10 |
>> Integrated Graphics Controller (rev 0c) |
11 |
>> |
12 |
>> I using 2.6.31-gentoo-r2 with KMS and Idon't have a xorg.conf file. |
13 |
>> |
14 |
>> I set my two monitors using xrandr : |
15 |
>> xrandr --output LVDS1 --mode 1280x800 |
16 |
>> xrandr --output VGA1 --mode 1280x1024 --above LVDS1 |
17 |
>> |
18 |
>> X works fine, but XFCE display setting don't, waiting for a fix already in |
19 |
>> the XFCE roadmap. |
20 |
>> |
21 |
> |
22 |
> yes, something similar working fine for me, but what I'm really looking for |
23 |
> is a solution to make it automatic :) so, when I put my laptop on the |
24 |
> docking station this should change to dual mode, but when I remove it can |
25 |
> switch back to standalone |
26 |
> |
27 |
> You can do this using ACPI events. Had you emerged acpid ? |
28 |
If yes, you can discover the event for docking and undocking with tail -f |
29 |
/var/log/messages when you dock and undock the laptop. |
30 |
|
31 |
Then, create the /etc/acpi/events/docking-event file (the file name doesn't |
32 |
matter) like this : |
33 |
#event=ibm/hotkey HKEY 00000080 00001004 (put your event here) |
34 |
#action=/etc/acpi/actions/my-dualhead-dockingscript |
35 |
|
36 |
At finally, create the /etc/acpi/actions/my-dualhead-dockingscript file with |
37 |
xrandr's commands : |
38 |
#!/bin/bash |
39 |
xrandr --output LVDS1 --mode 1280x800 |
40 |
xrandr --output VGA1 --mode 1280x1024 --above LVDS1 |
41 |
|
42 |
Check if dock and undock events are differrents and improve this basic idea. |
43 |
|
44 |
good luck. |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
> at least I would like to make an xorg.conf to handle my two monitors better |
52 |
> than currently where I have to configure resolutions and display placements |
53 |
> each time I reboot my machine or changing from or to docking station |
54 |
> |
55 |
> I know this is a nice dream, but I'm sure the future where this is true |
56 |
> with linux is not so far :) |
57 |
> |
58 |
> Laszlo |
59 |
> |
60 |
> |