LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Matching display in xorg.conf by its model or by graphics adapter (https://www.linuxquestions.org/questions/linux-hardware-18/matching-display-in-xorg-conf-by-its-model-or-by-graphics-adapter-4175481278/)

leniviy 10-18-2013 05:44 AM

Matching display in xorg.conf by its model or by graphics adapter
 
Hi. I have a dual boot system: Archlinux and Windows from which I boot the same Arch in Virtualbox.

I have 2 displays:
- 1440x768
samsung syncmaster 920nw
pc---dvi port---dvi/vga adapter---vga cable---vga port---display

- 1920x1080
samsung s24c350bl
pc---hdmi port---hdmi/dvi cable---dvi port---dispaly

Arch fails to recognize the right resolution 1440x768 and allows only 1024x768.
I'm following this post https://bbs.archlinux.org/viewtopic....803924#p803924
I've obtained the modeline config for it:
Code:

"1440x900" 106.670 1440 1520 1672 1904 900 901 904 932 -hsync -vsync
and added it to /etc/X11/xorg.conf.d/10-monitor.conf :
Code:

Section "Monitor"
    Identifier          "Monitor0"
    ModelName          "SyncMaster 920NW"
    VendorName          "Samsung"
    ModeLine            "1440x900" 106.670 1440 1520 1672 1904 900 901 904 932 -hsync -vsync
EndSection


Section "Screen"
    Identifier          "Screen0"
    Monitor            "Monitor0"
    SubSection "Display"
    EndSubSection
EndSection

For the big virtual screen I also have:
Code:

~/.config/autostart/multihead.desktop:
Exec=xrandr --output VGA1 --auto --output HDMI2 --auto --right-of VGA1

This all works. Now the question: how do I make an entry in xorg.conf match syncmaster 920nw when I boot physically, but not match the virtual display when I boot from Virtualbox?
In both cases they will be "Monitor0".


All times are GMT -5. The time now is 06:05 PM.