[Bug 941931] New: GRUB2 graphical menu is extremely slow
http://bugzilla.suse.com/show_bug.cgi?id=941931 Bug ID: 941931 Summary: GRUB2 graphical menu is extremely slow Classification: openSUSE Product: openSUSE Factory Version: 201505* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader Assignee: jsrain@suse.com Reporter: jmatejek@suse.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 643998 --> http://bugzilla.suse.com/attachment.cgi?id=643998&action=edit screen showing output of vbeinfo i'm using an AMD GPU and a 2560x1440 native display. on this configuration, the GRUB2 UI is slow to the point of unusability; it takes a full second to flip from one menu item to another, 3-5s just to display the boot menu, before booting starts. drawing the chameleon logo is visible line-by-line, too lowering the resolution helps, at 1280x960x32 the speed is almost usable, 1280x960x16 is sluggish but OK (so i'm sticking with this resolution for now) my GPU is reported as follows: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X] detected graphics modes are attached -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=941931
Jiri Srain
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c1
--- Comment #1 from Jan Matejek
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c2
--- Comment #2 from Michael Chang
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c3
--- Comment #3 from Jan Matejek
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c4
--- Comment #4 from Jan Matejek
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c5
Michael Chang
From your log. somehow the active video adapter was VGA Video driver. There could be something wrong here, as it can't support for resolutions other than 640x480 or 640x350. Also it should use vbe video driver if video bios externsion is available, which is quite common nowadays.
What do `hwinfo --framebuffer` say in your system ? Also can you test by modifying /boot/grub2/grub.cfg from function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } to function load_video { insmod vbe } * remember to backup your grub.cfg for the testing, ideally it should fallback to text mode for no matched video adapter found, but I can assure that. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c6
--- Comment #6 from Michael Chang
(a clarification, when i say "line by line", i mean scanlines, as in individual pixels. not lines of text)
it very much looks as if a pre-filled 2560x1440 buffer is copied on screen and that takes a long time.
That sounds like no dobule buffering so that the rendering direct updating the on-screen buffer in video memory, blitting data from system memory to it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=941931
Michael Chang
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c7
--- Comment #7 from Jan Matejek
(In reply to Jan Matejek from comment #4)
From your log. somehow the active video adapter was VGA Video driver.
no, the top of the output is missing and the list of resolutions is apparently generated by "VESA BIOS Extension Video Driver" (i presume the "VGA" entry means that the VGA driver was loaded, but found no applicable resolutions?) anyways, i'm attaching a complete output that I got when only vbe was loaded.
function load_video { insmod vbe }
this didn't change anything (except the VGA section from vbeinfo is gone) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c8
--- Comment #8 from Jan Matejek
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c9
--- Comment #9 from Jan Matejek
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c10
--- Comment #10 from Michael Chang
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c11
--- Comment #11 from Jan Matejek
Looks to me that the video ram is too small to enable page flipping by swapping poiners of on-screen and off-screen buffers in video memory to update the screen quicky [1].
this is true, but doesn't help the issue indeed, lowering to 1600x1200x32 (6400 line width, 15MB used) gets rid of the line-by-line rendering, and the whole image appears at once BUT, there is still roughly the same delay before the image appears so ISTM it's the filling of the buffer itself that is causing the slowdown -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c12
--- Comment #12 from Michael Chang
(In reply to Michael Chang from comment #10)
BUT, there is still roughly the same delay before the image appears
How the delay was measured? Is it still gfxterm (no theme enabled) with backgroud image that could reproduce it? How about the disable the background image completely and leave on gfxterm or do not scale the background image by changing, for eg. background_image -m stretch /boot/grub2/themes/SLE/back-640-480.png to background_image -m normal /boot/grub2/themes/SLE/back-640-480.png in /boot/grub2/grub.cfg ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=941931
http://bugzilla.suse.com/show_bug.cgi?id=941931#c13
--- Comment #13 from Jan Matejek
https://bugzilla.suse.com/show_bug.cgi?id=941931
https://bugzilla.suse.com/show_bug.cgi?id=941931#c14
Benjamin Brunner
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com