Mailinglist Archive: opensuse (880 mails)

< Previous Next >
Re: [opensuse] Troubles with Nvidia
Hello,
thank You.

Dne St 7. srpna 2013 20:15:06, Werner Flamme napsal(a):
[07.08.2013 19:03] [Vojtěch Zeisek]:
OK, did you read
</usr/share/doc/packages/x11-video-nvidiaG03/html/optimus.html> then? Or
any other file in this directory?

Previously not. After reading it, still don't get the point...

The driver may be installed normally on Optimus systems, but the
NVIDIA X driver and the NVIDIA OpenGL driver may not be able to
display to the laptop's internal display panel unless a means to
connect the panel to the NVIDIA GPU (for example, a hardware
multiplexer, or "mux", often controllable by a BIOS setting) is
available.

You may need an external display to use the nvidia driver...

Hm. :-/

BTW, in supportedchips.html in this directory you can see that
x11-video-nvidiaG03 supports the GT630M chip so that you can uninstall
the G02 variants, just to avoid that they fight each other.

Why didn't I stayed with Intel graphics?

I do not know :-) But the make the fewest trouble on laptops.

I installed (for my G96 [GeForce 9400 GT]):
- nvidia-computeG03-319.32-15.1.x86_64
- nvidia-gfxG03-kmp-desktop-319.32_k3.7.10_1.1-15.1.x86_64
- x11-video-nvidiaG03-319.32-15.1.x86_64
all from http://download.nvidia.com/opensuse/12.3

Now I have only the 03 packages. When I run
# nvidia-debugdump --dumpall
FATAL: Module nvidia not found.
NVIDIA: failed to load the NVIDIA kernel module.
Error: nvmlInit(): Driver Not Loaded
# nvidia-modprobe
FATAL: Module nvidia not found.
# rpm -qa |grep nvidia
nvidia-settings-290.10-1.9.x86_64
nvidia-computeG03-319.32-15.1.x86_64
nvidia-gfxG03-kmp-desktop-319.32_k3.7.10_1.1-15.1.x86_64
x11-video-nvidiaG03-319.32-15.1.x86_64
# rpm -qa |grep bumblebee
bumblebee-2.4.1-4.1.x86_64
I feel lost. :-(

Don't :-). Better check if all the files are there. For example, with
"rpm -ql nvidia-gfxG03-kmp-desktop" you see the files that should be
there. Among these, ther is the module that you cannot load.

The following command should be entered in one line:

for DAT in $(rpm -ql nvidia-gfxG03-kmp-desktop) ; do if [ -e "$DAT" ];
then echo "exist: $DAT"; else echo "missing: $DAT"; fi; done

As a shell script, you can use:

#!/bin/bash
for MOD in nvidia-computeG03 nvidia-gfxG03-kmp-desktop \
x11-video-nvidiaG03; do
echo "checking: $MOD"
for DAT in $(rpm -ql "$MOD"); do
if [ -e "$DAT" ]; then
echo "exist: $DAT"
else
echo "missing: $DAT"
fi
done
done

No error here. I reinstalled the packages anyway to be sure. ;-)

If any file ist missing (according to "FATAL: Module nvidia not found."
this should be the case with
</lib/modules/3.7.10-1.1-desktop/updates/nvidia.ko>), re-install the
package with "zypper in -f "$packagename. For me, it happened sometimes,
that uninstalling one version of a kmp removed a file that belonged to
another kmp too. So maybe the uninstall of the G02 packages caused the
removal of the nvidia.ko file.

# 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?

NVRM: loading NVIDIA UNIX x86_64 Kernel Module 319.32 Wed Jun 19
15:51:20
PDT 2013
2013-08-06T08:20:17.400659+02:00 veles kdm[948]: X server died
during
startup 2013-08-06T08:20:17.401228+02:00 veles kdm[948]: X server
for
display :0 cannot be started, session disabled

This might be because of the dual video chipset in your box. I only
found a russian text about it,
<http://ru.opensuse.org/SDB:NVidia_Optimus>, but no translations.

It has only Nvidia graphic card. BIOS has no setting related to graphic
card.

Pardon? Didn't I read

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core
processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT
630M] (rev a1)

in your first post? There are two graphics controllers, and bumblebee
should allow switching between them.

Hehe... HP's product page lists just the Nvidia as graphic card, so that I
automatically supposed it has only one card. Neither product
specifications
mention 2 graphic controllers. Confusing.

Nvidia generates this xorg.conf:
I use nvidia drivers, and I have no xorg.conf. If you work on real
hardware, there are way too many "vmware" and "vbox" entries in this
file.

It does't work. This is report of Xorg log:

X.Org X Server 1.13.2
Release Date: 2013-01-24
[ 71.426] X Protocol Version 11, Revision 0
[ 71.426] Build Operating System: openSUSE SUSE LINUX
[ 71.426] Current Operating System: Linux veles.site
3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013
(97c14ba)
x86_64
[ 71.426] Kernel command line:
BOOT_IMAGE=/vmlinuz-3.7.10-1.16-desktop
root=/dev/mapper/pocitac-koren ro elevator=cfq
[ 71.426] Build Date: 15 July 2013 12:22:00PM
[ 71.426]
[ 71.426] Current version of pixman: 0.28.2
[ 71.426] Before reporting problems, check http://wiki.x.org

to make sure that you have the latest version.

[ 71.427] (==) ModulePath set to
"/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules"

[ 71.428] (II) LoadModule: "glamoregl"
[ 71.429] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 71.434] (EE) Failed to load
/usr/lib64/xorg/modules/libglamoregl.so:
/usr/lib64/xorg/modules/libglamoregl.so: undefined symbol:
_glapi_tls_Context

Hm. On my box, "rpm -qf /usr/lib64/xorg/modules/libglamoregl.so" gives
glamor-0.5-3.1.3.x86_64, directly from openSUSE distro. Do you have
another version? Where does it come from?

I use openSUSE 12.3 64 bit,
rpm -qf /usr/lib64/xorg/modules/libglamoregl.so
glamor-0.5-3.1.3.x86_64
from main OSS repository.

Ha. Thank you :-). I never noticed that my Xorg.0.log shows the same
error. At least we can say that it is not critical for the nvidia
driver, because it works for me...

[ 71.445] (EE) No devices detected.

Yes, and now we see that the driver does not find any device.

Yes, but why?

Because the driver does not like optimus. Oh, optimus and the driver are
from the same manufacturer? Never mind, in Windows everything is fine.
Huh, am I sarcastic?

Well, I turned the notebook on, I saw license agreement of Windows and HP, I
restarted notebook it with openSUSE DVD inside. ;-) Now I try to push HP to
give me back money for unused license of WIndows. ;-) Also big fun. ;-)

I use VirtualBox (if that matters), but I have no idea why there is any
vmware section - I haven't installed it and I'm not going to install
it.
I also lost boot splash screen although all packages should be
installed.
Well, never mind at all. ;-)

Ahem... are you installing the driver inside a VirtualBox VM? If not,
you can delete all this, and all the VMWare things too. It is there to
give openSUSE some help when started inside a virtual machine, not on a
host that runs VirtualBox or VMWare Player. I suggest you rename
xorg.conf to something that xorg does not look for, like
xorg.conf.nonsense ;-). So xorg's autodetect feature will be startet,
and might become successful.

I installed openSUSE to real HW, HP ENVY dv6 notebook. I also use it as
VirtualBox host. You mean, that xorg.conf should be recreated during
startup? ;-)

No, there is no xorg.conf any more, for several versions of openSUSE now
(since sax2 was abandoned). There is a magic feature in xorg that does a
lot autodetecting, and the directory /etc/X11/xorg.conf.d, where you
will find many snippets from the former xorg.conf. In 50-device conf you
can define your own constellation, but it should not be necessary. See
<http://en.opensuse.org/SDB:Configuring_graphics_cards> for a small
example (but replace "nv" with "nvidia"). Here you even are allowed to
create a file xorg.conf ;-)

Of course, autodetection - as any kind of magic - can go wrong...

I found
<http://forums.opensuse.org/english/get-technical-help-here/hardware/466596->
nvidia-card-gt520m-not-useable-nvidia-driver-no-devices-detected-screen-blan
k-2.html>. Ist this applicable for your case?

# optirun glxgears
The Bumblebee X server was not available, please check the
Bumblebee logfile at /var/log/bumblebee.log
==================================================
# 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>

I moved away all /etc/X11/xorg.conf* a let just xorg.conf.d X starts, but
using nouveau driver, not nvidia:
/var/log/Xorg.8.log
[ 143.743]
X.Org X Server 1.13.2
Release Date: 2013-01-24
[ 143.743] X Protocol Version 11, Revision 0
[ 143.743] Build Operating System: openSUSE SUSE LINUX
[ 143.743] Current Operating System: Linux veles.site 3.7.10-1.16-desktop #1
SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64
[ 143.743] Kernel command line: BOOT_IMAGE=/vmlinuz-3.7.10-1.16-desktop
root=/dev/mapper/pocitac-koren ro elevator=cfq
[ 143.743] Build Date: 15 July 2013 12:22:00PM
[ 143.743]
[ 143.743] Current version of pixman: 0.28.2
[ 143.743] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 143.743] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 143.743] (==) Log file: "/var/log/Xorg.8.log", Time: Wed Aug 7 21:17:30
2013
[ 143.744] (++) Using config file: "/etc/bumblebee/xorg.conf.nouveau"
[ 143.744] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 143.744] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 143.837] (==) ServerLayout "Layout0"
[ 143.837] (**) |-->Screen "Screen0" (0)
[ 143.837] (**) | |-->Monitor "<default monitor>"
[ 143.837] (**) | |-->Device "Device0"
[ 143.837] (==) No monitor specified for screen "Screen0".
Using a default monitor configuration.
[ 143.837] (**) Option "AutoAddDevices" "false"
[ 143.837] (**) Not automatically adding devices
[ 143.837] (==) Automatically enabling devices
[ 143.837] (==) Automatically adding GPU devices
[ 143.837] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
[ 143.837] Entry deleted from font path.
[ 143.837] (==) FontPath set to:
/usr/share/fonts/misc:unscaled,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/ghostscript/,
/usr/share/fonts/cyrillic:unscaled,
/usr/share/fonts/truetype/,
built-ins
[ 143.837] (==) ModulePath set to
"/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules"
[ 143.837] (==) |-->Input Device "<default pointer>"
[ 143.837] (==) |-->Input Device "<default keyboard>"
[ 143.837] (==) The core pointer device wasn't specified explicitly in the
layout.
Using the default mouse configuration.
[ 143.837] (==) The core keyboard device wasn't specified explicitly in the
layout.
Using the default keyboard configuration.
[ 143.837] (II) Loader magic: 0x801c20
[ 143.837] (II) Module ABI versions:
[ 143.837] X.Org ANSI C Emulation: 0.4
[ 143.837] X.Org Video Driver: 13.1
[ 143.837] X.Org XInput driver : 18.0
[ 143.837] X.Org Server Extension : 7.0
[ 143.837] (II) config/udev: Adding drm device (/dev/dri/card1)
[ 143.838] setversion 1.4 failed
[ 143.838] (II) config/udev: Adding drm device (/dev/dri/card0)
[ 143.838] setversion 1.4 failed
[ 143.839] (--) PCI:*(0:0:2:0) 8086:0166:103c:181b rev 9, Mem @
0xd4000000/4194304, 0xc0000000/268435456, I/O @ 0x00005000/64
[ 143.839] (--) PCI: (0:1:0:0) 10de:0de9:103c:181b rev 161, Mem @
0xd2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @
0x00004000/128, BIOS @ 0x????????/524288
[ 143.839] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or
directory)
[ 143.839] Initializing built-in extension Generic Event Extension
[ 143.839] Initializing built-in extension SHAPE
[ 143.839] Initializing built-in extension MIT-SHM
[ 143.839] Initializing built-in extension XInputExtension
[ 143.839] Initializing built-in extension XTEST
[ 143.839] Initializing built-in extension BIG-REQUESTS
[ 143.839] Initializing built-in extension SYNC
[ 143.839] Initializing built-in extension XKEYBOARD
[ 143.839] Initializing built-in extension XC-MISC
[ 143.839] Initializing built-in extension SECURITY
[ 143.839] Initializing built-in extension XINERAMA
[ 143.839] Initializing built-in extension XFIXES
[ 143.839] Initializing built-in extension RENDER
[ 143.839] Initializing built-in extension RANDR
[ 143.839] Initializing built-in extension COMPOSITE
[ 143.839] Initializing built-in extension DAMAGE
[ 143.839] Initializing built-in extension MIT-SCREEN-SAVER
[ 143.839] Initializing built-in extension DOUBLE-BUFFER
[ 143.839] Initializing built-in extension RECORD
[ 143.839] Initializing built-in extension DPMS
[ 143.839] Initializing built-in extension X-Resource
[ 143.839] Initializing built-in extension XVideo
[ 143.839] Initializing built-in extension XVideo-MotionCompensation
[ 143.839] Initializing built-in extension XFree86-VidModeExtension
[ 143.839] Initializing built-in extension XFree86-DGA
[ 143.839] Initializing built-in extension XFree86-DRI
[ 143.839] Initializing built-in extension DRI2
[ 143.839] (II) "glx" will be loaded by default.
[ 143.839] (II) LoadModule: "dri2"
[ 143.839] (II) Module "dri2" already built-in
[ 143.839] (II) LoadModule: "glamoregl"
[ 143.839] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 143.845] (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so:
/usr/lib64/xorg/modules/libglamoregl.so: undefined symbol: _glapi_tls_Context
[ 143.845] (II) UnloadModule: "glamoregl"
[ 143.845] (II) Unloading glamoregl
[ 143.845] (EE) Failed to load module "glamoregl" (loader failed, 7)
[ 143.845] (II) LoadModule: "glx"
[ 143.845] (II) Loading /usr/lib64/xorg/modules/updates/extensions/libglx.so
[ 143.851] (II) Module glx: vendor="NVIDIA Corporation"
[ 143.851] compiled for 4.0.2, module version = 1.0.0
[ 143.851] Module class: X.Org Server Extension
[ 143.851] (II) NVIDIA GLX Module 319.32 Wed Jun 19 14:55:38 PDT 2013
[ 143.851] Loading extension GLX
[ 143.851] (II) LoadModule: "nouveau"
[ 143.851] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[ 143.992] (II) Module nouveau: vendor="X.Org Foundation"
[ 144.058] compiled for 1.13.1, module version = 1.0.6
[ 144.058] Module class: X.Org Video Driver
[ 144.058] ABI class: X.Org Video Driver, version 13.1
[ 144.058] (II) LoadModule: "mouse"
[ 144.058] (II) Loading /usr/lib64/xorg/modules/input/mouse_drv.so
[ 144.108] (II) Module mouse: vendor="X.Org Foundation"
[ 144.108] compiled for 1.13.1, module version = 1.8.1
[ 144.108] Module class: X.Org XInput Driver
[ 144.108] ABI class: X.Org XInput driver, version 18.0
[ 144.108] (II) LoadModule: "kbd"
[ 144.109] (II) Loading /usr/lib64/xorg/modules/input/kbd_drv.so
[ 144.109] (II) Module kbd: vendor="X.Org Foundation"
[ 144.109] compiled for 1.13.1, module version = 1.6.2
[ 144.109] Module class: X.Org XInput Driver
[ 144.109] ABI class: X.Org XInput driver, version 18.0
[ 144.109] (II) NOUVEAU driver
[ 144.109] (II) NOUVEAU driver for NVIDIA chipset families :
[ 144.109] RIVA TNT (NV04)
[ 144.109] RIVA TNT2 (NV05)
[ 144.109] GeForce 256 (NV10)
[ 144.109] GeForce 2 (NV11, NV15)
[ 144.109] GeForce 4MX (NV17, NV18)
[ 144.109] GeForce 3 (NV20)
[ 144.109] GeForce 4Ti (NV25, NV28)
[ 144.109] GeForce FX (NV3x)
[ 144.109] GeForce 6 (NV4x)
[ 144.109] GeForce 7 (G7x)
[ 144.109] GeForce 8 (G8x)
[ 144.109] GeForce GTX 200 (NVA0)
[ 144.109] GeForce GTX 400 (NVC0)
[ 144.109] (--) using VT number 7

[ 144.163] (II) [drm] nouveau interface version: 1.1.0
[ 144.163] (II) Loading sub module "dri"
[ 144.163] (II) LoadModule: "dri"
[ 144.163] (II) Module "dri" already built-in
[ 144.163] (II) NOUVEAU(0): Loaded DRI module
[ 144.217] (EE) NOUVEAU(0): [drm] failed to set drm interface version.
[ 144.217] (EE) NOUVEAU(0): [drm] error opening the drm
[ 144.217] (EE) NOUVEAU(0): 819:
[ 144.217] (II) UnloadModule: "nouveau"
[ 144.217] (EE) Screen(s) found, but none have a usable configuration.
[ 144.217]
Fatal server error:
[ 144.217] no screens found
[ 144.217] Server terminated with error (1). Closing log file.

What is the DRM?
Actually, the result is better than on beginning. I hope. :-D When I changed
the /etc/X11/xorg.conf.d/50-device.conf to force to use Nvidia, X doesn't
start. I could start it manually by startx, but it ends with blank screen.
Although there is no error in log. Might be more tuning file would fix it?

I still wish good luck :-)
Werner

Thanks,
Vojtěch

--
Vojtěch Zeisek

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

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