Mailinglist Archive: opensuse (880 mails)

< Previous Next >
Re: [opensuse] Troubles with Nvidia
Hello

Dne Čt 8. srpna 2013 05:52:09, David Haller napsal(a):
Hello,

On Wed, 07 Aug 2013, Vojtech Zeisek wrote:
Dne St 7. srpna 2013 20:15:06, Werner Flamme napsal(a):
[07.08.2013 19:03] [Vojtech Zeisek]:
[..]

# nvidia-modprobe
FATAL: Error inserting nvidia (/lib/modules/3.7.10-1.16-desktop/weak-
updates/updates/nvidia.ko): No such device
# find /lib -name nvidia.ko -print
/lib/modules/3.7.10-1.16-desktop/weak-updates/updates/nvidia.ko
/lib/modules/3.7.10-1.1-desktop/updates/nvidia.ko
WTF? Should I blacklist the nouveau driver to force loading of nvidia?

Yes. And you may also have to adjust the INITRD_MODULES="..." variable
in /etc/sysconfig/kernel (remove nouvau if it's in there, add nvidia).
Then run mkinitrd.

Done, no change, still using nouveau.

I'm not sure about that 'weak_updates' stuff, IIRC

/lib/modules/3.7.10-1.16-desktop/weak-updates/updates/nvidia.ko

should be a symlink to

/lib/modules/3.7.10-1.1-desktop/updates/nvidia.ko

Yes, its is.

# lsmod | grep nou
nouveau 993062 1
ttm 91975 1 nouveau
drm_kms_helper 50840 2 nouveau,i915
drm 293115 6 nouveau,ttm,i915,drm_kms_helper
mxm_wmi 13022 1 nouveau
wmi 19071 3 nouveau,hp_wmi,mxm_wmi
i2c_algo_bit 13414 2 nouveau,i915
video 19401 2 nouveau,i915
button 13953 2 nouveau,i915
# lsmod | grep nv
<empty>

This is probably due to nouveau being in the initrd and being loaded
from there during boot (c.f. "modeset" / KMS). Adding "nomodeset" to
as kernel-parameter might help too.

What is the DRM?

A Direct Rendering Method/Model (?) used by X / the Kernel to access
the hardware, c.f. also DRI and KMS, en.wikipedia.org should have
entries to all those acronyms (just make sure with "DRM" to not
confuse that with the digital restrictions management).

BTW:

a) there's sax3 in the repos, no idea how that works though (see
before sig)

I tried. It doesn't seem to be very useful right now. It created 99-
saxdevice.conf, 99-saxmonitors.conf and 99-saxscreen.conf in
/etc/X11/xorg.conf.d/ and the device section knew just Intel driver. After
changing to nvidia, X didn't start. I deleted those configuration files.

b) you can have Xorg generate a "complete" xorg.conf as "autodetected"
by running 'X -configure' and use that as a starting point for
tweaking. You should move xorg.conf.d though in that case (e.g.
move it to xorg.conf.d.SUSE) and use the "complete" generated and
tweaked /etc/X11/xorg.conf from then on.

==== man Xorg ====
-configure
When this option is specified, the Xorg server loads all
video driver modules, probes for available hardware, and writes out an
initial xorg.conf(5) file based on what was detected. This option
currently has some problems on some platforms, but in most cases it
is a good way to bootstrap the configuration process. This option is
only available when the server is run as root (i.e, with real-uid 0).
====

It failed, because number of devices didn't reflect number of screens. Although
now I see

# lsmod | grep nv
nvidia 9429743 0
veles:~ # lsmod | grep nou
<empty>
BUT
# optirun glxgears
The Bumblebee X server was not available, please check the
Bumblebee logfile at /var/log/bumblebee.log
==================================================
# tail /var/log/bumblebee.log
[ 178.05] Checking for X server availability before starting X...
[ 178.05] X server is not started
[ 178.06] Power management is disabled, only loading driver
[ 178.95] rmmod /lib/modules/3.7.10-1.16-desktop/weak-
updates/updates/nvidia.ko
[ 178.95] insmod /lib/modules/3.7.10-1.16-
desktop/kernel/drivers/gpu/drm/ttm/ttm.ko
[ 178.95] insmod /lib/modules/3.7.10-1.16-
desktop/kernel/drivers/gpu/drm/nouveau/nouveau.ko
[ 178.95] Starting X using nouveau...
[ 178.95] Waiting for X server to become available...
[ 189.25] The Bumblebee X server failed to start. Please check
/var/log/Xorg.8.log
[ 189.25] Waiting for orders

# nvidia-debugdump --dumpall
FATAL: Error inserting nvidia (/lib/modules/3.7.10-1.16-desktop/weak-
updates/updates/nvidia.ko): No such device
NVIDIA: failed to load the NVIDIA kernel module.
Error: nvmlInit(): Driver Not Loaded
# nvidia-modprobe
FATAL: Error inserting nvidia (/lib/modules/3.7.10-1.16-desktop/weak-
updates/updates/nvidia.ko): No such device
# l /lib/modules/3.7.10-1.16-desktop/weak-updates/updates/nvidia.ko



lrwxrwxrwx 1 root root 49 7. srp 20.43 /lib/modules/3.7.10-1.16-desktop/weak-
updates/updates/nvidia.ko -> /lib/modules/3.7.10-1.1-desktop/updates/nvidia.ko

Seriously, I don't understand it anymore. ;-)

# cat /var/log/Xorg.8.log
[ 179.011] (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so:
/usr/lib64/xorg/modules/libglamoregl.so: undefined symbol: _glapi_tls_Context
[ 179.011] (II) UnloadModule: "glamoregl"
[ 179.011] (II) Unloading glamoregl
[ 179.011] (EE) Failed to load module "glamoregl" (loader failed, 7)
[ 179.011] (II) LoadModule: "glx"
[ 179.011] (II) Loading /usr/lib64/xorg/modules/updates/extensions/libglx.so
[ 179.017] (II) Module glx: vendor="NVIDIA Corporation"
[ 179.017] compiled for 4.0.2, module version = 1.0.0
[ 179.017] Module class: X.Org Server Extension
[ 179.017] (II) NVIDIA GLX Module 319.32 Wed Jun 19 14:55:38 PDT 2013
[ 179.017] Loading extension GLX
[ 179.017] (II) LoadModule: "nouveau"
[ 179.018] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[ 179.046] (II) Module nouveau: vendor="X.Org Foundation"
[ 179.046] compiled for 1.13.1, module version = 1.0.6
[ 179.046] Module class: X.Org Video Driver
[ 179.046] ABI class: X.Org Video Driver, version 13.1
[ 179.046] (II) LoadModule: "mouse"
[ 179.047] (II) Loading /usr/lib64/xorg/modules/input/mouse_drv.so
[ 179.063] (II) Module mouse: vendor="X.Org Foundation"
[ 179.063] compiled for 1.13.1, module version = 1.8.1
[ 179.063] Module class: X.Org XInput Driver
[ 179.063] ABI class: X.Org XInput driver, version 18.0
[ 179.064] (II) LoadModule: "kbd"
[ 179.064] (II) Loading /usr/lib64/xorg/modules/input/kbd_drv.so
[ 179.064] (II) Module kbd: vendor="X.Org Foundation"
[ 179.064] compiled for 1.13.1, module version = 1.6.2
[ 179.064] Module class: X.Org XInput Driver
[ 179.064] ABI class: X.Org XInput driver, version 18.0
[ 179.064] (II) NOUVEAU driver
[ 179.064] (II) NOUVEAU driver for NVIDIA chipset families :
[ 179.064] RIVA TNT (NV04)
[ 179.064] RIVA TNT2 (NV05)
[ 179.064] GeForce 256 (NV10)
[ 179.064] GeForce 2 (NV11, NV15)
[ 179.064] GeForce 4MX (NV17, NV18)
[ 179.064] GeForce 3 (NV20)
[ 179.064] GeForce 4Ti (NV25, NV28)
[ 179.064] GeForce FX (NV3x)
[ 179.064] GeForce 6 (NV4x)
[ 179.064] GeForce 7 (G7x)
[ 179.064] GeForce 8 (G8x)
[ 179.064] GeForce GTX 200 (NVA0)
[ 179.064] GeForce GTX 400 (NVC0)
[ 179.064] (--) using VT number 7
[ 179.129] (II) [drm] nouveau interface version: 1.1.0
[ 179.141] (II) Loading sub module "dri"
[ 179.141] (II) LoadModule: "dri"
[ 179.141] (II) Module "dri" already built-in
[ 179.141] (II) NOUVEAU(0): Loaded DRI module
[ 179.195] (EE) NOUVEAU(0): [drm] failed to set drm interface version.
[ 179.195] (EE) NOUVEAU(0): [drm] error opening the drm
[ 179.195] (EE) NOUVEAU(0): 819:
[ 179.195] (II) UnloadModule: "nouveau"
[ 179.195] (EE) Screen(s) found, but none have a usable configuration.
[ 179.195]
Fatal server error:
[ 179.195] no screens found
[ 179.195] (EE)
[ 179.196] (EE)

# cat /var/log/Xorg.0.log
[ 178.379] removing GPU device
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1 52596304
[ 178.379] (II) config/udev: Adding drm device (/dev/dri/card1)
[ 178.379] (II) config/udev: Adding drm device (/dev/dri/card1)
[ 178.977] (II) LoadModule: "modesetting"
[ 178.978] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 178.980] (II) Module modesetting: vendor="X.Org Foundation"
[ 178.980] compiled for 1.13.2, module version = 0.8.0
[ 178.980] Module class: X.Org Video Driver
[ 178.980] ABI class: X.Org Video Driver, version 13.1
[ 178.980] (II) modesetting(G0): using drv /dev/dri/card1
[ 178.984] (==) modesetting(G0): Depth 24, (==) framebuffer bpp 32
[ 178.984] (==) modesetting(G0): RGB weight 888
[ 178.984] (==) modesetting(G0): Default visual is TrueColor
[ 178.984] (II) modesetting(G0): ShadowFB: preferred YES, enabled YES
[ 179.031] (II) modesetting(G0): Output VGA-1 has no monitor section
[ 179.077] (II) modesetting(G0): Output VGA-1 connected
[ 179.077] (II) modesetting(G0): Using exact sizes for initial modes
[ 179.077] (II) modesetting(G0): Output VGA-1 using initial mode 1024x768
[ 179.077] (II) modesetting(G0): Using default gamma of (1.0, 1.0, 1.0)
unless otherwise stated.
[ 179.077] (**) modesetting(G0): Display dimensions: (340, 190) mm
[ 179.077] (**) modesetting(G0): DPI set to (76, 102)
[ 179.077] (II) Loading sub module "fb"
[ 179.077] (II) LoadModule: "fb"
[ 179.077] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 179.077] (II) Module fb: vendor="X.Org Foundation"
[ 179.077] compiled for 1.13.2, module version = 1.0.0
[ 179.077] ABI class: X.Org ANSI C Emulation, version 0.4
[ 179.077] (II) Loading sub module "shadow"
[ 179.077] (II) LoadModule: "shadow"
[ 179.077] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[ 179.120] (II) Module shadow: vendor="X.Org Foundation"
[ 179.120] compiled for 1.13.2, module version = 1.1.0
[ 179.120] ABI class: X.Org ANSI C Emulation, version 0.4
[ 179.123] (==) modesetting(G0): Backing store disabled
[ 179.123] (==) modesetting(G0): Silken mouse enabled
[ 179.123] (II) modesetting(G0): RandR 1.2 enabled, ignore the following
RandR disabled message.
[ 179.123] (==) modesetting(G0): DPMS enabled
[ 179.141] xf86: found device 2
[ 179.141] removing GPU device
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1/card1-VGA-2 0

IIRC it prints the generated config on stdout and does not
overwrite /etc/X11/xorg.conf, but better check that resp. save a
xorg.conf if you have one.

HTH,
-dnh, whose xorg.conf is largely the same as the XF86Config that I
used since ~1999 starting with SuSE 6.2 / XFree 3.3.6 ;)
Twice I tweaked the Monitor section, a couple of times the Device
section, and a few times the input sections.

Hehe. It seems to be the only possibility to play with xorg.conf enough
long...
Thank You for all advices,
Vojtěch

--
Vojtěch Zeisek

Komunita openSUSE GNU/Linuxu
Community of the openSUSE GNU/Linux

http://www.opensuse.org/
http://trapa.cz/
< Previous Next >
Follow Ups