[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to determine number of displays



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

LI Daobing wrote:
> On Mon, Feb 25, 2008 at 11:12 AM, Rich Healey <healey.rich@gmail.com> wrote:
>> LI Daobing wrote:
>>  > Hello,
>>  >
>>  > On Mon, Feb 25, 2008 at 10:54 AM, Rich Healey <healey.rich@gmail.com> wrote:
>>  >> -----BEGIN PGP SIGNED MESSAGE-----
>>  >>  Hash: SHA1
>>  >>
>>  >>  Hi list.
>>  >>
>>  >>  I'm playing with X on my asus M6 notebook, debian Lenny with bits of
>>  >>  experimental and unstable to support KDE 4 (though i run E17 995 of the
>>  >>  time, just wanted to play with KDE).
>>  >>
>>  >>  Anyway, i use dual screens at work, and just builtin at home, i was
>>  >>  wanting to know if there's somethingi  can poll before X actually fires
>>  >>  up to see what displays are attached?
>>  >>
>>  >>  My goal is to write an init script that wills start before entrance and
>>  >>  symlink an appropriate xorg.conf for the number of screens attached to
>>  >>  /etc/X11/xorg.conf ...
>>  >>
>>  >
>>  > I use a single /etc/X11/xorg.conf with a modifed Screen Section[1](add
>>  > a Virtual line).
>>  >
>>  > then use 'xrandr --output VGA --auto --output LVDS --auto --right-of
>>  > VGA' to turn on dual head support.
>>  >
>>  > [1]
>>  > Section "Screen"
>>  >         Identifier      "Default Screen"
>>  >         Device          "Intel Corporation Mobile GM965/GL960
>>  > Integrated Graphics Controller"
>>  >         Monitor         "Generic Monitor"
>>  >         DefaultDepth    24
>>  >         SubSection "Display"
>>  >                 Virtual 2560 1024
>>  >                 Modes           "1280x800"
>>  >         EndSubSection
>>  > EndSection
>>  >
>>  >
>>
>>  Thanks right now i use Xrandr, but there are bugs (maximising windows
>>  puts them half on each screen.)
>>
>>  On my debian desktop with an ATI card this works perfectly, so i'm
>>  working towards that solution.
>>
>>  Is that screen section for the primary or secondary? do you only have
>>  one screen line?
> 
> yes, only one screen line.
> 
>>  Don't get me wrong, xrandr works well, but i feel there's potential to
>>  have it working better.
> 
> I don't know about this, :)
> 
> 

Thanks anyway, Perhaps i just need to stumble upon to rigth xrandr
string.. what happens now is that it puts the dividing line between my
displays halfway up the external (internal is at 1280 x 800, external at
 1280x1024 ) so they need to be one above the other to work nicely,
anyway thanks heaps.. if i get the right string i'll add it here.

Btw have you bound this to a nice shell script on the acpi event for the
screens button? if you load the asus-laptop module you can bind them all
up, makes my ugly hack just a tiny bit prettier IMHO

Regards


Rich Healey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHwjYzLeTfO4yBSAcRApn9AJ9dj94PWfG87RyRG+5OayHDcU+83gCfVl+p
T4sfNBlEWOLSnKVnADBKg2o=
=+vVU
-----END PGP SIGNATURE-----


Reply to: