You are not logged in.

#1 2017-03-28 11:24:15

hynner
Member
Registered: 2016-02-18
Posts: 20

[SOLVED] Optimus - starting X on nvidia card

Hi, I'm trying to start X server on my Nvidia card. I have an optimus laptop (Dell Inspiron 7559) with intel and nvidia 960M cards, but so far I was unable to do so. Ultimately I would like to have one X on intel card for normal stuff and another one on nvidia card for games.

I have bumblebee and bbswitch installed. My system is fully updated. What i tried to do is to switch on the nvidia card using bbswitch and then start the X on nvidia card as specified on wiki https://wiki.archlinux.org/index.php/NVIDIA_Optimus
However I'm not able to execute

xrandr --setprovideroutputsource modesetting NVIDIA-0

because nvidia card doesnt have Source Output capability (in fact it has no capability at all).

So this is what i do:

echo ON > /proc/acpi/bbswitch
__GLX_VENDOR_LIBRARY_NAME=nvidia startx -- :1 vt8 -config nvidia-xorg.conf

nvidia-xorg.conf:

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

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:2:0:0"
EndSection

Section "Files"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

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

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

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

The file is basically taken from here: http://us.download.nvidia.com/XFree86/L … ndr14.html
I just added the files section, without it the X is unable to find GLX module. I also tried the config from arch wiki, but that didn't work either (as in nvidia card doesnt have source output capability).

Here is the Xorg.1.log

[  2395.121] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[  2395.125] X Protocol Version 11, Revision 0
[  2395.126] Build Operating System: Linux 4.9.11-1-ARCH x86_64 
[  2395.127] Current Operating System: Linux hynner-nb 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64
[  2395.127] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=0fdcbd14-2993-4378-b636-4831903be157 rw quiet acpi_backlight=native acpi_osi=! "acpi_osi=Windows 2009"
[  2395.130] Build Date: 16 March 2017  02:47:54PM
[  2395.131]  
[  2395.132] Current version of pixman: 0.34.0
[  2395.134] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  2395.134] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2395.138] (==) Log file: "/var/log/Xorg.1.log", Time: Tue Mar 28 13:00:38 2017
[  2395.140] (++) Using config file: "/root/nvidia-xorg.conf"
[  2395.141] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  2395.143] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  2395.143] (==) ServerLayout "layout"
[  2395.143] (**) |-->Screen "nvidia" (0)
[  2395.143] (**) |   |-->Monitor "<default monitor>"
[  2395.143] (**) |   |-->Device "nvidia"
[  2395.143] (**) |   |-->GPUDevice "intel"
[  2395.143] (==) No monitor specified for screen "nvidia".
	Using a default monitor configuration.
[  2395.143] (**) |-->Inactive Device "intel"
[  2395.143] (**) Option "DontZap" "false"
[  2395.143] (==) Automatically adding devices
[  2395.143] (==) Automatically enabling devices
[  2395.143] (==) Automatically adding GPU devices
[  2395.143] (==) Automatically binding GPU devices
[  2395.143] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  2395.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  2395.143] 	Entry deleted from font path.
[  2395.143] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  2395.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  2395.143] 	Entry deleted from font path.
[  2395.143] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  2395.143] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[  2395.143] (**) ModulePath set to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[  2395.143] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[  2395.143] (II) Loader magic: 0x822d60
[  2395.143] (II) Module ABI versions:
[  2395.143] 	X.Org ANSI C Emulation: 0.4
[  2395.143] 	X.Org Video Driver: 23.0
[  2395.143] 	X.Org XInput driver : 24.1
[  2395.143] 	X.Org Server Extension : 10.0
[  2395.143] (++) using VT number 8

[  2395.143] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[  2395.144] (II) xfree86: Adding drm device (/dev/dri/card0)
[  2395.145] (--) PCI:*(0:0:2:0) 8086:191b:1028:0706 rev 6, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[  2395.145] (--) PCI: (0:2:0:0) 10de:139b:1028:0706 rev 162, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[  2395.145] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  2395.145] (II) LoadModule: "glx"
[  2395.146] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[  2395.166] (II) Module glx: vendor="NVIDIA Corporation"
[  2395.166] 	compiled for 4.0.2, module version = 1.0.0
[  2395.166] 	Module class: X.Org Server Extension
[  2395.167] (II) NVIDIA GLX Module  378.13  Tue Feb  7 18:25:34 PST 2017
[  2395.167] (II) LoadModule: "nvidia"
[  2395.167] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  2395.167] (II) Module nvidia: vendor="NVIDIA Corporation"
[  2395.167] 	compiled for 4.0.2, module version = 1.0.0
[  2395.167] 	Module class: X.Org Video Driver
[  2395.167] (II) LoadModule: "modesetting"
[  2395.168] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  2395.168] (II) Module modesetting: vendor="X.Org Foundation"
[  2395.168] 	compiled for 1.19.3, module version = 1.19.3
[  2395.168] 	Module class: X.Org Video Driver
[  2395.168] 	ABI class: X.Org Video Driver, version 23.0
[  2395.168] (II) NVIDIA dlloader X Driver  378.13  Tue Feb  7 18:01:51 PST 2017
[  2395.168] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  2395.168] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  2395.182] (II) Loading sub module "fb"
[  2395.182] (II) LoadModule: "fb"
[  2395.183] (II) Loading /usr/lib/xorg/modules/libfb.so
[  2395.183] (II) Module fb: vendor="X.Org Foundation"
[  2395.183] 	compiled for 1.19.3, module version = 1.0.0
[  2395.183] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2395.183] (II) Loading sub module "wfb"
[  2395.183] (II) LoadModule: "wfb"
[  2395.183] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  2395.183] (II) Module wfb: vendor="X.Org Foundation"
[  2395.183] 	compiled for 1.19.3, module version = 1.0.0
[  2395.183] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2395.183] (II) Loading sub module "ramdac"
[  2395.183] (II) LoadModule: "ramdac"
[  2395.183] (II) Module "ramdac" already built-in
[  2395.184] (II) modeset(G0): using drv /dev/dri/card0
[  2395.184] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"nvidia" for depth/fbbpp 24/32
[  2395.184] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[  2395.184] (==) NVIDIA(0): RGB weight 888
[  2395.184] (==) NVIDIA(0): Default visual is TrueColor
[  2395.184] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  2395.184] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[  2395.184] (**) NVIDIA(0): Enabling 2D acceleration
[  2395.383] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 960M (GM107-A) at PCI:2:0:0 (GPU-0)
[  2395.383] (--) NVIDIA(0): Memory: 4194304 kBytes
[  2395.383] (--) NVIDIA(0): VideoBIOS: 82.07.7a.00.19
[  2395.383] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[  2395.383] (II) NVIDIA(0): Validated MetaModes:
[  2395.383] (II) NVIDIA(0):     "NULL"
[  2395.383] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[  2395.383] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[  2395.383] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[  2395.383] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[  2395.383] (==) modeset(G0): RGB weight 888
[  2395.383] (==) modeset(G0): Default visual is TrueColor
[  2395.383] (II) Loading sub module "glamoregl"
[  2395.383] (II) LoadModule: "glamoregl"
[  2395.384] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[  2395.384] (II) Module glamoregl: vendor="X.Org Foundation"
[  2395.384] 	compiled for 1.19.3, module version = 1.0.0
[  2395.384] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2395.384] (II) glamor: OpenGL accelerated X.org driver based.
[  2395.400] (II) glamor: EGL version 1.4 (DRI2):
[  2395.434] (II) modeset(G0): glamor initialized
[  2395.434] (II) modeset(G0): Output eDP-1-1 has no monitor section
[  2395.443] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[  2395.444] (II) modeset(G0): EDID for output eDP-1-1
[  2395.444] (II) modeset(G0): Manufacturer: BOE  Model: 62f  Serial#: 0
[  2395.444] (II) modeset(G0): Year: 2015  Week: 1
[  2395.444] (II) modeset(G0): EDID Version: 1.4
[  2395.444] (II) modeset(G0): Digital Display Input
[  2395.444] (II) modeset(G0): 6 bits per channel
[  2395.444] (II) modeset(G0): Digital interface is DisplayPort
[  2395.444] (II) modeset(G0): Max Image Size [cm]: horiz.: 34  vert.: 19
[  2395.444] (II) modeset(G0): Gamma: 2.20
[  2395.444] (II) modeset(G0): No DPMS capabilities specified
[  2395.444] (II) modeset(G0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[  2395.444] (II) modeset(G0): First detailed timing is preferred mode
[  2395.444] (II) modeset(G0): Preferred mode is native pixel format and refresh rate
[  2395.444] (II) modeset(G0): redX: 0.590 redY: 0.350   greenX: 0.329 greenY: 0.555
[  2395.444] (II) modeset(G0): blueX: 0.152 blueY: 0.118   whiteX: 0.312 whiteY: 0.328
[  2395.444] (II) modeset(G0): Manufacturer's mask: 0
[  2395.444] (II) modeset(G0): Supported detailed timing:
[  2395.444] (II) modeset(G0): clock: 141.4 MHz   Image Size:  344 x 194 mm
[  2395.444] (II) modeset(G0): h_active: 1920  h_sync: 1968  h_sync_end 2000 h_blank_end 2142 h_border: 0
[  2395.444] (II) modeset(G0): v_active: 1080  v_sync: 1083  v_sync_end 1089 v_blanking: 1100 v_border: 0
[  2395.444] (II) modeset(G0): Supported detailed timing:
[  2395.444] (II) modeset(G0): clock: 113.1 MHz   Image Size:  344 x 194 mm
[  2395.444] (II) modeset(G0): h_active: 1920  h_sync: 1968  h_sync_end 2000 h_blank_end 2142 h_border: 0
[  2395.444] (II) modeset(G0): v_active: 1080  v_sync: 1083  v_sync_end 1089 v_blanking: 1100 v_border: 0
[  2395.444] (II) modeset(G0):  YHDGT\80NV15N41
[  2395.444] (II) modeset(G0): Unknown vendor-specific block 0
[  2395.444] (II) modeset(G0): EDID (in hex):
[  2395.444] (II) modeset(G0): 	00ffffffffffff0009e52f0600000000
[  2395.444] (II) modeset(G0): 	01190104952213780a24109759548e27
[  2395.444] (II) modeset(G0): 	1e505400000001010101010101010101
[  2395.444] (II) modeset(G0): 	0101010101013c3780de703814403020
[  2395.444] (II) modeset(G0): 	360058c21000001a302c80de70381440
[  2395.444] (II) modeset(G0): 	3020360058c21000001a000000fe0059
[  2395.444] (II) modeset(G0): 	48444754804e5631354e343100000000
[  2395.444] (II) modeset(G0): 	0000411196000000000a010a2020006a
[  2395.444] (II) modeset(G0): Printing probed modes for output eDP-1-1
[  2395.444] (II) modeset(G0): Modeline "1920x1080"x60.0  141.40  1920 1968 2000 2142  1080 1083 1089 1100 +hsync -vsync (66.0 kHz eP)
[  2395.444] (II) modeset(G0): Modeline "1920x1080"x48.0  113.12  1920 1968 2000 2142  1080 1083 1089 1100 +hsync -vsync (52.8 kHz e)
[  2395.444] (II) modeset(G0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[  2395.444] (II) modeset(G0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[  2395.444] (II) modeset(G0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[  2395.444] (II) modeset(G0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[  2395.444] (II) modeset(G0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[  2395.444] (II) modeset(G0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[  2395.444] (II) modeset(G0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[  2395.444] (II) modeset(G0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[  2395.444] (II) modeset(G0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[  2395.444] (II) modeset(G0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[  2395.444] (II) modeset(G0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[  2395.444] (II) modeset(G0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[  2395.444] (II) modeset(G0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[  2395.444] (II) modeset(G0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[  2395.444] (II) modeset(G0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[  2395.444] (II) modeset(G0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[  2395.444] (II) modeset(G0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[  2395.444] (II) modeset(G0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[  2395.444] (II) modeset(G0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[  2395.452] (II) modeset(G0): EDID for output HDMI-1-1
[  2395.452] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[  2395.452] (==) modeset(G0): DPI set to (96, 96)
[  2395.452] (II) Loading sub module "fb"
[  2395.452] (II) LoadModule: "fb"
[  2395.452] (II) Loading /usr/lib/xorg/modules/libfb.so
[  2395.452] (II) Module fb: vendor="X.Org Foundation"
[  2395.452] 	compiled for 1.19.3, module version = 1.0.0
[  2395.452] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2395.452] (--) Depth 24 pixmap format is 32 bpp
[  2395.520] (==) modeset(G0): Backing store enabled
[  2395.520] (==) modeset(G0): Silken mouse enabled
[  2395.520] (II) modeset(G0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  2395.520] (==) modeset(G0): DPMS enabled
[  2395.520] (WW) modeset(G0): Option "AllowEmptyInitialConfiguration" is not used
[  2395.520] (II) modeset(G0): [DRI2] Setup complete
[  2395.520] (II) modeset(G0): [DRI2]   DRI driver: i965
[  2395.520] (II) modeset(G0): [DRI2]   VDPAU driver: i965
[  2395.520] (II) NVIDIA: Using 12288.00 MB of virtual memory for indirect memory
[  2395.520] (II) NVIDIA:     access.
[  2395.523] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[  2395.523] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[  2395.523] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[  2395.523] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[  2395.523] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[  2395.523] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[  2395.523] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[  2395.523] (II) NVIDIA(0):     Config Options in the README.
[  2395.538] (II) NVIDIA(0): Built-in logo is bigger than the screen.
[  2395.538] (II) NVIDIA(0): Setting mode "NULL"
[  2395.541] (==) NVIDIA(0): Disabling shared memory pixmaps
[  2395.541] (==) NVIDIA(0): Backing store enabled
[  2395.541] (==) NVIDIA(0): Silken mouse enabled
[  2395.541] (==) NVIDIA(0): DPMS enabled
[  2395.541] (II) Loading sub module "dri2"
[  2395.541] (II) LoadModule: "dri2"
[  2395.541] (II) Module "dri2" already built-in
[  2395.541] (II) NVIDIA(0): [DRI2] Setup complete
[  2395.541] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[  2395.541] (--) RandR disabled
[  2395.543] (II) Initializing extension GLX
[  2395.543] (II) Indirect GLX disabled.
[  2395.816] (II) modeset(G0): Damage tracking initialized
[  2395.897] (II) config/udev: Adding input device Power Button (/dev/input/event7)
[  2395.897] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[  2395.897] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[  2395.897] (**) Power Button: Applying InputClass "system-keyboard"
[  2395.897] (**) Power Button: Applying InputClass "Keyboard Defaults"
[  2395.897] (II) LoadModule: "libinput"
[  2395.897] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[  2395.900] (II) Module libinput: vendor="X.Org Foundation"
[  2395.900] 	compiled for 1.19.2, module version = 0.25.0
[  2395.900] 	Module class: X.Org XInput Driver
[  2395.900] 	ABI class: X.Org XInput driver, version 24.1
[  2395.900] (II) Using input driver 'libinput' for 'Power Button'
[  2395.900] (**) Power Button: always reports core events
[  2395.900] (**) Option "Device" "/dev/input/event7"
[  2395.900] (**) Option "_source" "server/udev"
[  2395.900] (II) input device 'Power Button', /dev/input/event7 is tagged by udev as: Keyboard
[  2395.900] (II) input device 'Power Button', /dev/input/event7 is a keyboard
[  2395.926] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input8/event7"
[  2395.926] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[  2395.926] (**) Option "xkb_layout" "cz"
[  2395.926] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2395.945] (II) input device 'Power Button', /dev/input/event7 is tagged by udev as: Keyboard
[  2395.945] (II) input device 'Power Button', /dev/input/event7 is a keyboard
[  2395.945] (II) config/udev: Adding input device Video Bus (/dev/input/event8)
[  2395.945] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[  2395.945] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[  2395.945] (**) Video Bus: Applying InputClass "system-keyboard"
[  2395.945] (**) Video Bus: Applying InputClass "Keyboard Defaults"
[  2395.945] (II) Using input driver 'libinput' for 'Video Bus'
[  2395.945] (**) Video Bus: always reports core events
[  2395.945] (**) Option "Device" "/dev/input/event8"
[  2395.945] (**) Option "_source" "server/udev"
[  2395.945] (II) input device 'Video Bus', /dev/input/event8 is tagged by udev as: Keyboard
[  2395.946] (II) input device 'Video Bus', /dev/input/event8 is a keyboard
[  2395.973] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input10/event8"
[  2395.973] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[  2395.973] (**) Option "xkb_layout" "cz"
[  2395.973] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2395.974] (II) input device 'Video Bus', /dev/input/event8 is tagged by udev as: Keyboard
[  2395.974] (II) input device 'Video Bus', /dev/input/event8 is a keyboard
[  2395.975] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
[  2395.975] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[  2395.975] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[  2395.975] (**) Video Bus: Applying InputClass "system-keyboard"
[  2395.975] (**) Video Bus: Applying InputClass "Keyboard Defaults"
[  2395.975] (II) Using input driver 'libinput' for 'Video Bus'
[  2395.975] (**) Video Bus: always reports core events
[  2395.975] (**) Option "Device" "/dev/input/event9"
[  2395.975] (**) Option "_source" "server/udev"
[  2395.976] (II) input device 'Video Bus', /dev/input/event9 is tagged by udev as: Keyboard
[  2395.976] (II) input device 'Video Bus', /dev/input/event9 is a keyboard
[  2395.993] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:3f/LNXVIDEO:01/input/input11/event9"
[  2395.993] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[  2395.993] (**) Option "xkb_layout" "cz"
[  2395.993] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2395.994] (II) input device 'Video Bus', /dev/input/event9 is tagged by udev as: Keyboard
[  2395.994] (II) input device 'Video Bus', /dev/input/event9 is a keyboard
[  2395.995] (II) config/udev: Adding input device Power Button (/dev/input/event5)
[  2395.995] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[  2395.995] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[  2395.995] (**) Power Button: Applying InputClass "system-keyboard"
[  2395.995] (**) Power Button: Applying InputClass "Keyboard Defaults"
[  2395.995] (II) Using input driver 'libinput' for 'Power Button'
[  2395.995] (**) Power Button: always reports core events
[  2395.995] (**) Option "Device" "/dev/input/event5"
[  2395.995] (**) Option "_source" "server/udev"
[  2395.995] (II) input device 'Power Button', /dev/input/event5 is tagged by udev as: Keyboard
[  2395.995] (II) input device 'Power Button', /dev/input/event5 is a keyboard
[  2396.013] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input6/event5"
[  2396.013] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[  2396.013] (**) Option "xkb_layout" "cz"
[  2396.013] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2396.014] (II) input device 'Power Button', /dev/input/event5 is tagged by udev as: Keyboard
[  2396.014] (II) input device 'Power Button', /dev/input/event5 is a keyboard
[  2396.015] (II) config/udev: Adding input device Lid Switch (/dev/input/event6)
[  2396.015] (II) No input driver specified, ignoring this device.
[  2396.015] (II) This device may have been added with another device file.
[  2396.015] (II) config/udev: Adding input device Sleep Button (/dev/input/event4)
[  2396.015] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[  2396.015] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[  2396.015] (**) Sleep Button: Applying InputClass "system-keyboard"
[  2396.015] (**) Sleep Button: Applying InputClass "Keyboard Defaults"
[  2396.015] (II) Using input driver 'libinput' for 'Sleep Button'
[  2396.015] (**) Sleep Button: always reports core events
[  2396.015] (**) Option "Device" "/dev/input/event4"
[  2396.016] (**) Option "_source" "server/udev"
[  2396.016] (II) input device 'Sleep Button', /dev/input/event4 is tagged by udev as: Keyboard
[  2396.016] (II) input device 'Sleep Button', /dev/input/event4 is a keyboard
[  2396.043] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input5/event4"
[  2396.043] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[  2396.043] (**) Option "xkb_layout" "cz"
[  2396.043] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2396.044] (II) input device 'Sleep Button', /dev/input/event4 is tagged by udev as: Keyboard
[  2396.044] (II) input device 'Sleep Button', /dev/input/event4 is a keyboard
[  2396.045] (II) config/udev: Adding input device Compx 2.4G Receiver (/dev/input/event1)
[  2396.045] (**) Compx 2.4G Receiver: Applying InputClass "evdev keyboard catchall"
[  2396.045] (**) Compx 2.4G Receiver: Applying InputClass "libinput keyboard catchall"
[  2396.046] (**) Compx 2.4G Receiver: Applying InputClass "system-keyboard"
[  2396.046] (**) Compx 2.4G Receiver: Applying InputClass "Keyboard Defaults"
[  2396.046] (II) Using input driver 'libinput' for 'Compx 2.4G Receiver'
[  2396.046] (**) Compx 2.4G Receiver: always reports core events
[  2396.046] (**) Option "Device" "/dev/input/event1"
[  2396.046] (**) Option "_source" "server/udev"
[  2396.046] (II) input device 'Compx 2.4G Receiver', /dev/input/event1 is tagged by udev as: Keyboard
[  2396.046] (II) input device 'Compx 2.4G Receiver', /dev/input/event1 is a keyboard
[  2396.093] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:1D57:FA60.0001/input/input2/event1"
[  2396.093] (II) XINPUT: Adding extended input device "Compx 2.4G Receiver" (type: KEYBOARD, id 11)
[  2396.093] (**) Option "xkb_layout" "cz"
[  2396.093] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2396.094] (II) input device 'Compx 2.4G Receiver', /dev/input/event1 is tagged by udev as: Keyboard
[  2396.094] (II) input device 'Compx 2.4G Receiver', /dev/input/event1 is a keyboard
[  2396.095] (II) config/udev: Adding input device Compx 2.4G Receiver (/dev/input/event2)
[  2396.095] (**) Compx 2.4G Receiver: Applying InputClass "evdev pointer catchall"
[  2396.095] (**) Compx 2.4G Receiver: Applying InputClass "libinput pointer catchall"
[  2396.095] (II) Using input driver 'libinput' for 'Compx 2.4G Receiver'
[  2396.095] (**) Compx 2.4G Receiver: always reports core events
[  2396.095] (**) Option "Device" "/dev/input/event2"
[  2396.095] (**) Option "_source" "server/udev"
[  2396.150] (II) input device 'Compx 2.4G Receiver', /dev/input/event2 is tagged by udev as: Mouse
[  2396.150] (II) input device 'Compx 2.4G Receiver', /dev/input/event2 is a pointer caps
[  2396.193] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/0003:1D57:FA60.0002/input/input3/event2"
[  2396.193] (II) XINPUT: Adding extended input device "Compx 2.4G Receiver" (type: MOUSE, id 12)
[  2396.193] (**) Option "AccelerationScheme" "none"
[  2396.193] (**) Compx 2.4G Receiver: (accel) selected scheme none/0
[  2396.193] (**) Compx 2.4G Receiver: (accel) acceleration factor: 2.000
[  2396.193] (**) Compx 2.4G Receiver: (accel) acceleration threshold: 4
[  2396.250] (II) input device 'Compx 2.4G Receiver', /dev/input/event2 is tagged by udev as: Mouse
[  2396.250] (II) input device 'Compx 2.4G Receiver', /dev/input/event2 is a pointer caps
[  2396.251] (II) config/udev: Adding input device Compx 2.4G Receiver (/dev/input/mouse0)
[  2396.251] (II) No input driver specified, ignoring this device.
[  2396.251] (II) This device may have been added with another device file.
[  2396.252] (II) config/udev: Adding input device Compx 2.4G Receiver (/dev/input/event3)
[  2396.252] (**) Compx 2.4G Receiver: Applying InputClass "evdev keyboard catchall"
[  2396.252] (**) Compx 2.4G Receiver: Applying InputClass "libinput keyboard catchall"
[  2396.252] (**) Compx 2.4G Receiver: Applying InputClass "system-keyboard"
[  2396.252] (**) Compx 2.4G Receiver: Applying InputClass "Keyboard Defaults"
[  2396.252] (II) Using input driver 'libinput' for 'Compx 2.4G Receiver'
[  2396.252] (**) Compx 2.4G Receiver: always reports core events
[  2396.252] (**) Option "Device" "/dev/input/event3"
[  2396.253] (**) Option "_source" "server/udev"
[  2396.253] (II) input device 'Compx 2.4G Receiver', /dev/input/event3 is tagged by udev as: Keyboard
[  2396.253] (II) input device 'Compx 2.4G Receiver', /dev/input/event3 is a keyboard
[  2396.300] (II) libinput: Compx 2.4G Receiver: needs a virtual subdevice
[  2396.300] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/0003:1D57:FA60.0003/input/input4/event3"
[  2396.300] (II) XINPUT: Adding extended input device "Compx 2.4G Receiver" (type: MOUSE, id 13)
[  2396.300] (**) Option "AccelerationScheme" "none"
[  2396.300] (**) Compx 2.4G Receiver: (accel) selected scheme none/0
[  2396.300] (**) Compx 2.4G Receiver: (accel) acceleration factor: 2.000
[  2396.300] (**) Compx 2.4G Receiver: (accel) acceleration threshold: 4
[  2396.301] (II) input device 'Compx 2.4G Receiver', /dev/input/event3 is tagged by udev as: Keyboard
[  2396.301] (II) input device 'Compx 2.4G Receiver', /dev/input/event3 is a keyboard
[  2396.302] (II) config/udev: Adding input device Integrated_Webcam_HD (/dev/input/event11)
[  2396.302] (**) Integrated_Webcam_HD: Applying InputClass "evdev keyboard catchall"
[  2396.302] (**) Integrated_Webcam_HD: Applying InputClass "libinput keyboard catchall"
[  2396.302] (**) Integrated_Webcam_HD: Applying InputClass "system-keyboard"
[  2396.302] (**) Integrated_Webcam_HD: Applying InputClass "Keyboard Defaults"
[  2396.302] (II) Using input driver 'libinput' for 'Integrated_Webcam_HD'
[  2396.302] (**) Integrated_Webcam_HD: always reports core events
[  2396.302] (**) Option "Device" "/dev/input/event11"
[  2396.302] (**) Option "_source" "server/udev"
[  2396.303] (II) input device 'Integrated_Webcam_HD', /dev/input/event11 is tagged by udev as: Keyboard
[  2396.303] (II) input device 'Integrated_Webcam_HD', /dev/input/event11 is a keyboard
[  2396.353] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/input/input14/event11"
[  2396.353] (II) XINPUT: Adding extended input device "Integrated_Webcam_HD" (type: KEYBOARD, id 14)
[  2396.353] (**) Option "xkb_layout" "cz"
[  2396.353] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2396.354] (II) input device 'Integrated_Webcam_HD', /dev/input/event11 is tagged by udev as: Keyboard
[  2396.354] (II) input device 'Integrated_Webcam_HD', /dev/input/event11 is a keyboard
[  2396.355] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event13)
[  2396.355] (II) No input driver specified, ignoring this device.
[  2396.355] (II) This device may have been added with another device file.
[  2396.355] (II) config/udev: Adding input device HDA Intel PCH Headphone Mic (/dev/input/event14)
[  2396.355] (II) No input driver specified, ignoring this device.
[  2396.355] (II) This device may have been added with another device file.
[  2396.356] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event15)
[  2396.356] (II) No input driver specified, ignoring this device.
[  2396.356] (II) This device may have been added with another device file.
[  2396.357] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event16)
[  2396.357] (II) No input driver specified, ignoring this device.
[  2396.357] (II) This device may have been added with another device file.
[  2396.357] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event17)
[  2396.357] (II) No input driver specified, ignoring this device.
[  2396.357] (II) This device may have been added with another device file.
[  2396.358] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[  2396.358] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[  2396.358] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[  2396.358] (**) AT Translated Set 2 keyboard: Applying InputClass "system-keyboard"
[  2396.358] (**) AT Translated Set 2 keyboard: Applying InputClass "Keyboard Defaults"
[  2396.358] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[  2396.358] (**) AT Translated Set 2 keyboard: always reports core events
[  2396.358] (**) Option "Device" "/dev/input/event0"
[  2396.358] (**) Option "_source" "server/udev"
[  2396.359] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[  2396.359] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[  2396.406] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[  2396.406] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 15)
[  2396.406] (**) Option "xkb_layout" "cz"
[  2396.406] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2396.407] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[  2396.407] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[  2396.408] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event12)
[  2396.408] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchpad catchall"
[  2396.408] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[  2396.408] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall"
[  2396.408] (**) ETPS/2 Elantech Touchpad: Applying InputClass "Default clickpad buttons"
[  2396.408] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall"
[  2396.408] (**) ETPS/2 Elantech Touchpad: Applying InputClass "Default clickpad buttons"
[  2396.408] (II) LoadModule: "synaptics"
[  2396.409] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
[  2396.412] (II) Module synaptics: vendor="X.Org Foundation"
[  2396.412] 	compiled for 1.19.0, module version = 1.9.0
[  2396.412] 	Module class: X.Org XInput Driver
[  2396.412] 	ABI class: X.Org XInput driver, version 24.1
[  2396.412] (II) Using input driver 'synaptics' for 'ETPS/2 Elantech Touchpad'
[  2396.412] (**) ETPS/2 Elantech Touchpad: always reports core events
[  2396.412] (**) Option "Device" "/dev/input/event12"
[  2396.460] (II) synaptics: ETPS/2 Elantech Touchpad: found clickpad property
[  2396.460] (--) synaptics: ETPS/2 Elantech Touchpad: x-axis range 0 - 3220 (res 31)
[  2396.460] (--) synaptics: ETPS/2 Elantech Touchpad: y-axis range 0 - 2422 (res 31)
[  2396.460] (--) synaptics: ETPS/2 Elantech Touchpad: pressure range 0 - 255
[  2396.460] (--) synaptics: ETPS/2 Elantech Touchpad: finger width range 0 - 15
[  2396.460] (--) synaptics: ETPS/2 Elantech Touchpad: buttons: left double triple
[  2396.460] (--) synaptics: ETPS/2 Elantech Touchpad: Vendor 0x2 Product 0xe
[  2396.460] (**) Option "TapButton1" "1"
[  2396.460] (**) Option "TapButton2" "2"
[  2396.460] (**) Option "TapButton3" "3"
[  2396.460] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[  2396.460] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
[  2396.460] (**) ETPS/2 Elantech Touchpad: always reports core events
[  2396.503] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input9/event12"
[  2396.503] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 16)
[  2396.503] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MinSpeed is now constant deceleration 2.5
[  2396.503] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MaxSpeed is now 1.75
[  2396.503] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) AccelFactor is now 0.050
[  2396.503] (**) ETPS/2 Elantech Touchpad: (accel) keeping acceleration scheme 1
[  2396.503] (**) ETPS/2 Elantech Touchpad: (accel) acceleration profile 1
[  2396.503] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[  2396.503] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[  2396.504] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
[  2396.504] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse1)
[  2396.504] (**) ETPS/2 Elantech Touchpad: Ignoring device from InputClass "touchpad ignore duplicates"
[  2396.505] (II) config/udev: Adding input device Dell WMI hotkeys (/dev/input/event10)
[  2396.505] (**) Dell WMI hotkeys: Applying InputClass "evdev keyboard catchall"
[  2396.505] (**) Dell WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[  2396.505] (**) Dell WMI hotkeys: Applying InputClass "system-keyboard"
[  2396.505] (**) Dell WMI hotkeys: Applying InputClass "Keyboard Defaults"
[  2396.505] (II) Using input driver 'libinput' for 'Dell WMI hotkeys'
[  2396.505] (**) Dell WMI hotkeys: always reports core events
[  2396.505] (**) Option "Device" "/dev/input/event10"
[  2396.505] (**) Option "_source" "server/udev"
[  2396.506] (II) input device 'Dell WMI hotkeys', /dev/input/event10 is tagged by udev as: Keyboard
[  2396.506] (II) input device 'Dell WMI hotkeys', /dev/input/event10 is a keyboard
[  2396.543] (**) Option "config_info" "udev:/sys/devices/virtual/input/input12/event10"
[  2396.543] (II) XINPUT: Adding extended input device "Dell WMI hotkeys" (type: KEYBOARD, id 17)
[  2396.543] (**) Option "xkb_layout" "cz"
[  2396.543] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  2396.544] (II) input device 'Dell WMI hotkeys', /dev/input/event10 is tagged by udev as: Keyboard
[  2396.544] (II) input device 'Dell WMI hotkeys', /dev/input/event10 is a keyboard
[  2396.550] (**) Compx 2.4G Receiver: Applying InputClass "evdev keyboard catchall"
[  2396.550] (**) Compx 2.4G Receiver: Applying InputClass "libinput keyboard catchall"
[  2396.550] (**) Compx 2.4G Receiver: Applying InputClass "system-keyboard"
[  2396.550] (**) Compx 2.4G Receiver: Applying InputClass "Keyboard Defaults"
[  2396.550] (II) Using input driver 'libinput' for 'Compx 2.4G Receiver'
[  2396.550] (**) Compx 2.4G Receiver: always reports core events
[  2396.550] (**) Option "Device" "/dev/input/event3"
[  2396.550] (**) Option "_source" "_driver/libinput"
[  2396.550] (II) libinput: Compx 2.4G Receiver: is a virtual subdevice
[  2396.550] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/0003:1D57:FA60.0003/input/input4/event3"
[  2396.550] (II) XINPUT: Adding extended input device "Compx 2.4G Receiver" (type: KEYBOARD, id 18)
[  2396.550] (**) Option "xkb_layout" "cz"
[  2396.550] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"

xrandr output:

# DISPLAY=:1 xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x203 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-0
Provider 1: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting

Rendering doesnt work at all:

# DISPLAY=:1 glxgears -info
Error: couldn't get an RGB, Double-buffered visual

What am I doing wrong? And is what I'm trying to do even possible?

Thanks.

Last edited by hynner (2017-03-30 07:38:35)

Offline

#2 2017-03-29 08:41:17

hynner
Member
Registered: 2016-02-18
Posts: 20

Re: [SOLVED] Optimus - starting X on nvidia card

I've moved a little further with this: I found out, that i have to run (apparently it's disabled by bumblebee)

modprobe nvidia-drm

and add

    Option      "AccelMethod"  "sna"

to my intel part of my X config (as suggested by alternative config on optimus wiki page) before starting the X on nvidia card. This way

xrandr --setprovideroutputsource modesetting NVIDIA-0

finally works, however now I have a problem with

# DISPLAY=:1 xrandr --auto
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:  27
  Current serial number in output stream:  28

And I cant see any output when I switch to vt8.

But at least now I'm able to run glxgears -info and it actually runs on Nvidia card. Any ideas on why the xrandr --auto command doesnt work?

Offline

#3 2017-03-29 08:53:20

hynner
Member
Registered: 2016-02-18
Posts: 20

Re: [SOLVED] Optimus - starting X on nvidia card

I found out, that if I kill my primary X server and start the nvidia one, it works and I can see the output. So am I correct to assume, that it's just not possible to share one monitor between two X servers?

Offline

#4 2017-03-30 07:38:16

hynner
Member
Registered: 2016-02-18
Posts: 20

Re: [SOLVED] Optimus - starting X on nvidia card

So I managed to do it - turns out the X doesn't auto detect a monitor when it's already used, so I just specified it manually and was able to start the second X and switch between them.
The relevant part of the config now looks like this:

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

Offline

Board footer

Powered by FluxBB