linux-surface / linux-surface

Linux Kernel for Surface Devices
4.62k stars 201 forks source link

Stuck on Windows logo after installing Ubuntu on Surface #1179

Open gauthamrdy opened 11 months ago

gauthamrdy commented 11 months ago

I installed Ubuntu 22.04 and followed all the instructions until installing the secure boot key command and rebooted. Since then, it is stuck on the Windows logo.

I tried all solutions using combinations of force shutdown keys, draining the battery and booting with USB again, but it is stuck at the Windows logo every time.

Hardware model: Microsoft Surface Pro 6 Distribution: Ubuntu 22.04IMG_20230706_174251400.jpg

Edit: Re-installed Windows using a recovery drive, but the USB boot is not recognised in case I try to install Linux OS again.

kwai-chang commented 11 months ago

I think, there is something wrong in your installation routine. Step by step installation should help. Try to install first clean windows, delete all partitions and setup separate partition for windows 100-150 GB, at least with round about 20-100 GB spare place for your linux installation, depends to your hard disk. For me I installed on SP4, Sp5, SP9 severall times and everytime no fail. I really like MX-23 โ€œLibrettoโ€ beta 2 It runs perfect, including backport, flatpack easy to choose

ChiIIBiII commented 10 months ago

Hi, I've got the exact same issue after installing Fedora on my SP5. Worked until I rebooted to finish installing secureboot key. And yes I did follow "step by step" the instructions to the word. I tried to setup dual boot so windows still works fine but I can't start into Fedora and not even from usb any more, always get stuck on windows logo as you posted. Did you find what the issue was? Don't even know how to approach this since I can't get into grub

kwai-chang commented 10 months ago

maybe in System-setup Surface switch off boot from windows

Fail-gh commented 10 months ago

I've got the same problem on Surface Pro 6, try downgrade uefi. You can find the guide here: https://github.com/linux-surface/surface-uefi-firmware Check the Detail page for older version, use the one that works with you (I'll update you when, and if, the latest version will work) https://www.microsoft.com/en-us/download/details.aspx?id=57514 If you can't boot anything try Ventoy and boot in "grub 2 mode"

EDIT: I just remembered that for some reason Arch work normally, try it

qzed commented 10 months ago

When exactly does it get stuck? After selecting the kernel in Grub/the bootloader or even before Grub comes up?

gauthamrdy commented 10 months ago

In my case with SP6, it happened even before the Grub comes up.

ChiIIBiII commented 10 months ago

I've got the same problem on Surface Pro 6, try downgrade uefi. You can fins the guide here: https://github.com/linux-surface/surface-uefi-firmware Check the Detail page for older version, use the one who works with you (I'll update you when, and if, the latest version will work) https://www.microsoft.com/en-us/download/details.aspx?id=57514 If you can't boot anything try Ventoy and boot in "grub 2 mode"

EDIT: I just remembered that for some reason Arch work normally, try it

As far as I can tell, this can only be installed from a Linux command line, and getting there is currently my issue. I also can't get into grub i.e. as soon as I try to boot from somewhere that is not my windows bootloader, I get stuck on the windows logo

Fail-gh commented 10 months ago

I've got the same problem on Surface Pro 6, try downgrade uefi. You can fins the guide here: https://github.com/linux-surface/surface-uefi-firmware Check the Detail page for older version, use the one who works with you (I'll update you when, and if, the latest version will work) https://www.microsoft.com/en-us/download/details.aspx?id=57514 If you can't boot anything try Ventoy and boot in "grub 2 mode"

EDIT: I just remembered that for some reason Arch work normally, try it

As far as I can tell, this can only be installed from a Linux command line, and getting there is currently my issue. I also can't get into grub i.e. as soon as I try to boot from somewhere that is not my windows bootloader, I get stuck on the windows logo

As I said, try Ventoy in grub2 mode or Arch Linux, in my case both booted normally

ChiIIBiII commented 10 months ago

Hey, sorry for not reading your comment properly before. This was incredibly helpful thank you! I used ventoy to install Fedora, then downgraded the firmware and then installed the surface kernel and it's working like a charm. Maybe this could/should be added to the Known Issues / FAQ in the wiki?

Fail-gh commented 10 months ago

Hey, sorry for not reading your comment properly before. This was incredibly helpful thank you! I used ventoy to install Fedora, then downgraded the firmware and then installed the surface kernel and it's working like a charm. Maybe this could/should be added to the Known Issues / FAQ in the wiki?

I think is a GRUB bug, 'cause arch and ventoy (grub2 mode) works, maybe is already fixed in newer version, i'll keep you updated

qzed commented 10 months ago

I think is a GRUB bug, 'cause arch and ventoy (grub2 mode) works, maybe is already fixed in newer version

Arch pretty much uses a "standard" grub. Debian and Fedora use quite heavily patched versions. There's also #1162 but there the problem is that it's stuck after selecting the kernel.

numanjvd82 commented 10 months ago

Hey guys, i have just installed ubuntu and after following the steps of installing linux surface kernel. I rebooted the laptop and now I'm stuck on this logo. I can't do anything besides going in the bios. I have disabled secure boot and even tried to reinstall ubuntu but it is still stuck there. I have a surface laptop 3. image

Fail-gh commented 10 months ago

Hey guys, i have just installed ubuntu and after following the steps of installing linux surface kernel. I rebooted the laptop and now I'm stuck on this logo. I can't do anything besides going in the bios. I have disabled secure boot and even tried to reinstall ubuntu but it is still stuck there. I have a surface laptop 3. image

I've already write a comment to resolve the issue, just read it and you will solve

numanjvd82 commented 10 months ago

Hey guys, i have just installed ubuntu and after following the steps of installing linux surface kernel. I rebooted the laptop and now I'm stuck on this logo. I can't do anything besides going in the bios. I have disabled secure boot and even tried to reinstall ubuntu but it is still stuck there. I have a surface laptop 3. image

I've already write a comment to resolve the issue, just read it and you will solve

Yeah i just saw it. Thanks. I will do that and let you guys know. One more thing can i use ubuntu with ventoy?

Fail-gh commented 10 months ago

Hey guys, i have just installed ubuntu and after following the steps of installing linux surface kernel. I rebooted the laptop and now I'm stuck on this logo. I can't do anything besides going in the bios. I have disabled secure boot and even tried to reinstall ubuntu but it is still stuck there. I have a surface laptop 3. image

I've already write a comment to resolve the issue, just read it and you will solve

Yeah i just saw it. Thanks. I will do that and let you guys know. One more thing can i use ubuntu with ventoy?

You can use every iso with ventoy (Windows/Linux/etc.)

numanjvd82 commented 10 months ago

Hey, sorry for not reading your comment properly before. This was incredibly helpful thank you! I used ventoy to install Fedora, then downgraded the firmware and then installed the surface kernel and it's working like a charm. Maybe this could/should be added to the Known Issues / FAQ in the wiki?

Did you install fedora workstation 38 and is downgrading the firmware is mandatory?

Fail-gh commented 10 months ago

Hey, sorry for not reading your comment properly before. This was incredibly helpful thank you! I used ventoy to install Fedora, then downgraded the firmware and then installed the surface kernel and it's working like a charm. Maybe this could/should be added to the Known Issues / FAQ in the wiki?

Did you install fedora workstation 38 and is downgrading the firmware is mandatory?

As far as i know only distro which use grub need uefi downgrade

numanjvd82 commented 10 months ago

So you're saying that fedora doesn't need any downgrade and I can install the linux surface kernel? I am quite new to this linux stuff.

Fail-gh commented 10 months ago

So you're saying that fedora doesn't need any downgrade and I can install the linux surface kernel? I am quite new to this linux stuff.

Grub is the most used bootloader, distro like Ubuntu or Fedora use it, Arch linux uses systemd-boot as default, so it doesn't need any downgrade, other distro yes

numanjvd82 commented 10 months ago

So you're saying that fedora doesn't need any downgrade and I can install the linux surface kernel? I am quite new to this linux stuff.

Grub is the most used bootloader, distro like Ubuntu or Fedora use it, Arch linux uses systemd-boot as default, so it doesn't need any downgrade, other distro yes

All right I see. Thanks. So I really wanted to install ubuntu on my laptop because that's the one I know. I am going to install ubuntu with ventoy again and then downgrade the firmware and afterwards install the linux surface kernel. PS, when I previously installed the linux surface kernel and restarted to enter the mok, it says verification failed, secure boot failed.

Edit: I have reinstalled ubuntu again but this time with ventoy. I have also installed linux surface kernel and found that the touchpad is glitching out on it. It's making clicks on its own. Switching back to the generic kernel seems to fix it. Although I have entered the ventoy mok not the surface kernel. Maybe that could be the problem but I don't know.

Pettor commented 10 months ago

Just wanted to confirm I had the same issue with my Surface Book 2. I want to dual boot Windows 11 and Ubuntu 22.04 and got stuck on MS logo after installation.

Fix was as mentioned to use Ventoy and during installation choose Grub 2 with Secureboot disabled. After Ubuntu installation is finished Secureboot can be enabled again with third party CA certs. However after installing linux-surface-secureboot-mok my Surface once again got stuck on MS logo instead of showing the expected MOK blue screen and disabled Secureboot didn't help. In this case I used the Ventoy USB drive again (the one I installed from) which took me to the MOK blue screen where I could enroll the key and then boot into Ubuntu.

Now everything works, thx ๐Ÿ™‚

erjoalgo commented 9 months ago

@Pettor How did you enroll the key? I'm having the same issue with a surface laptop, installed debian, everything was fine but no touchpad, after installing linux-surface-secureboot-mok I get stuck on the MS logo. How did you use ventoy to resolve your issue?

erjoalgo commented 9 months ago

I followed @Pettor's instructions alongside with the installation instructions: https://github.com/linux-surface/linux-surface/wiki/Installation-and-Setup. After installing ubuntu and installing linux-surface-secureboot-mok, I did get stuck at the dreaded windows logo, but after inserting a ventoy USB and asking the BIOS to boot from ventoy, I was able to get the expected blue screen to enroll the MOK key. Thanks!

Apollo-XIV commented 5 months ago

This thread is an absolute life saver, is the documentation open to contributions to perhaps include some of these tips? Ive seen numerous duplicate threads where the issue is very similar and it might make support easier to keep this info in one place.

rommeswi commented 5 months ago

The information from this thread absolutely m u s t be posted in the wiki sections on the models. I was ready to abandon the whole idea of installing linux on the surface pro until I found this thread.

TheButteryToast commented 3 months ago

I have a question, can I boot from a usb when i'm stuck on the Microsoft logo? I can get into the UEFI but when I try to hold the volume down it doesn't work. Yes I did try to make it boot from usb from the UEFI but it didn't work please help. Or do I make a ventoy drive from Ubuntu 22.04?

numanjvd82 commented 3 months ago

I have a question, can I boot from a usb when i'm stuck on the Microsoft logo? I can get into the UEFI but when I try to hold the volume down it doesn't work. Yes I did try to make it boot from usb from the UEFI but it didn't work please help. Or do I make a ventoy drive from Ubuntu 22.04?

Just make a ventoy drive and boot from it. I think that will fix the issue.

TheButteryToast commented 3 months ago

It's not wanting to boot from the usb. do I have to downgrade the uefi?

TheButteryToast commented 3 months ago

I found out to get it to boot again you turn off secure boot then change boot order to boot from usb then reinstall windows 11 then after change back the boot order then reinstall Ubuntu if you want but I'm not going to because this is my daily computer.

dzc685 commented 3 months ago

Just wanted to confirm I had the same issue with my Surface Book 2. I want to dual boot Windows 11 and Ubuntu 22.04 and got stuck on MS logo after installation.

Fix was as mentioned to use Ventoy and during installation choose Grub 2 with Secureboot disabled. After Ubuntu installation is finished Secureboot can be enabled again with third party CA certs. However after installing my Surface once again got stuck on MS logo instead of showing the expected MOK blue screen and disabled Secureboot didn't help. In this case I used the Ventoy USB drive again (the one I installed from) which took me to the MOK blue screen where I could enroll the key and then boot into Ubuntu.linux-surface-secureboot-mok

Now everything works, thx ๐Ÿ™‚

I using ubuntu23.10 on surface pro 7. Problem fixed with this method!๐Ÿ˜Š

XoanOuteiro commented 3 months ago

Similar solutions have been mentioned before but they didnt work for me so im commenting for future people with the same problem: I managed to get this running on SP7 with Mint 21.2 (which has its own mmx) what i did is installing it, then enrolling mok FROM THE USB BOOTABLE without doing a new installation, then rebooting and changing boot to the installation made before

Deimos-94 commented 2 months ago

I was not able to to get Fedora live to boot for the install process. I did not try secureboot and I installed Fedora on a USB-SSD while Win 11 is on the internal SSD.

I was not able to Install Fedora on my Surface Pro 8 with the newest UEFI. I got Fedora installed by downloading the Fedora 39 Everything spin (you will need Internet for the installation process. I used Ethernet). The Everything spin has the ability to select systemd-boot as the bootloader for the installation process and the resulting install.

Make a bootable USB drive with Fedora-Everything-39 and set the Surface BIOS to boot from USB

During the GRUB menu do not select Install Fedora 39, but modify this option by pressing e. In the list of options add: inst.sdboot and with pressing ESC your changes will be applied. During the install process you will be able to select the components. For Example KDE or your preferred desktop environment.

After the completed install you have a working Fedora install on your Surface that uses systemd boot instead of GRUB. I do not know how one would add Windows to the boot list since I used the UEFI setting to boot from USB when one is inserted and boot Windows from NVMe as the 2nd option.

lucagratt commented 2 months ago

i believe i have a new issue. after booting from the ventoy drive, i can finally choose enroll mok. unfortunately the keyboard does not work and i cannot enter the password. tried with external keyboard but it does not work. any help?

KaKi87 commented 1 month ago

Hi,

I installed Ubuntu Unity 23.10 from Ventoy USB while secure boot was disabled, then ran sudo apt install linux-image-surface linux-headers-surface libwacom-surface iptsd, then ran sudo apt install linux-surface-secureboot-mok, then rebooted, and got stuck on the logo.

Then I tried rebooting on Ubuntu Unity 23.10 from Ventoy USB, without success, then other distros from Ventoy as well, still without success.

Then I tried booted Windows from Ventoy, which worked, so I installed it, successfully.

Then I flashed Ubuntu Unity 23.10 using Rufus on this freshly installed Windows, but still wouldn't boot.

I read UEFI downgrade instructions but those are for Surface devices which have a booting Linux, which mine doesn't.

What to do ?

Thanks

rmcguinness commented 1 month ago

I've had a similar issue with the Surface Laptop 5. I recently discovered this may be due to a change in the UEFI that does not allow a graphical overlay on the windows logo. In order to fix this, you need to start in safe mode (either holding down left shift or hitting escape on startup). Change the following line from

GRUB_CMDLINE_LINUX_DEFAULT='quiet splash' to GRUB_CMDLINE_LINUX_DEFAULT=''

kdolum commented 4 weeks ago

+1 for Ventoy. In my case, I started by using usb-creator-gtk to make a USB stick with ubuntu-22.04.4. This booted just fine on my Surface Pro 6. However, when I said to install Ubuntu alongside windows, it told me that I had to go back to Windows and turn off Bitlocker. (In my case I had to turn on then turn off Bitlocker, see https://help.ubuntu.com/bitlocker.) After that my tablet would never boot from any Ubuntu stick. It just gave the 4-white-squares logo forever. Putting Ventoy and my Ubuntu iso on the stick instead solved the problem.

sounan168 commented 3 days ago

then

How you fix this i have same problem