Bug 8540 - Proprietary AMD driver requires nokmsboot to correctly start X (bootloader:modify_append needs take grub2 conf)
Summary: Proprietary AMD driver requires nokmsboot to correctly start X (bootloader:mo...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: release_blocker major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: 3beta3
Keywords: NEEDINFO
: 8865 (view as bug list)
Depends on:
Blocks: 416
  Show dependency treegraph
 
Reported: 2012-12-28 20:43 CET by Philippe Leblanc
Modified: 2013-04-10 09:14 CEST (History)
8 users (show)

See Also:
Source RPM: drakxtools-backend
CVE:
Status comment:


Attachments

Description Philippe Leblanc 2012-12-28 20:43:55 CET
Description of problem:
When switching to the proprietary AMD driver, the boot option "nokmsboot" is needed to correctly start X. This option is not added automatically to grub2 and thus results in an error message followed by a blank screen which requires a hard reset. This option should be added automatically otherwise less experienced users might be stuck with an unusable system.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Dave Hodgins 2013-01-22 22:57:07 CET
This bug is still present after install using beta 3, 3rd pre-release kde live cd.

CC: (none) => davidwhodgins
Component: RPM Packages => Installer
Whiteboard: (none) => 3beta2

Comment 2 Manuel Hiebel 2013-01-23 18:10:29 CET
only on grub2 ?
Comment 3 Dave Hodgins 2013-01-23 19:30:31 CET
Yes.  With grub legacy, the nokmsboot option is added.
Manuel Hiebel 2013-01-25 23:51:27 CET

Assignee: bugsquad => zen25000
Summary: Proprietary AMD driver requires nokmsboot to correctly start X => Proprietary AMD driver requires nokmsboot to correctly start X (grub2)
Source RPM: (none) => grub2

Comment 4 Barry Jackson 2013-01-26 11:06:01 CET
This needs to be inserted into:
/etc/default/grub
by whatever code currently adds it to menu.lst for grub legacy, followed by a call to:
grub2-mkconfig -o /boot/grub2/grub.cfg

Change required in /etc/default/grub:-


GRUB_DISTRIBUTOR="Mageia"
GRUB_CMDLINE_LINUX_DEFAULT="nokmsboot"      <==============================
GRUB_DISABLE_RECOVERY="true"
GRUB_GFXMODE="1024x768x32"
GRUB_GFXPAYLOAD_LINUX="text"
GRUB_THEME="/boot/grub2/themes/maggy/theme.txt"
GRUB_TERMINAL_OUTPUT="gfxterm"
Barry Jackson 2013-01-26 13:28:49 CET

CC: (none) => anssi.hannula

Comment 5 Manuel Hiebel 2013-01-28 18:15:01 CET
*** Bug 8865 has been marked as a duplicate of this bug. ***

CC: (none) => paiiou

Comment 6 Manuel Hiebel 2013-01-28 18:15:39 CET
bug 8865 reported that it fail at http://svnweb.mageia.org/soft/drakx/trunk/perl-install/bootloader.pm?revision=6812&view=markup#l2023

called from http://svnweb.mageia.org/soft/drakx-kbd-mouse-x11/trunk/tools/display_driver_helper?revision=6517&view=markup 
and  http://svnweb.mageia.org/soft/drakx-kbd-mouse-x11/trunk/lib/Xconfig/various.pm?view=markup

big part to review :s

CC: (none) => thierry.vignaud, zen25000
Component: Installer => RPM Packages
Blocks: (none) => 416
Assignee: zen25000 => bugsquad
Source RPM: grub2 => drakxtools-backend

Comment 7 Philippe Leblanc 2013-01-30 15:59:25 CET
So after a brief stint with mageia 2, I'm back to check on cauldron. Can't seem to boot at all with proprietary drivers even when adding nokmsboot. Did something break while I was gone?
Comment 8 Philippe Leblanc 2013-02-22 18:52:00 CET
I reinstalled from the mageia 3b2 disk and the proprietary driver seemed to work (although the nokmsboot is still needed to boot X). If I'm not mistaken, 3b2 came with kernel version 3.8.0rc4. I think on my last post, I was using kernel 3.8.0rc5. And as of today, I'm on 3.8.0 final. It appears that since rc5, the system now ignores the nokmsboot directive when added to grub at boot time. I know the driver needs to be patched for it to work with kernels newer than 3.7 so is it possible there is something wrong with the patch?
Comment 9 Philippe Leblanc 2013-02-25 02:21:08 CET
A new update to dracut seems to have fixed a bug which resulted in no kmsboot being ignored. We're back to the original bug that nokmsboot needs to be added automatically when switching to proprietary graphics driver.
Manuel Hiebel 2013-03-02 11:36:42 CET

Summary: Proprietary AMD driver requires nokmsboot to correctly start X (grub2) => Proprietary AMD driver requires nokmsboot to correctly start X (bootloader:modify_append needs take grub2 conf)

Manuel Hiebel 2013-03-13 21:34:11 CET

Priority: Normal => release_blocker
Whiteboard: 3beta2 => 3beta3

Comment 10 Philippe Leblanc 2013-03-14 16:03:00 CET
I'd like for someone else to confirm this, but I think this bug has been resolved. Switching to proprietary driver no longer needs manual intervention. nokmsboot is added to grub.cfg and the system boots normally. Good work!!
Comment 11 Philippe Leblanc 2013-03-18 18:42:27 CET
It appears this is not quite 100% fixed as it used to work. It looks like nokmsboot is hardcoded and mageia will now boot with this parameter regardless of the driver used.
Comment 12 Malo Deniélou 2013-03-21 15:53:01 CET
Barjac, can you have a look at what is currently done? It seems noknsboot is now added all the time.

CC: (none) => pierre-malo.denielou

Comment 13 Barry Jackson 2013-03-21 20:13:40 CET
AFAICT nokmsboot is not being added to grub2 config when it's not needed.

I do not use any proprietary drivers and I have not seen any spurious nokmsboot entries.

I will test a clean net-install on real hardware to check for this.
Comment 14 Barry Jackson 2013-03-22 23:34:30 CET
(In reply to Malo Deniélou from comment #12)
> Barjac, can you have a look at what is currently done? It seems noknsboot is
> now added all the time.

A net-install on my Intel machine with on-board Intel graphics that does not require nokmsboot went OK.
nokmsboot is not present in the grub2 kernel command line configuration.
Comment 15 Philippe Leblanc 2013-03-25 01:30:23 CET
I'm not sure why, but I think it might be the installation of grub2 itself that adds the parameter. On friday, I went ahead and removed the nokmsboot from grub.cfg to have kms boot capability. But after installing the latest grub update yesterday, nokmsboot was again added automatically. I'm currently using ati free driver.
Comment 16 Barry Jackson 2013-03-25 10:05:50 CET
(In reply to Philippe Leblanc from comment #15)
> I'm not sure why, but I think it might be the installation of grub2 itself
> that adds the parameter. On friday, I went ahead and removed the nokmsboot
> from grub.cfg to have kms boot capability. But after installing the latest
> grub update yesterday, nokmsboot was again added automatically. I'm
> currently using ati free driver.

Changes to /boot/grub2/grub.cfg will be overwritten any time that grub2 is updated. The place to make custom changes is /etc/default/grub, followed by:
update-grub
Grub2 itself does not add the nokmsboot. This is added to etc/default/grub by something else.

What's the output of cat /etc/default/grub
Comment 17 Philippe Leblanc 2013-03-25 16:06:45 CET
[root@localhost ~]# cat /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=" splash quiet resume=UUID=f674a5fb-6556-4a4c-a7fe-31ffafd9a0cc"
GRUB_DISABLE_OS_PROBER=false
GRUB_DISABLE_RECOVERY=true
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_DISTRIBUTOR=Mageia
GRUB_GFXMODE=1024x768x32
GRUB_GFXPAYLOAD_LINUX=text
GRUB_TIMEOUT=10
GRUB_THEME=/boot/grub2/themes/maggy/theme.txt


Nokmsboot isn't present in this file yet was added automatically upon the last update of grub2 over the weekend. Is there another place that may be responsible for controlling the addition of nokmsboot to grub.cfg?
Comment 18 Barry Jackson 2013-03-25 17:17:52 CET
I think Thierry will need to answer that.
Nothing should alter grub.cfg directly, as any changes will be lost when update-grub is run.
I don't understand how you are seeing nokmsboot in grub.cfg if it's not in /etc/default/grub.
If you still have the grub.cfg with nokmsboot, can you do:
su
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg_nokms
update-grub

Then please attach grub.cfg and grub.cfg_nokms here.
Comment 19 Philippe Leblanc 2013-03-25 18:17:08 CET
I apologize. I ran the update-grub2 command to overwrite grub.cfg. It's entirely possible it was a mistake in my part since I've been switching back and forth between the free and closed drivers a lot to test out performance in gnome 3 on my little apu. For the sake of testing this specific bug, I've switched back to the free driver (which is what I was running the first time I noticed nokmsboot being added after grub update this weekend) and removed nokmsboot from /etc/default/grub and ran update-grub2. At this point in time, all my config files are consistent. As grub 2 integration is still ongoing, I'm sure there will be future updates to the grub package. If the update process adds nokmsboot as I thought it did during the last update, I will update you with my config files as suggested above. For now, I've destroyed any evidence I had.
Comment 20 Manuel Hiebel 2013-03-25 18:17:08 CET
Bootloader.pm write nothing in grub.cfg but it read from here some info like the kernel option.

This bug was about adding grub2 support in modify_append which is called indirectly by XFdrake and installer

I doubt it's now hard-coded, seems you have forgotten to remove it in the default file, and launch again update-grub.
Comment 21 Marcus Zurhorst 2013-04-03 21:14:36 CEST
Here is the full file, just in case this is the next question :-)
 
[marcus@mzlaptop ~]$ cat /etc/default/grub
GRUB_DISABLE_OS_PROBER=false
GRUB_DISABLE_RECOVERY=true
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_DISTRIBUTOR=Mageia
GRUB_GFXMODE=1024x768x32
GRUB_GFXPAYLOAD_LINUX=text
GRUB_THEME=/boot/grub2/themes/maggy/theme.txt
[marcus@mzlaptop ~]$

CC: (none) => marcus.zurhorst

Comment 22 Marcus Zurhorst 2013-04-03 21:15:37 CEST
Sorry for the noise, I wanted to comment on bug 9604 instead.
Comment 23 Atilla ÖNTAŞ 2013-04-10 01:41:42 CEST
Is it still reproducable? I have no "nokmsboot" in my grub.cfg or /etc/default/grub file on an Intel graphics card.

Philippe, did you also checked files under /etc/grub.d/ ? Those are automatically added into grub.cfg by grub2. May be some files became inconsistent between your propierty/free driver switches?

CC: (none) => tarakbumba

Comment 24 Thierry Vignaud 2013-04-10 06:48:52 CEST
Humm, I fixed missing 'type' field in entries read from grub2 config in bug #9563 on April 05 in drakxtools-15.35-1.mga3 so it may just be fixed already.
Can anyone try with latest drakxtools?
Thanks.

Keywords: (none) => NEEDINFO

Comment 25 Dave Hodgins 2013-04-10 09:14:11 CEST
Both an install using the latest live dvd, and a network install
have it.

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


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