Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] Failed to load driver: Nouveau

1,044 views
Skip to first unread message

IceAmber

unread,
Aug 27, 2017, 4:30:04 AM8/27/17
to
Hi, everyone

There is an error in my system, it print as follow when I run the command `glxinfo | grep AGP`
iceamber@localhost:~ $ glxinfo | grep AGP
nvc0_screen_create:944 - Error allocating PGRAPH context for 3D: -22
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau

Here is the Xorg.0.log 
The model of my graphic card is GTX1060, and the kernel version of my system is linux-4.12.5
is there any suggestion for me?
 
 
Thank you & Nice Weekend
Ice Amber

IceAmber

unread,
Aug 27, 2017, 6:00:03 AM8/27/17
to
yes, here is the eselect
    
iceamber@localhost:~ $ eselect opengl list 
Available OpenGL implementations:
  [1]   xorg-x11 *


iceamber@localhost:~ $ eselect mesa list 
64bit i915 (Intel 915, 945)
64bit i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
64bit r300 (Radeon R300-R500)
64bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
64bit sw (Software renderer)
  [1]   classic
  [2]   gallium *
32bit i915 (Intel 915, 945)
32bit i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
32bit r300 (Radeon R300-R500)
32bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
32bit sw (Software renderer)
  [1]   classic
  [2]   gallium *


Did you eselect opengl and mesa?


Adam Carter

unread,
Aug 27, 2017, 6:00:03 AM8/27/17
to

Adam Carter

unread,
Aug 27, 2017, 6:10:03 AM8/27/17
to
yes, here is the eselect

When i have X problems i can resolve i run emerge -av @x11-module-rebuild xorg-server mesa but its generally an act of desperation after running out of intelligent options.

IceAmber

unread,
Aug 27, 2017, 7:30:03 AM8/27/17
to
I have tried, but the same result

Alexander Kapshuk

unread,
Aug 27, 2017, 10:50:04 AM8/27/17
to
Your xorg-server was built for kernel 4.9.34.
[ 24.014] Build Operating System: Linux 4.9.34-gentoo x86_64 Gentoo
[ 24.014] Current Operating System: Linux localhost 4.12.5-gentoo
#10 SMP Sat Aug 26 13:15:20 UTC 2017 x86_64

Might be a good idea to rebuild x11-base/xorg-server for your current kernel.

What's the output of the command lines below?
grep NOUVEAU linux/.config
grep -E 'nvidia|VIDEO_CARDS' /etc/portage/make.conf

Alexander Kapshuk

unread,
Aug 27, 2017, 11:00:04 AM8/27/17
to
This one too please:
grep -si nouveau /var/log/*

Alexander Kapshuk

unread,
Aug 27, 2017, 1:00:03 PM8/27/17
to
On Sun, Aug 27, 2017 at 5:49 PM, Alexander Kapshuk
Also, let's make sure mesa has the USE flags below enabled:

equery -q u mesa | grep -E 'gallium|nouveau'
+gallium
+video_cards_nouveau

IceAmber

unread,
Aug 27, 2017, 1:30:04 PM8/27/17
to
iceamber@localhost:~ $ grep NOUVEAU /usr/src/linux/.config
CONFIG_DRM_NOUVEAU=m
CONFIG_NOUVEAU_DEBUG=5
CONFIG_NOUVEAU_DEBUG_DEFAULT=3
CONFIG_DRM_NOUVEAU_BACKLIGHT=y

iceamber@localhost:~ $ grep -E 'nvidia|VIDEO_CARDS' /etc/portage/make.conf
VIDEO_CARDS="nouveau"


I have rebuilt the xorg-server, it is built for kernel 4.12.5 now.
And I have set the USEs of "gallium" and "video_cards_nouveau"

Alexander Kapshuk

unread,
Aug 27, 2017, 2:10:03 PM8/27/17
to
I'm not seeing these errors in your Xorg.0.log any more:
[ 25.361] (EE) AIGLX error: Calling driver entry point failed
[ 25.375] (EE) AIGLX: reverting to software rendering

Are you still getting the error message about the nouveau driver not
being loaded when running glxinfo or glxgears?
If you are, what's the output of:
lsmod nouveau
modinfo /lib/modules/`uname -r`/path/to/nouveau.ko

Alexander Kapshuk

unread,
Aug 28, 2017, 7:50:04 AM8/28/17
to
On Mon, Aug 28, 2017 at 2:41 PM, IceAmber <iceamb...@gmail.com> wrote:
> No, the error still there.
> And the script `modinfo /lib/modules/`uname -r`/path/to/nouveau.ko` shows
> iceamber@localhost:~ $ modinfo /lib/modules/`uname -r`/path/to/nouveau.ko
> modinfo: ERROR: Module /lib/modules/4.12.5-gentoo/path/to/nouveau.ko not
> found.
>

Note: 'path/to' in 'modinfo /lib/modules/`uname
-r`/path/to/nouveau.ko' above needs substituting for the path to your
nouveau.ko driver. Try locating it and rerun modinfo on it.
Alternatively, you could try compiling nouveau into the kernel by
setting CONFIG_DRM_NOUVEAU=y, reboot and see if that helps.

IceAmber

unread,
Aug 28, 2017, 7:50:04 AM8/28/17
to
No, the error still there. 
And the script `modinfo /lib/modules/`uname -r`/path/to/nouveau.ko` shows
iceamber@localhost:~ $ modinfo /lib/modules/`uname -r`/path/to/nouveau.ko
modinfo: ERROR: Module /lib/modules/4.12.5-gentoo/path/to/nouveau.ko not found.

IceAmber

unread,
Aug 28, 2017, 10:10:04 AM8/28/17
to
so, what should I do to locate the driver?

David Abbott

unread,
Aug 28, 2017, 10:20:05 AM8/28/17
to
try;
modinfo nouveau | grep filename

Alexander Kapshuk

unread,
Aug 28, 2017, 10:20:05 AM8/28/17
to
du -a /lib/modules/`uname -r`/ | sed '/nouveau.ko$/!d;s/.*\t//'

IceAmber

unread,
Aug 28, 2017, 10:40:05 AM8/28/17
to
the result is 
iceamber@localhost:~ $ modinfo nouveau | grep filename
filename:       /lib/modules/4.12.5-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko

IceAmber

unread,
Aug 28, 2017, 10:40:05 AM8/28/17
to
`du -a /lib/modules/`uname -r`/ | sed '/nouveau.ko$/!d;s/.*\t//'` as the same result

Alexander Kapshuk

unread,
Aug 28, 2017, 11:00:04 AM8/28/17
to
Now run:
modinfo /lib/modules/4.12.5-gentoo/kernel/drivers/gpu/drm/nouveau/nouveau.ko

IceAmber

unread,
Aug 28, 2017, 11:10:04 AM8/28/17
to
here is the result

Alexander Kapshuk

unread,
Aug 28, 2017, 11:20:04 AM8/28/17
to
To make 100 per cent certain your driver is loaded, can you also run:
lsmod | grep nouveau

IceAmber

unread,
Aug 28, 2017, 11:40:03 AM8/28/17
to
here is the result 

iceamber@localhost:~ $ lsmod | grep nouveau
nouveau              1507328  2
i2c_algo_bit           16384  1 nouveau
drm_kms_helper        118784  1 nouveau
ttm                    77824  1 nouveau
drm                   282624  5 nouveau,ttm,drm_kms_helper
agpgart                32768  3 nouveau,ttm,drm
led_class              16384  3 input_leds,hid_sony,nouveau

Alexander Kapshuk

unread,
Aug 28, 2017, 12:50:04 PM8/28/17
to
On Mon, Aug 28, 2017 at 6:30 PM, IceAmber <iceamb...@gmail.com> wrote:
> here is the result
>
> iceamber@localhost:~ $ lsmod | grep nouveau
> nouveau 1507328 2
> i2c_algo_bit 16384 1 nouveau
> drm_kms_helper 118784 1 nouveau
> ttm 77824 1 nouveau
> drm 282624 5 nouveau,ttm,drm_kms_helper
> agpgart 32768 3 nouveau,ttm,drm
> led_class 16384 3 input_leds,hid_sony,nouveau
>
>

Your nouveau kernel driver seems to be OK. That's good news.
The bad news is we're back to square one.

It was glxinfo, which is a part of x11-apps/mesa-progs, that generated
the original error message.
So, perhaps, it is a mesa problem.

Can you please try this command line and see what it outputs:
LIBGL_DEBUG=verbose glxgears

Alexander Kapshuk

unread,
Aug 29, 2017, 5:40:05 AM8/29/17
to
This reference may help better debug your problem:
https://nouveau.freedesktop.org/wiki/MesaDrivers/

IceAmber

unread,
Aug 29, 2017, 9:30:04 AM8/29/17
to
here is the outputs

iceamber@localhost:~ $ LIBGL_DEBUG=verbose glxgears
libGL: OpenDriver: trying /usr/lib64/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/nouveau_dri.so
nvc0_screen_create:944 - Error allocating PGRAPH context for 3D: -22
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: Can't open configuration file /home/iceamber/.drirc: No such file or directory.
libGL: Can't open configuration file /home/iceamber/.drirc: No such file or directory.

J. Roeleveld

unread,
Aug 29, 2017, 10:00:04 AM8/29/17
to
Are you in the 'video' group?

--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Alexander Kapshuk

unread,
Aug 29, 2017, 10:30:05 AM8/29/17
to
On Tue, Aug 29, 2017 at 12:35 PM, Alexander Kapshuk
The Mesa drivers wiki page above says:

nv50 and nvc0

Make sure you are using at least Mesa 7.11, but please consider using
latest stable release. You have to use at least the 2.6.38 kernel or
you will encounter memory corruptions. For nvc0 hardware it's
recommended to use at least kernel 3.1.

Bug reports for nv50 and nvc0 can be submitted by following the
general reporting guidelines. Please, also follow the About bugs and
problems section above.

What version is your media-libs/mesa?

Is this the first time you've run into this trouble using the nouveau driver?
What driver did you use before with this piece of hardware proprietary
nvidia one, or nouveau?

IceAmber

unread,
Aug 29, 2017, 11:00:04 AM8/29/17
to
yes, I have in the video group.

the version of mesa is 

   media-libs/mesa
      Latest version available: 17.0.6
      Latest version installed: 17.0.6
      Size of files: 9,273 KiB
      Description:   OpenGL-like graphic library for Linux
      License:       MIT

this is the first time to use the nouveau driver, I used the AMD video card, the model was HD6580, and the driver was radeon before.

Alexander Kapshuk

unread,
Aug 29, 2017, 11:20:04 AM8/29/17
to
I don't have any further suggestions to make at the moment. Sorry.
Hopefully, someone else might be able to help.

IceAmber

unread,
Aug 29, 2017, 11:30:04 AM8/29/17
to
thank you all the same. I'll try to fix it if possible

Marc Joliet

unread,
Sep 6, 2017, 6:50:03 PM9/6/17
to
Am Montag, 28. August 2017, 16:17:30 CEST schrieb David Abbott:
[...]
> try;
> modinfo nouveau | grep filename

FWIW, modinfo has various options that make using grep like that unnecessary:

% modinfo -h
Usage:
modinfo [options] filename [args]
Options:
-a, --author Print only 'author'
-d, --description Print only 'description'
-l, --license Print only 'license'
-p, --parameters Print only 'parm'
-n, --filename Print only 'filename'
-0, --null Use \0 instead of \n
-F, --field=FIELD Print only provided FIELD
-k, --set-version=VERSION Use VERSION instead of `uname -r`
-b, --basedir=DIR Use DIR as filesystem root for /lib/
modules
-V, --version Show version
-h, --help Show this help

HTH
--
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup
signature.asc
0 new messages