S
S
sudo rm -rf /2017-07-04 13:21:17
linux
sudo rm -rf /, 2017-07-04 13:21:17

Where to write xorg.conf from nvidia-settings? How to adjust the location of monitors for non-free firewood?

Hardware and software
OC: manjaro-i3 (свежая, 2к17)
Карта: nVidia gtx 560 DirectCU ii
Мониторы:
  1. Мон0 - старый ViewSonic , подкл vga через dvi переходник
  2. Мон1 - старый Dexp m210 , hdmi

There was Nouveau firewood. I wanted to tinker with CUDA, so I installed non-free firewood using mhvd:
sudo mhwd -a pci nonfree 0300
sudo nvidia-xconfig
sudo kill -9 `pidof Xorg`

Naturally, the settings for the location of the monitors went astray.
Before that, they were registered in /etc/X11/xorg.conf.d/10-monitor.conf:
Section "Monitor"
    Identifier  "DVI-I-1"
EndSection

Section "Monitor"
    Identifier  "HDMI-1"
    Option      "Primary" "true"
    Option      "LeftOf" "DVI-I-1"
EndSection

After installation, I set up the location (and primary, which is important in i3-wm) via nvidia-settings, applied and saved it to /etc/X11/xorg.conf, restarted xorg - zero emotions .
xorg.conf after nvidia-settings
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 375.66  ([email protected])  Mon May  1 15:44:21 PDT 2017

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 375.66  ([email protected])  Mon May  1 15:45:32 PDT 2017

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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "ViewSonic VA902"
    HorizSync       30.0 - 82.0
    VertRefresh     50.0 - 85.0
    Option         "DPMS"
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "DVI-I-0: 1280x1024_75 +1920+0, HDMI-0: 1920x1080_60 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Please tell me how to start this hurdy-gurdy. Internet search turned up nothing. And if, nevertheless, he gave something, then it did not help to get the result .
There is a very important detail here: the settings should be loaded as early as possibleso that the login screen is already positioned as it should. (an old monitor aka mon0 runs like a tractor for 3 hours)
Exhausts (if you need to add something else, write):
lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 10)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation GF114 [GeForce GTX 560] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 02)
xrandr
Screen 0: minimum 8 x 8, current 3200 x 1080, maximum 16384 x 16384
DVI-I-0 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024     60.02*+  75.02  
   1024x768      85.00    75.03    70.07    60.00  
   800x600       85.06    75.00    72.19    60.32    56.25  
   640x480       85.01    75.00    72.81    59.94  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DVI-I-2 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+1280+0 (normal left inverted right x axis y axis) 580mm x 360mm
   1920x1080     59.72*+  60.00    59.94    50.00    23.97    60.05    60.00    50.04  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DVI-I-3 disconnected (normal left inverted right x axis y axis)
cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module  375.66  Mon May  1 15:29:16 PDT 2017
GCC version:  gcc-Version 7.1.1 20170528 (GCC)
inix -G
Graphics:  Card: NVIDIA GF114 [GeForce GTX 560]
           Display Server: x11 (X.Org 1.19.3) driver: nvidia
           Resolution: [email protected], [email protected]
           OpenGL: renderer: GeForce GTX 560/PCIe/SSE2 version: 4.5.0 NVIDIA 375.66

Okay, the subject is resolved (see answers), but it's still not clear why /etc/X11/xorg.conf wasn't hacked directly.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sudo rm -rf /, 2017-07-04
@MaxLevs

The problem was solved simply:
ps I tried to do this earlier, but, apparently, somewhere I messed up with backup copies of these files, so I dragged the same thing: D
pps Perhaps the figure can be made smaller.

C
CityCat4, 2017-07-04
@CityCat4

When switching from Nouveau to nvidia and beyond, you need to reboot. As far as I understand, the videocard firewood module cannot be just unloaded and loaded with another one. Well, it's also worth checking that there is no xorg.conf file in other places that could be used - the log says which xorg.conf was read.
Xorg starts when the DM starts up, when the login screen is displayed xorg.conf has already been read.

X
xibir, 2017-07-04
@xibir

in Xsetup for Display Manager (for sddm it is /usr/share/sddm/scripts/Xsetup) you can write something like:

xrandr --output HDMI-0 --auto --primary --left-of DVI-I-0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question