You are not logged in.

#1 2016-03-11 09:02:17

printesoi
Member
Registered: 2011-07-17
Posts: 12

Problem with nvidia driver

I recently bought a Zenbook Asus laptop with 4k display and a nvidia GTX 960M graphics card. I have problems with the divers: if I run nvidia-xconfig, I can't start X server.

$ lspci -k | grep -E '(3D|VGA)'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

This are my installed packages:

$ pacman -Q  | grep -E '(nvidia|bbsw|bumble)'
community/bbswitch 0.8-42
community/bumblebee 3.2.1-10
multilib/lib32-nvidia-libgl 361.28-4
multilib/lib32-nvidia-utils 361.28-4
extra/nvidia 361.28-2
extra/nvidia-settings 361.28-1
extra/nvidia-utils 361.28-5
extra/opencl-nvidia 361.28-5

The config that nvidia-xconfig is creating is:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 361.28  (buildmeister@swio-display-x64-rhel04-04)  Wed Feb  3 16:27:53 PST 2016

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

In journalctl I get an error that SDDM crashes:

Mar 11 00:42:52 cuibari kernel: kactivitymanage[2851]: segfault at 7fa5a162fcd0 ip 00007fa5881ba261 sp 00007ffc7d235968 error 4 in libQt5Sql.so.5.5.1[7fa5881a6000+3f000]
Mar 11 00:42:53 cuibari kernel: sddm[2753]: segfault at 118fe70 ip 000000000118fe70 sp 00007ffc1ecc8b88 error 15
Mar 11 00:43:05 cuibari kernel: sddm[4077]: segfault at 7fcd8000000a ip 00007fcd8000000a sp 00007ffd0a482598 error 14
Mar 11 00:43:12 cuibari kernel: sddm[4424]: segfault at 710 ip 0000000000000710 sp 00007fffcf69a648 error 14 in sddm[400000+6b000]
Mar 11 00:43:14 cuibari kernel: sddm[4560]: segfault at 1c0 ip 00000000000001c0 sp 00007fff061bf0c8 error 14 in sddm[400000+6b000]
Mar 11 00:43:17 cuibari kernel: sddm[4604]: segfault at 1b0dee0 ip 0000000001b0dee0 sp 00007ffd3dd56938 error 15
Mar 11 00:43:21 cuibari kernel: sddm[4655]: segfault at 3 ip 0000000000000003 sp 00007ffc120b2398 error 14 in sddm[400000+6b000]
Mar 11 00:43:33 cuibari kernel: sddm[4743]: segfault at 200 ip 0000000000000200 sp 00007ffeea1eb9b8 error 14 in sddm[400000+6b000]

and in /var/log/Xorg.0.log:

[    99.241] (II) xfree86: Adding drm device (/dev/dri/card0)
[    99.654] (--) PCI:*(0:0:2:0) 8086:191b:1043:1080 rev 6, Mem @ 0xdb000000/16777216, 0x70000000/268435456, I/O @ 0x0000f000/64
[    99.654] (--) PCI: (0:1:0:0) 10de:139b:1043:1080 rev 162, Mem @ 0xdc000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    99.654] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    99.654] (II) LoadModule: "glx"
[    99.655] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    99.657] (II) Module glx: vendor="X.Org Foundation"
[    99.657]    compiled for 1.18.1, module version = 1.0.0
[    99.657]    ABI class: X.Org Server Extension, version 9.0
[    99.657] (==) AIGLX enabled
[    99.657] (II) LoadModule: "nvidia"
[    99.658] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    99.658] (II) Module nvidia: vendor="NVIDIA Corporation"
[    99.658]    compiled for 4.0.2, module version = 1.0.0
[    99.658]    Module class: X.Org Video Driver
[    99.658] (II) NVIDIA dlloader X Driver  361.28  Wed Feb  3 14:48:10 PST 2016
[    99.658] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    99.696] (EE) No devices detected.
[    99.696] (EE) 
Fatal server error:
[    99.696] (EE) no screens found(EE) 
[    99.696] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[    99.696] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    99.696] (EE)

However, if I add

BusID "PCI:1:0:0"

the the Device section, I get this error from the kernel:

Mar 11 00:27:33 cuibari kernel: nvidia-modeset: Allocated GPU:0 (GPU-f65c7f42-2d04-e184-d18c-da0668992c30) @ PCI:0000:01:00.0
Mar 11 00:27:33 cuibari kernel: nvidia-modeset: Freed GPU:0 (GPU-f65c7f42-2d04-e184-d18c-da0668992c30) @ PCI:0000:01:00.0
Mar 11 00:27:33 cuibari kernel: vgaarb: this pci device is not a vga device

I mention that I applied the patch:

diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c
index f17cb04..bcb6318 100644
--- a/drivers/gpu/vga/vgaarb.c
+++ b/drivers/gpu/vga/vgaarb.c
@@ -527,9 +527,10 @@ static bool vga_arbiter_add_pci_device(struct pci_dev *pdev)
        struct pci_bus *bus;
        struct pci_dev *bridge;
        u16 cmd;
+       int pci_class = pdev->class >> 8;
 
        /* Only deal with VGA class devices */
-       if ((pdev->class >> 8) != PCI_CLASS_DISPLAY_VGA)
+       if (pci_class != PCI_CLASS_DISPLAY_VGA && pci_class != PCI_CLASS_DISPLAY_3D)
                return false;
 
        /* Allocate structure */

but that still happens.

I tried to use GDM instead of SDDM, and the dm starts, but after logging in
(and I tried with both Plasma and Gnome Shell) the system freezes and I'm not
able to access the consoles.

The only way I can stard the display manager is to remove the /etc/X11/xorg.conf.d/20-nvidia.conf.

I also tried to add "i915 bbswitch" to "MODULES" in /etc/mkinitcpio.conf . I
tried with both bumblebee started and stopped.

Last edited by printesoi (2016-03-11 09:02:36)

Offline

#2 2016-03-11 10:11:37

printesoi
Member
Registered: 2011-07-17
Posts: 12

Re: Problem with nvidia driver

I solved it by removing bumblebee, and I followed the steps at https://wiki.archlinux.org/index.php/NV … timus#SDDM but I would like to make it work with bumblebee.

Last edited by printesoi (2016-03-11 10:12:24)

Offline

Board footer

Powered by FluxBB