Follow-up Comment #5, bug #49814 (project grub):

> The bug happens only if grub works in gfx 
> mode but the boot happens in text mode. 

Good catch. I won't claim to fully understand this code, but as far as I can
tell in grub_video_set_mode()

- if we have "keep" we simply return keeping current adapter
- if we have graphic mode, we reinitialize adapter

in both cases we later reset current page in
grub_video_fb_get_info_and_fini(). But if we have test mode then

- we shut down current video adapter *without* changing current page, and
probably reset it to NULL

it means we are left with whatever was set before.

May be we need wrapper around ->fini() method that resets current page (moving
code from grub_video_fb_get_info_and_fini()).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49814>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to