Skip to content
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

Blank screen after choosing NixOS on LiveCD #5829

Closed
purefn opened this issue Jan 18, 2015 · 73 comments
Closed

Blank screen after choosing NixOS on LiveCD #5829

purefn opened this issue Jan 18, 2015 · 73 comments
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos

Comments

@purefn
Copy link
Contributor

purefn commented Jan 18, 2015

I have been trying to get NixOS 14.12 on my computer where I'm currently running Arch Linux. It is an older Apple tower, with a GeForce 8800 GT video card.

I first tried the graphical live CD. It boots, gets to grub, then says "error: no suitable video mode found. Booting in blind mode."

I gave up on the graphical live CD and tried the minimal CD instead. Similarly, the grub menu displays and then tries to boot the kernel. But this time I just get a blank screen.

I was booting from a USB key and tried creating it with both unetbootin and doing the "alternative" grub install described on the USB install page. I also tried blacklisting the nouveau with modprobe.blacklist=nouveau. I tried other variations like nouvea.blacklist=1 and nomodeset after googling for similar issues. Nothing seemed to improved the situation.

At this point, I'm stuck.

@domenkozar
Copy link
Member

@purefn
Copy link
Contributor Author

purefn commented Sep 28, 2015

@domenkozar Very little change. I no longer see the message, "error: no suitable video mode found. Booting in blind mode." But after the boot menu I am still left with a blank screen, with both the graphical and minimal ISOs, whether I blacklist nouveau or not.

@vcunat
Copy link
Member

vcunat commented Sep 28, 2015

IIRC we now blacklist nouveau and have nomodeset by default on ISOs.

@purefn purefn changed the title Blank screen after grub Blank screen after syslinux Oct 28, 2015
@purefn
Copy link
Contributor Author

purefn commented Oct 28, 2015

I came back to this today and tried a few different things. Finally, I tried setting up the LiveCD in my existing Arch Linux install with grub as described here. Following those directions I was able to boot into the LiveCD.

I'm going to attempt an installation and see what happens.

@purefn purefn changed the title Blank screen after syslinux Blank screen after choosing NixOS LiveCD Oct 29, 2015
@purefn purefn changed the title Blank screen after choosing NixOS LiveCD Blank screen after choosing NixOS on\ LiveCD Oct 29, 2015
@purefn purefn changed the title Blank screen after choosing NixOS on\ LiveCD Blank screen after choosing NixOS on LiveCD Oct 29, 2015
@purefn
Copy link
Contributor Author

purefn commented Oct 29, 2015

The installation completed and I chose gummiboot as the boot loader, but the same thing happens. After choosing the latest NixOS generation, the screen blanks and nothing more happpens.

I tested with the Arch and Ubuntu LiveCDs and they both work, so I think that eliminates a problem with the system itself.

@chris-martin
Copy link
Contributor

Same problem here. Minimal USB install of 15.09, I choose "Live CD", and immediately just get a black screen. Motherboard is ASRock Z68 Pro3 Gen3, and I've removed my video card. Let me know if there's any more detail I can provide. I have no idea what to try now.

@chris-martin
Copy link
Contributor

Also tested with the graphical install of unstable, got the same result.

@jcumming
Copy link
Contributor

This sounds like modesetting gone awry. Try adding:

nomodeset i915.modeset=0 nouveau.modeset=0

To the kernel command line before exiting grub.

(source https://wiki.archlinux.org/index.php/Kernel_mode_setting)

@chris-martin
Copy link
Contributor

@jcumming How do I do that? All I get to is a screen that says "NixOS Live CD". Is that grub?

@chris-martin
Copy link
Contributor

Ah, it's gummiboot, and the key is "e" to edit the command.

Didn't help, though :(

@vcunat
Copy link
Member

vcunat commented Nov 25, 2015

I believe nomodeset is passed on ISOs by default (which disables nouveau completely).

@chris-martin
Copy link
Contributor

@vcunat nomodeset is set by default, though that arch page says

For Nvidia Optimus dual-graphics system, you need to add all the three kernel parameters (i.e. "nomodeset i915.modeset=0 nouveau.modeset=0").

@jcumming
Copy link
Contributor

The next step I would use is a serial console.

@chris-martin
Copy link
Contributor

Is that hardware that people normally keep around?

@jcumming
Copy link
Contributor

Serial ports aren't so common on consumer hardware these days. However, if the kernel is running you can probably use a USB serial dongle and concoct a grub command line to get the kernel and systemd to issue a console on it.

Video problems are difficult to debug -- you're blind to whatever the kernel is telling you. And it can be telling you a lot of things about hardware conflicts, BIOS bugs, missing drivers, etc.

@chris-martin
Copy link
Contributor

Is there a way to get it to log to the boot media (a USB drive) or elsewhere?

@Profpatsch
Copy link
Member

(triage) Is this still an issue?

@purefn
Copy link
Contributor Author

purefn commented Jul 29, 2016

I was able to get a working system using the NixOS unstable branch and using the latest kernel by specifying linuxPackages = pkgs.linuxPackages_latest; as a package override. I'm ok with closing this issue at this point.

@Profpatsch
Copy link
Member

cc @vcunat

@vcunat vcunat closed this as completed Jul 29, 2016
@chris-martin
Copy link
Contributor

Yes, this is still an issue.

@chris-martin
Copy link
Contributor

@purefn

by specifying linuxPackages = pkgs.linuxPackages_latest; as a package override

Can you clarify what this means? Where did you specify that?

@ilyaigpetrov
Copy link

ilyaigpetrov commented Nov 6, 2017

Just out of curiosity. My notebook doesn't have serial port, so it's unlikely I could use serial console. Is it possible to look for UART connectors on motherboard and attach serial console to them somehow?

@bjornfor
Copy link
Contributor

bjornfor commented Nov 6, 2017

Yes, should be. Or attach usb-serial dongle.

@sorki
Copy link
Member

sorki commented Feb 17, 2018

Related to perl build issue (seems to be caused by unionfs) - NixOS/nix#1243

@P-E-Meunier
Copy link
Contributor

I wanted to report that I've successfully installed NixOS on a Macbook Air (late 2011), which previously had the same issue. That wasn't easy: I booted an Ubuntu live cd, then followed @chris-martin 's excellent guide to install NixOS from there (https://gist.github.com/chris-martin/4ead9b0acbd2e3ce084576ee06961000).

My first attempt had the exact same result: I saw the system-boot menu, and then a blank screen.

Then I tried again, this time setting Grub2 as the boot loader (and disabling systemd-loader). It worked!

I suggest switching to Grub2 for the installation CD. Not sure how to do it though.

@ghost
Copy link

ghost commented Apr 18, 2018

When I boot NixOS 17.09 or 18.03 live images in UEFI mode in VMWare Workstation 14 under Windows 10 the screen turns black while booting. Maybe other environments are affected too, I don't know, that's just the setup I have to work with. BIOS mode or other distros in UEFI mode work fine tough.
The last log message I can see is running udev..., but the system seems to boot correctly nevertheless, e.g. when I wait a few seconds, blindly type poweroff and hit enter the vm shuts down.
The recommendation to add nomodeset to the kernel parameters fixed it.

@ilyaigpetrov
Copy link

Still an issue for nixos-graphical-18.09pre149415.8395f9aa85e-x86_64-linux.iso.
I appreciate @P-E-Meunier's revelation that grub2 may fix the issue, though haven't tried it myself.

@samueldr
Copy link
Member

samueldr commented Aug 24, 2018

Oh, uh well, @P-E-Meunier , @ilyaigpetrov I have #33686 which (in this case coincidentally) changes the UEFI bootloader to grub.

Could any of you having the issue try with an installer image built from that PR and report back?

(It's going to be merged anyway for 18.09 I'm pretty confident, but having such a report could be useful to track another pro for switching to grub.)

EDIT: pinged the wrong ilya*.

@P-E-Meunier
Copy link
Contributor

@samueldr: if you point me to the instructions to do so I can try.

@samueldr
Copy link
Member

samueldr commented Aug 24, 2018

♥ thanks for volunteering for the test.

The instructions are just now added to a comment; I additionally have rebased on the latest nixos-unstable. The iso image is used like any other nixos iso image, which is why I haven't added dd instructions.

@ilyaigpetrov
Copy link

ilyaigpetrov commented Aug 25, 2018

I've found a workaround:

  1. Get graphical iso (nixos-graphical-18.03.133157.fde20125199, e.g.).
  2. Boot the default entry from the menu.
  3. Get your black screen and give it time to load. The idea is that there is no error, NixOS is loading, you are just blind (thanks @BenKerry ). USB pen drive with R/W-indicator is helpful here.
  4. After some time blindly enter command: systemctl start display-manager and give it some time again.
  5. If you are lucky you will get KDE Plasma shell, otherwise hit enter and try repeating the previous command.
    You should be able to install NixOS from this shell, but I'm not sure if it will boot.

@samueldr
Copy link
Member

By making the graphical image always boot to the display-manager, or by adding an option to the bootloader enabling/disabling the display-manager by default could allow working around this issue. (Noting this here, for a future improvement.)

@RSully
Copy link

RSully commented Dec 3, 2018

Just wanted to drop a message here saying I am trying NixOS for the first time in VMWare and could not get the minimal CD to boot. I found this reddit post with a link to here, and those options worked. Not a great experience for a newcomer.

@nornagon
Copy link
Contributor

nornagon commented Dec 18, 2018

I hit this when trying to install nixOS 18.09 on a NUC8i7. What worked for me was to try a newer kernel (4.19.9, which i got here) and boot with modeset, i.e. not using the nomodeset option. Hypothesis: GRUB seems to leave the video card in a bad state, but once the i915 driver kicks in it fixes things up.

I saw this in dmesg which looks suspicious:

efifb: invalid framebuffer address

It shows up with or without nomodeset, but when nomodeset is present on the command line, the video card never properly boots up and it stays on black screen forever. Without nomodeset, the screen goes black immediately after pressing Enter on the GRUB screen, but starts showing things after about 10 seconds.

This launchpad bug might be relevant? https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1785033

Note: once nixos is actually installed, there don't seem to be any issues. Must be just an issue with the livecd.

NB: if you try this method, make sure you use linuxPackages_latest when you install!

@jamescostian
Copy link

One more data point: I tried to install NixOS on a Dell Inspiron 9571 for a very long time. I switched from RAID to AHCI and disabled secure boot, but neither were good enough.

First I tried with the graphical live cd, and was unable to get past grub, even with nomodeset, debug, and acpi=off, as well as different combinations of them - no errors or anything, it just would not work. Next, I tried with the minimal installer - no dice. Combinations of nomodeset, debug, acpi=off didn't help either.

After all of this, I tried using the gist posted above to install using Ubuntu (very good stuff, aside from a few mistakes). I was surprised that Ubuntu's live CD worked out of the box, while nix's didn't.

@freeman42x
Copy link
Contributor

I am also getting a black screen as soon as I log in to NixOS KDE. And based on messages above it might be related to UEFI boot used inside VirtualBox.

@freeman42x
Copy link
Contributor

I am getting the same black screen after login when I am using GRUB (BIOS) boot.

@freeman42x
Copy link
Contributor

This is how the black screen issue manifests itself:

result

@freeman42x
Copy link
Contributor

The solution was to disable 3D acceleration.

@stale
Copy link

stale bot commented Nov 19, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 19, 2020
@MMesch
Copy link
Contributor

MMesch commented Dec 7, 2020

I just hit this as well when booting the graphic live USB NixOS on a 2009 Samsung E252 with Core 2 + ATI Radeon HD4330. After selecting various options in the boot loader it just says:

error: no suitable video mode found.
Booting in blind mode

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 7, 2020
@Fang-
Copy link

Fang- commented Dec 10, 2020

Had a similar problem booting off a minimal live USB on a ThinkPad X1 gen 3. Selecting the default option in the bootloader would start up fine, but suddenly give a blank screen ~10 seconds after startup completed.

Booting with nomodeset worked perfectly though.

@MMesch
Copy link
Contributor

MMesch commented Dec 17, 2020

I just want to add that recent Ubuntu live had the same issue on my old laptop. nomodeset didn't work, videoinfo shows no modes either. All of this happens in grub-efi which doesn't have all options available afaiu (I am new to the grub world). I succeeded booting an Ubuntu 12 finally but no NixOS.

@stale
Copy link

stale bot commented Jun 16, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 16, 2021
@samueldr
Copy link
Member

Closing this specific issue. This is becoming bogged-down with similar, but not actually the same issues. It thus becomes impossible to "fix" or do anything about.

If you (yes you, person who is reading) is having a similar issue, e.g. "Blank screen after choosing NixOS on LiveCD", please open a new issue with the problems you are observing, the hardware configuration you are using, and what you have tried.

Feel free to link to this issue when doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos
Projects
None yet
Development

No branches or pull requests