Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X hangs using nvidia driver with optimus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
herberteuler
n00b
n00b


Joined: 02 Apr 2005
Posts: 33

PostPosted: Sun Jul 20, 2014 7:01 am    Post subject: X hangs using nvidia driver with optimus Reply with quote

Greetings,

I followed http://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops to try nvidia optimus, the driver itself seems to have been successfully loaded, but X hangs.

Packages installed:

Code:

gentoo-sources: 3.12.21-r1
x11-base/xorg-x11: 7.4-r2
x11-drivers/nvidia-drivers: 340.24
x11-terms/xterm: 297


Here is X's configuration file:

Code:

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

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID  "1@0:0:0"
    Option "ConnectedMonitor" "DFP-0"
    Option "CustomEDID" "DFP-0:/lib/firmware/edid/1920x1080_Clevo_W670SR.bin"
    Option "UseEDID" "True"
    Option "ModeValidation" "NoVirtualSizeCheck"
EndSection

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

Section "Device"
    Identifier "intel"
EndSection

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


And I have edited .xinitrc to contain a single line "xterm", so this is probably the simplest form of starting X.

During the process, the screen is switched to the seventh one, but a console cursor (an underline) is shown at the top-left and it does not even blink. The other part of the screen is black background with nothing as foreground. It seems that the screen has not been in graphics mode, but still in text mode. However, I can press Ctrl-Alt-F1 to switch to the original tty where I run startx.

Here is the log shown on the console:

Code:

Current Operating System: Linux herberteuler 3.12.21-gentoo-r1 #2 SMP PREEMPT Sat Jul 19 18:05:50 CST 2014 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.12.21-gentoo-r1 root=/dev/sda1 ro
Build Date: 28 March 2014  12:39:48PM

Current version of pixman: 0.32.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Jul 20 14:25:40 2014
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
setversion 1.4 failed: Permission denied
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
Loading extension NV-GLX
Loading extension NV-CONTROL
Loading extension XINERAMA
setversion 1.4 failed: Permission denied
^Cxinit: connection to X server lost

waiting for X server to shut down xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":1"
(EE) Server terminated successfully (0). Closing log file.

xinit: unexpected signal 2


Notice the ^C at the end of the log, where I pressed Ctrl-C to stop X.

Here is X's log:

Code:

[    55.301]
X.Org X Server 1.15.0
Release Date: 2013-12-27
[    55.303] X Protocol Version 11, Revision 0
[    55.303] Build Operating System: Linux 3.12.13-gentoo x86_64 Gentoo
[    55.304] Current Operating System: Linux herberteuler 3.12.21-gentoo-r1 #2 SMP PREEMPT Sat Jul 19 18:05:50 CST 2014 x86_64
[    55.304] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.12.21-gentoo-r1 root=/dev/sda1 ro
[    55.305] Build Date: 28 March 2014  12:39:48PM
[    55.305] 
[    55.306] Current version of pixman: 0.32.4
[    55.307]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    55.307] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    55.309] (==) Log file: "/var/log/Xorg.1.log", Time: Sun Jul 20 14:26:08 2014
[    55.310] (==) Using config file: "/etc/X11/xorg.conf"
[    55.310] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    55.311] (==) ServerLayout "layout"
[    55.311] (**) |-->Screen "nvidia" (0)
[    55.311] (**) |   |-->Monitor "<default monitor>"
[    55.311] (**) |   |-->Device "nvidia"
[    55.311] (==) No monitor specified for screen "nvidia".
   Using a default monitor configuration.
[    55.311] (**) |-->Inactive Device "intel"
[    55.311] (==) Automatically adding devices
[    55.311] (==) Automatically enabling devices
[    55.311] (==) Automatically adding GPU devices
[    55.311] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/TTF/,
   /usr/share/fonts/OTF/,
   /usr/share/fonts/Type1/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[    55.311] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    55.311] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    55.311] (II) Loader magic: 0x809c60
[    55.311] (II) Module ABI versions:
[    55.311]    X.Org ANSI C Emulation: 0.4
[    55.311]    X.Org Video Driver: 15.0
[    55.311]    X.Org XInput driver : 20.0
[    55.311]    X.Org Server Extension : 8.0
[    55.311] (II) xfree86: Adding drm device (/dev/dri/card1)
[    55.312] setversion 1.4 failed: Permission denied
[    55.312] (II) xfree86: Adding drm device (/dev/dri/card0)
[    55.313] (--) PCI:*(0:0:2:0) 8086:0166:17aa:21f4 rev 9, Mem @ 0xf1400000/4194304, 0xe0000000/268435456, I/O @ 0x00006000/64
[    55.313] (--) PCI: (0:1:0:0) 10de:0def:17aa:21f4 rev 161, Mem @ 0xf0000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/524288
[    55.314] Initializing built-in extension Generic Event Extension
[    55.314] Initializing built-in extension SHAPE
[    55.315] Initializing built-in extension MIT-SHM
[    55.315] Initializing built-in extension XInputExtension
[    55.315] Initializing built-in extension XTEST
[    55.316] Initializing built-in extension BIG-REQUESTS
[    55.316] Initializing built-in extension SYNC
[    55.317] Initializing built-in extension XKEYBOARD
[    55.317] Initializing built-in extension XC-MISC
[    55.317] Initializing built-in extension XINERAMA
[    55.318] Initializing built-in extension XFIXES
[    55.318] Initializing built-in extension RENDER
[    55.319] Initializing built-in extension RANDR
[    55.319] Initializing built-in extension COMPOSITE
[    55.319] Initializing built-in extension DAMAGE
[    55.320] Initializing built-in extension MIT-SCREEN-SAVER
[    55.320] Initializing built-in extension DOUBLE-BUFFER
[    55.321] Initializing built-in extension RECORD
[    55.321] Initializing built-in extension DPMS
[    55.322] Initializing built-in extension Present
[    55.322] Initializing built-in extension DRI3
[    55.322] Initializing built-in extension X-Resource
[    55.323] Initializing built-in extension XVideo
[    55.323] Initializing built-in extension XVideo-MotionCompensation
[    55.324] Initializing built-in extension XFree86-VidModeExtension
[    55.324] Initializing built-in extension XFree86-DGA
[    55.324] Initializing built-in extension XFree86-DRI
[    55.325] Initializing built-in extension DRI2
[    55.325] (II) LoadModule: "glx"
[    55.325] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    55.332] (II) Module glx: vendor="NVIDIA Corporation"
[    55.332]    compiled for 4.0.2, module version = 1.0.0
[    55.332]    Module class: X.Org Server Extension
[    55.332] (II) NVIDIA GLX Module  340.24  Wed Jul  2 15:04:31 PDT 2014
[    55.332] Loading extension GLX
[    55.332] (II) LoadModule: "nvidia"
[    55.332] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    55.333] (II) Module nvidia: vendor="NVIDIA Corporation"
[    55.333]    compiled for 4.0.2, module version = 1.0.0
[    55.333]    Module class: X.Org Video Driver
[    55.333] (II) NVIDIA dlloader X Driver  340.24  Wed Jul  2 14:42:23 PDT 2014
[    55.333] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    55.333] (--) using VT number 8

[    55.335] (II) Loading sub module "fb"
[    55.335] (II) LoadModule: "fb"
[    55.335] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    55.335] (II) Module fb: vendor="X.Org Foundation"
[    55.335]    compiled for 1.15.0, module version = 1.0.0
[    55.335]    ABI class: X.Org ANSI C Emulation, version 0.4
[    55.335] (WW) Unresolved symbol: fbGetGCPrivateKey
[    55.335] (II) Loading sub module "wfb"
[    55.335] (II) LoadModule: "wfb"
[    55.335] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[    55.336] (II) Module wfb: vendor="X.Org Foundation"
[    55.336]    compiled for 1.15.0, module version = 1.0.0
[    55.336]    ABI class: X.Org ANSI C Emulation, version 0.4
[    55.336] (II) Loading sub module "ramdac"
[    55.336] (II) LoadModule: "ramdac"
[    55.336] (II) Module "ramdac" already built-in
[    55.336] (II) NVIDIA(0): Creating default Display subsection in Screen section
   "nvidia" for depth/fbbpp 24/32
[    55.336] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    55.336] (==) NVIDIA(0): RGB weight 888
[    55.336] (==) NVIDIA(0): Default visual is TrueColor
[    55.336] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    55.337] (**) NVIDIA(0): Option "ModeValidation" "NoVirtualSizeCheck"
[    55.337] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[    55.337] (**) NVIDIA(0): Option "UseEDID" "True"
[    55.337] (**) NVIDIA(0): Option "ConnectedMonitor" "DFP-0"
[    55.337] (**) NVIDIA(0): Option "CustomEDID" "DFP-0:/lib/firmware/edid/1920x1080_Clevo_W670SR.bin"
[    55.337] (**) NVIDIA(0): Enabling 2D acceleration
[    55.337] (**) NVIDIA(0): ConnectedMonitor string: "DFP-0"
[    55.351] (II) NVIDIA(0): Using ConnectedMonitor string "DFP-0".
[    55.352] (II) NVIDIA(0): Display (CMN (DFP-0)) does not support NVIDIA 3D Vision
[    55.352] (II) NVIDIA(0):     stereo.
[    55.352] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[    55.352] (II) NVIDIA(0): NVIDIA GPU NVS 5400M (GF108) at PCI:1:0:0 (GPU-0)
[    55.352] (--) NVIDIA(0): Memory: 1048576 kBytes
[    55.352] (--) NVIDIA(0): VideoBIOS: 70.08.b7.02.02
[    55.352] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    55.358] (--) NVIDIA(0): Valid display device(s) on NVS 5400M at PCI:1:0:0
[    55.358] (--) NVIDIA(0):     CRT-0
[    55.358] (--) NVIDIA(0):     CMN (DFP-0) (connected)
[    55.358] (--) NVIDIA(0):     DFP-1
[    55.358] (--) NVIDIA(0):     DFP-2
[    55.358] (--) NVIDIA(0):     DFP-3
[    55.358] (--) NVIDIA(0):     DFP-4
[    55.358] (--) NVIDIA(0):     DFP-5
[    55.358] (--) NVIDIA(0):     DFP-6
[    55.358] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
[    55.358] (--) NVIDIA(0): CMN (DFP-0): Internal LVDS
[    55.358] (--) NVIDIA(GPU-0): CMN (DFP-0): 330.0 MHz maximum pixel clock
[    55.358] (--) NVIDIA(0): DFP-1: Internal TMDS
[    55.358] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    55.358] (--) NVIDIA(0): DFP-2: Internal TMDS
[    55.358] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[    55.358] (--) NVIDIA(0): DFP-3: Internal TMDS
[    55.358] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[    55.358] (--) NVIDIA(0): DFP-4: Internal DisplayPort
[    55.358] (--) NVIDIA(GPU-0): DFP-4: 480.0 MHz maximum pixel clock
[    55.358] (--) NVIDIA(0): DFP-5: Internal DisplayPort
[    55.358] (--) NVIDIA(GPU-0): DFP-5: 480.0 MHz maximum pixel clock
[    55.358] (--) NVIDIA(0): DFP-6: Internal DisplayPort
[    55.358] (--) NVIDIA(GPU-0): DFP-6: 480.0 MHz maximum pixel clock
[    55.358] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[    55.358] (**) NVIDIA(0):     device CMN (DFP-0) (Using EDID frequencies has been
[    55.358] (**) NVIDIA(0):     enabled on all display devices.)
[    55.358] (II) NVIDIA(GPU-0): Mode Validation Overrides for CMN (DFP-0):
[    55.358] (II) NVIDIA(GPU-0):     NoVirtualSizeCheck
[    55.358] (==) NVIDIA(0):
[    55.358] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[    55.358] (==) NVIDIA(0):     will be used as the requested mode.
[    55.358] (==) NVIDIA(0):
[    55.358] (II) NVIDIA(0): Validated MetaModes:
[    55.358] (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
[    55.358] (II) NVIDIA(0): Virtual screen size determined to be 1366 x 768
[    55.361] (--) NVIDIA(0): DPI set to (111, 114); computed from "UseEdidDpi" X config
[    55.361] (--) NVIDIA(0):     option
[    55.361] (--) Depth 24 pixmap format is 32 bpp
[    55.361] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[    55.361] (II) NVIDIA:     access.
[    55.365] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[    55.365] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[    55.365] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[    55.365] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[    55.365] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[    55.365] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[    55.365] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[    55.365] (II) NVIDIA(0):     Config Options in the README.
[    55.369] (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
[    55.677] Loading extension NV-GLX
[    55.726] (==) NVIDIA(0): Disabling shared memory pixmaps
[    55.726] (==) NVIDIA(0): Backing store enabled
[    55.726] (==) NVIDIA(0): Silken mouse enabled
[    55.726] (==) NVIDIA(0): DPMS enabled
[    55.726] Loading extension NV-CONTROL
[    55.726] Loading extension XINERAMA
[    55.726] (II) Loading sub module "dri2"
[    55.726] (II) LoadModule: "dri2"
[    55.726] (II) Module "dri2" already built-in
[    55.726] (II) NVIDIA(0): [DRI2] Setup complete
[    55.726] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    55.727] (--) RandR disabled
[    55.730] (II) Initializing extension GLX
[    55.791] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[    55.792] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    55.792] (II) LoadModule: "evdev"
[    55.792] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[    55.792] (II) Module evdev: vendor="X.Org Foundation"
[    55.792]    compiled for 1.15.0, module version = 2.8.2
[    55.792]    Module class: X.Org XInput Driver
[    55.792]    ABI class: X.Org XInput driver, version 20.0
[    55.792] (II) Using input driver 'evdev' for 'Power Button'
[    55.792] (**) Power Button: always reports core events
[    55.792] (**) evdev: Power Button: Device: "/dev/input/event2"
[    55.792] (--) evdev: Power Button: Vendor 0 Product 0x1
[    55.792] (--) evdev: Power Button: Found keys
[    55.792] (II) evdev: Power Button: Configuring as keyboard
[    55.792] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[    55.792] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    55.792] (**) Option "xkb_rules" "evdev"
[    55.792] (**) Option "xkb_model" "pc104"
[    55.792] (**) Option "xkb_layout" "us"
[    55.818] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[    55.818] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[    55.818] (II) Using input driver 'evdev' for 'Video Bus'
[    55.819] (**) Video Bus: always reports core events
[    55.819] (**) evdev: Video Bus: Device: "/dev/input/event3"
[    55.819] (--) evdev: Video Bus: Vendor 0 Product 0x6
[    55.819] (--) evdev: Video Bus: Found keys
[    55.819] (II) evdev: Video Bus: Configuring as keyboard
[    55.819] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input3/event3"
[    55.819] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[    55.819] (**) Option "xkb_rules" "evdev"
[    55.819] (**) Option "xkb_model" "pc104"
[    55.819] (**) Option "xkb_layout" "us"
[    55.819] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[    55.819] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[    55.819] (II) Using input driver 'evdev' for 'Video Bus'
[    55.819] (**) Video Bus: always reports core events
[    55.819] (**) evdev: Video Bus: Device: "/dev/input/event4"
[    55.819] (--) evdev: Video Bus: Vendor 0 Product 0x6
[    55.819] (--) evdev: Video Bus: Found keys
[    55.819] (II) evdev: Video Bus: Configuring as keyboard
[    55.819] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0a/LNXVIDEO:01/input/input4/event4"
[    55.820] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[    55.820] (**) Option "xkb_rules" "evdev"
[    55.820] (**) Option "xkb_model" "pc104"
[    55.820] (**) Option "xkb_layout" "us"
[    55.820] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[    55.820] (II) No input driver specified, ignoring this device.
[    55.820] (II) This device may have been added with another device file.
[    55.820] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[    55.821] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[    55.821] (II) Using input driver 'evdev' for 'Sleep Button'
[    55.821] (**) Sleep Button: always reports core events
[    55.821] (**) evdev: Sleep Button: Device: "/dev/input/event1"
[    55.821] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[    55.821] (--) evdev: Sleep Button: Found keys
[    55.821] (II) evdev: Sleep Button: Configuring as keyboard
[    55.821] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input1/event1"
[    55.821] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[    55.821] (**) Option "xkb_rules" "evdev"
[    55.821] (**) Option "xkb_model" "pc104"
[    55.821] (**) Option "xkb_layout" "us"
[    55.821] (II) config/udev: Adding drm device (/dev/dri/card1)
[    55.821] (II) xfree86: Adding drm device (/dev/dri/card1)
[    55.821] setversion 1.4 failed: Permission denied
[    55.821] (II) config/udev: Adding drm device (/dev/dri/card0)
[    55.822] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event6)
[    55.822] (II) No input driver specified, ignoring this device.
[    55.822] (II) This device may have been added with another device file.
[    55.822] (II) config/udev: Adding input device HDA Intel PCH Dock Mic (/dev/input/event9)
[    55.822] (II) No input driver specified, ignoring this device.
[    55.822] (II) This device may have been added with another device file.
[    55.822] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event8)
[    55.822] (II) No input driver specified, ignoring this device.
[    55.822] (II) This device may have been added with another device file.
[    55.822] (II) config/udev: Adding input device HDA Intel PCH Dock Headphone (/dev/input/event7)
[    55.822] (II) No input driver specified, ignoring this device.
[    55.822] (II) This device may have been added with another device file.
[    55.823] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event10)
[    55.823] (II) No input driver specified, ignoring this device.
[    55.823] (II) This device may have been added with another device file.
[    55.823] (II) config/udev: Adding input device Lenovo Precision USB Mouse (/dev/input/event12)
[    55.823] (**) Lenovo Precision USB Mouse: Applying InputClass "evdev pointer catchall"
[    55.823] (II) Using input driver 'evdev' for 'Lenovo Precision USB Mouse'
[    55.823] (**) Lenovo Precision USB Mouse: always reports core events
[    55.823] (**) evdev: Lenovo Precision USB Mouse: Device: "/dev/input/event12"
[    55.823] (--) evdev: Lenovo Precision USB Mouse: Vendor 0x17ef Product 0x6050
[    55.823] (--) evdev: Lenovo Precision USB Mouse: Found 9 mouse buttons
[    55.823] (--) evdev: Lenovo Precision USB Mouse: Found scroll wheel(s)
[    55.823] (--) evdev: Lenovo Precision USB Mouse: Found relative axes
[    55.823] (--) evdev: Lenovo Precision USB Mouse: Found x and y relative axes
[    55.823] (II) evdev: Lenovo Precision USB Mouse: Configuring as mouse
[    55.823] (II) evdev: Lenovo Precision USB Mouse: Adding scrollwheel support
[    55.823] (**) evdev: Lenovo Precision USB Mouse: YAxisMapping: buttons 4 and 5
[    55.823] (**) evdev: Lenovo Precision USB Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    55.823] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input13/event12"
[    55.823] (II) XINPUT: Adding extended input device "Lenovo Precision USB Mouse" (type: MOUSE, id 10)
[    55.823] (II) evdev: Lenovo Precision USB Mouse: initialized for relative axes.
[    55.823] (**) Lenovo Precision USB Mouse: (accel) keeping acceleration scheme 1
[    55.823] (**) Lenovo Precision USB Mouse: (accel) acceleration profile 0
[    55.823] (**) Lenovo Precision USB Mouse: (accel) acceleration factor: 2.000
[    55.823] (**) Lenovo Precision USB Mouse: (accel) acceleration threshold: 4
[    55.824] (II) config/udev: Adding input device Lenovo Precision USB Mouse (/dev/input/mouse1)
[    55.824] (II) No input driver specified, ignoring this device.
[    55.824] (II) This device may have been added with another device file.
[    55.824] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[    55.824] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[    55.824] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[    55.824] (**) AT Translated Set 2 keyboard: always reports core events
[    55.824] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event5"
[    55.824] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[    55.824] (--) evdev: AT Translated Set 2 keyboard: Found keys
[    55.824] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[    55.824] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input5/event5"
[    55.824] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[    55.824] (**) Option "xkb_rules" "evdev"
[    55.824] (**) Option "xkb_model" "pc104"
[    55.824] (**) Option "xkb_layout" "us"
[    55.824] (II) config/udev: Adding input device PS/2 Synaptics TouchPad (/dev/input/event11)
[    55.824] (**) PS/2 Synaptics TouchPad: Applying InputClass "evdev pointer catchall"
[    55.824] (II) Using input driver 'evdev' for 'PS/2 Synaptics TouchPad'
[    55.825] (**) PS/2 Synaptics TouchPad: always reports core events
[    55.825] (**) evdev: PS/2 Synaptics TouchPad: Device: "/dev/input/event11"
[    55.825] (--) evdev: PS/2 Synaptics TouchPad: Vendor 0x2 Product 0x1
[    55.825] (--) evdev: PS/2 Synaptics TouchPad: Found 3 mouse buttons
[    55.825] (--) evdev: PS/2 Synaptics TouchPad: Found relative axes
[    55.825] (--) evdev: PS/2 Synaptics TouchPad: Found x and y relative axes
[    55.825] (II) evdev: PS/2 Synaptics TouchPad: Configuring as mouse
[    55.825] (**) evdev: PS/2 Synaptics TouchPad: YAxisMapping: buttons 4 and 5
[    55.825] (**) evdev: PS/2 Synaptics TouchPad: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    55.825] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input7/event11"
[    55.825] (II) XINPUT: Adding extended input device "PS/2 Synaptics TouchPad" (type: MOUSE, id 12)
[    55.825] (II) evdev: PS/2 Synaptics TouchPad: initialized for relative axes.
[    55.825] (**) PS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
[    55.825] (**) PS/2 Synaptics TouchPad: (accel) acceleration profile 0
[    55.825] (**) PS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[    55.825] (**) PS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[    55.825] (II) config/udev: Adding input device PS/2 Synaptics TouchPad (/dev/input/mouse0)
[    55.825] (II) No input driver specified, ignoring this device.
[    55.825] (II) This device may have been added with another device file.
[    58.291] (II) evdev: PS/2 Synaptics TouchPad: Close
[    58.292] (II) UnloadModule: "evdev"
[    58.292] (II) evdev: AT Translated Set 2 keyboard: Close
[    58.292] (II) UnloadModule: "evdev"
[    58.292] (II) evdev: Lenovo Precision USB Mouse: Close
[    58.292] (II) UnloadModule: "evdev"
[    58.292] (II) evdev: Sleep Button: Close
[    58.292] (II) UnloadModule: "evdev"
[    58.292] (II) evdev: Video Bus: Close
[    58.292] (II) UnloadModule: "evdev"
[    58.292] (II) evdev: Video Bus: Close
[    58.292] (II) UnloadModule: "evdev"
[    58.292] (II) evdev: Power Button: Close
[    58.292] (II) UnloadModule: "evdev"
[    58.294] (II) NVIDIA(GPU-0): Deleting GPU-0
[    58.295] (EE) Server terminated successfully (0). Closing log file.


I have checked the logs in similar conditions where the only difference is the driver loaded, and they are almost the same, the only distinctions are about loading different drivers.

I have also straced the running xterm process when it hangs, and it is waiting on a select system call.

Any ideas how I can resolve this? Thanks.

Sincerely yours,
Guanpeng Xu
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Sun Jul 20, 2014 2:52 pm    Post subject: Re: X hangs using nvidia driver with optimus Reply with quote

It's sometimes as easy as that, so let's see :
herberteuler wrote:
During the process, the screen is switched to the seventh one, but a console cursor (an underline) is shown at the top-left and it does not even blink.

herberteuler wrote:

Code:

[    55.333] (--) using VT number 8



So are you sure your X isn't just running in 8 when you search it in 7?
Because your log pretty looks like X is running fine.
Back to top
View user's profile Send private message
herberteuler
n00b
n00b


Joined: 02 Apr 2005
Posts: 33

PostPosted: Mon Jul 21, 2014 12:39 am    Post subject: Reply with quote

Hi krinn,

Thanks for the notice. I have checked again, VT 8 is used because VT 7 is already occupied by the X process started by root, but both of them are not responding.

BTW, this is the strace log (only one line available):

Code:
select(256, [1 3 5 33 34], NULL, NULL, {83, 941167} <detached ...>


Sincerely yours,
Guenpeng Xu
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Mon Jul 21, 2014 3:18 pm    Post subject: Reply with quote

dunno what "setversion" is suppose to do but you should look at it
Code:
Loading extension XINERAMA
setversion 1.4 failed: Permission denied <-------------
^Cxinit: connection to X server lost


Check also your user is in video group.
Back to top
View user's profile Send private message
herberteuler
n00b
n00b


Joined: 02 Apr 2005
Posts: 33

PostPosted: Tue Jul 22, 2014 3:50 am    Post subject: Reply with quote

Hi krinn,

I had suspicion on it too, until I found that the error also showed up even when I did not use the nvidia driver. So I think it does not cause the problem.

Sincerely yours,
Guanpeng Xu
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Tue Jul 22, 2014 4:15 am    Post subject: Reply with quote

herberteuler wrote:
I had suspicion on it too, until I found that the error also showed up even when I did not use the nvidia driver. So I think it does not cause the problem.

Try avoid shortcut, from that you can tell it do nothing when not using nvidia driver.
But shortcut to "cannot be that as it still gave the same error without nvidia driver and it works" is a mistake.

If i knew it was that or not i would had tell you, so it's easy to guess, i don't know. But i know you should only assume something as true when it's really prove it's true ; else you might not consider it to end after hours seeing it was that.
Until someone comes with a better help, you should look at it, at worst it wasn't that, but at least you've fix that problem.
Back to top
View user's profile Send private message
herberteuler
n00b
n00b


Joined: 02 Apr 2005
Posts: 33

PostPosted: Tue Jul 22, 2014 5:45 am    Post subject: Reply with quote

Hi krinn,

In fact I did notice it before posting this topic. I searched for "setversion 1.4 failed" and reached here: https://forums.gentoo.org/viewtopic-t-943014-start-0.html but I was unable to find useful information there.

But you are right. Let me try to fix it.

Sincerely yours,
Guanpeng Xu
Back to top
View user's profile Send private message
Uli Sing
Apprentice
Apprentice


Joined: 03 May 2010
Posts: 190
Location: MUC

PostPosted: Tue Jul 22, 2014 6:07 am    Post subject: Reply with quote

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

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "PCI:1:0:0"
        Option "UseEdidDpi" "FALSE"
        Option "DPI" "96 x 96"
        Option "TripleBuffer" "1"
EndSection

Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
EndSection

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

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


works for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum