You are not logged in.

#1 2017-03-19 06:01:04

kagronick
Member
Registered: 2017-03-19
Posts: 7

[Solved] Optimus with Nvidia driver configuration issues

I have an Optimus laptop and I want to use the binary Nvidia module with discrete graphics always on. My problem seems to be that the Intel device isn't getting attached to the screen for the Nvidia card to write to. The xorg log file seems to indicate that nothing went wrong. X thinks that it is running fine. All I get is a blank screen with no backlight. I've tried many different xorg.conf files. The only thing that stays consistent is that every time I run xrandr with any arguments the only output that I get is "Can't open display".

Even xrandr --listproviders fails.

Here is the latest xorg.conf I'm running with:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "1:0.0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Here is the xinitrc I'm using:

#!/bin/sh

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

Last edited by kagronick (2017-03-22 00:22:20)

Offline

#2 2017-03-19 06:09:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Optimus with Nvidia driver configuration issues

Is that the entirety of the .xinitrc? Paste your xorg log.


Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-03-19 23:51:57

kagronick
Member
Registered: 2017-03-19
Posts: 7

Re: [Solved] Optimus with Nvidia driver configuration issues

Here is the /var/log/Xorg.0.log

[    22.152] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[    22.153] X Protocol Version 11, Revision 0
[    22.153] Build Operating System: Linux 4.9.11-1-ARCH x86_64 
[    22.153] Current Operating System: Linux archtop 4.10.3-1-ARCH #1 SMP PREEMPT Wed Mar 15 09:17:17 CET 2017 x86_64
[    22.153] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ffb1e0fb-fc4b-4bfa-a984-872a24251e0c rw quiet
[    22.153] Build Date: 16 March 2017  02:47:54PM
[    22.153]  
[    22.153] Current version of pixman: 0.34.0
[    22.153] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    22.153] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    22.153] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Mar 19 19:44:27 2017
[    22.157] (==) Using config file: "/etc/X11/xorg.conf"
[    22.157] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    22.171] (==) ServerLayout "X.org Configured"
[    22.172] (**) |-->Screen "nvidia" (0)
[    22.172] (**) |   |-->Monitor "<default monitor>"
[    22.172] (**) |   |-->Device "nvidia"
[    22.172] (**) |   |-->GPUDevice "Card1"
[    22.172] (**) |   |-->GPUDevice "nvidia"
[    22.172] (==) No monitor specified for screen "nvidia".
	Using a default monitor configuration.
[    22.172] (**) |-->Inactive Device "intel"
[    22.172] (==) Automatically adding devices
[    22.172] (==) Automatically enabling devices
[    22.172] (==) Automatically adding GPU devices
[    22.172] (==) Automatically binding GPU devices
[    22.175] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    22.182] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    22.182] 	Entry deleted from font path.
[    22.182] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    22.182] 	Entry deleted from font path.
[    22.182] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    22.183] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    22.183] 	Entry deleted from font path.
[    22.183] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    22.183] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[    22.183] (==) ModulePath set to "/usr/lib/xorg/modules"
[    22.183] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    22.184] (II) Loader magic: 0x822d60
[    22.184] (II) Module ABI versions:
[    22.184] 	X.Org ANSI C Emulation: 0.4
[    22.184] 	X.Org Video Driver: 23.0
[    22.184] 	X.Org XInput driver : 24.1
[    22.184] 	X.Org Server Extension : 10.0
[    22.185] (--) using VT number 2

[    22.186] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    22.187] (II) xfree86: Adding drm device (/dev/dri/card1)
[    22.187] (II) xfree86: Adding drm device (/dev/dri/card0)
[    22.200] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[    22.200] (**) OutputClass "nvidia" setting /dev/dri/card1 as PrimaryGPU
[    22.200] (--) PCI: (0:0:2:0) 8086:0166:144d:c0d5 rev 9, Mem @ 0xf1000000/4194304, 0xe0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[    22.200] (--) PCI:*(0:1:0:0) 10de:1140:144d:c0d5 rev 161, Mem @ 0xf0000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00002000/128
[    22.200] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    22.201] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    22.201] (II) LoadModule: "glx"
[    22.202] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[    22.845] (II) Module glx: vendor="NVIDIA Corporation"
[    22.845] 	compiled for 4.0.2, module version = 1.0.0
[    22.845] 	Module class: X.Org Server Extension
[    22.846] (II) NVIDIA GLX Module  378.13  Tue Feb  7 18:25:34 PST 2017
[    22.848] (II) LoadModule: "nvidia"
[    22.848] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    22.954] (II) Module nvidia: vendor="NVIDIA Corporation"
[    22.954] 	compiled for 4.0.2, module version = 1.0.0
[    22.954] 	Module class: X.Org Video Driver
[    22.960] (II) LoadModule: "modesetting"
[    22.960] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    22.962] (II) Module modesetting: vendor="X.Org Foundation"
[    22.962] 	compiled for 1.19.3, module version = 1.19.3
[    22.962] 	Module class: X.Org Video Driver
[    22.962] 	ABI class: X.Org Video Driver, version 23.0
[    22.962] (II) NVIDIA dlloader X Driver  378.13  Tue Feb  7 18:01:51 PST 2017
[    22.962] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    22.963] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    22.971] (II) Loading sub module "fb"
[    22.971] (II) LoadModule: "fb"
[    22.971] (II) Loading /usr/lib/xorg/modules/libfb.so
[    22.975] (II) Module fb: vendor="X.Org Foundation"
[    22.975] 	compiled for 1.19.3, module version = 1.0.0
[    22.975] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    22.975] (II) Loading sub module "wfb"
[    22.975] (II) LoadModule: "wfb"
[    22.976] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    22.979] (II) Module wfb: vendor="X.Org Foundation"
[    22.979] 	compiled for 1.19.3, module version = 1.0.0
[    22.979] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    22.979] (II) Loading sub module "ramdac"
[    22.979] (II) LoadModule: "ramdac"
[    22.979] (II) Module "ramdac" already built-in
[    23.000] (II) modeset(G0): using drv /dev/dri/card0
[    23.001] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"nvidia" for depth/fbbpp 24/32
[    23.001] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    23.001] (==) NVIDIA(0): RGB weight 888
[    23.001] (==) NVIDIA(0): Default visual is TrueColor
[    23.001] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    23.003] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[    23.003] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[    23.003] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[    23.003] (**) NVIDIA(0): Enabling 2D acceleration
[    23.003] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[    23.003] (**) NVIDIA(0):     mode
[    23.224] (II) NVIDIA(0): NVIDIA GPU GeForce GT 630M (GF117) at PCI:1:0:0 (GPU-0)
[    23.224] (--) NVIDIA(0): Memory: 524288 kBytes
[    23.224] (--) NVIDIA(0): VideoBIOS: 75.17.32.00.fc
[    23.224] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[    23.224] (II) NVIDIA(0): Validated MetaModes:
[    23.224] (II) NVIDIA(0):     "NULL"
[    23.224] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    23.224] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    23.224] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    23.224] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[    23.224] (==) modeset(G0): RGB weight 888
[    23.224] (==) modeset(G0): Default visual is TrueColor
[    23.224] (II) Loading sub module "glamoregl"
[    23.224] (II) LoadModule: "glamoregl"
[    23.224] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    23.268] (II) Module glamoregl: vendor="X.Org Foundation"
[    23.268] 	compiled for 1.19.3, module version = 1.0.0
[    23.268] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    23.268] (II) glamor: OpenGL accelerated X.org driver based.
[    23.622] (II) glamor: EGL version 1.4 (DRI2):
[    23.718] (II) modeset(G0): glamor initialized
[    23.718] (II) modeset(G0): Output LVDS-1-1 has no monitor section
[    23.722] (II) modeset(G0): Output VGA-1-1 has no monitor section
[    23.730] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[    23.730] (II) modeset(G0): Output DP-1-1 has no monitor section
[    23.730] (II) modeset(G0): EDID for output LVDS-1-1
[    23.730] (II) modeset(G0): Manufacturer: SEC  Model: 314b  Serial#: 0
[    23.730] (II) modeset(G0): Year: 2011  Week: 0
[    23.730] (II) modeset(G0): EDID Version: 1.3
[    23.730] (II) modeset(G0): Digital Display Input
[    23.730] (II) modeset(G0): Max Image Size [cm]: horiz.: 34  vert.: 19
[    23.730] (II) modeset(G0): Gamma: 2.20
[    23.730] (II) modeset(G0): No DPMS capabilities specified
[    23.730] (II) modeset(G0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    23.730] (II) modeset(G0): First detailed timing is preferred mode
[    23.730] (II) modeset(G0): redX: 0.624 redY: 0.340   greenX: 0.327 greenY: 0.578
[    23.730] (II) modeset(G0): blueX: 0.154 blueY: 0.060   whiteX: 0.313 whiteY: 0.329
[    23.730] (II) modeset(G0): Manufacturer's mask: 0
[    23.730] (II) modeset(G0): Supported detailed timing:
[    23.730] (II) modeset(G0): clock: 100.4 MHz   Image Size:  344 x 194 mm
[    23.730] (II) modeset(G0): h_active: 1600  h_sync: 1648  h_sync_end 1680 h_blank_end 1792 h_border: 0
[    23.730] (II) modeset(G0): v_active: 900  v_sync: 902  v_sync_end 907 v_blanking: 932 v_border: 0
[    23.730] (II) modeset(G0): Unknown vendor-specific block f
[    23.730] (II) modeset(G0):  SAMSUNG
[    23.730] (II) modeset(G0):  LTN156KT068
[    23.730] (II) modeset(G0): EDID (in hex):
[    23.730] (II) modeset(G0): 	00ffffffffffff004ca34b3100000000
[    23.730] (II) modeset(G0): 	00150103802213780acc959f57539427
[    23.730] (II) modeset(G0): 	0f505400000001010101010101010101
[    23.730] (II) modeset(G0): 	010101010101382740c0608420303020
[    23.730] (II) modeset(G0): 	250058c2100000190000000f00000000
[    23.730] (II) modeset(G0): 	00000000004080091600000000fe0053
[    23.730] (II) modeset(G0): 	414d53554e470a2020202020000000fe
[    23.730] (II) modeset(G0): 	004c544e3135364b543036380a200035
[    23.730] (II) modeset(G0): Printing probed modes for output LVDS-1-1
[    23.730] (II) modeset(G0): Modeline "1600x900"x60.1  100.40  1600 1648 1680 1792  900 902 907 932 -hsync -vsync (56.0 kHz eP)
[    23.730] (II) modeset(G0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[    23.730] (II) modeset(G0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[    23.730] (II) modeset(G0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[    23.730] (II) modeset(G0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[    23.730] (II) modeset(G0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[    23.730] (II) modeset(G0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[    23.730] (II) modeset(G0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[    23.730] (II) modeset(G0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[    23.730] (II) modeset(G0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[    23.730] (II) modeset(G0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[    23.730] (II) modeset(G0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[    23.730] (II) modeset(G0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[    23.730] (II) modeset(G0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[    23.730] (II) modeset(G0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[    23.730] (II) modeset(G0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[    23.730] (II) modeset(G0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[    23.735] (II) modeset(G0): EDID for output VGA-1-1
[    23.742] (II) modeset(G0): EDID for output HDMI-1-1
[    23.742] (II) modeset(G0): EDID for output DP-1-1
[    23.742] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[    23.742] (==) modeset(G0): DPI set to (96, 96)
[    23.742] (II) Loading sub module "fb"
[    23.742] (II) LoadModule: "fb"
[    23.742] (II) Loading /usr/lib/xorg/modules/libfb.so
[    23.742] (II) Module fb: vendor="X.Org Foundation"
[    23.742] 	compiled for 1.19.3, module version = 1.0.0
[    23.742] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    23.742] (--) Depth 24 pixmap format is 32 bpp
[    23.853] (==) modeset(G0): Backing store enabled
[    23.853] (==) modeset(G0): Silken mouse enabled
[    23.854] (II) modeset(G0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    23.856] (==) modeset(G0): DPMS enabled
[    23.856] (WW) modeset(G0): Option "UseDisplayDevice" is not used
[    23.856] (II) modeset(G0): [DRI2] Setup complete
[    23.856] (II) modeset(G0): [DRI2]   DRI driver: i965
[    23.856] (II) modeset(G0): [DRI2]   VDPAU driver: i965
[    23.856] (II) NVIDIA: Using 12288.00 MB of virtual memory for indirect memory
[    23.856] (II) NVIDIA:     access.
[    23.859] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[    23.859] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[    23.859] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[    23.859] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[    23.859] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[    23.859] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[    23.859] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[    23.859] (II) NVIDIA(0):     Config Options in the README.
[    23.877] (II) NVIDIA(0): Built-in logo is bigger than the screen.
[    23.877] (II) NVIDIA(0): Setting mode "NULL"
[    23.881] (==) NVIDIA(0): Disabling shared memory pixmaps
[    23.881] (==) NVIDIA(0): Backing store enabled
[    23.881] (==) NVIDIA(0): Silken mouse enabled
[    23.881] (==) NVIDIA(0): DPMS enabled
[    23.888] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[    23.888] (II) Loading sub module "dri2"
[    23.888] (II) LoadModule: "dri2"
[    23.888] (II) Module "dri2" already built-in
[    23.888] (II) NVIDIA(0): [DRI2] Setup complete
[    23.888] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    23.888] (--) RandR disabled
[    23.893] (II) Initializing extension GLX
[    23.893] (II) Indirect GLX disabled.
[    24.144] (II) modeset(G0): Damage tracking initialized
[    24.375] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[    24.375] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    24.375] (II) LoadModule: "libinput"
[    24.375] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    24.393] (II) Module libinput: vendor="X.Org Foundation"
[    24.393] 	compiled for 1.19.2, module version = 0.25.0
[    24.393] 	Module class: X.Org XInput Driver
[    24.393] 	ABI class: X.Org XInput driver, version 24.1
[    24.393] (II) Using input driver 'libinput' for 'Power Button'
[    24.393] (**) Power Button: always reports core events
[    24.393] (**) Option "Device" "/dev/input/event3"
[    24.393] (**) Option "_source" "server/udev"
[    24.393] (II) input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard
[    24.393] (II) input device 'Power Button', /dev/input/event3 is a keyboard
[    24.417] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input10/event3"
[    24.417] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    24.417] (II) input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard
[    24.417] (II) input device 'Power Button', /dev/input/event3 is a keyboard
[    24.418] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[    24.418] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    24.418] (II) Using input driver 'libinput' for 'Video Bus'
[    24.418] (**) Video Bus: always reports core events
[    24.418] (**) Option "Device" "/dev/input/event7"
[    24.418] (**) Option "_source" "server/udev"
[    24.419] (II) input device 'Video Bus', /dev/input/event7 is tagged by udev as: Keyboard
[    24.419] (II) input device 'Video Bus', /dev/input/event7 is a keyboard
[    24.436] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input17/event7"
[    24.436] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[    24.437] (II) input device 'Video Bus', /dev/input/event7 is tagged by udev as: Keyboard
[    24.437] (II) input device 'Video Bus', /dev/input/event7 is a keyboard
[    24.438] (II) config/udev: Adding input device Video Bus (/dev/input/event6)
[    24.438] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    24.438] (II) Using input driver 'libinput' for 'Video Bus'
[    24.438] (**) Video Bus: always reports core events
[    24.438] (**) Option "Device" "/dev/input/event6"
[    24.438] (**) Option "_source" "server/udev"
[    24.439] (II) input device 'Video Bus', /dev/input/event6 is tagged by udev as: Keyboard
[    24.439] (II) input device 'Video Bus', /dev/input/event6 is a keyboard
[    24.456] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:39/LNXVIDEO:00/input/input16/event6"
[    24.456] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[    24.457] (II) input device 'Video Bus', /dev/input/event6 is tagged by udev as: Keyboard
[    24.457] (II) input device 'Video Bus', /dev/input/event6 is a keyboard
[    24.458] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[    24.458] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    24.458] (II) Using input driver 'libinput' for 'Power Button'
[    24.458] (**) Power Button: always reports core events
[    24.458] (**) Option "Device" "/dev/input/event2"
[    24.458] (**) Option "_source" "server/udev"
[    24.458] (II) input device 'Power Button', /dev/input/event2 is tagged by udev as: Keyboard
[    24.458] (II) input device 'Power Button', /dev/input/event2 is a keyboard
[    24.476] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input9/event2"
[    24.476] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[    24.477] (II) input device 'Power Button', /dev/input/event2 is tagged by udev as: Keyboard
[    24.477] (II) input device 'Power Button', /dev/input/event2 is a keyboard
[    24.478] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[    24.478] (II) No input driver specified, ignoring this device.
[    24.478] (II) This device may have been added with another device file.
[    24.479] (II) config/udev: Adding input device WebCam SC-13HDL12131N (/dev/input/event5)
[    24.479] (**) WebCam SC-13HDL12131N: Applying InputClass "libinput keyboard catchall"
[    24.479] (II) Using input driver 'libinput' for 'WebCam SC-13HDL12131N'
[    24.479] (**) WebCam SC-13HDL12131N: always reports core events
[    24.479] (**) Option "Device" "/dev/input/event5"
[    24.479] (**) Option "_source" "server/udev"
[    24.480] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is tagged by udev as: Keyboard
[    24.480] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is a keyboard
[    24.526] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input15/event5"
[    24.526] (II) XINPUT: Adding extended input device "WebCam SC-13HDL12131N" (type: KEYBOARD, id 10)
[    24.527] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is tagged by udev as: Keyboard
[    24.527] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is a keyboard
[    24.528] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event8)
[    24.528] (II) No input driver specified, ignoring this device.
[    24.528] (II) This device may have been added with another device file.
[    24.528] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event9)
[    24.528] (II) No input driver specified, ignoring this device.
[    24.528] (II) This device may have been added with another device file.
[    24.529] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event10)
[    24.529] (II) No input driver specified, ignoring this device.
[    24.529] (II) This device may have been added with another device file.
[    24.529] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    24.530] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[    24.530] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[    24.530] (**) AT Translated Set 2 keyboard: always reports core events
[    24.530] (**) Option "Device" "/dev/input/event0"
[    24.530] (**) Option "_source" "server/udev"
[    24.530] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[    24.530] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[    24.576] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[    24.576] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[    24.577] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[    24.577] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[    24.578] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event11)
[    24.578] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[    24.578] (II) Using input driver 'libinput' for 'ETPS/2 Elantech Touchpad'
[    24.578] (**) ETPS/2 Elantech Touchpad: always reports core events
[    24.578] (**) Option "Device" "/dev/input/event11"
[    24.578] (**) Option "_source" "server/udev"
[    24.579] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event11 is tagged by udev as: Touchpad
[    24.579] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event11 is a touchpad
[    24.617] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input11/event11"
[    24.617] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 12)
[    24.617] (**) Option "AccelerationScheme" "none"
[    24.617] (**) ETPS/2 Elantech Touchpad: (accel) selected scheme none/0
[    24.617] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[    24.617] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[    24.618] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event11 is tagged by udev as: Touchpad
[    24.618] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event11 is a touchpad
[    24.618] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0)
[    24.618] (II) No input driver specified, ignoring this device.
[    24.618] (II) This device may have been added with another device file.
[    24.619] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
[    24.619] (II) No input driver specified, ignoring this device.
[    24.619] (II) This device may have been added with another device file.

Offline

#4 2017-03-20 00:02:22

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] Optimus with Nvidia driver configuration issues

If you replace the system's current xorg.conf with the one suggsted by NVIDIA_Optimus what is the xorg.log then?
Also as jasonwryan noted the posted .xinitrc appears broken as it should execute the xrandr commands then terminate causing the X server to terminate but there is no indication of termination at the end of the posted /var/log/Xorg.0.log

Offline

#5 2017-03-20 01:10:52

kagronick
Member
Registered: 2017-03-19
Posts: 7

Re: [Solved] Optimus with Nvidia driver configuration issues

I don't even see .xinitrc starting. If I echo something else to /tmp at the top it doesn't print out. I have made some progress though. If I go to another terminal and set DISPLAY=:0. xrandr --listproviders is listing both providers. That is something it wasn't doing before. I can run the first command (--setprovideroutputsource modesetting NVIDIA-0). It only dies on xrandr --auto and it seems like a simple error.

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  7 (RRSetScreenSize)
  Serial number of failed request:  31
  Current serial number in output stream:  32

RRSetScreenSize seems like it just can't set the screen size.

Here is the xorg.conf that I'm using now:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Monitor"
    Identifier             "Monitor0"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0.0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier  "intel"
    Driver      "modesetting"
EndSection

Section "Screen"
    Identifier             "intel"  #Collapse Monitor and Device section to Screen section
    Device                 "intel"
    Monitor                "Monitor0"
    DefaultDepth            24 #Choose the depth (16||24)
    SubSection             "Display"
        Depth               24
        Modes              "1920x1080" #Choose the resolution
    EndSubSection
EndSection

Here is the new xorg log.

[   266.673] (--) Log file renamed from "/var/log/Xorg.pid-670.log" to "/var/log/Xorg.0.log"
[   266.674] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[   266.674] X Protocol Version 11, Revision 0
[   266.674] Build Operating System: Linux 4.9.11-1-ARCH x86_64 
[   266.674] Current Operating System: Linux archtop 4.10.3-1-ARCH #1 SMP PREEMPT Wed Mar 15 09:17:17 CET 2017 x86_64
[   266.674] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ffb1e0fb-fc4b-4bfa-a984-872a24251e0c rw quiet
[   266.674] Build Date: 16 March 2017  02:47:54PM
[   266.674]  
[   266.674] Current version of pixman: 0.34.0
[   266.674] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   266.674] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   266.674] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Mar 19 21:00:25 2017
[   266.674] (==) Using config file: "/etc/X11/xorg.conf"
[   266.674] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   266.674] (==) ServerLayout "Layout0"
[   266.674] (**) |-->Screen "nvidia" (0)
[   266.674] (**) |   |-->Monitor "<default monitor>"
[   266.674] (==) No device specified for screen "nvidia".
	Using the first device section listed.
[   266.674] (**) |   |-->Device "Device0"
[   266.674] (**) |   |-->GPUDevice "intel"
[   266.674] (==) No monitor specified for screen "nvidia".
	Using a default monitor configuration.
[   266.674] (**) |-->Inactive Device "intel"
[   266.674] (**) |-->Input Device "Keyboard0"
[   266.674] (**) |-->Input Device "Mouse0"
[   266.674] (==) Automatically adding devices
[   266.674] (==) Automatically enabling devices
[   266.674] (==) Automatically adding GPU devices
[   266.674] (==) Automatically binding GPU devices
[   266.674] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   266.674] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   266.674] 	Entry deleted from font path.
[   266.674] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   266.674] 	Entry deleted from font path.
[   266.674] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   266.674] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   266.674] 	Entry deleted from font path.
[   266.674] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   266.674] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[   266.674] (==) ModulePath set to "/usr/lib/xorg/modules"
[   266.674] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   266.674] (WW) Disabling Keyboard0
[   266.674] (WW) Disabling Mouse0
[   266.674] (II) Loader magic: 0x822d60
[   266.674] (II) Module ABI versions:
[   266.674] 	X.Org ANSI C Emulation: 0.4
[   266.674] 	X.Org Video Driver: 23.0
[   266.674] 	X.Org XInput driver : 24.1
[   266.674] 	X.Org Server Extension : 10.0
[   266.675] (++) using VT number 1

[   266.675] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   266.676] (II) xfree86: Adding drm device (/dev/dri/card1)
[   266.676] (II) xfree86: Adding drm device (/dev/dri/card0)
[   266.688] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[   266.688] (**) OutputClass "nvidia" setting /dev/dri/card1 as PrimaryGPU
[   266.689] (--) PCI: (0:0:2:0) 8086:0166:144d:c0d5 rev 9, Mem @ 0xf1000000/4194304, 0xe0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[   266.689] (--) PCI:*(0:1:0:0) 10de:1140:144d:c0d5 rev 161, Mem @ 0xf0000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00002000/128
[   266.689] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   266.689] (II) LoadModule: "glx"
[   266.689] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[   266.694] (II) Module glx: vendor="NVIDIA Corporation"
[   266.694] 	compiled for 4.0.2, module version = 1.0.0
[   266.694] 	Module class: X.Org Server Extension
[   266.694] (II) NVIDIA GLX Module  378.13  Tue Feb  7 18:25:34 PST 2017
[   266.694] (II) LoadModule: "nvidia"
[   266.695] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   266.695] (II) Module nvidia: vendor="NVIDIA Corporation"
[   266.695] 	compiled for 4.0.2, module version = 1.0.0
[   266.695] 	Module class: X.Org Video Driver
[   266.695] (II) LoadModule: "modesetting"
[   266.695] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   266.695] (II) Module modesetting: vendor="X.Org Foundation"
[   266.695] 	compiled for 1.19.3, module version = 1.19.3
[   266.695] 	Module class: X.Org Video Driver
[   266.695] 	ABI class: X.Org Video Driver, version 23.0
[   266.695] (II) NVIDIA dlloader X Driver  378.13  Tue Feb  7 18:01:51 PST 2017
[   266.695] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   266.695] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   266.707] (II) Loading sub module "fb"
[   266.707] (II) LoadModule: "fb"
[   266.708] (II) Loading /usr/lib/xorg/modules/libfb.so
[   266.708] (II) Module fb: vendor="X.Org Foundation"
[   266.708] 	compiled for 1.19.3, module version = 1.0.0
[   266.708] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   266.708] (II) Loading sub module "wfb"
[   266.708] (II) LoadModule: "wfb"
[   266.708] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   266.709] (II) Module wfb: vendor="X.Org Foundation"
[   266.709] 	compiled for 1.19.3, module version = 1.0.0
[   266.709] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   266.709] (II) Loading sub module "ramdac"
[   266.709] (II) LoadModule: "ramdac"
[   266.709] (II) Module "ramdac" already built-in
[   266.720] (II) modeset(G0): using drv /dev/dri/card0
[   266.720] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"nvidia" for depth/fbbpp 24/32
[   266.720] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   266.720] (==) NVIDIA(0): RGB weight 888
[   266.720] (==) NVIDIA(0): Default visual is TrueColor
[   266.720] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   266.720] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[   266.720] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[   266.721] (**) NVIDIA(0): Enabling 2D acceleration
[   266.834] (II) NVIDIA(0): NVIDIA GPU GeForce GT 630M (GF117) at PCI:1:0:0 (GPU-0)
[   266.834] (--) NVIDIA(0): Memory: 524288 kBytes
[   266.834] (--) NVIDIA(0): VideoBIOS: 75.17.32.00.fc
[   266.834] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[   266.834] (II) NVIDIA(0): Validated MetaModes:
[   266.834] (II) NVIDIA(0):     "NULL"
[   266.834] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[   266.834] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[   266.834] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[   266.834] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[   266.834] (==) modeset(G0): RGB weight 888
[   266.834] (==) modeset(G0): Default visual is TrueColor
[   266.834] (II) Loading sub module "glamoregl"
[   266.834] (II) LoadModule: "glamoregl"
[   266.834] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[   266.835] (II) Module glamoregl: vendor="X.Org Foundation"
[   266.835] 	compiled for 1.19.3, module version = 1.0.0
[   266.835] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   266.835] (II) glamor: OpenGL accelerated X.org driver based.
[   266.844] (II) glamor: EGL version 1.4 (DRI2):
[   266.847] (II) modeset(G0): glamor initialized
[   266.847] (II) modeset(G0): Output LVDS-1-1 has no monitor section
[   266.852] (II) modeset(G0): Output VGA-1-1 has no monitor section
[   266.860] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[   266.860] (II) modeset(G0): Output DP-1-1 has no monitor section
[   266.860] (II) modeset(G0): EDID for output LVDS-1-1
[   266.860] (II) modeset(G0): Manufacturer: SEC  Model: 314b  Serial#: 0
[   266.860] (II) modeset(G0): Year: 2011  Week: 0
[   266.860] (II) modeset(G0): EDID Version: 1.3
[   266.860] (II) modeset(G0): Digital Display Input
[   266.860] (II) modeset(G0): Max Image Size [cm]: horiz.: 34  vert.: 19
[   266.860] (II) modeset(G0): Gamma: 2.20
[   266.860] (II) modeset(G0): No DPMS capabilities specified
[   266.860] (II) modeset(G0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[   266.860] (II) modeset(G0): First detailed timing is preferred mode
[   266.860] (II) modeset(G0): redX: 0.624 redY: 0.340   greenX: 0.327 greenY: 0.578
[   266.860] (II) modeset(G0): blueX: 0.154 blueY: 0.060   whiteX: 0.313 whiteY: 0.329
[   266.860] (II) modeset(G0): Manufacturer's mask: 0
[   266.860] (II) modeset(G0): Supported detailed timing:
[   266.860] (II) modeset(G0): clock: 100.4 MHz   Image Size:  344 x 194 mm
[   266.860] (II) modeset(G0): h_active: 1600  h_sync: 1648  h_sync_end 1680 h_blank_end 1792 h_border: 0
[   266.860] (II) modeset(G0): v_active: 900  v_sync: 902  v_sync_end 907 v_blanking: 932 v_border: 0
[   266.860] (II) modeset(G0): Unknown vendor-specific block f
[   266.860] (II) modeset(G0):  SAMSUNG
[   266.860] (II) modeset(G0):  LTN156KT068
[   266.860] (II) modeset(G0): EDID (in hex):
[   266.860] (II) modeset(G0): 	00ffffffffffff004ca34b3100000000
[   266.860] (II) modeset(G0): 	00150103802213780acc959f57539427
[   266.860] (II) modeset(G0): 	0f505400000001010101010101010101
[   266.860] (II) modeset(G0): 	010101010101382740c0608420303020
[   266.860] (II) modeset(G0): 	250058c2100000190000000f00000000
[   266.860] (II) modeset(G0): 	00000000004080091600000000fe0053
[   266.860] (II) modeset(G0): 	414d53554e470a2020202020000000fe
[   266.860] (II) modeset(G0): 	004c544e3135364b543036380a200035
[   266.860] (II) modeset(G0): Printing probed modes for output LVDS-1-1
[   266.860] (II) modeset(G0): Modeline "1600x900"x60.1  100.40  1600 1648 1680 1792  900 902 907 932 -hsync -vsync (56.0 kHz eP)
[   266.860] (II) modeset(G0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[   266.860] (II) modeset(G0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[   266.860] (II) modeset(G0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[   266.860] (II) modeset(G0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[   266.860] (II) modeset(G0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[   266.860] (II) modeset(G0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[   266.860] (II) modeset(G0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[   266.860] (II) modeset(G0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[   266.860] (II) modeset(G0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[   266.860] (II) modeset(G0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[   266.860] (II) modeset(G0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[   266.860] (II) modeset(G0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[   266.860] (II) modeset(G0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[   266.860] (II) modeset(G0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[   266.860] (II) modeset(G0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[   266.860] (II) modeset(G0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[   266.865] (II) modeset(G0): EDID for output VGA-1-1
[   266.873] (II) modeset(G0): EDID for output HDMI-1-1
[   266.873] (II) modeset(G0): EDID for output DP-1-1
[   266.873] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[   266.873] (==) modeset(G0): DPI set to (96, 96)
[   266.873] (II) Loading sub module "fb"
[   266.873] (II) LoadModule: "fb"
[   266.873] (II) Loading /usr/lib/xorg/modules/libfb.so
[   266.873] (II) Module fb: vendor="X.Org Foundation"
[   266.873] 	compiled for 1.19.3, module version = 1.0.0
[   266.873] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   266.873] (--) Depth 24 pixmap format is 32 bpp
[   266.944] (==) modeset(G0): Backing store enabled
[   266.944] (==) modeset(G0): Silken mouse enabled
[   266.944] (II) modeset(G0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   266.944] (==) modeset(G0): DPMS enabled
[   266.944] (WW) modeset(G0): Option "AllowEmptyInitialConfiguration" is not used
[   266.944] (II) modeset(G0): [DRI2] Setup complete
[   266.944] (II) modeset(G0): [DRI2]   DRI driver: i965
[   266.944] (II) modeset(G0): [DRI2]   VDPAU driver: i965
[   266.944] (II) NVIDIA: Using 12288.00 MB of virtual memory for indirect memory
[   266.944] (II) NVIDIA:     access.
[   266.948] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[   266.948] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[   266.948] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[   266.948] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[   266.948] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[   266.948] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[   266.948] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[   266.948] (II) NVIDIA(0):     Config Options in the README.
[   266.965] (II) NVIDIA(0): Setting mode "NULL"
[   266.969] (==) NVIDIA(0): Disabling shared memory pixmaps
[   266.969] (==) NVIDIA(0): Backing store enabled
[   266.969] (==) NVIDIA(0): Silken mouse enabled
[   266.969] (==) NVIDIA(0): DPMS enabled
[   266.969] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[   266.969] (II) Loading sub module "dri2"
[   266.969] (II) LoadModule: "dri2"
[   266.969] (II) Module "dri2" already built-in
[   266.969] (II) NVIDIA(0): [DRI2] Setup complete
[   266.969] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[   266.969] (--) RandR disabled
[   266.971] (II) Initializing extension GLX
[   266.971] (II) Indirect GLX disabled.
[   267.227] (II) modeset(G0): Damage tracking initialized
[   267.270] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[   267.270] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   267.270] (II) LoadModule: "libinput"
[   267.271] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[   267.272] (II) Module libinput: vendor="X.Org Foundation"
[   267.272] 	compiled for 1.19.2, module version = 0.25.0
[   267.272] 	Module class: X.Org XInput Driver
[   267.272] 	ABI class: X.Org XInput driver, version 24.1
[   267.272] (II) Using input driver 'libinput' for 'Power Button'
[   267.272] (**) Power Button: always reports core events
[   267.272] (**) Option "Device" "/dev/input/event3"
[   267.272] (**) Option "_source" "server/udev"
[   267.272] (II) input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard
[   267.272] (II) input device 'Power Button', /dev/input/event3 is a keyboard
[   267.293] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4/event3"
[   267.293] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[   267.294] (II) input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard
[   267.294] (II) input device 'Power Button', /dev/input/event3 is a keyboard
[   267.295] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[   267.295] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   267.295] (II) Using input driver 'libinput' for 'Video Bus'
[   267.295] (**) Video Bus: always reports core events
[   267.295] (**) Option "Device" "/dev/input/event7"
[   267.295] (**) Option "_source" "server/udev"
[   267.295] (II) input device 'Video Bus', /dev/input/event7 is tagged by udev as: Keyboard
[   267.296] (II) input device 'Video Bus', /dev/input/event7 is a keyboard
[   267.313] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input11/event7"
[   267.313] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[   267.314] (II) input device 'Video Bus', /dev/input/event7 is tagged by udev as: Keyboard
[   267.314] (II) input device 'Video Bus', /dev/input/event7 is a keyboard
[   267.315] (II) config/udev: Adding input device Video Bus (/dev/input/event6)
[   267.315] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   267.315] (II) Using input driver 'libinput' for 'Video Bus'
[   267.315] (**) Video Bus: always reports core events
[   267.315] (**) Option "Device" "/dev/input/event6"
[   267.315] (**) Option "_source" "server/udev"
[   267.315] (II) input device 'Video Bus', /dev/input/event6 is tagged by udev as: Keyboard
[   267.315] (II) input device 'Video Bus', /dev/input/event6 is a keyboard
[   267.343] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:39/LNXVIDEO:00/input/input10/event6"
[   267.343] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[   267.344] (II) input device 'Video Bus', /dev/input/event6 is tagged by udev as: Keyboard
[   267.344] (II) input device 'Video Bus', /dev/input/event6 is a keyboard
[   267.345] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[   267.345] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   267.345] (II) Using input driver 'libinput' for 'Power Button'
[   267.345] (**) Power Button: always reports core events
[   267.345] (**) Option "Device" "/dev/input/event2"
[   267.345] (**) Option "_source" "server/udev"
[   267.345] (II) input device 'Power Button', /dev/input/event2 is tagged by udev as: Keyboard
[   267.345] (II) input device 'Power Button', /dev/input/event2 is a keyboard
[   267.363] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input3/event2"
[   267.363] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[   267.364] (II) input device 'Power Button', /dev/input/event2 is tagged by udev as: Keyboard
[   267.364] (II) input device 'Power Button', /dev/input/event2 is a keyboard
[   267.364] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[   267.365] (II) No input driver specified, ignoring this device.
[   267.365] (II) This device may have been added with another device file.
[   267.366] (II) config/udev: Adding input device WebCam SC-13HDL12131N (/dev/input/event5)
[   267.366] (**) WebCam SC-13HDL12131N: Applying InputClass "libinput keyboard catchall"
[   267.366] (II) Using input driver 'libinput' for 'WebCam SC-13HDL12131N'
[   267.366] (**) WebCam SC-13HDL12131N: always reports core events
[   267.366] (**) Option "Device" "/dev/input/event5"
[   267.366] (**) Option "_source" "server/udev"
[   267.367] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is tagged by udev as: Keyboard
[   267.367] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is a keyboard
[   267.413] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input8/event5"
[   267.413] (II) XINPUT: Adding extended input device "WebCam SC-13HDL12131N" (type: KEYBOARD, id 10)
[   267.414] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is tagged by udev as: Keyboard
[   267.414] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is a keyboard
[   267.415] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event11)
[   267.415] (II) No input driver specified, ignoring this device.
[   267.415] (II) This device may have been added with another device file.
[   267.415] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event9)
[   267.415] (II) No input driver specified, ignoring this device.
[   267.415] (II) This device may have been added with another device file.
[   267.416] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event10)
[   267.416] (II) No input driver specified, ignoring this device.
[   267.416] (II) This device may have been added with another device file.
[   267.416] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[   267.416] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[   267.416] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[   267.416] (**) AT Translated Set 2 keyboard: always reports core events
[   267.416] (**) Option "Device" "/dev/input/event0"
[   267.416] (**) Option "_source" "server/udev"
[   267.417] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[   267.417] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[   267.463] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[   267.463] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[   267.464] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[   267.464] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[   267.465] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event8)
[   267.465] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[   267.465] (II) Using input driver 'libinput' for 'ETPS/2 Elantech Touchpad'
[   267.465] (**) ETPS/2 Elantech Touchpad: always reports core events
[   267.465] (**) Option "Device" "/dev/input/event8"
[   267.465] (**) Option "_source" "server/udev"
[   267.465] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event8 is tagged by udev as: Touchpad
[   267.465] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event8 is a touchpad
[   267.513] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input9/event8"
[   267.513] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 12)
[   267.514] (**) Option "AccelerationScheme" "none"
[   267.514] (**) ETPS/2 Elantech Touchpad: (accel) selected scheme none/0
[   267.514] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[   267.514] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[   267.514] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event8 is tagged by udev as: Touchpad
[   267.514] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event8 is a touchpad
[   267.515] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0)
[   267.515] (II) No input driver specified, ignoring this device.
[   267.515] (II) This device may have been added with another device file.
[   267.515] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
[   267.516] (II) No input driver specified, ignoring this device.
[   267.516] (II) This device may have been added with another device file.

It may have something to do with xrandr --listmonitors and xrandr --listactivemonitors showing nothing.

At some point in all these configurations the monitor had backlight when X started. I think I probably need that to happen again.

Last edited by kagronick (2017-03-20 01:18:45)

Offline

#6 2017-03-20 23:01:57

kagronick
Member
Registered: 2017-03-19
Posts: 7

Re: [Solved] Optimus with Nvidia driver configuration issues

Heres where I'm at now. Using the exact configuration in the arch wiki for Optimus:

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

Produces this log:

[   891.686] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[   891.691] X Protocol Version 11, Revision 0
[   891.692] Build Operating System: Linux 4.9.11-1-ARCH x86_64 
[   891.692] Current Operating System: Linux archtop 4.10.3-1-ARCH #1 SMP PREEMPT Wed Mar 15 09:17:17 CET 2017 x86_64
[   891.692] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ffb1e0fb-fc4b-4bfa-a984-872a24251e0c rw quiet
[   891.694] Build Date: 16 March 2017  02:47:54PM
[   891.695]  
[   891.696] Current version of pixman: 0.34.0
[   891.698] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   891.698] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   891.702] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 20 18:57:59 2017
[   891.703] (==) Using config file: "/etc/X11/xorg.conf"
[   891.704] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   891.704] (==) No Layout section.  Using the first Screen section.
[   891.704] (==) No screen section available. Using defaults.
[   891.704] (**) |-->Screen "Default Screen Section" (0)
[   891.704] (**) |   |-->Monitor "<default monitor>"
[   891.705] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[   891.705] (**) |   |-->Device "nvidia"
[   891.705] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   891.705] (==) Automatically adding devices
[   891.705] (==) Automatically enabling devices
[   891.705] (==) Automatically adding GPU devices
[   891.705] (==) Automatically binding GPU devices
[   891.705] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   891.705] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   891.705] 	Entry deleted from font path.
[   891.705] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   891.705] 	Entry deleted from font path.
[   891.705] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   891.705] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   891.705] 	Entry deleted from font path.
[   891.705] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   891.705] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[   891.705] (==) ModulePath set to "/usr/lib/xorg/modules"
[   891.705] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   891.705] (II) Loader magic: 0x822d60
[   891.705] (II) Module ABI versions:
[   891.705] 	X.Org ANSI C Emulation: 0.4
[   891.705] 	X.Org Video Driver: 23.0
[   891.705] 	X.Org XInput driver : 24.1
[   891.705] 	X.Org Server Extension : 10.0
[   891.706] (--) using VT number 1

[   891.706] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   891.706] (II) xfree86: Adding drm device (/dev/dri/card1)
[   891.706] (II) xfree86: Adding drm device (/dev/dri/card0)
[   891.711] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[   891.711] (**) OutputClass "nvidia" setting /dev/dri/card1 as PrimaryGPU
[   891.712] (--) PCI: (0:0:2:0) 8086:0166:144d:c0d5 rev 9, Mem @ 0xf1000000/4194304, 0xe0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[   891.712] (--) PCI:*(0:1:0:0) 10de:1140:144d:c0d5 rev 161, Mem @ 0xf0000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00002000/128
[   891.712] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   891.712] (II) "glx" will be loaded by default.
[   891.712] (II) LoadModule: "modesetting"
[   891.712] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   891.712] (II) Module modesetting: vendor="X.Org Foundation"
[   891.712] 	compiled for 1.19.3, module version = 1.19.3
[   891.712] 	Module class: X.Org Video Driver
[   891.712] 	ABI class: X.Org Video Driver, version 23.0
[   891.712] (II) LoadModule: "glx"
[   891.712] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[   891.717] (II) Module glx: vendor="NVIDIA Corporation"
[   891.717] 	compiled for 4.0.2, module version = 1.0.0
[   891.717] 	Module class: X.Org Server Extension
[   891.717] (II) NVIDIA GLX Module  378.13  Tue Feb  7 18:25:34 PST 2017
[   891.717] (II) LoadModule: "nvidia"
[   891.717] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   891.717] (II) Module nvidia: vendor="NVIDIA Corporation"
[   891.717] 	compiled for 4.0.2, module version = 1.0.0
[   891.717] 	Module class: X.Org Video Driver
[   891.717] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   891.717] (II) NVIDIA dlloader X Driver  378.13  Tue Feb  7 18:01:51 PST 2017
[   891.717] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   891.733] (WW) Falling back to old probe method for modesetting
[   891.733] (II) Loading sub module "fb"
[   891.733] (II) LoadModule: "fb"
[   891.733] (II) Loading /usr/lib/xorg/modules/libfb.so
[   891.733] (II) Module fb: vendor="X.Org Foundation"
[   891.733] 	compiled for 1.19.3, module version = 1.0.0
[   891.733] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   891.733] (II) Loading sub module "wfb"
[   891.733] (II) LoadModule: "wfb"
[   891.733] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   891.734] (II) Module wfb: vendor="X.Org Foundation"
[   891.734] 	compiled for 1.19.3, module version = 1.0.0
[   891.734] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   891.734] (II) Loading sub module "ramdac"
[   891.734] (II) LoadModule: "ramdac"
[   891.734] (II) Module "ramdac" already built-in
[   891.744] (II) modeset(G0): using drv /dev/dri/card0
[   891.744] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   891.744] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   891.744] (==) NVIDIA(0): RGB weight 888
[   891.744] (==) NVIDIA(0): Default visual is TrueColor
[   891.744] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   891.744] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[   891.744] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[   891.744] (**) NVIDIA(0): Enabling 2D acceleration
[   891.863] (II) NVIDIA(0): NVIDIA GPU GeForce GT 630M (GF117) at PCI:1:0:0 (GPU-0)
[   891.863] (--) NVIDIA(0): Memory: 524288 kBytes
[   891.863] (--) NVIDIA(0): VideoBIOS: 75.17.32.00.fc
[   891.863] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[   891.863] (II) NVIDIA(0): Validated MetaModes:
[   891.863] (II) NVIDIA(0):     "NULL"
[   891.863] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[   891.863] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[   891.863] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[   891.863] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[   891.863] (==) modeset(G0): RGB weight 888
[   891.863] (==) modeset(G0): Default visual is TrueColor
[   891.863] (II) Loading sub module "glamoregl"
[   891.863] (II) LoadModule: "glamoregl"
[   891.863] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[   891.864] (II) Module glamoregl: vendor="X.Org Foundation"
[   891.864] 	compiled for 1.19.3, module version = 1.0.0
[   891.864] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   891.864] (II) glamor: OpenGL accelerated X.org driver based.
[   891.872] (II) glamor: EGL version 1.4 (DRI2):
[   891.875] (II) modeset(G0): glamor initialized
[   891.875] (II) modeset(G0): Output LVDS-1-1 has no monitor section
[   891.879] (II) modeset(G0): Output VGA-1-1 has no monitor section
[   891.886] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[   891.886] (II) modeset(G0): Output DP-1-1 has no monitor section
[   891.887] (II) modeset(G0): EDID for output LVDS-1-1
[   891.887] (II) modeset(G0): Manufacturer: SEC  Model: 314b  Serial#: 0
[   891.887] (II) modeset(G0): Year: 2011  Week: 0
[   891.887] (II) modeset(G0): EDID Version: 1.3
[   891.887] (II) modeset(G0): Digital Display Input
[   891.887] (II) modeset(G0): Max Image Size [cm]: horiz.: 34  vert.: 19
[   891.887] (II) modeset(G0): Gamma: 2.20
[   891.887] (II) modeset(G0): No DPMS capabilities specified
[   891.887] (II) modeset(G0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[   891.887] (II) modeset(G0): First detailed timing is preferred mode
[   891.887] (II) modeset(G0): redX: 0.624 redY: 0.340   greenX: 0.327 greenY: 0.578
[   891.887] (II) modeset(G0): blueX: 0.154 blueY: 0.060   whiteX: 0.313 whiteY: 0.329
[   891.887] (II) modeset(G0): Manufacturer's mask: 0
[   891.887] (II) modeset(G0): Supported detailed timing:
[   891.887] (II) modeset(G0): clock: 100.4 MHz   Image Size:  344 x 194 mm
[   891.887] (II) modeset(G0): h_active: 1600  h_sync: 1648  h_sync_end 1680 h_blank_end 1792 h_border: 0
[   891.887] (II) modeset(G0): v_active: 900  v_sync: 902  v_sync_end 907 v_blanking: 932 v_border: 0
[   891.887] (II) modeset(G0): Unknown vendor-specific block f
[   891.887] (II) modeset(G0):  SAMSUNG
[   891.887] (II) modeset(G0):  LTN156KT068
[   891.887] (II) modeset(G0): EDID (in hex):
[   891.887] (II) modeset(G0): 	00ffffffffffff004ca34b3100000000
[   891.887] (II) modeset(G0): 	00150103802213780acc959f57539427
[   891.887] (II) modeset(G0): 	0f505400000001010101010101010101
[   891.887] (II) modeset(G0): 	010101010101382740c0608420303020
[   891.887] (II) modeset(G0): 	250058c2100000190000000f00000000
[   891.887] (II) modeset(G0): 	00000000004080091600000000fe0053
[   891.887] (II) modeset(G0): 	414d53554e470a2020202020000000fe
[   891.887] (II) modeset(G0): 	004c544e3135364b543036380a200035
[   891.887] (II) modeset(G0): Printing probed modes for output LVDS-1-1
[   891.887] (II) modeset(G0): Modeline "1600x900"x60.1  100.40  1600 1648 1680 1792  900 902 907 932 -hsync -vsync (56.0 kHz eP)
[   891.887] (II) modeset(G0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[   891.887] (II) modeset(G0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[   891.887] (II) modeset(G0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[   891.887] (II) modeset(G0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[   891.887] (II) modeset(G0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[   891.887] (II) modeset(G0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[   891.887] (II) modeset(G0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[   891.887] (II) modeset(G0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[   891.887] (II) modeset(G0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[   891.887] (II) modeset(G0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[   891.887] (II) modeset(G0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[   891.887] (II) modeset(G0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[   891.887] (II) modeset(G0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[   891.887] (II) modeset(G0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[   891.887] (II) modeset(G0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[   891.887] (II) modeset(G0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[   891.892] (II) modeset(G0): EDID for output VGA-1-1
[   891.900] (II) modeset(G0): EDID for output HDMI-1-1
[   891.900] (II) modeset(G0): EDID for output DP-1-1
[   891.900] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[   891.900] (==) modeset(G0): DPI set to (96, 96)
[   891.900] (II) Loading sub module "fb"
[   891.900] (II) LoadModule: "fb"
[   891.900] (II) Loading /usr/lib/xorg/modules/libfb.so
[   891.900] (II) Module fb: vendor="X.Org Foundation"
[   891.900] 	compiled for 1.19.3, module version = 1.0.0
[   891.900] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   891.900] (--) Depth 24 pixmap format is 32 bpp
[   891.969] (==) modeset(G0): Backing store enabled
[   891.969] (==) modeset(G0): Silken mouse enabled
[   891.969] (II) modeset(G0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   891.969] (==) modeset(G0): DPMS enabled
[   891.969] (II) modeset(G0): [DRI2] Setup complete
[   891.969] (II) modeset(G0): [DRI2]   DRI driver: i965
[   891.969] (II) modeset(G0): [DRI2]   VDPAU driver: i965
[   891.969] (II) NVIDIA: Using 12288.00 MB of virtual memory for indirect memory
[   891.969] (II) NVIDIA:     access.
[   891.973] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[   891.973] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[   891.973] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[   891.973] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[   891.973] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[   891.973] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[   891.973] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[   891.973] (II) NVIDIA(0):     Config Options in the README.
[   891.987] (II) NVIDIA(0): Built-in logo is bigger than the screen.
[   891.987] (II) NVIDIA(0): Setting mode "NULL"
[   891.990] (==) NVIDIA(0): Disabling shared memory pixmaps
[   891.990] (==) NVIDIA(0): Backing store enabled
[   891.990] (==) NVIDIA(0): Silken mouse enabled
[   891.990] (==) NVIDIA(0): DPMS enabled
[   891.990] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[   891.990] (II) Loading sub module "dri2"
[   891.990] (II) LoadModule: "dri2"
[   891.990] (II) Module "dri2" already built-in
[   891.990] (II) NVIDIA(0): [DRI2] Setup complete
[   891.990] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[   891.990] (--) RandR disabled
[   891.992] (II) Initializing extension GLX
[   891.992] (II) Indirect GLX disabled.
[   892.232] (II) modeset(G0): Damage tracking initialized
[   892.279] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[   892.279] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   892.279] (II) LoadModule: "libinput"
[   892.279] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[   892.281] (II) Module libinput: vendor="X.Org Foundation"
[   892.281] 	compiled for 1.19.2, module version = 0.25.0
[   892.281] 	Module class: X.Org XInput Driver
[   892.281] 	ABI class: X.Org XInput driver, version 24.1
[   892.281] (II) Using input driver 'libinput' for 'Power Button'
[   892.281] (**) Power Button: always reports core events
[   892.281] (**) Option "Device" "/dev/input/event3"
[   892.281] (**) Option "_source" "server/udev"
[   892.282] (II) input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard
[   892.282] (II) input device 'Power Button', /dev/input/event3 is a keyboard
[   892.306] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4/event3"
[   892.306] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[   892.307] (II) input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard
[   892.307] (II) input device 'Power Button', /dev/input/event3 is a keyboard
[   892.308] (II) config/udev: Adding input device Video Bus (/dev/input/event8)
[   892.308] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   892.308] (II) Using input driver 'libinput' for 'Video Bus'
[   892.308] (**) Video Bus: always reports core events
[   892.308] (**) Option "Device" "/dev/input/event8"
[   892.308] (**) Option "_source" "server/udev"
[   892.309] (II) input device 'Video Bus', /dev/input/event8 is tagged by udev as: Keyboard
[   892.309] (II) input device 'Video Bus', /dev/input/event8 is a keyboard
[   892.326] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input11/event8"
[   892.326] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[   892.327] (II) input device 'Video Bus', /dev/input/event8 is tagged by udev as: Keyboard
[   892.327] (II) input device 'Video Bus', /dev/input/event8 is a keyboard
[   892.328] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[   892.328] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   892.328] (II) Using input driver 'libinput' for 'Video Bus'
[   892.328] (**) Video Bus: always reports core events
[   892.328] (**) Option "Device" "/dev/input/event7"
[   892.328] (**) Option "_source" "server/udev"
[   892.328] (II) input device 'Video Bus', /dev/input/event7 is tagged by udev as: Keyboard
[   892.329] (II) input device 'Video Bus', /dev/input/event7 is a keyboard
[   892.346] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:39/LNXVIDEO:00/input/input10/event7"
[   892.346] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[   892.347] (II) input device 'Video Bus', /dev/input/event7 is tagged by udev as: Keyboard
[   892.347] (II) input device 'Video Bus', /dev/input/event7 is a keyboard
[   892.348] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[   892.348] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   892.348] (II) Using input driver 'libinput' for 'Power Button'
[   892.348] (**) Power Button: always reports core events
[   892.348] (**) Option "Device" "/dev/input/event2"
[   892.348] (**) Option "_source" "server/udev"
[   892.348] (II) input device 'Power Button', /dev/input/event2 is tagged by udev as: Keyboard
[   892.348] (II) input device 'Power Button', /dev/input/event2 is a keyboard
[   892.366] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input3/event2"
[   892.366] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[   892.367] (II) input device 'Power Button', /dev/input/event2 is tagged by udev as: Keyboard
[   892.367] (II) input device 'Power Button', /dev/input/event2 is a keyboard
[   892.368] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[   892.368] (II) No input driver specified, ignoring this device.
[   892.368] (II) This device may have been added with another device file.
[   892.369] (II) config/udev: Adding input device WebCam SC-13HDL12131N (/dev/input/event5)
[   892.369] (**) WebCam SC-13HDL12131N: Applying InputClass "libinput keyboard catchall"
[   892.369] (II) Using input driver 'libinput' for 'WebCam SC-13HDL12131N'
[   892.369] (**) WebCam SC-13HDL12131N: always reports core events
[   892.369] (**) Option "Device" "/dev/input/event5"
[   892.369] (**) Option "_source" "server/udev"
[   892.370] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is tagged by udev as: Keyboard
[   892.370] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is a keyboard
[   892.416] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input9/event5"
[   892.416] (II) XINPUT: Adding extended input device "WebCam SC-13HDL12131N" (type: KEYBOARD, id 10)
[   892.417] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is tagged by udev as: Keyboard
[   892.417] (II) input device 'WebCam SC-13HDL12131N', /dev/input/event5 is a keyboard
[   892.418] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event11)
[   892.418] (II) No input driver specified, ignoring this device.
[   892.418] (II) This device may have been added with another device file.
[   892.418] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event9)
[   892.418] (II) No input driver specified, ignoring this device.
[   892.418] (II) This device may have been added with another device file.
[   892.419] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event10)
[   892.419] (II) No input driver specified, ignoring this device.
[   892.419] (II) This device may have been added with another device file.
[   892.420] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[   892.420] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[   892.420] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[   892.420] (**) AT Translated Set 2 keyboard: always reports core events
[   892.420] (**) Option "Device" "/dev/input/event0"
[   892.420] (**) Option "_source" "server/udev"
[   892.420] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[   892.420] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[   892.476] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[   892.476] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[   892.477] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[   892.477] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[   892.478] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event6)
[   892.478] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[   892.478] (II) Using input driver 'libinput' for 'ETPS/2 Elantech Touchpad'
[   892.478] (**) ETPS/2 Elantech Touchpad: always reports core events
[   892.478] (**) Option "Device" "/dev/input/event6"
[   892.478] (**) Option "_source" "server/udev"
[   892.479] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event6 is tagged by udev as: Touchpad
[   892.479] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event6 is a touchpad
[   892.517] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input8/event6"
[   892.517] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 12)
[   892.517] (**) Option "AccelerationScheme" "none"
[   892.517] (**) ETPS/2 Elantech Touchpad: (accel) selected scheme none/0
[   892.517] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[   892.517] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[   892.518] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event6 is tagged by udev as: Touchpad
[   892.518] (II) input device 'ETPS/2 Elantech Touchpad', /dev/input/event6 is a touchpad
[   892.518] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0)
[   892.518] (II) No input driver specified, ignoring this device.
[   892.518] (II) This device may have been added with another device file.
[   892.519] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
[   892.519] (II) No input driver specified, ignoring this device.
[   892.519] (II) This device may have been added with another device file.
[   892.534] randr: falling back to unsynchronized pixmap sharing
[   893.474] (II) UnloadModule: "libinput"
[   893.474] (II) UnloadModule: "libinput"
[   893.474] (II) UnloadModule: "libinput"
[   893.474] (II) UnloadModule: "libinput"
[   893.474] (II) UnloadModule: "libinput"
[   893.475] (II) UnloadModule: "libinput"
[   893.475] (II) UnloadModule: "libinput"
[   893.498] (II) NVIDIA(GPU-0): Deleting GPU-0
[   894.058] (II) Server terminated successfully (0). Closing log file.

What should I be running to test this? I have sddm set up. It seems to run fine with systemctrl start sddm. I've also tried xinit xterm which is what produced the above log file.

Last edited by kagronick (2017-03-20 23:02:23)

Offline

#7 2017-03-20 23:55:43

kagronick
Member
Registered: 2017-03-19
Posts: 7

Re: [Solved] Optimus with Nvidia driver configuration issues

I finally got it working

Here is the X config:

Section "Module"
	Load "modesetting"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Screen 0 "nvidia"
	Inactive "intel"
EndSection

Section "Device"
	Identifier "nvdia"
	Driver "nvidia"
	BusID "PCI:1:0:0"
	Option "AllowEmptyInitialConfiguration"
	Option "ConnectedMonitor" "CRT-0"
	Option "CustomEDID" "CRT-0:/sys/class/drm/card0-LVDS-1/edid"
	Option "IgnoreEDID" "false"
	Option "UseEDID" "true"
EndSection

Section "Screen"
	Identifier "nvidia"
	Device "nvidia"
	Option "UseDisplayDevice" "none"
EndSection

Section "Device"
	Identifier "intel"
	Driver "intel"
EndSection

Section "Screen"
	Identifier "intel"
	Device "intel"
EndSection

Here is the ~/.xinitrc

#!/bin/bash
xrandr --setprovideroutputsource Intel NVIDIA-0
xrandr --auto
exec startkde

If this ever helps anyone in the future: The Arch wiki tells you to put the xrandr commands in ~/.xinirc. Well SDDM doesn't even look there. You can test that your ~/.xinitrc commands are working with xinit xterm. When you want to use SDDM put your ~/.xinitrc in /usr/share/sddm/scripts/Xsetup. Without the startkde part.

Last edited by kagronick (2017-03-22 00:25:03)

Offline

Board footer

Powered by FluxBB