limine icon indicating copy to clipboard operation
limine copied to clipboard

Limine doesn't load on Pure UEFI (no CSM support) on a ThinkPad X240.

Open IAmTheNerdNextDoor opened this issue 2 years ago • 14 comments

I'm not quite sure if Limine is supposed to work with CSM support enabled only but I've observed my ThinkPad not getting to the Limine menu on Pure UEFI and staying at a black screen after the ThinkPad logo.

On UEFI with CSM support enabled, it gets to the Limine menu just fine. I'm not quite sure what is causing this issue or if this is just a hardware specific thing but I thought I should make an issue nonetheless.

Edit: I'm currently running Limine v8.1.1 from the Arch Linux repos. This issue has persisted for a while. (I only got Arch along with Limine installed around v8.0.13, so I can't confirm versions before that one didn't have this issue.)

IAmTheNerdNextDoor avatar Oct 12 '24 23:10 IAmTheNerdNextDoor

Thanks for opening this issue.

Just to clarify, when you say CSM support enabled/disabled, do you mean actually using the legacy BIOS support given by CSM or still using UEFI but with CSM enabled?

Limine should work on this machine, with or without CSM enabled. But depending on what you mean, it could be that you simply did not install the Limine variant for UEFI (or did not install it correctly), while only having the BIOS variant installed.

Mintsuki avatar Oct 13 '24 00:10 Mintsuki

No problem!

What I mean by CSM is the UEFI with CSM enabled.

These images should show what I mean.

image

image

When CSM is set to No (Pure UEFI without any Legacy components) Limine doesn't load.

I also installed Limine with pacman when I installed Arch.

I hope this clears up the confusion.

IAmTheNerdNextDoor avatar Oct 13 '24 02:10 IAmTheNerdNextDoor

Is this issue specific to Limine only? Can it not be reproduced with any other bootloader?

As far as I can tell you, Limine should not care whether CSM is on or off if booting the Limine UEFI port. Can you confirm Limine is even entered at all before the system hangs?

What was the reason you attempted to switch CSM off in the first place? Can you double check that "UEFI only" with CSM on actually means the system truly never attempts to boot with CSM? (Disregard what the firmware setup help text says, firmware is often broken. Just boot with CSM on and "UEFI only" and double check you are actually using UEFI).

Mintsuki avatar Oct 13 '24 03:10 Mintsuki

I think its specific to Limine. I tried with GRUB and systemd-boot UEFI without CSM. Closest result is that GRUB gave me no output on screen but still continued running in the background and booted in.

Limine doesn't enter at all. It just hangs at the black screen with the Lenovo logo.

I wanted everything to use UEFI with no CSM. With UEFI and CSM on, the system switches screen resolutions reverting to a more old BIOS look and resolution (but I changed that to my screens max resolution in Limine so it switches back after the logo).

UEFI with CSM set to no looks like this on boot: IMG_8669

UEFI with CSM set to yes looks like this on boot: IMG_8670

Booting with Legacy gives the same screen as UEFI with CSM set to yes, but the system will never boot Limine as it is setup for UEFI.

IAmTheNerdNextDoor avatar Oct 13 '24 11:10 IAmTheNerdNextDoor

Sounds like with CSM off the UEFI doesn't provide a linear framebuffer. Could you try adding serial: yes to the Limine config?

Mintsuki avatar Oct 13 '24 13:10 Mintsuki

Sounds like with CSM off the UEFI doesn't provide a linear framebuffer. Could you try adding serial: yes to the Limine config?

I added "serial: yes" to my config. System still hangs after turning off CSM and rebooting to Limine. With CSM on though, my resolution settings are now ignored with it added in.

IAmTheNerdNextDoor avatar Oct 13 '24 14:10 IAmTheNerdNextDoor

Yeah... that's expected. Though the situation overall doesn't sound right at all, as if something's seriously wrong with this machine's firmware.

Would it be too much to ask to see if there is any BIOS update available and if so, to install it and try again?

Mintsuki avatar Oct 13 '24 14:10 Mintsuki

Yeah... that's expected. Though the situation overall doesn't sound right at all, as if something's seriously wrong with this machine's firmware.

Would it be too much to ask to see if there is any BIOS update available and if so, to install it and try again?

I'll check. The machine is currently on version GIET67WW 2.17 from 2014-01-08.

IAmTheNerdNextDoor avatar Oct 13 '24 14:10 IAmTheNerdNextDoor

I updated the machine to GIET99WW 2.49 from 2020-03-17. With CSM disabled, the same issue occurs. I'm not sure this is a machine problem then considering the BIOS was reflashed and the Embedded Controller was also reflashed.

IAmTheNerdNextDoor avatar Oct 13 '24 15:10 IAmTheNerdNextDoor

I'll look into it and let you know. In the meantime I suggest simply keeping CSM on when using Limine on the machine.

Mintsuki avatar Oct 13 '24 16:10 Mintsuki

I'll look into it and let you know. In the meantime I suggest simply keeping CSM on when using Limine on the machine.

Alright, thank you. I'll keep CSM on for now.

IAmTheNerdNextDoor avatar Oct 13 '24 16:10 IAmTheNerdNextDoor

I have upgraded the ThinkPad x240 to a 1TB SSD from my old 512GB HDD. I can confirm this is not a machine issue nor a drive issue.

IAmTheNerdNextDoor avatar Oct 14 '24 21:10 IAmTheNerdNextDoor

Thanks for making a fix commit in v8.1.2. I'm currently waiting for it to enter the Arch repos and hopefully it should go in soon. I'll let you know how it goes. :)

IAmTheNerdNextDoor avatar Oct 15 '24 22:10 IAmTheNerdNextDoor

Good news, Limine successfully loads and boots to Arch Linux under Pure UEFI!

Thank you so much for your help! This update might also fix so many other machines out there too!

IAmTheNerdNextDoor avatar Oct 16 '24 13:10 IAmTheNerdNextDoor