Page 1 of 1

Setting the VBE video modes using GRUB 2

Posted: Mon Jul 08, 2019 1:06 am
by iProgramInCpp
I'm coding a simple toy OS in Assembly and C.

I'm trying to get a VBE video mode set by GRUB 2, but I simply don't know how. The OS is running in 32-bit protected mode, but I'm interested in having a hi-res video mode. The kernel is running above 1 MB sadly, so I can't just switch to real mode and back without copying code into the <1MB mark (which I can't figure out how). I haven't implemented userland yet, so vm86 won't work.

How do I set a VBE video mode using GRUB 2?

Re: Setting the VBE video modes using GRUB 2

Posted: Mon Jul 08, 2019 1:10 am
by iansjack
You could do worse than use Google, which would give you this link (amongst many):

https://wiki.archlinux.org/index.php/GR ... resolution

Re: Setting the VBE video modes using GRUB 2

Posted: Mon Jul 08, 2019 1:18 am
by iProgramInCpp
Thanks, I will try this later today