Nvidia drivers and Optimus on laptop ?

Nvidia drivers and Optimus on laptop ?

Postby Dupo » Jan 26th, '14, 01:47

Hi,

I installed nvidia drivers from Cauldron repository (331.38). But when I restarted the computer, the system crashed (glx render problem). The computer have Optimus technology. I guess if I want to use proprietary nvidia drivers and the nvidia card on the laptop, I must use Bumblebee + primus + libvirtualgl + bbswitch ? Or must I desactived OpenGL ?

Someone can give me more informations about it ? Could I use nvidia "tools" (nvclock, dkms-nvidiabl, nvidia configuration tool, etc.) ?

Thanks.

Note: I see that bumblebee + primus + dkms-bbswitch + dkms-acpi_call are available in russian repository for Mageia 4. Do I need others files, or these files above are only necessary ?
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: Nvidia drivers and Optimus on laptop ?

Postby Dupo » Jan 26th, '14, 17:42

Hi,

I followed the Mageia wiki tuto about bumblebee, but I've got a problem. When I try to launch Optirun (eg. optirun glxgears), the system tell me it :

Code: Select all
[Error] Cannot access secondary GPU - error : [XORG] (EE) NVIDIA(0) Failed to initialize the NVIDIA kernel module. Please see the
[Error] Aborting because fallback start is disabled.


I installed the last nvidia drivers from Cauldron Mageia repository (331.38), I defined user in bumblebee group ans video group.
I modified /etc/bumblebee.conf :
Code: Select all
Driver=nvidia   KernelDriver=nvidia-current   TurnCardOffAtExit=true

I added in /etc/modprobe.conf :
Code: Select all
nvidia-current && bumblebee

I blacklisted the Nouveau driver in blacklist-compat.conf
I'm come back to intel driver.

Do you know what's wrong ?

Thanks for your help.

Greetings.

Note: How works dkms-bbswitch ? is it automatically ?
Last edited by doktor5000 on Jan 27th, '14, 02:22, edited 1 time in total.
Reason: added code tags, to improve on clarity
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: Nvidia drivers and Optimus on laptop ?

Postby doktor5000 » Jan 27th, '14, 02:26

Well it would maybe be a good idea to get the nvidia driver working in the first place (that is disabling hybrid/Optimus mode and only using discrete graphics if your BIOS/UEFI allows for that) before trying fancier stuff.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Nvidia drivers and Optimus on laptop ?

Postby Dupo » Jan 27th, '14, 18:08

Hi,

@doktor5000: I can't disable hybrid/Optimus mode in my Bios/UEFI (it doesn't exist). I try to use only the discrete graphics (NVIDIA) with the nvidia drivers, but it doesn't work. That's why I try to use Bumblebee and/or Primus.

But each time, I've got the error message above.
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: Nvidia drivers and Optimus on laptop ?

Postby doktor5000 » Jan 28th, '14, 00:24

Did you have a look in /var/log/Xorg.0.log after X server fails to start? What does it say?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Nvidia drivers and Optimus on laptop ?

Postby Dupo » Jan 28th, '14, 16:47

Hi,

here's the part of the result from Xorg.8.log :

Code: Select all
[   196.296] (II) NVIDIA(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[   196.296] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   196.296] (==) NVIDIA(0): RGB weight 888
[   196.296] (==) NVIDIA(0): Default visual is TrueColor
[   196.296] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   196.296] (**) NVIDIA(0): Option "NoLogo" "true"
[   196.296] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[   196.296] (**) NVIDIA(0): Option "UseEDID" "false"
[   196.296] (**) NVIDIA(0): Option "ConnectedMonitor" "DFP"
[   196.296] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[   196.296] (**) NVIDIA(0): Enabling 2D acceleration
[   196.296] (**) NVIDIA(0): ConnectedMonitor string: "DFP"
[   196.296] (**) NVIDIA(0): Ignoring EDIDs
[   196.296] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[   196.296] (**) NVIDIA(0):     mode
[   196.296] (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
[   196.296] (EE) NVIDIA(0):     system's kernel log for additional error messages and
[   196.296] (EE) NVIDIA(0):     consult the NVIDIA README for details.
[   196.296] (EE) NVIDIA(0):  *** Aborting ***
[   196.296] (EE) NVIDIA(0): Failing initialization of X screen 0
[   196.296] (II) UnloadModule: "nvidia"
[   196.296] (II) UnloadSubModule: "wfb"
[   196.296] (II) UnloadSubModule: "fb"
[   196.296] (EE) Screen(s) found, but none have a usable configuration.
[   196.296] (EE)
Fatal server error:
[   196.296] (EE) no screens found(EE)
[   196.296] (EE)
Please consult the The X.Org Foundation support
    at http://bugs.mageia.org
 for help.
[   196.296] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[   196.296] (EE)
[   196.296] (EE) Server terminated with error (1). Closing log file.


I changed "ConnectedMonitor" "DFP" to "CRT", always the same error.
I changed the screen resolution, always the same error.

I use Cinnamon desktop. Only Nvidia 331.38 drivers installed from Cauldron repository. Kernel 3.12.8 installed.
Bumblebee from here : http://packages.mageialinux.ru/mageia4/RPMS/x86_64
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: Nvidia drivers and Optimus on laptop ?

Postby doktor5000 » Jan 29th, '14, 00:40

What does
Code: Select all
dmesg
or
Code: Select all
journalctl -a --no-pager -n250
say at the time, as suggested in Xorg.0.log?
The same goes for /var/log/Xorg.8.log

[ 196.296] (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
[ 196.296] (EE) NVIDIA(0): system's kernel log for additional error messages and
[ 196.296] (EE) NVIDIA(0): consult the NVIDIA README for details.
[ 196.296] (EE) NVIDIA(0): *** Aborting ***

[ 196.296] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Nvidia drivers and Optimus on laptop ?

Postby Dupo » Jan 29th, '14, 01:36

Hi,

as I see in dmesg, it launch Nouveau. But, I uninstalled Nouveau driver (xorg-video-nouveau and xorg-video-nv driver).
And I backlisted Nouveau.

Here's the part I see in dmesg :

Code: Select all
[   15.638682] nvidia: module license 'NVIDIA' taints kernel.
[   15.638685] Disabling lock debugging due to kernel taint
[   15.670753] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[   15.670756] NVRM: This can occur when a driver such as nouveau, rivafb,
NVRM: nvidiafb, or rivatv was loaded and obtained ownership of
NVRM: the NVIDIA device(s).
[   15.670757] NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
[   15.670759] NVRM: No NVIDIA graphics adapter probed!
[   15.670760] [drm] Module unloaded


Check your PM for logs files.

Thanks.

Greetings.
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48

Re: Nvidia drivers and Optimus on laptop ?

Postby doktor5000 » Jan 29th, '14, 02:32

Where does it say that it launches nouveau? And what does lsmod say?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Nvidia drivers and Optimus on laptop ?

Postby Dupo » Jan 29th, '14, 04:12

Hi,

it launch Nouveau before plymouth.

I launched dmesg with bbswitch and with nvidia, here's the results :

Code: Select all
$ dmesg | grep bbswitch
[   21.467649] bbswitch: version 0.7
[   21.467653] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[   21.467657] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[   21.467739] bbswitch: detected an Optimus _DSM function
[   21.467746] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[   21.479906] bbswitch: disabling discrete graphics


Code: Select all
$ dmesg | grep nvidia
[   16.080503] nvidia: module license 'NVIDIA' taints kernel.
NVRM: nvidiafb, or rivatv was loaded and obtained ownership of


Note: Ok, after some research, I found what's the problem. I will tell you later. ;)
Optirun seems to work, but I've got an other error with glxspheres :

Code: Select all
$ optirun -vv glxspheres
polygons in scenes: 62464
ERROR(596): Could not obtain RGB Visual with request properties


Some people said to reinstall libgl1-mesa-glx and/or mesa. Others said to check VGLTransport=proxy in /etc/bumblebee/bumblebee.conf

What do you think about that error ?

Thanks.

Greetings.
Dupo
 
Posts: 79
Joined: Jun 7th, '13, 00:48


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest

cron