New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nouveau crashing boot with Nvidia GPU #2314

Closed
kewde opened this Issue Sep 14, 2016 · 10 comments

Comments

Projects
None yet
3 participants
@kewde

kewde commented Sep 14, 2016

Qubes OS version (e.g., R3.1):

R3.1

Affected TemplateVMs (e.g., fedora-23, if applicable):


Expected behavior:

A succesful boot after the GRUB menu

Actual behavior:

I haven't been able to grab the logs of my drive, but I'm getting these exact errors:
https://bugs.freedesktop.org/show_bug.cgi?id=91722

Steps to reproduce the behavior:

/

General notes:

/


Related issues:

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Sep 14, 2016

Member

This sounds like a problem with your specific hardware configuration. Such problems are too localized for qubes-issues. Please consider posting this to the qubes-users mailing list instead. (You can read more about our mailing lists here.)

qubes-users is intended for these sorts of questions and receives much more traffic, which means that your question is more likely to receive a response there.

Member

andrewdavidwong commented Sep 14, 2016

This sounds like a problem with your specific hardware configuration. Such problems are too localized for qubes-issues. Please consider posting this to the qubes-users mailing list instead. (You can read more about our mailing lists here.)

qubes-users is intended for these sorts of questions and receives much more traffic, which means that your question is more likely to receive a response there.

@kewde

This comment has been minimized.

Show comment
Hide comment
@kewde

kewde Sep 14, 2016

Don't lock it up just yet, I "fixed" it. Writing a small guide 👍

kewde commented Sep 14, 2016

Don't lock it up just yet, I "fixed" it. Writing a small guide 👍

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Sep 14, 2016

Member

Ok, thanks! 👍

Member

andrewdavidwong commented Sep 14, 2016

Ok, thanks! 👍

@andrewdavidwong andrewdavidwong added C: doc and removed invalid labels Sep 14, 2016

@andrewdavidwong andrewdavidwong added this to the Documentation/website milestone Sep 14, 2016

@kewde

This comment has been minimized.

Show comment
Hide comment
@kewde

kewde Sep 14, 2016

Okay, so as I thought nouveau was not playing nice with the nvidia card.

ERROR in question (for SEO purposes):
nouveau E[ PGRAPH][0000:01:00.0] grctx template channel unload timeout
nouveau E[ PGRAPH][0000:01:00.0] failed to construct context
nouveau E[ PGRAPH][0000:01:00.0] init failed, -16

ANSWER:

  1. At the grub screen, press the up or down arrow keys to select the grub stanza/entry in question.

  2. Press the "E" key.

  3. An editor will open up that will allow you to temporarily change the grub options for the next boot.

  4. Press the down arrow key and move the cursor to the line after the line with the kernel options. The line with the kernel options might look something like, I didn't type everything as it may differ from system to system:
    module /vmlinux-4.1.13-9.pvops.qubes.x86_64 placeholder root=/dev/mapper/qubes_dom0-root ro ... rhgb quiet

  5. Press the left/right arrow keys to position the cursor at the end of kernel options line.

  6. Type in "nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off" {without the quotes}

  7. Press either the F10 key or Ctrl+X to start the boot process.

Credits: http://forums.debian.net/viewtopic.php?t=79797 updated to work with Qubes

Then to make this change persistent, so your boot will always work:

  1. Open a terminal ('run command' then type 'terminal' and hit enter)

  2. type following commands:
    cd /etc/default/
    sudo nano grub

  3. Edit GRUB_CMDLINE_LINUX, add the following to it at the end:
    nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off

  4. ctrl + X and y to save the file

  5. Compile the configuration file to something the bootloader can read
    sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Credits: https://www.qubes-os.org/doc/install-nvidia-driver/

kewde commented Sep 14, 2016

Okay, so as I thought nouveau was not playing nice with the nvidia card.

ERROR in question (for SEO purposes):
nouveau E[ PGRAPH][0000:01:00.0] grctx template channel unload timeout
nouveau E[ PGRAPH][0000:01:00.0] failed to construct context
nouveau E[ PGRAPH][0000:01:00.0] init failed, -16

ANSWER:

  1. At the grub screen, press the up or down arrow keys to select the grub stanza/entry in question.

  2. Press the "E" key.

  3. An editor will open up that will allow you to temporarily change the grub options for the next boot.

  4. Press the down arrow key and move the cursor to the line after the line with the kernel options. The line with the kernel options might look something like, I didn't type everything as it may differ from system to system:
    module /vmlinux-4.1.13-9.pvops.qubes.x86_64 placeholder root=/dev/mapper/qubes_dom0-root ro ... rhgb quiet

  5. Press the left/right arrow keys to position the cursor at the end of kernel options line.

  6. Type in "nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off" {without the quotes}

  7. Press either the F10 key or Ctrl+X to start the boot process.

Credits: http://forums.debian.net/viewtopic.php?t=79797 updated to work with Qubes

Then to make this change persistent, so your boot will always work:

  1. Open a terminal ('run command' then type 'terminal' and hit enter)

  2. type following commands:
    cd /etc/default/
    sudo nano grub

  3. Edit GRUB_CMDLINE_LINUX, add the following to it at the end:
    nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off

  4. ctrl + X and y to save the file

  5. Compile the configuration file to something the bootloader can read
    sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Credits: https://www.qubes-os.org/doc/install-nvidia-driver/

@kewde

This comment has been minimized.

Show comment
Hide comment
@kewde

kewde Sep 14, 2016

@andrewdavidwong you can close it now, finished it.

kewde commented Sep 14, 2016

@andrewdavidwong you can close it now, finished it.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Sep 15, 2016

Member

@kewde, would you be willing to submit this as a PR against the Nvidia Troubleshooting page?

Member

andrewdavidwong commented Sep 15, 2016

@kewde, would you be willing to submit this as a PR against the Nvidia Troubleshooting page?

@kewde

This comment has been minimized.

Show comment
Hide comment
@kewde

kewde Sep 15, 2016

@andrewdavidwong
Yes, I'll do that later this evening.

kewde commented Sep 15, 2016

@andrewdavidwong
Yes, I'll do that later this evening.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Sep 19, 2016

Member

Thanks for your PRs, @kewde! Is there anything else needed for this issue?

Member

andrewdavidwong commented Sep 19, 2016

Thanks for your PRs, @kewde! Is there anything else needed for this issue?

@kewde

This comment has been minimized.

Show comment
Hide comment
@kewde

kewde Sep 19, 2016

I don't have anything to add to this specific issue, feel free to close it unless you have something to add to it.

kewde commented Sep 19, 2016

I don't have anything to add to this specific issue, feel free to close it unless you have something to add to it.

@hairetdin

This comment has been minimized.

Show comment
Hide comment
@hairetdin

hairetdin Jun 15, 2018

@kewde thanks, it really helped me and works fine. There was a problem with the CentOS 7 installation.

@kewde thanks, it really helped me and works fine. There was a problem with the CentOS 7 installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment