0

Before showing menu or splash-screen, Grub2 load something like a console for some messages like errors, It shows for about 200ms but the cursor is very visible. It is an aesthetic problem but I would appreciate to control this behavior and hide the cursor.

1

This appears to be extremely hardcoded. I initially seeked for a solution for the same problem as I faced it in my UEFI-enabled laptop to which I installed a BIOS version of Ubuntu. I looked everywhere and I hoped someone would answer your question, but no one did and I doubt anyone will (with a solution), so I started to look for alternatives to Grub.

I converted my hard drive from MBR to GPT, converted my installation to UEFI, and then started booting UEFI-mode to Ubuntu. Since an UEFI Ubuntu still uses Grub, believe it or not, that goddamn cursor was still there, only now superimposed on the Lenovo logo screen!! Amazing.

So in the end I ditched Grub entirely by booting via EFI stub kernel loader. Now there is no cursor anymore. I recommend you also look for alternatives to Grub if you're determined to get rid of the cursor. Sorry this is a non-answer to the question, but I ravaged the web for an answer and nobody seems to even recognize it as a thing, so... I don't think there's an option to switch it off or something (I even tried theming Grub to make it black font on black background: as I didn't even multiboot this wouldn't be a problem. Still didn't work).

  • I'm looking for time to give a look at the early boot functions, specially github.com/vathpela/grub2-fedora/blob/master/grub-core/boot/…, maybe using some Bios subfunction for int 10H: en.wikipedia.org/wiki/INT_10H and compiling my own grub can solve it. It is sad grub did not come with the cursor invisible by default at this particular stage. I'm not sure EFI stub kernel loader even with rEFInd is particularly usable with Windows. – RomuloPBenedetti Jul 27 '17 at 2:37
  • update: Apparently, it is, will give a look too when possible, if rEFInd can be made silent, quick and reliable as Grub. – RomuloPBenedetti Jul 27 '17 at 2:54
  • Wow - yeah, I mean, I wouldn't dare compile my own Grub because I don't think I have the skills to do it (at least without a tutorial), so it didn't even cross my mind. But I hope it works out :) And I'm sorry I didn't consider whether you were dual booting or not and actually needed something like Grub to choose systems. Also, apparently rEFInd and others are pretty reliable. You should definitely give it a try, I guess it's more failsafe than compiling such a vital part of the system by yourself :) (and must be easier too) – Peterson Silva Jul 27 '17 at 4:31
  • Yes, it is somewhat extreme, but even if I have a desktop with UEFI I would like to replicate it in my old fashion BIOS Dell XPS 15, and by what I've read from the maintainer of rEFInd, it is somewhat slower as always it scans partition in search of a kernel. But you did not need to apologize, it was my fault to not explain the limitations. – RomuloPBenedetti Jul 27 '17 at 17:42
1

Short answer: Without compiling your own grub2 boot loader - you can't.

Longer answer: Compiling your own grub is not that hard and it is doable pretty fast. However you need to add your own interrupt handler INT 10h routine to hide blinking cursor (function code AH=01h) for which you need to know basics of assembly code. It has been tested and it works. You can more easily get silent boot with some other boot loader such as syslinux. However I couldn't manage to get UEFI secure boot with syslinux therefore I stayed with grub2 boot loader.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.