Bug 18084 - Can't get nvidia proprietary working on MGA6D1
Summary: Can't get nvidia proprietary working on MGA6D1
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords: 6dev1, NEEDINFO, PATCH
Depends on:
Blocks:
 
Reported: 2016-03-28 16:51 CEST by Rolf Pedersen
Modified: 2020-08-22 19:15 CEST (History)
9 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
xorg.conf (5.59 KB, text/plain)
2016-03-28 16:53 CEST, Rolf Pedersen
Details
Xorg.0.log (5.45 KB, text/plain)
2016-03-29 03:11 CEST, Rolf Pedersen
Details
mga6d1 x86_64 report.bug.gz (256.89 KB, application/x-xz)
2016-03-29 14:33 CEST, Rolf Pedersen
Details
report.bug.xz (167.19 KB, application/x-xz)
2017-01-13 19:50 CET, Thomas Andrews
Details

Description Rolf Pedersen 2016-03-28 16:51:27 CEST
Just got the iso by torrent yesterday and verified md5sum.
Wrote to 8G usb key with recent version of Rosa Image Writer.
Installation proceeded, installed to test partition, chose 'Custom' to have the 'Development' group and selected plasma desktop.

I added the dhcp connection and chose to get updates, about 600 packages.

At first boot, I'm dropped to a text mode with reports concerning an X failure, which I configured during install to use the proprietary nvidia driver for NVIDIA GM206 [GeForce GTX 960]; I believe this uses something like '4xx and later' which is pre-selected in XFdrake.  I left monitor at PlugnPlay and resolution at automatic.

The installation has been updated with 'urpmi -v --auto-update'

I've repeatedly run drakx11 from a text mode.  There is a message my screen is too small and it aborts.  When I check screen size, something like 400x300 is pre-selected, if that means anything, but increasing that doesn't help with that message coming back and aborting.

I've chosen grub with text menu at install and modified the grub legacy boot entry, taking out 'splash' and 'quiet' as my preference is to see the kernel messages.  Here is what is configured:

title linux
kernel (hd4,8)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=131bba44-fab2-42ff-93f7-007934a41181 noiswmd resume=UUID=70a32201-ef9f-47ec-a84c-38aba7d010f3 vga=788 
root (hd4,8)
initrd /boot/initrd.img

Here is what's in /boot:

[root@p8z68 20160327]# ll /mnt/disk/boot
total 58348
-rw-r--r-- 1 root root      440 Mar 27 11:36 boot.backup.sdd
-rw-r--r-- 1 root root   181122 Mar 10 08:22 config-4.4.5-desktop-1.mga6
-rw-r--r-- 1 root root   181122 Mar 16 22:38 config-4.4.6-desktop-1.mga6
drwxr-xr-x 2 root root       48 Mar 16 10:54 dracut/
drwxr-xr-x 2 root root      640 Mar 27 21:49 grub/
-rw------- 1 root root 21555155 Mar 27 11:27 initrd-4.4.5-desktop-1.mga6.img
-rw------- 1 root root 21553334 Mar 27 11:47 initrd-4.4.6-desktop-1.mga6.img
lrwxrwxrwx 1 root root       31 Mar 27 11:47 initrd-desktop.img -> initrd-4.4.6-desktop-1.mga6.img
lrwxrwxrwx 1 root root       31 Mar 27 11:47 initrd.img -> initrd-4.4.6-desktop-1.mga6.img
-rw-r--r-- 1 root root   255072 Mar 10 08:22 symvers-4.4.5-desktop-1.mga6.xz
-rw-r--r-- 1 root root   255164 Mar 16 22:38 symvers-4.4.6-desktop-1.mga6.xz
-rw-r--r-- 1 root root  3382526 Mar 10 08:22 System.map-4.4.5-desktop-1.mga6
-rw-r--r-- 1 root root  3382889 Mar 16 22:38 System.map-4.4.6-desktop-1.mga6
lrwxrwxrwx 1 root root       28 Mar 27 11:47 vmlinuz -> vmlinuz-4.4.6-desktop-1.mga6
-rw-r--r-- 1 root root  4457824 Mar 10 08:22 vmlinuz-4.4.5-desktop-1.mga6
-rw-r--r-- 1 root root  4459136 Mar 16 22:38 vmlinuz-4.4.6-desktop-1.mga6
lrwxrwxrwx 1 root root       28 Mar 27 11:47 vmlinuz-desktop -> vmlinuz-4.4.6-desktop-1.mga6

Throughout many configuration attempts and reboot, I see something related to using nouveaufb.

After each reboot, I see something like "Your computer needs to reboot as the video driver has been changed", even on the next reboot having changed nothing.

Finally, I've tried to blacklist nouveau by creating a file:

[root@p8z68 20160327]# cat /mnt/disk//etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau

without a difference that I can see, still in "Your computer needs to reboot..." loop.

Thanks
Comment 1 Rolf Pedersen 2016-03-28 16:53:22 CEST
Created attachment 7598 [details]
xorg.conf

The attached xorg.conf looks like what I told XFdrake to do.
Comment 2 Marja Van Waes 2016-03-28 20:03:37 CEST
Could you please attach Xorg log, as explained here

https://wiki.mageia.org/en/Triage_guide#X_server_crashes_at_startup

Keywords: (none) => 6dev1, NEEDINFO
CC: (none) => marja11

Comment 3 Thomas Backlund 2016-03-28 20:50:20 CEST
there is a missing "nokmsboot" on kernel command line

can you list all nvidia packages that are installed:

rpm -qa |grep -i nvidia

CC: (none) => tmb

Comment 4 Rolf Pedersen 2016-03-29 03:11:31 CEST
Created attachment 7606 [details]
Xorg.0.log
Comment 5 Rolf Pedersen 2016-03-29 03:17:03 CEST
(In reply to Thomas Backlund from comment #3)
> there is a missing "nokmsboot" on kernel command line
> 
Added from working MGA5. I'll try another boot later this evening.

> can you list all nvidia packages that are installed:
> 
> rpm -qa |grep -i nvidia

From chroot

[root@p8z68 /]# rpm -qa |grep -i nvidia
nvidia-current-doc-html-352.79-2.mga6.nonfree
nvidia-current-kernel-desktop-latest-352.79-12.mga6.nonfree
nvidia-current-kernel-4.4.5-desktop-1.mga6-352.79-11.mga6.nonfree
dkms-nvidia-current-352.79-2.mga6.nonfree
nvidia-current-kernel-4.4.6-desktop-1.mga6-352.79-12.mga6.nonfree
x11-driver-video-nvidia-current-352.79-2.mga6.nonfree

Thanks.
Comment 6 Rolf Pedersen 2016-03-29 14:06:53 CEST
(In reply to Thomas Backlund from comment #3)
> there is a missing "nokmsboot" on kernel command line

Yes, nokmsboot got it booting into X.
Seems like the installer dropped the ball on that one but hard to say.
Thanks.
Comment 7 Thomas Backlund 2016-03-29 14:17:39 CEST
Please attach /root/drakx/report.bug.xz
Comment 8 Rolf Pedersen 2016-03-29 14:33:54 CEST
Created attachment 7608 [details]
mga6d1 x86_64 report.bug.gz
Comment 9 Marja Van Waes 2016-04-01 21:00:06 CEST
Assigning to tmb, since he already took an interest in this bug, and the information he requested was supplied.

@ tmb
Please reassign if needed.

Keywords: NEEDINFO => (none)
Assignee: bugsquad => tmb

Comment 10 Thomas Andrews 2017-01-13 17:36:34 CET
Still valid after installing 64-bit Plasma from the Jan 11 sta2 Classical isos. If running under nouveau and the 340 driver is installed via MCC/Hardware, "nokmsboot" is NOT added to the grub2 kernel options, resulting in a failed boot. Adding it results in a successful boot using the 340 driver. 

Installing the 340 driver with the Classical installer DOES add "nokmsboot" but still results in a failed boot due, I believe, to a different bug.

CC: (none) => andrewsfarm

Comment 11 Thomas Backlund 2017-01-13 18:15:22 CET
Please attach /root/drakx/report.bug.xz
Comment 12 Thomas Andrews 2017-01-13 19:50:11 CET
Created attachment 8852 [details]
report.bug.xz

Be aware as you read this report that the BIOS erroneously reports that ECC memory is installed, resulting in the Classical installer installing the server kernel. The server kernel has always worked fine, so I leave it alone.
Comment 13 Kristoffer Grundström 2017-01-13 22:16:56 CET
(In reply to Thomas Andrews from comment #10)
> Still valid after installing 64-bit Plasma from the Jan 11 sta2 Classical
> isos. If running under nouveau and the 340 driver is installed via
> MCC/Hardware, "nokmsboot" is NOT added to the grub2 kernel options,
> resulting in a failed boot. Adding it results in a successful boot using the
> 340 driver. 
> 
> Installing the 340 driver with the Classical installer DOES add "nokmsboot"
> but still results in a failed boot due, I believe, to a different bug.

Dö you get the same problem if you add modprobe.blacklist=nouveau on the kernel boot command line?

I use that to boot successfully.

CC: (none) => hamnisdude

Comment 14 Thomas Andrews 2017-01-13 23:32:37 CET
I haven't tried that. When I install the nvidia 340 driver via MCC/Hardware and then try to boot, I see a box with a message telling me that "nokmsboot" is required and the boot will probably fail because it isn't there. Pressing "Enter" clears the box and the boot continues, but fails.

Simply adding "nokmsboot" to the kernel options gets me a successful boot, so I assume the MCC installer is supposed to add the option but doesn't, and that's what needs to be fixed for this bug.
Marja Van Waes 2017-01-13 23:55:17 CET

CC: (none) => laidlaws

Comment 15 Doug Laidlaw 2017-01-14 00:04:24 CET
Thanks for adding me to this bug, Marja. It may be related to my problem.  I have the attachments for my report, but having trouble describing it.
Comment 16 Doug Laidlaw 2017-01-16 02:25:10 CET
Got there! Created bug 20130.
Comment 17 Martin Whitaker 2017-03-19 00:05:58 CET
(In reply to Thomas Andrews from comment #10)
> Still valid after installing 64-bit Plasma from the Jan 11 sta2 Classical
> isos. If running under nouveau and the 340 driver is installed via
> MCC/Hardware, "nokmsboot" is NOT added to the grub2 kernel options,
> resulting in a failed boot. Adding it results in a successful boot using the
> 340 driver. 

This particular issue is a unwanted side effect of the fix for bug 18783. As that postdates the original report here, it wasn't the cause of the original bug.

CC: (none) => mageia

Comment 18 Thomas Andrews 2017-03-19 00:28:13 CET
OK, so I chose the wrong bug. Sorry about that. Comments 3-6 seemed to imply that it would fit.

So what should I do to help get my issue fixed? Start a new bug? Sit back and wait? I'm OK with either one.
Comment 19 Thierry Vignaud 2017-03-19 04:05:48 CET
Patches were proposed on bug #18783 (to be applied in /usr/lib/libDrakX)

CC: (none) => thierry.vignaud

Comment 20 Thierry Vignaud 2017-05-03 03:47:55 CEST
So nobody tested the suggested patches?

Keywords: (none) => NEEDINFO, PATCH

Comment 21 Rolf Pedersen 2017-05-03 04:04:57 CEST
Sorry.  I'm not using the nvidia card, now.
Comment 22 Doug Laidlaw 2017-05-03 05:35:18 CEST
Marja added me to this bug.  My report is bug 20130, closed as a duplicate of bug 17400.  I have been checking for "nokmsboot" in /etc/default/grub.  It always seems to be present.
Comment 23 Thomas Andrews 2017-05-03 15:55:43 CEST
Since installing nvidia340 from the Classical isos has been working, I have not tried installing the nvidia driver from MCC. I will see what I can do about trying it after installing from the latest RC test iso this evening.
Comment 24 Thomas Andrews 2017-05-04 01:54:35 CEST
Using the April 27 RC test isos on my MBR nvidia340 system, if the proprietary driver is installed from an iso, "nokmsboot" is added to the kernel boot options, and the nvidia340 driver boots without incident.

When I used the Classical iso to install Plasma on the same hardware without the proprietary driver, the nouveau driver is used. After getting all updates, including tainted, drakxtools, and a new kernel, and rebooting, I installed the proprietary nvidia340 driver from MCC. At the reboot, using "e" in grub 2 to check the kernel options, I saw that "nokmsboot" was NOT added to them. I added it manually, and proceeded with a successful boot that used the nvidia driver.

So if the patches have been applied, they don't work.
Comment 25 Doug Laidlaw 2017-05-04 02:06:37 CEST
My experience has been different.  I have gone back to 5.1 for other reasons.

On installing Cauldron sta 2, I would initially set vesa graphics to avoid the "good luck" bug. Then, after all updates, etc (same stage as Thomas,) I could switch to the nvidia driver, and nokmsboot would be present.  I am not a beta tester, so I don't have access to the RC isos.
Comment 26 Aurelien Oudelet 2020-08-22 18:40:08 CEST
Currently on Mageia 8 Beta 1,
Selecting NVIDIA proprietary Drivers correctly write nokmsboot to kernel command line.
See on systems with 390-series and 450-series.

Time to close this, seems a patch was already proposed.

Resolution: (none) => FIXED
Status: NEW => RESOLVED
CC: (none) => ouaurelien

Comment 27 Doug Laidlaw 2020-08-22 19:15:20 CEST
I am on the CC list only, but I agree that everything now works.

Note You need to log in before you can comment on or make changes to this bug.