You are not logged in.

#1 2014-01-13 22:08:46

Atronach
Banned
Registered: 2010-11-13
Posts: 48

Running X with an alternate config file

Hi,
I want to run an application in a separate X server with a non-native screen resolution. I've set the non-native resolution in nvidia-settings GUI interface and exported it to 10-nvidia.conf in my home folder. When the file is copied to /etc/X11/xorg.conf.d/ after re-login the resolution is successfully changed and the graphical desktop works fine so there shouldn't be any error in the config file, but just in case:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 331.20  (buildmeister@swio-display-x86-rhel47-05)  Wed Oct 30 18:20:32 PDT 2013

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      "HP Z23i"
    HorizSync       24.0 - 94.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8600M GT"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "VGA-0: 1280x720 +0+0, LVDS-0: NULL"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

However, when running xinit krusader -- :1 -config 10-nvidia.conf -verbose the application is drawn in the native resolution and I got this output:

X.Org X Server 1.14.5
Release Date: 2013-12-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.12.5-1-ARCH x86_64 
Current Operating System: Linux David-ArchLinux 3.12.7-1-ARCH #1 SMP PREEMPT Fri Jan 10 08:50:35 CET 2014 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e4d1cdf9-26d9-43c3-a9d2-9d0540bc196a rw pcie_aspm=force loglevel=3 nmi_watchdog=0 acpi_backlight=vendor
Build Date: 06 January 2014  10:25:32PM
 
Current version of pixman: 0.32.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Mon Jan 13 22:55:59 2014
(EE) Unable to locate/open config file: "10-nvidia.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) ServerLayout "Layout0"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Device0"
(**) |-->Input Device "Keyboard0"
(**) |-->Input Device "Mouse0"
(==) Automatically adding devices
(==) Automatically enabling devices
(==) Automatically adding GPU devices
(==) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/OTF/,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi/,
        /usr/share/fonts/75dpi/
(==) ModulePath set to "/usr/lib/xorg/modules"
(WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Keyboard0
(WW) Disabling Mouse0
(II) xfree86: Adding drm device (/dev/dri/card0)
setversion 1.4 failed
(--) PCI:*(0:1:0:0) 10de:0407:14c0:0025 rev 161, Mem @ 0xc6000000/16777216, 0xd0000000/268435456, 0xc4000000/33554432, I/O @ 0x00002000/128
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
(II) NVIDIA GLX Module  331.20  Wed Oct 30 17:36:48 PDT 2013
Loading extension GLX
(II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
(II) NVIDIA dlloader X Driver  331.20  Wed Oct 30 17:16:53 PDT 2013
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(--) using VT number 2

(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
        compiled for 1.14.5, module version = 1.0.0
(WW) Unresolved symbol: fbGetGCPrivateKey
(II) Loading /usr/lib/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
        compiled for 1.14.5, module version = 1.0.0
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Stereo disabled by request
(**) NVIDIA(0): NVIDIA SLI disabled.
(**) NVIDIA(0): NVIDIA Multi-GPU disabled.
(**) NVIDIA(0): Enabling 2D acceleration
(II) NVIDIA(0): Display (HP Z23i (CRT-0)) does not support NVIDIA 3D Vision
(II) NVIDIA(0):     stereo.
(II) NVIDIA(0): Display (cPATH (DFP-0)) does not support NVIDIA 3D Vision
(II) NVIDIA(0):     stereo.
(II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
(II) NVIDIA(0): NVIDIA GPU GeForce 8600M GT (G84) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 262144 kBytes
(--) NVIDIA(0): VideoBIOS: 60.84.42.00.23
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Valid display device(s) on GeForce 8600M GT at PCI:1:0:0
(--) NVIDIA(0):     HP Z23i (CRT-0) (connected)
(--) NVIDIA(0):     TV-0
(--) NVIDIA(0):     cPATH (DFP-0) (boot, connected)
(--) NVIDIA(0): HP Z23i (CRT-0): 400.0 MHz maximum pixel clock
(--) NVIDIA(0): TV-0: 400.0 MHz maximum pixel clock
(--) NVIDIA(0): cPATH (DFP-0): Internal Dual Link LVDS
(--) NVIDIA(0): cPATH (DFP-0): 330.0 MHz maximum pixel clock
(**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
(**) NVIDIA(0):     device HP Z23i (CRT-0) (Using EDID frequencies has been
(**) NVIDIA(0):     enabled on all display devices.)
(**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
(**) NVIDIA(0):     device cPATH (DFP-0) (Using EDID frequencies has been
(**) NVIDIA(0):     enabled on all display devices.)
(II) NVIDIA(0): Validated MetaModes:
(II) NVIDIA(0):     "VGA-0:1920x1080+0+0,LVDS-0:NULL"
(II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
(**) NVIDIA(0): DPI set to (96, 96); computed from "DPI" X config option
(--) Depth 24 pixmap format is 32 bpp
(II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
(II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
(II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
(II) NVIDIA(0):     configuration option may not be set correctly.  When the
(II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
(II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
(II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
(II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
(II) NVIDIA(0):     Config Options in the README.
(II) NVIDIA(0): Setting mode "VGA-0:1920x1080+0+0,LVDS-0:NULL"
Loading extension NV-GLX
(==) NVIDIA(0): Disabling shared memory pixmaps
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(==) NVIDIA(0): DPMS enabled
Loading extension NV-CONTROL
Loading extension XINERAMA
(II) NVIDIA(0): [DRI2] Setup complete
(II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
(--) RandR disabled
(II) Initializing extension GLX
(II) config/udev: Adding input device Power Button (/dev/input/event8)
(**) Power Button: Applying InputClass "system-keyboard"
(**) Power Button: Applying InputClass "evdev keyboard catchall"
(II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
        compiled for 1.14.3, module version = 2.8.2
(II) Using input driver 'evdev' for 'Power Button'
(**) Power Button: always reports core events
(**) evdev: Power Button: Device: "/dev/input/event8"
(--) evdev: Power Button: Vendor 0 Product 0x1
(--) evdev: Power Button: Found keys
(II) evdev: Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
(II) config/udev: Adding input device Video Bus (/dev/input/event9)
(**) Video Bus: Applying InputClass "system-keyboard"
(**) Video Bus: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'Video Bus'
(**) Video Bus: always reports core events
(**) evdev: Video Bus: Device: "/dev/input/event9"
(--) evdev: Video Bus: Vendor 0 Product 0x6
(--) evdev: Video Bus: Found keys
(II) evdev: Video Bus: Configuring as keyboard
(II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
(II) config/udev: Adding input device Power Button (/dev/input/event7)
(**) Power Button: Applying InputClass "system-keyboard"
(**) Power Button: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'Power Button'
(**) Power Button: always reports core events
(**) evdev: Power Button: Device: "/dev/input/event7"
(--) evdev: Power Button: Vendor 0 Product 0x1
(--) evdev: Power Button: Found keys
(II) evdev: Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
(II) config/udev: Adding input device Lid Switch (/dev/input/event6)
(II) No input driver specified, ignoring this device.
(II) This device may have been added with another device file.
(II) config/udev: Adding drm device (/dev/dri/card0)
(II) xfree86: Adding drm device (/dev/dri/card0)
setversion 1.4 failed
(II) config/udev: Adding input device Microsoft Microsoft® Digital Media Keyboard 3000 (/dev/input/event1)
(**) Microsoft Microsoft® Digital Media Keyboard 3000: Applying InputClass "system-keyboard"
(**) Microsoft Microsoft® Digital Media Keyboard 3000: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'Microsoft Microsoft® Digital Media Keyboard 3000'
(**) Microsoft Microsoft® Digital Media Keyboard 3000: always reports core events
(**) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Device: "/dev/input/event1"
(--) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Vendor 0x45e Product 0x730
(--) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Found keys
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Configuring as keyboard
(II) XINPUT: Adding extended input device "Microsoft Microsoft® Digital Media Keyboard 3000" (type: KEYBOARD, id 9)
(II) config/udev: Adding input device Microsoft Microsoft® Digital Media Keyboard 3000 (/dev/input/event2)
(**) Microsoft Microsoft® Digital Media Keyboard 3000: Applying InputClass "system-keyboard"
(**) Microsoft Microsoft® Digital Media Keyboard 3000: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'Microsoft Microsoft® Digital Media Keyboard 3000'
(**) Microsoft Microsoft® Digital Media Keyboard 3000: always reports core events
(**) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Device: "/dev/input/event2"
(--) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Vendor 0x45e Product 0x730
(--) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Found 1 mouse buttons
(--) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Found scroll wheel(s)
(--) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Found relative axes
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Forcing relative x/y axes to exist.
(--) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Found absolute axes
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Forcing absolute x/y axes to exist.
(--) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Found keys
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Configuring as mouse
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Configuring as keyboard
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Adding scrollwheel support
(**) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: YAxisMapping: buttons 4 and 5
(**) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Microsoft Microsoft® Digital Media Keyboard 3000" (type: KEYBOARD, id 10)
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: initialized for relative axes.
(WW) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: ignoring absolute axes.
(**) Microsoft Microsoft® Digital Media Keyboard 3000: (accel) keeping acceleration scheme 1
(**) Microsoft Microsoft® Digital Media Keyboard 3000: (accel) acceleration profile 0
(**) Microsoft Microsoft® Digital Media Keyboard 3000: (accel) acceleration factor: 2.000
(**) Microsoft Microsoft® Digital Media Keyboard 3000: (accel) acceleration threshold: 4
(II) config/udev: Adding input device SteelSeries Sensei Raw Gaming Mouse (/dev/input/event3)
(**) SteelSeries Sensei Raw Gaming Mouse: Applying InputClass "Disable pointer acceleration globally"
(**) SteelSeries Sensei Raw Gaming Mouse: Applying InputClass "evdev pointer catchall"
(II) Using input driver 'evdev' for 'SteelSeries Sensei Raw Gaming Mouse'
(**) SteelSeries Sensei Raw Gaming Mouse: always reports core events
(**) evdev: SteelSeries Sensei Raw Gaming Mouse: Device: "/dev/input/event3"
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Vendor 0x1038 Product 0x1369
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found 12 mouse buttons
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found scroll wheel(s)
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found relative axes
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found x and y relative axes
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Configuring as mouse
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Adding scrollwheel support
(**) evdev: SteelSeries Sensei Raw Gaming Mouse: YAxisMapping: buttons 4 and 5
(**) evdev: SteelSeries Sensei Raw Gaming Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "SteelSeries Sensei Raw Gaming Mouse" (type: MOUSE, id 11)
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: initialized for relative axes.
(**) SteelSeries Sensei Raw Gaming Mouse: (accel) selected scheme none/0
(**) SteelSeries Sensei Raw Gaming Mouse: (accel) acceleration factor: 2.000
(**) SteelSeries Sensei Raw Gaming Mouse: (accel) acceleration threshold: 4
(II) config/udev: Adding input device SteelSeries Sensei Raw Gaming Mouse (/dev/input/mouse0)
(**) SteelSeries Sensei Raw Gaming Mouse: Applying InputClass "Disable pointer acceleration globally"
(II) No input driver specified, ignoring this device.
(II) This device may have been added with another device file.
(II) config/udev: Adding input device SteelSeries Sensei Raw Gaming Mouse (/dev/input/event4)
(**) SteelSeries Sensei Raw Gaming Mouse: Applying InputClass "system-keyboard"
(**) SteelSeries Sensei Raw Gaming Mouse: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'SteelSeries Sensei Raw Gaming Mouse'
(**) SteelSeries Sensei Raw Gaming Mouse: always reports core events
(**) evdev: SteelSeries Sensei Raw Gaming Mouse: Device: "/dev/input/event4"
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Vendor 0x1038 Product 0x1369
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found keys
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Configuring as keyboard
(II) XINPUT: Adding extended input device "SteelSeries Sensei Raw Gaming Mouse" (type: KEYBOARD, id 12)
(II) config/udev: Adding input device SteelSeries Sensei Raw Gaming Mouse (/dev/input/event5)
(**) SteelSeries Sensei Raw Gaming Mouse: Applying InputClass "system-keyboard"
(**) SteelSeries Sensei Raw Gaming Mouse: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'SteelSeries Sensei Raw Gaming Mouse'
(**) SteelSeries Sensei Raw Gaming Mouse: always reports core events
(**) evdev: SteelSeries Sensei Raw Gaming Mouse: Device: "/dev/input/event5"
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Vendor 0x1038 Product 0x1369
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found 1 mouse buttons
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found scroll wheel(s)
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found relative axes
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Forcing relative x/y axes to exist.
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found absolute axes
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Forcing absolute x/y axes to exist.
(--) evdev: SteelSeries Sensei Raw Gaming Mouse: Found keys
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Configuring as mouse
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Configuring as keyboard
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Adding scrollwheel support
(**) evdev: SteelSeries Sensei Raw Gaming Mouse: YAxisMapping: buttons 4 and 5
(**) evdev: SteelSeries Sensei Raw Gaming Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "SteelSeries Sensei Raw Gaming Mouse" (type: KEYBOARD, id 13)
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: initialized for relative axes.
(WW) evdev: SteelSeries Sensei Raw Gaming Mouse: ignoring absolute axes.
(**) SteelSeries Sensei Raw Gaming Mouse: (accel) keeping acceleration scheme 1
(**) SteelSeries Sensei Raw Gaming Mouse: (accel) acceleration profile 0
(**) SteelSeries Sensei Raw Gaming Mouse: (accel) acceleration factor: 2.000
(**) SteelSeries Sensei Raw Gaming Mouse: (accel) acceleration threshold: 4
(II) config/udev: Adding input device USB 2.0 Camera (/dev/input/event13)
(**) USB 2.0 Camera: Applying InputClass "system-keyboard"
(**) USB 2.0 Camera: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'USB 2.0 Camera'
(**) USB 2.0 Camera: always reports core events
(**) evdev: USB 2.0 Camera: Device: "/dev/input/event13"
(--) evdev: USB 2.0 Camera: Vendor 0x4f2 Product 0xb018
(--) evdev: USB 2.0 Camera: Found keys
(II) evdev: USB 2.0 Camera: Configuring as keyboard
(II) XINPUT: Adding extended input device "USB 2.0 Camera" (type: KEYBOARD, id 14)
(II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event10)
(II) No input driver specified, ignoring this device.
(II) This device may have been added with another device file.
(II) config/udev: Adding input device HDA Intel Mic (/dev/input/event12)
(II) No input driver specified, ignoring this device.
(II) This device may have been added with another device file.
(II) config/udev: Adding input device HDA Intel Headphone (/dev/input/event11)
(II) No input driver specified, ignoring this device.
(II) This device may have been added with another device file.
(II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
(**) AT Translated Set 2 keyboard: Applying InputClass "system-keyboard"
(**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
(**) AT Translated Set 2 keyboard: always reports core events
(**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
(--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
(--) evdev: AT Translated Set 2 keyboard: Found keys
(II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 15)
xinit: connection to X server lost

waiting for X server to shut down (II) evdev: AT Translated Set 2 keyboard: Close
(II) evdev: USB 2.0 Camera: Close
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Close
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Close
(II) evdev: SteelSeries Sensei Raw Gaming Mouse: Close
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Close
(II) evdev: Microsoft Microsoft® Digital Media Keyboard 3000: Close
(II) evdev: Power Button: Close
(II) evdev: Video Bus: Close
(II) evdev: Power Button: Close
.(II) NVIDIA(GPU-0): Deleting GPU-0
(EE) Server terminated successfully (0). Closing log file.

Please notice the Unable to locate/open config file: "10-nvidia.conf" line.
When specifying the full path to the config file, after running the command I get:

...
With elevated privileges, the file specified with -config must be
        a relative path and must not contain any ".." elements.
        Using default xorg.conf search path.
...

Mind I run the command from my regular user shell, no sudo/su used. What can I do? Thanks.

Last edited by Atronach (2014-01-13 22:11:58)

Offline

#2 2014-01-13 23:17:09

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Running X with an alternate config file

man xorg.conf wrote:

The xorg.conf configuration file is searched for in the following places when the server is started as a normal user:

           /etc/X11/<cmdline>
           /usr/etc/X11/<cmdline>
           /etc/X11/$XORGCONFIG
           /usr/etc/X11/$XORGCONFIG
           /etc/X11/xorg.conf
           /etc/xorg.conf
           /usr/etc/X11/xorg.conf.<hostname>
           /usr/etc/X11/xorg.conf
           /usr/lib/X11/xorg.conf.<hostname>
           /usr/lib/X11/xorg.conf

where  <cmdline>  is  a  relative  path  (with  no  “..”  components) specified with the -config command line option,

Offline

#3 2014-01-13 23:36:04

Atronach
Banned
Registered: 2010-11-13
Posts: 48

Re: Running X with an alternate config file

So how do I specify my ~ folder without using .. elements because /etc/X11/../../home/david/10-nvidia.conf doesn't work...
And why it still says With elevated privileges, the file specified with -config must be a relative path... when I don't run it as root anyway and while the relative path is intended for the normal user?

Offline

#4 2014-01-14 00:06:18

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Running X with an alternate config file

Atronach wrote:

So how do I specify my ~ folder without using .. elements because /etc/X11/../../home/david/10-nvidia.conf doesn't work...

You want to do something that's not allowed? I suppose you can change the source code? Or maybe you can put a symlink in /etc/X11/, but I would expect that to be checked (and rejected) too.

And why it still says With elevated privileges, the file specified with -config must be a relative path... when I don't run it as root anyway and while the relative path is intended for the normal user?

The Xorg binary gets elevated privileges because of the setuid bit.

Offline

#5 2014-01-14 01:16:21

Atronach
Banned
Registered: 2010-11-13
Posts: 48

Re: Running X with an alternate config file

You want to do something that's not allowed?

No, I just thought it would be convenient plus I don't understand what's the point of the -config parameter then, when I still have to put the alternate config file to the one the predefined paths which are read anyway so my non-native resolution would be set always even If I don't want to... but I guess it's not like this, is it?

Last edited by Atronach (2014-01-14 01:19:05)

Offline

#6 2014-01-14 09:35:52

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Running X with an alternate config file

Not all files in /etc/X11 are read anyway. If you don't specify -config and you don't set $XORGCONFIG, the first four locations in that list are not used. That is what normally happens: /etc/X11/xorg.conf is next on the list and that's your default config file. Now, if you specify "-config 10-nvidia.conf", X will load /etc/X11/10-nvidia.conf (if it exists) instead of /etc/X11/xorg.conf.

Additionally there's the "-configdir <cmdline>" option. After loading -config, X will load files from /etc/X11/xorg.conf.d, but you can change that to /etc/X11/<cmdline>. /etc/X11 is not the same as /etc/X11/xorg.conf.d, so 10-nvidia.conf would not be loaded without a -config argument.

Last edited by Raynman (2014-01-14 09:37:00)

Offline

#7 2014-01-14 10:22:32

headkase
Member
Registered: 2011-12-06
Posts: 2,006

Re: Running X with an alternate config file

See:

https://wiki.archlinux.org/index.php/Ga … e_X_server

Which also specifies a custom configuration.  And:

https://wiki.archlinux.org/index.php/Ru … _X_display

For a generic script to run an application in its own X server.  Combine the two, it's not hard, and that should be your solution.

Offline

Board footer

Powered by FluxBB