Metabolix / HackBGRT

Windows boot logo changer for UEFI systems
MIT License
2.22k stars 239 forks source link

HP Pavillion Laptop only works on Legacy Mode #160

Closed migue802 closed 9 months ago

migue802 commented 9 months ago

Problem

As stated before in https://github.com/Metabolix/HackBGRT/issues/77#issuecomment-1790395756, my HP Pavillion x360 laptop won't show load the HackBGRT EFI file before the windows original EFI file on regular installation and alternative installation.

Here's the setup.log file with some comments on it: setup.log ~I've tried to paste the logs here on a spoiler but the body is too long xd~

Please note my system is in Spanish, as i've seen that is an issue detecting BitLocker, so it might be an issue also for other things. Let me know if I should change the language to english to temporaly install HackBGRT.

System details

System Model: HP Pavilion x360 Convertible 14-cd0xxx OS: Windows 11 OS Version: 10.0.22621 compilation 22621 HackBGRT Ver.: 2.2.0

Please let me know if I need to debug something else.

migue802 commented 9 months ago

Also to note: I've disabled Secure Boot, disabled Window's Fast Boot and Hibernation is enabled but disabling it doesn't make any difference yet

Metabolix commented 9 months ago

Thanks, this is very interesting!

The first method (enable-entry) seems to write and enable a boot entry (numbered Boot2002), but apparently this gets erased. (Boot20## seems to be a common choice for firmware-generated entries, so maybe I should use only Boot00## values. The UEFI spec doesn't say anything about reserved values, though.)

The second method (enable-bcdedit) creates the correct boot entry (numbered Boot0000 this time) but apparently /addfirst fails to actually make it the default choice, even though it says it succeeded. I will try to debug this later.

Based on the logs, could you please try this sequence:

  1. Uninstall.
  2. Install with the second method (enable-bcdedit).
  3. Install with the first method (enable-entry).
  4. Reboot.
migue802 commented 9 months ago

Hey! Will do that, let me a sec. Thanks for the interest tho, this is a very cool program and it would be cool if it works for all computers

migue802 commented 9 months ago

Yes!!! It worked perfectly; I've noticed a bit longer loading screen but it's okay as it's worth looking at the custom logo

Here is the new setup.log with all the steps you told me to do (ignore when it failed to elevate process I'm a bit silly and press no xD)

migue802 commented 9 months ago

~Please ignore all the deleted comments, said things without testing and doing it multiple times, silly me... :p~

Metabolix commented 9 months ago

Thanks for testing!

In the new log it looks like bcdedit manages to change the boot order after all, so it's not clear why it didn't work earlier.

I've now published v2.3.0 where I have fixed the boot entry numbering (in the default installation method) to avoid collisions with any firmware-specific entries. I think this should fix the original problem (although I can't know for sure).

~Please ignore all the deleted comments,

I read them anyway, and for the record, this issue doesn't have anything to do with language settings. Language should affect only BitLocker detection (which then requests user input) and some parts of automatic ESP detection (which then uses other tests to find the drive).