Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] VGA-out & screen aspect ratio
Date: Fri, 05 Feb 2010 17:24:32
Message-Id: 49bf44f11002050923s37eb3a69t99576fc839e97075@mail.gmail.com
In Reply to: Re: [gentoo-user] VGA-out & screen aspect ratio by Mark Knecht
1 >>>> I've only ever used my laptop's VGA-out into 4:3 screens and it always
2 >>>> works great.  I've now plugged it into a 16:9 screen for the first
3 >>>> time, and it still displays 4:3 on that screen and on my laptop.  Is
4 >>>> there a way for it to detect the proper aspect ratio?  Maybe it
5 >>>> depends on the monitor's EDID?  If not, can I manually change the
6 >>>> aspect ratio?
7 >>>>
8 >>>> - Grant
9 >>>
10 >>> Not sure about how well it will work automatically, but try running
11 >>>
12 >>> xrandr
13 >>>
14 >>> and reading the output. It should tell you what monitors you have
15 >>> hooked up and what resolutions and scan frequencies they support. I
16 >>> did this and then put the ones I wanted into my xorg.conf file and was
17 >>> good to go.
18 >>>
19 >>> Hope this helps,
20 >>> Mark
21 >>
22 >> Thanks Mark.  Is there a slick way to restart xorg without rebooting
23 >> so you can switch between VGA-out mode and non?  When I'm doing
24 >> VGA-out, my laptop's screen changes to match the aspect ratio of the
25 >> output so it's good to be able to switch.
26 >>
27 >> - Grant
28 >
29 > Not sure of the best way to do that, but is it really necessary?
30 >
31 > I suppose you could try (from the console)
32 >
33 > /etc/init.d/xdm restart
34 >
35 > and see if it does what you want.
36 >
37 > Note that you can set up your screens using xrandr itself. I'm not
38 > very good at it but I've played with it and it works. Duncan on the
39 > amd64 list posted a couple of commands he uses. They look like this:
40 >
41 > xrandr --verbose --fb 1920x2400 --output DVI-0 --mode 1280x800 --panning
42 > 1920x1200+0+0/1920x1200+0+0/20/20/20/20 --output DVI-1 --mode 1280x800 --
43 > panning 1920x1200+0+1200/1920x1200+0+1200/20/20/20/20
44 >
45 > Clearly that's a mouthful but I'm sure it makes sense once you get
46 > down to the basics. I think you can break it apart into something
47 > like:
48 >
49 > xrandr --verbose --fb 1920x2400
50 > --output DVI-0 --mode 1280x800 --panning
51 > 1920x1200+0+0/1920x1200+0+0/20/20/20/20
52 > --output DVI-1 --mode 1280x800 --panning
53 > 1920x1200+0+1200/1920x1200+0+1200/20/20/20/20
54 >
55 > where DVI-0 and DVI-1 are the monitors and everything else is info to
56 > xrandr is what to do. You would change the output names to whatever
57 > yours are called. The first line 1920x2400 sets up (I think) the
58 > overall screen size and then the next two lines set up the two
59 > monitors. I think in his case they sit vertically, not horizontally
60 > like mine and possibly yours do.
61 >
62 > In my case I run 1280x1024 on the left monitor and 1680x1050 on the
63 > right monitor. I can drag stuff left and right just fine. It gets
64 > messed up if I play a game though.
65 >
66 > Anyway, there's some stuff for you to look at and consider.
67 >
68 > Cheers,
69 > Mark
70
71 Thanks Mark and Neil.
72
73 - Grant