ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Николай Коротинский" <magedon.zt@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] ALD4.1 (+branch 4.1): нетбук + второй монитор. как выставить разрешение...
Date: Fri, 12 Jun 2009 18:10:42 +0300
Message-ID: <4ea3e8e80906120810r68db1f5ck7b89baa6e1db812b@mail.gmail.com> (raw)
In-Reply-To: <20090609041839.283decd5@lynx>

9 июня 2009 г. 3:18 пользователь Maks Re (admaks@gmail.com) написал:
> Приветствую.
>
> вот хотел бы понять, почему что-то не так при подключении второго
> монитора...
>
> тут был:
> http://www.altlinux.org/%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_%D0%B4%D0%B8%D1%81%D0%BF%D0%BB%D0%B5%D0%B5%D0%B2_xrandr%27%D0%BE%D0%BC
>
> итак:
> железка
> нетбук Lenovo S9.
>
> $ uname -a
> Linux lynx 2.6.27-std-def-alt12 #1 SMP Sat Feb 21 02:21:57 UTC 2009
> i686 GNU/Linux
>
> $ rpm -qa|grep xorg-server
> xorg-server-1.4.2-alt10.M41.1
> xorg-server-control-1.3-alt1
> xorg-server-common-1.4.2-alt10.M41.1
>
> $ rpm -qa|grep intel
> xorg-dri-intel-7.0.4-alt9.M41.1
> xorg-drv-intel-2.4.3-alt0.M41.1
>
>
> $ rpm -qa|grep xrandr
> xrandr-1.2.3-alt1
>
>
> система запущена.
>
> включаем второй моник (lcd, 1028x1024).
> $ xrandr
> Screen 0: minimum 320 x 200, current 1024 x 600, maximum 1024 x 1024
> VGA connected (normal left inverted right x axis y axis)
>   1024x768       75.1     70.1     60.0
>   832x624        74.6
>   800x600        72.2     75.0     60.3     56.2
>   640x480        75.0     72.8     66.7     60.0
>   720x400        70.1
> LVDS connected 1024x600+0+0 (normal left inverted right x axis y axis)
> 195mm x 113mm 1024x600       60.0*+
>   800x600        60.3
>   640x480        59.9
>
> $ xrandr --output VGA --auto
> $ xrandr
> Screen 0: minimum 320 x 200, current 1024 x 600, maximum 1024 x 1024
> VGA connected 720x400+0+0 (normal left inverted right x axis y axis)
> 5mm x 4mm 1024x768       75.1     70.1     60.0
>   832x624        74.6
>   800x600        72.2     75.0     60.3     56.2
>   640x480        75.0     72.8     66.7     60.0
>   720x400        70.1*
> LVDS connected 1024x600+0+0 (normal left inverted right x axis y axis)
> 195mm x 113mm 1024x600       60.0*+
>   800x600        60.3
>   640x480        59.9
>
> Т.е. видно что выбран режим ой не тот...
>
> $ xrandr --output VGA --auto  --mode 1024x768
>
> при этом картинка на монике vga 1024х768.
> на lvds
> тоже самое... т.е. вместо 1024х600 получаем 1024х768
>
> и клонирование картинки на двух мониторах...
>
>
> Вапрос: как правильно сделать, чтобы при подключении второго монитора,
> я получил бы необходимое разрешение на нем, не портя свой основной lvds
> и чтобы получилось продолжение рабочего стола, хоть и другого
> разрешения.
>
> параметр XINERAMA=on в /etc/sysconfig/xserver приводит к вешанию Х и
> бектрейсу в логах...
>
> в man intel (/MULTIHEAD CONFIGURATIONS)
> написано что достичь желаемого можно ,
> нужно описать свой второй монитор. и поправить секцию драйвера, где
> указать что за чем следует.
>
> у меня получилось следующее,(если при запуске Х был подключен второй
> монитор)
> 1) что основным экраном в такой ситуации становиться второй
> монитор.
> 2) если указано геометрия монитора в конфиге xorg то выберется
> правильное разрешение и dpi.
> 3) на монике lvds появятся артефакты, в виде части окна, распахнутого
> полностью на vga...
> http://lists.altlinux.org/pipermail/sisyphus/2008-September/333657.html
> - очень похоже
>
> 4) что за чем следует - пофигу. не меняется.
>
> вобщем тоже не то...
>
>
>
> Вапрос тот же: как получить на втором мониторе правильную картинку
> расширения раб стола.
>
> спасибо
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community

Привет.
Прочитав вчера ваше письмо, решил поэкспериментировать.


1. В первую очередь необходимо /etc/X11/xorg.conf в добавить опцию
Virtual, в которой указать разрешение виртуального рабочего стола
таким, чтобы он вмещал все реальные рабочие столы.
Например, на нотике разрешение 1280x800 на внешнем мониторе 1680x1050,
значит в виртуальных должен быть как минимум 1280+1680 = 2960 на
максимальное по высоте это 1050. Если короче, то Virtual 2960 1050
Вот кусок из моего xorg.conf
Section "Screen"
        Identifier "Screen0"
        Device     "Card0|0"
        Monitor    "Monitor0|0"
        DefaultDepth     24
        SubSection "Display"
        Virtual          2960 1050
        EndSubSection
EndSection

2. Перегрузить X
3. Начинать играться :)
xrandr --output LVDS --auto --left-of VGA --auto
Это означает что главный монитор LVDS устанавливается слева от VGA
Если автоматом неправильно установятся разрешения, то вместо --auto
попробуте --mode 1280x800... или какие там у вас разрешения

Вот примерно где-так я экспериментировал и добился того что хотел


Спасибо за внимание :)

-- 
With best regards,
Nick Korotinsky

  reply	other threads:[~2009-06-12 15:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09  0:18 Maks Re
2009-06-12 15:10 ` Николай Коротинский [this message]
2009-06-12 23:02   ` Maks Re

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ea3e8e80906120810r68db1f5ck7b89baa6e1db812b@mail.gmail.com \
    --to=magedon.zt@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git