public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] trying to use Nouveau
@ 2018-08-04  5:48 Philip Webb
  2018-08-04  7:37 ` John Covici
  2018-08-04  8:27 ` Andrew Savchenko
  0 siblings, 2 replies; 7+ messages in thread
From: Philip Webb @ 2018-08-04  5:48 UTC (permalink / raw
  To: Gentoo User

Last month, I sent in a query re Nouveau : thanks for the replies.

I have emerged it :

  root:508 log> eix nouveau
    [I] x11-drivers/xf86-video-nouveau
     Available versions:  1.0.15 1.0.15-r1
     Installed versions:  1.0.15-r1([2018-07-26 15:39:37])
     Homepage:            https://nouveau.freedesktop.org/wiki/
     Description:         Accelerated Open Source driver for nVidia cards

I have tried to switch to it with 'eselect opengl set xorg-x11' :

  root:507 log> eselect opengl list
  Available OpenGL implementations:
  [1]   nvidia
  [2]   xorg-x11 *

I have renamed  /lib/udev/rules.d/99-nvidia.rules  by appending '.dft',
as recommended in the Wiki.

But when I 'startx' & then check  /var/log/Xorg.0.log , I find :

  (II) Module glx: vendor="X.Org Foundation"
     compiled for 1.19.5, module version = 1.0.0
     ABI class: X.Org Server Extension, version 10.0
  (II) LoadModule: "nvidia"
  (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
  (II) Module nvidia: vendor="NVIDIA Corporation"
     compiled for 4.0.2, module version = 1.0.0
     Module class: X.Org Video Driver
  (II) NVIDIA dlloader X Driver  390.67  Fri Jun  1 02:45:19 PDT 2018
  (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
  (--) using VT number 7

I suspect that I need to re-merge some pkgs ;
I have added 'nouveau' to  VIDEO_CARDS  in  make.conf ,
but it won't have an effect until a pkg is re-merged.

Can anyone offer advice what to try next ?

BTW the Wiki entry for 'nouveau' seems a bit out-of-date.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] trying to use Nouveau
  2018-08-04  5:48 [gentoo-user] trying to use Nouveau Philip Webb
@ 2018-08-04  7:37 ` John Covici
  2018-08-04  8:27 ` Andrew Savchenko
  1 sibling, 0 replies; 7+ messages in thread
From: John Covici @ 2018-08-04  7:37 UTC (permalink / raw
  To: Gentoo User

On Sat, 04 Aug 2018 01:48:15 -0400,
Philip Webb wrote:
> 
> Last month, I sent in a query re Nouveau : thanks for the replies.
> 
> I have emerged it :
> 
>   root:508 log> eix nouveau
>     [I] x11-drivers/xf86-video-nouveau
>      Available versions:  1.0.15 1.0.15-r1
>      Installed versions:  1.0.15-r1([2018-07-26 15:39:37])
>      Homepage:            https://nouveau.freedesktop.org/wiki/
>      Description:         Accelerated Open Source driver for nVidia cards
> 
> I have tried to switch to it with 'eselect opengl set xorg-x11' :
> 
>   root:507 log> eselect opengl list
>   Available OpenGL implementations:
>   [1]   nvidia
>   [2]   xorg-x11 *
> 
> I have renamed  /lib/udev/rules.d/99-nvidia.rules  by appending '.dft',
> as recommended in the Wiki.
> 
> But when I 'startx' & then check  /var/log/Xorg.0.log , I find :
> 
>   (II) Module glx: vendor="X.Org Foundation"
>      compiled for 1.19.5, module version = 1.0.0
>      ABI class: X.Org Server Extension, version 10.0
>   (II) LoadModule: "nvidia"
>   (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
>   (II) Module nvidia: vendor="NVIDIA Corporation"
>      compiled for 4.0.2, module version = 1.0.0
>      Module class: X.Org Video Driver
>   (II) NVIDIA dlloader X Driver  390.67  Fri Jun  1 02:45:19 PDT 2018
>   (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
>   (--) using VT number 7
> 
> I suspect that I need to re-merge some pkgs ;
> I have added 'nouveau' to  VIDEO_CARDS  in  make.conf ,
> but it won't have an effect until a pkg is re-merged.
> 
> Can anyone offer advice what to try next ?
> 
> BTW the Wiki entry for 'nouveau' seems a bit out-of-date.

Maybe something in xorg.conf loads the wrong driver?

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] trying to use Nouveau
  2018-08-04  5:48 [gentoo-user] trying to use Nouveau Philip Webb
  2018-08-04  7:37 ` John Covici
@ 2018-08-04  8:27 ` Andrew Savchenko
  2018-08-05  7:40   ` Philip Webb
  1 sibling, 1 reply; 7+ messages in thread
From: Andrew Savchenko @ 2018-08-04  8:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1935 bytes --]

On Sat, 4 Aug 2018 01:48:15 -0400 Philip Webb wrote:
> Last month, I sent in a query re Nouveau : thanks for the replies.
> 
> I have emerged it :
> 
>   root:508 log> eix nouveau
>     [I] x11-drivers/xf86-video-nouveau
>      Available versions:  1.0.15 1.0.15-r1
>      Installed versions:  1.0.15-r1([2018-07-26 15:39:37])
>      Homepage:            https://nouveau.freedesktop.org/wiki/
>      Description:         Accelerated Open Source driver for nVidia cards
> 
> I have tried to switch to it with 'eselect opengl set xorg-x11' :
> 
>   root:507 log> eselect opengl list
>   Available OpenGL implementations:
>   [1]   nvidia
>   [2]   xorg-x11 *
> 
> I have renamed  /lib/udev/rules.d/99-nvidia.rules  by appending '.dft',
> as recommended in the Wiki.
> 
> But when I 'startx' & then check  /var/log/Xorg.0.log , I find :
> 
>   (II) Module glx: vendor="X.Org Foundation"
>      compiled for 1.19.5, module version = 1.0.0
>      ABI class: X.Org Server Extension, version 10.0
>   (II) LoadModule: "nvidia"
>   (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
>   (II) Module nvidia: vendor="NVIDIA Corporation"
>      compiled for 4.0.2, module version = 1.0.0
>      Module class: X.Org Video Driver
>   (II) NVIDIA dlloader X Driver  390.67  Fri Jun  1 02:45:19 PDT 2018
>   (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
>   (--) using VT number 7
> 
> I suspect that I need to re-merge some pkgs ;
> I have added 'nouveau' to  VIDEO_CARDS  in  make.conf ,
> but it won't have an effect until a pkg is re-merged.
> 
> Can anyone offer advice what to try next ?

Your xorg.conf (or a file from xorg.conf.d directory) must contain
the following:

Section "Device"
    Identifier  "Card1"
    Driver      "modesetting"
... (some options may follow)
EndSection

You probably name `Driver "nvidia"` there right now.

Best regards,
Andrew Savchenko

[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] trying to use Nouveau
  2018-08-04  8:27 ` Andrew Savchenko
@ 2018-08-05  7:40   ` Philip Webb
  2018-08-05  8:00     ` T BkRl
  2018-08-06  6:38     ` Philip Webb
  0 siblings, 2 replies; 7+ messages in thread
From: Philip Webb @ 2018-08-05  7:40 UTC (permalink / raw
  To: gentoo-user

180804 Andrew Savchenko wrote:
> Your xorg.conf -- or a file from xorg.conf.d directory --
> must contain the following :
> 
>   Section "Device"
>       Identifier  "Card1"
>       Driver      "modesetting"
>   ... (some options may follow)
>   EndSection
> 
> You probably name `Driver "nvidia"` there right now.

I've created a file  /etc/X11/xorg.conf.d/10nouveau.conf ,
which reads as above (apart from the "options" line, which is omitted) ;
I use spaces, not tabs.  I've tried all  4  permutations
of "Card1" / "Card0" & "modesetting" / "nouveau".
I also tried naming it '99...' : there's a '20opengl.conf', which says :

  Section "Files"
        ModulePath "/usr/lib64/xorg/modules"
  EndSection

I've also recompiled  xorg-drivers , then  xorg-server :
the former now has the USE flag 'nouveau'.  I've rebooted between trials.

Every time, Nvidia starts :

  (**) ModulePath set to "/usr/lib64/xorg/modules"
  (II) The server relies on udev to provide the list of input devices.
   devices become available, reconfigure udev or disable AutoAddDevices.
  (II) Loader magic: 0x55cc540cfc20
  (II) Module ABI versions:
     X.Org ANSI C Emulation: 0.4
     X.Org Video Driver: 23.0
     X.Org XInput driver : 24.1
     X.Org Server Extension : 10.0
  (--) PCI:*(0:1:0:0) 10de:104a:1043:8496 rev 161, Mem @ 0xfd000000/16777216, 0xf0000000/134217728, 0xf8000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
  (II) LoadModule: "glx"
  (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
  (II) Module glx: vendor="X.Org Foundation"
     compiled for 1.19.5, module version = 1.0.0
     ABI class: X.Org Server Extension, version 10.0
  (II) LoadModule: "nvidia"
  (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
  (II) Module nvidia: vendor="NVIDIA Corporation"
     compiled for 4.0.2, module version = 1.0.0
     Module class: X.Org Video Driver
  (II) NVIDIA dlloader X Driver  390.67  Fri Jun  1 02:45:19 PDT 2018
  (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
  (--) using VT number 7

 /usr/lib64/xorg/modules  contains :

  root:510 modules> ls -l
    drwxr-xr-x 2 root root    184 Aug  5 02:56 drivers
    drwxr-xr-x 2 root root     80 Aug  5 02:56 extensions
    drwxr-xr-x 2 root root     80 Jun  2 20:57 input
    -rwxr-xr-x 1 root root  92704 Aug  5 02:56 libexa.so
    -rwxr-xr-x 1 root root  18480 Aug  5 02:56 libfbdevhw.so
    -rwxr-xr-x 1 root root 142176 Aug  5 02:56 libfb.so
    -rwxr-xr-x 1 root root 141848 Aug  5 02:56 libint10.so
    -rwxr-xr-x 1 root root  10192 Aug  5 02:56 libshadowfb.so
    -rwxr-xr-x 1 root root  34800 Aug  5 02:56 libshadow.so
    -rwxr-xr-x 1 root root  22752 Aug  5 02:56 libvbe.so
    -rwxr-xr-x 1 root root  31664 Aug  5 02:56 libvgahw.so
    -rwxr-xr-x 1 root root 179040 Aug  5 02:56 libwfb.so
  root:511 modules> ls -l drivers
    -rwxr-xr-x 1 root root   69288 Aug  5 02:56 modesetting_drv.so
    -rwxr-xr-x 1 root root  208600 Jul 26 15:39 nouveau_drv.so
    -rw-r--r-- 1 root root 7780496 Jul 26 14:15 nvidia_drv.so
    -rwxr-xr-x 1 root root   27512 May 12 20:20 vesa_drv.so

Is 'udev' getting entangled in this at some point ?

Does anyone have any further advice ?  Thanks so far.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] trying to use Nouveau
  2018-08-05  7:40   ` Philip Webb
@ 2018-08-05  8:00     ` T BkRl
  2018-08-06  6:38     ` Philip Webb
  1 sibling, 0 replies; 7+ messages in thread
From: T BkRl @ 2018-08-05  8:00 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org, gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 3657 bytes --]

I’m not sure if xorg is the only thing at fault. I’ve had issues in opensuse and mint where if I force nouveau it kernel panics during boot. Otherwise it loads Nvidia.


________________________________
From: Philip Webb <purslow@ca.inter.net>
Sent: Sunday, August 5, 2018 3:40 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] trying to use Nouveau

180804 Andrew Savchenko wrote:
> Your xorg.conf -- or a file from xorg.conf.d directory --
> must contain the following :
>
> Section "Device"
> Identifier "Card1"
> Driver "modesetting"
> ... (some options may follow)
> EndSection
>
> You probably name `Driver "nvidia"` there right now.

I've created a file /etc/X11/xorg.conf.d/10nouveau.conf ,
which reads as above (apart from the "options" line, which is omitted) ;
I use spaces, not tabs. I've tried all 4 permutations
of "Card1" / "Card0" & "modesetting" / "nouveau".
I also tried naming it '99...' : there's a '20opengl.conf', which says :

Section "Files"
ModulePath "/usr/lib64/xorg/modules"
EndSection

I've also recompiled xorg-drivers , then xorg-server :
the former now has the USE flag 'nouveau'. I've rebooted between trials.

Every time, Nvidia starts :

(**) ModulePath set to "/usr/lib64/xorg/modules"
(II) The server relies on udev to provide the list of input devices.
devices become available, reconfigure udev or disable AutoAddDevices.
(II) Loader magic: 0x55cc540cfc20
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 23.0
X.Org XInput driver : 24.1
X.Org Server Extension : 10.0
(--) PCI:*(0:1:0:0) 10de:104a:1043:8496 rev 161, Mem @ 0xfd000000/16777216, 0xf0000000/134217728, 0xf8000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
(II) LoadModule: "glx"
(II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
compiled for 1.19.5, module version = 1.0.0
ABI class: X.Org Server Extension, version 10.0
(II) LoadModule: "nvidia"
(II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver 390.67 Fri Jun 1 02:45:19 PDT 2018
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(--) using VT number 7

/usr/lib64/xorg/modules contains :

root:510 modules> ls -l
drwxr-xr-x 2 root root 184 Aug 5 02:56 drivers
drwxr-xr-x 2 root root 80 Aug 5 02:56 extensions
drwxr-xr-x 2 root root 80 Jun 2 20:57 input
-rwxr-xr-x 1 root root 92704 Aug 5 02:56 libexa.so
-rwxr-xr-x 1 root root 18480 Aug 5 02:56 libfbdevhw.so
-rwxr-xr-x 1 root root 142176 Aug 5 02:56 libfb.so
-rwxr-xr-x 1 root root 141848 Aug 5 02:56 libint10.so
-rwxr-xr-x 1 root root 10192 Aug 5 02:56 libshadowfb.so
-rwxr-xr-x 1 root root 34800 Aug 5 02:56 libshadow.so
-rwxr-xr-x 1 root root 22752 Aug 5 02:56 libvbe.so
-rwxr-xr-x 1 root root 31664 Aug 5 02:56 libvgahw.so
-rwxr-xr-x 1 root root 179040 Aug 5 02:56 libwfb.so
root:511 modules> ls -l drivers
-rwxr-xr-x 1 root root 69288 Aug 5 02:56 modesetting_drv.so
-rwxr-xr-x 1 root root 208600 Jul 26 15:39 nouveau_drv.so
-rw-r--r-- 1 root root 7780496 Jul 26 14:15 nvidia_drv.so
-rwxr-xr-x 1 root root 27512 May 12 20:20 vesa_drv.so

Is 'udev' getting entangled in this at some point ?

Does anyone have any further advice ? Thanks so far.

--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca



[-- Attachment #2: Type: text/html, Size: 4845 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] trying to use Nouveau
  2018-08-05  7:40   ` Philip Webb
  2018-08-05  8:00     ` T BkRl
@ 2018-08-06  6:38     ` Philip Webb
  2018-08-06  7:28       ` Andrew Savchenko
  1 sibling, 1 reply; 7+ messages in thread
From: Philip Webb @ 2018-08-06  6:38 UTC (permalink / raw
  To: gentoo-user

180805 Philip Webb wrote:
> 180804 Andrew Savchenko wrote:
>> Your xorg.conf -- or a file from xorg.conf.d directory --
>> must contain the following :
>> 
>>   Section "Device"
>>       Identifier  "Card1"
>>       Driver      "modesetting"
>>   ... (some options may follow)
>>   EndSection

I've done that, as described in my previous msg, without success.

Then I noticed that Wiki says the kernel needs recompiling
with 'Drivers->Graphics-><*>DirectRenderingManager
                         <*>NouveauCards' ;
I also unset the "<->Backlight ... " just below, as I don't need it.
The new kernel is noticeably bigger than the previous version ;
I copied it to  /boot  as usual, updated  lilo.conf  & ran Lilo ;
the new kernel (called 4.14.52b) booted successfully,
but neither Nouveau nor Nvidia would start ;
even worse, neither would start with the previous version 4.14.52 ,
which had been working with Nvidia for some time.

The kernel log stops after several repeats of the lines :

  kernel: nvidia: Unknown symbol backlight_device_unregister (err 0)
  kernel: nvidia: Unknown symbol backlight_device_register (err 0)

Finally, I booted into kernel 4.9.95 & Nvidia still starts there.

This is turning into a nightmare.  It all started when 4.14.52
couldn't find my scanner, which 4.9.16 had no trouble with,
& then I found I couldn't test 4.9.16, as Nvidia no longer worked with it.
To test 4.9.16 it seems sensible to try Nouveau instead of Nvidia,
but that has led to a further tangle.

I suspect the problem with the scanner is that the Epson driver
needs an update to work with the most recent kernels.
That's something I'll have to take up with Epson, if I can.

However, the Nouveau/Nvidia mess is something I sb able to sort out.
Can anyone suggest what's gone wrong & how to put it right ?

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] trying to use Nouveau
  2018-08-06  6:38     ` Philip Webb
@ 2018-08-06  7:28       ` Andrew Savchenko
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Savchenko @ 2018-08-06  7:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2546 bytes --]

On Mon, 6 Aug 2018 02:38:28 -0400 Philip Webb wrote:
> 180805 Philip Webb wrote:
> > 180804 Andrew Savchenko wrote:
> >> Your xorg.conf -- or a file from xorg.conf.d directory --
> >> must contain the following :
> >> 
> >>   Section "Device"
> >>       Identifier  "Card1"
> >>       Driver      "modesetting"
> >>   ... (some options may follow)
> >>   EndSection
> 
> I've done that, as described in my previous msg, without success.
> 
> Then I noticed that Wiki says the kernel needs recompiling
> with 'Drivers->Graphics-><*>DirectRenderingManager
>                          <*>NouveauCards' ;

Well, that was too obvious to mention :)

> I also unset the "<->Backlight ... " just below, as I don't need it.
> The new kernel is noticeably bigger than the previous version ;
> I copied it to  /boot  as usual, updated  lilo.conf  & ran Lilo ;
> the new kernel (called 4.14.52b) booted successfully,
> but neither Nouveau nor Nvidia would start ;
> even worse, neither would start with the previous version 4.14.52 ,
> which had been working with Nvidia for some time.
> 
> The kernel log stops after several repeats of the lines :
> 
>   kernel: nvidia: Unknown symbol backlight_device_unregister (err 0)
>   kernel: nvidia: Unknown symbol backlight_device_register (err 0)

You need to rebuild nvidia-drivers. As a rule of thumb after each
kernel update (or major config change) one must rebuild
external kernel modules:

  emerge -av @module-rebuild
 
> Finally, I booted into kernel 4.9.95 & Nvidia still starts there.
> 
> This is turning into a nightmare.  It all started when 4.14.52
> couldn't find my scanner, which 4.9.16 had no trouble with,
> & then I found I couldn't test 4.9.16, as Nvidia no longer worked with it.
> To test 4.9.16 it seems sensible to try Nouveau instead of Nvidia,
> but that has led to a further tangle.
> 
> I suspect the problem with the scanner is that the Epson driver
> needs an update to work with the most recent kernels.
> That's something I'll have to take up with Epson, if I can.

What is your scanner model? Are you using sane-epson2 and the
latest sane version? It really shouldn't depend on the kernel
unless you are missing some crucial (e.g. usb) drivers.

> However, the Nouveau/Nvidia mess is something I sb able to sort out.
> Can anyone suggest what's gone wrong & how to put it right ?

You have not stated what is wrong with your Nouveau + kernel
4.14.52 setup. Please provide Xorg logs.


Best regards,
Andrew Savchenko

[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-06  7:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-04  5:48 [gentoo-user] trying to use Nouveau Philip Webb
2018-08-04  7:37 ` John Covici
2018-08-04  8:27 ` Andrew Savchenko
2018-08-05  7:40   ` Philip Webb
2018-08-05  8:00     ` T BkRl
2018-08-06  6:38     ` Philip Webb
2018-08-06  7:28       ` Andrew Savchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox