Grub Slow Render/Response

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
fpp3
Level 1
Level 1
Posts: 9
Joined: Tue Jan 25, 2022 7:56 pm
Location: Cordoba, Argentina

Grub Slow Render/Response

Post by fpp3 »

Hi, I just installed Linux Mint 20.3 Cinnamon on a system with Windows 10 pro on it. The thing is that I need to have grub to select what to boot, but I noticed that it is very slow. I dont know if it has to do with the render speed or the polling rate on the keyboard, but i think that its a mix of both, since when writing, grub buffers what i already wrote, while it slowly writes character by character on screen. This also affects the selection menu, making ti very slow to navigate it. Also, upon the system loading grub, I can see the borders being drawn on the screen. I have no themes installed, I only changed the layout of the options with grub-customizer.

inxi -Fxxxrz output:

Code: Select all

System:
  Kernel: 5.13.0-27-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.2.7 wm: muffin 5.2.0 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop System: Micro-Star product: MS-7C95 v: 1.0 serial: <filter> 
  Mobo: Micro-Star model: B550M PRO-VDH WIFI (MS-7C95) v: 1.0 
  serial: <filter> UEFI: American Megatrends LLC. v: 2.90 date: 12/23/2021 
Battery:
  Device-1: hidpp_battery_0 model: Logitech G603 Wireless Gaming Mouse 
  serial: <filter> charge: 100% (should be ignored) rechargeable: yes 
  status: Discharging 
CPU:
  Topology: 6-Core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP 
  arch: Zen 3 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 88796 
  Speed: 2199 MHz min/max: 2200/3700 MHz boost: enabled Core speeds (MHz): 
  1: 2198 2: 2236 3: 2212 4: 2193 5: 2198 6: 2195 7: 2199 8: 2196 9: 2200 
  10: 2202 11: 2239 12: 2199 
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] vendor: Micro-Star MSI 
  driver: nvidia v: 470.86 bus ID: 2b:00.0 chip ID: 10de:21c4 
  Display: x11 server: X.Org 1.20.13 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1680x1050~60Hz 
  OpenGL: renderer: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.86 direct render: Yes 
Audio:
  Device-1: NVIDIA TU116 High Definition Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 2b:00.1 chip ID: 10de:1aeb 
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 2d:00.4 chip ID: 1022:1487 
  Sound Server: ALSA v: k5.13.0-27-generic 
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
  v: kernel bus ID: 29:00.0 chip ID: 8086:24fb 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus ID: 2a:00.0 
  chip ID: 10ec:8168 
  IF: enp42s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 1.46 TiB used: 11.18 GiB (0.8%) 
  ID-1: /dev/nvme0n1 vendor: A-Data model: SWORDFISH size: 232.89 GiB 
  speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: VC0S0285 scheme: GPT 
  ID-2: /dev/nvme1n1 vendor: Western Digital model: WDS960G2G0C-00AJM0 
  size: 894.25 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 231800WD 
  scheme: GPT 
  ID-3: /dev/sda vendor: Western Digital model: WD6400AAKS-22A7B2 
  size: 596.17 GiB speed: 3.0 Gb/s serial: <filter> rev: 3B01 temp: 41 C 
  scheme: MBR 
Partition:
  ID-1: / size: 95.23 GiB used: 10.70 GiB (11.2%) fs: ext4 
  dev: /dev/nvme0n1p6 
  ID-2: /home size: 585.81 GiB used: 459.0 MiB (0.1%) fs: ext4 
  dev: /dev/sda1 
  ID-3: swap-1 size: 7.63 GiB used: 0 KiB (0.0%) fs: swap 
  dev: /dev/nvme0n1p5 
Sensors:
  System Temperatures: cpu: 42.6 C mobo: N/A gpu: nvidia temp: 51 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb https://mint.zero.com.ar/mintpackages una main upstream import backport
  2: deb http://ubuntu.unc.edu.ar/ubuntu focal main restricted universe multiverse
  3: deb http://ubuntu.unc.edu.ar/ubuntu focal-updates main restricted universe multiverse
  4: deb http://ubuntu.unc.edu.ar/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
  Processes: 328 Uptime: 2m Memory: 15.55 GiB used: 1.30 GiB (8.3%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
NOTE: I dont know if this is OK, but im on a UEFI capable system, and csm/legacy boot are disabled, but for some weird reason, the software manager shows that i have installed GRUB-PC (PC/BIOS version) instead of GRUB2 or GRUB-EFI. Is that OK?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3510
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Grub Slow Render/Response

Post by Jo-con-Ël »

Post back following codes result (copy and paste one line each time and press) using </> Code forum editor option.

Code: Select all

lsblk -f
mokutil --sb-state
cat /etc/fstab
cat /etc/default/grub | nc termbin.com 9999
sudo efibootmgr -v
It was a bad idea to install Grub Customizer. On its Appearance Settings, check is you are using appropriated resolution uncheck custom if any) and remove background image at the moment. See here how to know resolutions as detected on GRUB and how to change it.

It looks like Mint boots in UEFI mode (UEFI: American Megatrends LLC. v: 2.90 date: 12/23/2021). You can see and post back grub packages installed with dpkg -l |grep grub .

Any way, it looks like a problem with graphics but you don't mention any issue once in a working session, so I wonder about monitor (connection/detection...). Post back following codes result (url) also:

Code: Select all

xrandr --verbose | nc termbin.com 9999
Arrieritos semos y en el camino nos encontraremos.
fpp3
Level 1
Level 1
Posts: 9
Joined: Tue Jan 25, 2022 7:56 pm
Location: Cordoba, Argentina

Re: Grub Slow Render/Response

Post by fpp3 »

lsblk -f

Code: Select all

NAME        FSTYPE LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda                                                                          
└─sda1      ext4         36c80710-f705-4345-9217-6bc8a4ddc698  555,4G     0% /home
nvme1n1                                                                      
├─nvme1n1p1                                                                  
└─nvme1n1p2 ntfs   Datos F480363880360222                                    
nvme0n1                                                                      
├─nvme0n1p1 vfat         583D-8E15                              65,9M    31% /boot/efi
├─nvme0n1p2                                                                  
├─nvme0n1p3 ntfs         EE4E5B8F4E5B4F87                                    
├─nvme0n1p4 ntfs         B88C46C88C46813C                                    
├─nvme0n1p5 swap         3e6fdd1a-2b96-4865-80c4-1726a7a5afbf                [SWAP]
└─nvme0n1p6 ext4         79aacb83-9c59-4a4b-95bd-dd1a80ff8f89   79,2G    12% /
mokutil --sb-state

Code: Select all

SecureBoot disabled
cat /etc/fstab

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p6 during installation
UUID=79aacb83-9c59-4a4b-95bd-dd1a80ff8f89 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=583D-8E15  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sda1 during installation
UUID=36c80710-f705-4345-9217-6bc8a4ddc698 /home           ext4    defaults        0       2
# swap was on /dev/nvme0n1p5 during installation
UUID=3e6fdd1a-2b96-4865-80c4-1726a7a5afbf none            swap    sw              0       0
cat /etc/default/grub | nc termbin.com 9999

Code: Select all

https://termbin.com/d7gm
sudo efibootmgr -v

Code: Select all

BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0000,0002
Boot0000* Windows Boot Manager	HD(1,GPT,9f769d33-8372-4195-833d-1872e55eb73c,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0002* ubuntu	HD(1,GPT,9f769d33-8372-4195-833d-1872e55eb73c,0x800,0x32000)/File(\EFI\UBUNTU\SHIMX64.EFI)
It was a bad idea to install Grub Customizer.
Why?
check is you are using appropriated resolution uncheck custom if any) and remove background image at the moment.
I had selected custom resolutions but i previously checked with the command videoinfo (since hwinfo --framebuffer showed nothing, even with sudo) and the resolution of my monitor is supported by grub.
Regarding background images, i have none, since i was getting so bad performance i thought that adding a theme would make it worse.
I only used Grub Customizer to change the layout of the menu options, and add some extra code to the linux boot entry.

dpkg -l | grep grub

Code: Select all

ii  grub-common                                2.04-1ubuntu26.13                     amd64        GRand Unified Bootloader (common files)
ii  grub-customizer                            5.1.0-2                               amd64        GUI to configure GRUB2 and BURG
ii  grub-efi-amd64-bin                         2.04-1ubuntu44.2                      amd64        GRand Unified Bootloader, version 2 (EFI-AMD64 modules)
ii  grub-efi-amd64-signed                      1.167.2+2.04-1ubuntu44.2              amd64        GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed)
ii  grub-emu                                   2.04-1ubuntu26.13                     amd64        GRand Unified Bootloader, version 2 (emulated version)
ii  grub-gfxpayload-lists                      0.7                                   amd64        GRUB gfxpayload blacklist
ii  grub-pc                                    2.04-1ubuntu26.13                     amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin                                2.04-1ubuntu26.13                     amd64        GRand Unified Bootloader, version 2 (PC/BIOS modules)
ii  grub2-common                               2.04-1ubuntu26.13                     amd64        GRand Unified Bootloader (common files for version 2)
it appears that there are some efi-related grub packages, but i still dont understand why did the installer choose to install the pc version
but you don't mention any issue once in a working session,
Well, i had some problems when i installed Linux Mint. i had to boot into recovery mode and continue normal booting, just to use the safe graphics mode and install the propietary nvidia driver, but that was all, and everything works perfectly fine now.

xrandr --verbose | nc termbin.com 9999

Code: Select all

https://termbin.com/1oun
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3510
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Grub Slow Render/Response

Post by Jo-con-Ël »

I would restore a back copy of grub file if it exists on /etc/default folder. Post back ls /etc/default | grep grub.

If it is not, you can edit /etc/default/grub (sudo xed admin:///etc/default/grub), take into account in current edition you don't need to use "" at all:
-remove all those final lines added by GC
GRUB_HIDDEN_TIMEOUT="0"
GRUB_DISABLE_OS_PROBER="true"
GRUB_SAVEDEFAULT="false"
#GRUB_TERMINAL_OUTPUT="console"
#GRUB_DISABLE_LINUX_RECOVERY="true"
#GRUB_GFXPAYLOAD_LINUX="text"

-change GRUB_DEFAULT line to
GRUB_DEFAULT="0"
-and add auto to following line
GRUB_GFXMODE="1680x1050, auto"
Save changes, close editor and run

Code: Select all

sudo update-grub
Maybe you need to get into GRUB Customizer to make those change and save.
Then, post back following codes result (url)

Code: Select all

cat /boot/grub/grub.cfg | nc termbin.com 9999
If those problems on grub menu are not solved, comment (write # at the beginning) that GRUB_GFXMODE line or try a lower resolution
fpp3 wrote: Wed Jan 26, 2022 8:24 pm
It was a bad idea to install Grub Customizer.
Why?
You say you only need GC to change layout and add some extra code to Linux boot entry.. You don't need any tool for that, just edit a modify /etc/default/grub (only look at Grub manual or good web indications about how to adapt grub).

As it is said, GC to do that simple changes complicate boot process bypassing GRUB files and hiding original ones (see here).

By example:
-You don"t know why grub-pc is installed. Neither do I. Most probably it was installed by some application you have installed (boot info. Boot repair,...) but who knows.

On Synaptic Package Manager search and right-click on that grub-pc packages> Dependencies and/or Installed files to get an idea about that application and also packages that will be affected if decide to remove.

-Removing grub-pc alone, will remove also another dependent packages that also depend on other packages.....and will end with broken packages.

-In most cases (w/o GC) it is enough just reinstalling grub-efi-amd64-signed, so grub-pc will be removed if needed and boot would not be affected.

-In your case it is not sure you wont brake your boot because of those GC proxies will be executed together with the restored ones (see here Purge and reinstall related to GC).
Arrieritos semos y en el camino nos encontraremos.
fpp3
Level 1
Level 1
Posts: 9
Joined: Tue Jan 25, 2022 7:56 pm
Location: Cordoba, Argentina

Re: Grub Slow Render/Response

Post by fpp3 »

ls /etc/default | grep grub

Code: Select all

grub
grub.d
-remove all those final lines added by GC
Actually, some of those lines i added them myself. Since i dont want to always select what os to boot, i prefer to not see the grub boot-entries at all, so thats why i disabled os prober (since in theory forces the menu to be shown at boot). But, for the sake of testing, ill only comment those lines (its ok, isnt it?), so if i can fix this later on, i can restore them.

cat /boot/grub/grub.cfg | nc termbin.com 9999

Code: Select all

https://termbin.com/k58n
If those problems on grub menu are not solved,
well, i tried doing both thngs. Commenting the line did nothing, resolution stayed the same. Changing it to a lower resolution, made things better (at 640x480), but i think it was going better cuz the low resolution, because when using the arrow keys on the command line, i could still feel input lag, tho not as bad as with my native resolution. But, while i was checking for what resolution to use, i noticed something:

videoinfo

Code: Select all

List of supported video modes:
Legend: mask/position=red/green/blue/reserved
Adapter `Bochs PCI Video Driver':
    No info available
Adapter `Cirrus CLGD 5446 PCI Video Driver':
    No info available
Adapter `EFI GOP driver':
    0x000 1680 x 1050 x 32 (6720)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
 *  0x001  640 x  480 x 32 (2560)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x002  800 x  600 x 32 (3200)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x003 1024 x  768 x 32 (4096)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x004 1280 x  720 x 32 (5120)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x005 1280 x  800 x 32 (5120)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x006 1280 x 1024 x 32 (5120)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x007 1366 x  768 x 32 (5464)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x008 1440 x  900 x 32 (5760)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x009 1400 x 1050 x 32 (5600)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    0x00a 1680 x 1050 x 32 (6720)  Direct color, mask : 8/8/8/8  pos: 16/8/0/24
    EDID version: 1.3
      Preferred mode: 1680x1050
i dont know why, but my native resolution is listed two times, at 0x000 and 0x00a. They dont appear to differ in nothing, but i dont know why its listed twice
-In your case it is not sure you wont brake your boot
I can always make a clean install of linux. i havent done aything to hard to redo yet. If you say its going to be easier to reinstall linux, tell me, ill do it in less than a day!
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3510
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Grub Slow Render/Response

Post by Jo-con-Ël »

fpp3 wrote: Thu Jan 27, 2022 12:12 pm If you say its going to be easier to reinstall linux,
No, I don't say that. Reinstalling is not easier than trying to remove GC ( apt purge grub-customizer) and then purge and reinstall grub as described in last link
pbear wrote: Sun May 24, 2020 4:58 pm Run apt purge grub-common, then apt install grub-efi-amd64-signed os-prober shim-signed. Select destination for boot loader if prompted (probably won't be).
I'm not sure GC is causing those graphics grub problems, I said you don't need such thing.

As per grub.cfg you altered (by-passed and replace grub executables) normal boot only to create customs grub entries (40_custom_proxy) with Windows in first place and Cinnamon in second place so you need to change default boot to look for Cinnamon entry to boot, also need to disable os-prober because you get tow Windows entries. In other hand also created custom entries "Extras"(43_custom_proxy) with Advanced options and uefi setup.

Without GC Linux Mint Cinnamon would be your default boot option, Windows 10 would be added as an option in grub menu, also Advanced options (for Linux Mint not Ubuntu) and firmware setup would be created by default, if you don't want to see grub menu or whatever only need to change/add lines on /etc/default/grub, edit original files as 40_custom,... :roll:
Arrieritos semos y en el camino nos encontraremos.
fpp3
Level 1
Level 1
Posts: 9
Joined: Tue Jan 25, 2022 7:56 pm
Location: Cordoba, Argentina

Re: Grub Slow Render/Response

Post by fpp3 »

Jo-con-Ël wrote: Thu Jan 27, 2022 2:05 pm I'm not sure GC is causing those graphics grub problems
Appearently, it wasnt. I uninstalled GC, purged grub, and reinstalled it with the commands you sent me (guess what, it didnt installed grub-pc), and lag is still present.
Also, purging grub appearently didnt removed my old menuentrys, so, idk how good was that purge
Jo-con-Ël wrote: Thu Jan 27, 2022 2:05 pm with Windows in first place and Cinnamon in second place
I actually did that on prupose via my bios settings, since grub added like 10 more seconds more to my boot time when i tried to boot windows. Also, as i didnt liked the idea of grub showing up and letting me choose what to boot, i just hide it, and i would have to spam the Esc key when i wanted to boot to linux (i want windows as my default os). It was just easier to spam F11 (boot selector key for my bios) and then just choose whatever boot-efi i wanted
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3510
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Grub Slow Render/Response

Post by Jo-con-Ël »

fpp3 wrote: Thu Jan 27, 2022 5:12 pm Also, purging grub appearently didnt removed my old menuentrys, so, idk how good was that purge
It looks like GC was not completly removed. You will need to remove those proxy executables in /etc/grub.d/ folder by hand (sudo rm /etc/grub.d/*_proxy) and update grub (sudo update-grub).
fpp3 wrote: Thu Jan 27, 2022 5:12 pm guess what, it didnt installed grub-pc
I said grub-pc, most probably, was installed by another application you have installed, nor by you directly, neither as part of grub (bios) installation.

You can find clues about that application selecting those packages in Synaptic package Manager (right-click>Properties>Installed Files and Dedependencies).
fpp3 wrote: Thu Jan 27, 2022 5:12 pm I actually did that on prupose via my bios settings...
Yes, it is not a bad option just setting Windows as default UEFI boot option in BBS Hard drive priorites, and when you want to boot Linux Mint just press boot menu key( F11) and choose Ubuntu.
Arrieritos semos y en el camino nos encontraremos.
fpp3
Level 1
Level 1
Posts: 9
Joined: Tue Jan 25, 2022 7:56 pm
Location: Cordoba, Argentina

Re: Grub Slow Render/Response

Post by fpp3 »

Jo-con-Ël wrote: Fri Jan 28, 2022 5:55 am You will need to remove those proxy executables in /etc/grub.d/ folder by hand
Did that, and the old menuentries were gone, but lag was still present, and weirdly enough, they were two boot options for Windows, both in the same drive
Jo-con-Ël wrote: Fri Jan 28, 2022 5:55 am Yes, it is not a bad option just setting Windows as default UEFI boot option
Yeah, but ideally, if grub wasnt laggy, i would prefer having grub as my boot selector and not rely on my bios. Thats why i keep trying things :D
fpp3
Level 1
Level 1
Posts: 9
Joined: Tue Jan 25, 2022 7:56 pm
Location: Cordoba, Argentina

Re: Grub Slow Render/Response

Post by fpp3 »

bump?
Locked

Return to “Installation & Boot”