LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 03-10-2014, 12:55 PM   #1
firekage
Member
 
Registered: May 2011
Location: Poland
Distribution: Slackware, Ubuntu, Arch
Posts: 275

Rep: Reputation: 7
Can't properly set up xorg.conf or 10-monitor.conf


Hi.

I would like to ask for Your help. I need someone with greater knowledge over Arch than i have. I have problem with either xorg.conf or 10-monitor.conf. As a matter of fact, now xorg.conf is deprecated so more important is 10-monitor conf.

I have nvidia GTX260 card with newest nvidia drivers. I have 2 DVI's on this card, for an exmaple: DVI-0 nad DVI-1. I would like to use them both using dvi-to-hdmi connector on each of them in order to use my 27 LCD monitor and 40 TV, both with hdmi cable plugged into dvi-hdmi connector and to my graphic card.

I can't solve my problem. Don't know what to do in order to having both screen working. If my 27 inch LCD monitor is connected by DVI-DSUB connector, i have signal on screen. If i plug it by dvi-hdmi connector, than i have screen, singal, picture during boot, but GUI won't load, it stays on "running user interface" or something similar. It is because of my settings in 10-monitor.conf. Here is my setup of 10-monitor.conf

Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 331.20  (buildmeister@swio-display-x64-rhel04-06)  Wed Oct 30 18:38:00 PDT 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "DVI-D-1"
    VendorName     "HP"
    ModelName      "Hp2228H"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "ignore" "true"
    Option         "DPMS"
    Option         "ignore" "true"
EndSection

Section "Monitor"
    Identifier      "DVI-D-0"
    Option          "ignore" "true"
EndSection

Section "Monitor"
    Identifier      "Unknown-0"
    Option          "ignore" "true"
EndSection

Section "Monitor"
    Identifier      "unknown-1"
    VendorName      "LG"
    ModelName       "LG Electronics 2D FHD LG TV 27MA73D-PZ"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option          "DPMS"
    Option          "Enable" "true"
EndSection

Section "Monitor"
    Identifier      "TV-0"
    Option          "ignore" "true"
EndSection

#Section "Monitor"
#	Identifier "Monitor0"
#	VendorName "Unknown"
#	ModelName "Unknown"
#	HorizSync 28.0 - 33.0
#	VertRefresh 43.0-72.0
#	Option "DPMS"
#EndSection
 
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option "TripleBuffer" "1"
    Option "ConnedtedMonitor" "DFP"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
As you can see, there are few section named monitor because Arch detects with nvidia drivers, that i have few screens attached, while i haven't. If i change monitor sections than i could have random switching off signal/screen, and either can have pictrure or don't at all, wither with good 19x12 resolution, or changed for a different, streched to right and i can't log in, and change it eithere.

So, i would like to have what i discribed on top. Could somebody point me in good direction? I tried to generate xorg.conf using nvdia-xcofig, than i applied it to 10-monitor.conf but after reboot i got stuck at "running user interface" or gui, there was no KDE greeting login screen - in my opinion because 10-monitor.conf can't detect that screen is attached by dvi-hdmi connector (detect ok with dvi-dsub and my setting of 10-monitor.conf above). So what to do in order to Arch detects dvi-hdmi connector and detects that i have screen in order to being found and in order to log in into login screen?

When i renamed 10-monitor.conf to 10-monitor.conf.bak and rebooted, i get past "running user interface" or logins screen, i have purple-blue kde greeting and could log in but resolution was stretched on right side and i have only "left side" of screen, so i didn't see login "propmt", or login window, and couldn't log in. Tried to kill x and resuming kdm.service but it won't work. Don't see login window on blue-purple loging screen.


I would like to get past this, would like to use dvi-hdmi connector on my 27 LCD monitor, and being able to use the same dvi-hdmi connector for my 40 TV and use them both. Could somebody help me? What do change in 10-monitor.conf, what to add, what to remove? I'm using now only 27 LCD monitor trough dvi-dsub because i can log into login window because it is in the center of the screen, not stretched to righ on dvi-hdmi connector.

It is not fault of the connectors, i tried on Windows and it Works. Want do have it on Arch because i dont use Windows very often.

Help [:|]

I removed all configs, unplugged second screen, left only 27 inch LCD connected trough DVI-DSUB connector, but when it detected my screen, and i did nvidia-xconfig, after reboot, trough DVI-HDMI connector, this 27 inch screen had wrong resolution, login window was hidden, or it was far on the right side of screen, i could not log because i haven't seen it at all.

Also, when i tried to do something similar but the other way, boot with 27 inch LCD connected trough DVI-DSUB, removed configs, remove dvi-dsub cable and plugg the same 27 inch LCD trough DVI-HDMI cable, i had no signal at all.

One thing more - in windows, i can "clone" one screen to another screen in order to have the same thing on both screens. In Arch if i do a clone, it wont work. It works only by "right/left side of" or "top/bottom side of". If clone works, than the resolutions are wrong and on one screen picture is cut by few inches.

I don't know how in terminal check ir identyfy which output is being used, or how it is named: my monitor now is recognized as unknown-1 output. I don't know how to check all of them in order to write good config file and how to check good vertical and horizontal frequencies for them.

Both panels are 19x12, one of them is LG 27 inch panel (1980x1080) and second is 40 TV (also 1920x1080), and both of them works as 60Hz, but Toshiba has 100 Hz panel. I would provide an pictures, how it look like, but don't know how to attach pictures in post.
1 - LG 27 panel
http://www.sendspace.com/file/1vh631
2 - Toshiba 40 panel
http://www.sendspace.com/file/03kbaq

As you can see, pictures are dark, but we can see it. On 27 LG screen is ok, on 40 is "smaller", left side of switcher is missing (square thing in left bottom corner) and conky is cut by few centimeters on the right, also KDE tasbar at bottom is cut by a half.


BTW. One thing more - i have nearly finished it. I came with an idea how to solve my problem and now i have both panels working, signal and picture are on all of them. Only mentioned problem above.

In order to solve dual monitor problem i booted Arch on 40 TV, checked what would nvidia-settings write in xorg.conf on default settings, copied it, than i changed few things in nvidia-settings, i choosed "clone" type picture, set resolution, and few options, again checked what would be written in xorg.conf, and i copied it from preview into created by touch 10-monitor.conf. Thanks for pointing in good direction.

Heh, i found something so stupid about Arch that i can't believe it. In fact, i'm not able to change it.

I had two screen connected to my new graphic card, i moved from GTX260 to GTX660. One flat panel, LG 27 inch, was connected troug one of the DVI (DVI-I-1) and 40 TV was connected trough second DVI (DVI-D-0). What i found? Well, as a matter of fact, this new graphic has booting sequence order regarding working outs during boot. On HDMI out and on DVI-I-1 when booting there is signal and screen. On DVI-D-0 during booting sequence there is no singal, singnal comes up at login prompt of Windows or Arch. Ok, can live with that.

There is one that i can't. If i want to have working setup of my 27 + 40 flat panels, i have to have 27 connected trough hdmi out, 40 trough something other. I'm not able to have 27 connected to DVI-I-1 and 40 TV to DVI-D-0 because during booting sequence, when there is low resolution, i have screen and singal on 27 flat panel, but when there should come up kde welcome login screen, i don't have it. It stays at terminal, when i see info "sterting upser graphic mode". That's strange! The only way to have booting sequence on 27, and also singal/screen after booting sequence of 27 is to have connected 27 flat panel to hdmi out, not DVI-I-1! Why? Don't know but Arch doesen't want to work that way, no matter what i put in 10-monitor.conf. Tried the same on Windows, no matter which out is being used (hdmi or DVI-I-1), during booting sequence there is singal/screen/picture and after it i can normally log into Windows. In case of Arch, i can't.

Don't know. I would show my 10-monitor.conf:

Code:
nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 334.21  (buildmeister@swio-display-x64-rhel04-13)  Thu Feb 27 14:33:33 PST 2014

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics 2D FHD LG TV"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 660"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-3"
    Option         "metamodes" "HDMI-0: 1920x1080 +0+0, DVI-D-0: 1920x1080 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
I wan't to have both flat panels on DVI outs because i need hdmi for something other. Is there a way to solve it? Strange is that with provided resolution, vertical and horizontal frequencies, on hdmi out i can boot, i can log into Arch (while my other screen is being found, and also i see picture on login screen) but when i use both of DVI outs, i see booting sequences, and than Arch informs me that has started graphic user mode...but it stays at this black screen. What's more strange is that if i delete 10-monitor.conf, connect my 27 LCD to DVI-D-0, and TV to DVI-I-1, than i see booting on Toshiba 40 TV, don't see it on LG 27, after log in i can set proper resoluton for 27 LG, have both screen working, but if i save this settings in 10-monitor.conf, after reboot...the same thing, stays at message that Arch started graphical user mode.

Don't know what's going on. Can somebody check my xorg? Point me? Maybe xinerama is at fault? I want my LG 27 to be cloned on 40 TV.

In big shortcut: during boot on DVI-I-1 i have signal, can't log into gui mode, stays at mentioned screen with info that it started graphic user mode. What to do, or what to put into 10-monitor.conf?
 
Old 03-14-2014, 04:44 AM   #2
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
there is no need for this file anymore......
just upgrade your distro
After this, xorg.conf is no longer needed - just delete it.
 
Old 03-15-2014, 05:29 PM   #3
firekage
Member
 
Registered: May 2011
Location: Poland
Distribution: Slackware, Ubuntu, Arch
Posts: 275

Original Poster
Rep: Reputation: 7
Xorg.conf is not needed, that's why i wrote about 10-monitor.conf because Arch runs on udev and it is being checked during boot, each files in /etc/X11/xorg.conf.d/ starts with an number and description, like 10-keyborad.conf and so on. Without 10-monitor.conf i would have (randomly) wrong resolution for my screen, or detected fake screens because grapfic card has 4 outputs, and it would just randomly set a signal for the output that's not connected or even detects 4 screens, divide them for a smaller resolutions when in fact, should be one flat screen detected with 19x12 res, that's why it is needed, also there are other settings stored like twinview and so on.
 
Old 03-24-2014, 10:48 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The /etc/X11/xorg.conf is not deprecated, and for Nvidia drivers it's actually still the recommended file to use.

Nvidia-xconfig still uses the default /etc/X11/xorg.conf file for it's driver setup. So actually you can ignore the separated /xorg.conf.d files completely and delete them, or just copy over settings from the default file.

The most important part is getting it working first, and a properly configured xorg.conf is required. After that you can play with xorg.conf.d files all you want.
 
Old 03-29-2014, 06:14 PM   #5
firekage
Member
 
Registered: May 2011
Location: Poland
Distribution: Slackware, Ubuntu, Arch
Posts: 275

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by ReaperX7 View Post
The /etc/X11/xorg.conf is not deprecated, and for Nvidia drivers it's actually still the recommended file to use.
I can't agreed regarding Arch linux and systemd.
Quote:
Nvidia-xconfig still uses the default /etc/X11/xorg.conf file for it's driver setup. So actually you can ignore the separated /xorg.conf.d files completely and delete them, or just copy over settings from the default file.
Again, i can't agreed when it comes to Arch and systemd. If you delete files from /etc/X11/xorg.conf.d/ the system won't be able to launch gui, detect screens and what more, you won't have mouse or keyboard at all and so on.

Quote:
The most important part is getting it working first, and a properly configured xorg.conf is required. After that you can play with xorg.conf.d files all you want.
As i said, xorg.conf when comes to Arch is left and settings from here is not being used at all. They are used form /etc/X11/xorg.conf.d/ files.


BTW, one question.

I would like to refresh my thread. There is one thing that i would like also to ask, it's about naming devices or rather outputs in :

K >> system settings >> hardware >> display and monitor

Nvidia settings >> X Server Display Configuration >> Selection

Nvidia settings >> X Screen 0 >> X Server Video XV Settings


I would like to know what is the proper naming of outputs here? I have few screenshots, pleas look at them:

1:
http://i.imgur.com/cGnp7l8.jpg
2:
http://i.imgur.com/dDyfm7U.jpg
3:
http://i.imgur.com/GuJzMHV.jpg

As you can see, i have 2 flat planels, 27 inch and 40 inch. I use HDMI output for 27 inch flat panel and dvi-d-0 for 40 inch flat panel. I would like to know, like mentioned earlier, what is the proper naming of these outputs? On the pictures that i provided, ther are named like:

-27 inch flat panel: HDMI-0 and DFP-1
-40 inch flat panel: DVI-D-0 and DFP3

I want to create 10-monitor.conf with special settings for cloned mode but i don't know if it should be like this:
Code:
Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0" # DFP-1
    VendorName     "Unknown"
    ModelName      "LG Electronics 2D FHD LG TV"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1" # DFP-3
    VendorName     "Unknown"
    ModelName      "TOSHIBA-TV"
    HorizSync       15.0 - 81.0
    VertRefresh     23.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 660"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-3"
    Option         "metamodes" "DVI-I-1: 1920x1080 +0+0, DFP-1: 1920x1080_60 +0+0, DFP-3: 1920x1080 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Especially, please check this line:
Code:
 Option         "metamodes" "DVI-I-1: 1920x1080 +0+0, DFP-1: 1920x1080_60 +0+0, DFP-3: 1920x1080 +0+0"
I should use naming like DFP-1, DFP3, just like above, or i should use naming like HDMI-0 and DVI-D-0?
 
Old 03-29-2014, 06:59 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,391

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
You have only one screen section for one monitor. I believe you need to add another screen section for the other monitor.
 
Old 03-29-2014, 08:31 PM   #7
firekage
Member
 
Registered: May 2011
Location: Poland
Distribution: Slackware, Ubuntu, Arch
Posts: 275

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by colorpurple21859 View Post
You have only one screen section for one monitor. I believe you need to add another screen section for the other monitor.
I doubt that because saving settings under nvidia settings doest output just like the one that i posted. Problem is only with naming of the outputs: dvi-d-0 or DFP-3, hdmi-0 or DFP-1 and so on.
 
Old 03-31-2014, 09:17 PM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If you're deleting files from /xorg.conf.d and things don't work, then there's something wrong with your system if it can't use a default xorg.conf configuration file. systemd shouldn't have any basis on X and it's set up and X and it's setup should be fairly uniform across all flavors of UNIX from Linux, Solaris, BSD, and other UNICES. Regardless of distribution, X is X and the defaults are always the same defaults.

You probably also need to enable TwinView if you're running multi-monitors, and for that, you need to refer to the Nvidia documentation.
 
Old 04-01-2014, 04:27 AM   #9
firekage
Member
 
Registered: May 2011
Location: Poland
Distribution: Slackware, Ubuntu, Arch
Posts: 275

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by ReaperX7 View Post
If you're deleting files from /xorg.conf.d and things don't work, then there's something wrong with your system if it can't use a default xorg.conf configuration file. systemd shouldn't have any basis on X and it's set up and X and it's setup should be fairly uniform across all flavors of UNIX from Linux, Solaris, BSD, and other UNICES. Regardless of distribution, X is X and the defaults are always the same defaults.
Try to install Arch, delete files from xorg.conf.d/ and see what happens You won't be able to use keyboard and so on.
Quote:
You probably also need to enable TwinView if you're running multi-monitors, and for that, you need to refer to the Nvidia documentation.
Xinerama or twinview is used only to streech screen in order to having one big screen from 2 monitors. I don't want to use it, i use clone mode.

Also, problem is with naming devices: HDMI-0 or DFP-1, and so on, that'w was my question.
 
Old 04-01-2014, 10:06 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If X has to have /xorg.conf.d then the implementation is completely flawed. X should not have to require /xorg.conf.d unless done so by the user creating the files within that directory.

Obviously Arch isn't using a traditional X implementation in their setup, otherwise, /xorg.conf.d would have been entirely optional as it is on just about every other distribution out there.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X starts without xorg.conf, however with aticonfig, resultant xorg.conf hangs linuxbird Linux - Desktop 3 08-23-2012 05:28 AM
Dual Monitor: 2nd monitor not coming up -- xorg.conf missing something? Hewson Linux - Hardware 3 10-20-2009 11:24 AM
xorg.conf files not running properly in arch linux mag1strate Linux - Newbie 1 09-06-2009 02:45 PM
xorg.conf and hal conficts: unable to set keyboard or monitor settings. Gustav 4 Slackware 3 08-16-2009 07:01 AM
Modifying xorg.conf to set up monitor to 1280x1024 60hz refresh rate. glore2002 Slackware 10 09-11-2008 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration