Setting the VBE video modes using GRUB 2

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
iProgramInCpp
Member
Member
Posts: 81
Joined: Sun Apr 21, 2019 7:39 am

Setting the VBE video modes using GRUB 2

Post 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?
Hey! I'm developing two operating systems:

NanoShell --- A 32-bit operating system whose GUI takes inspiration from Windows 9x and early UNIX desktop managers.
Boron --- A portable SMP operating system taking inspiration from the design of the Windows NT kernel.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Setting the VBE video modes using GRUB 2

Post 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
iProgramInCpp
Member
Member
Posts: 81
Joined: Sun Apr 21, 2019 7:39 am

Re: Setting the VBE video modes using GRUB 2

Post by iProgramInCpp »

Thanks, I will try this later today
Hey! I'm developing two operating systems:

NanoShell --- A 32-bit operating system whose GUI takes inspiration from Windows 9x and early UNIX desktop managers.
Boron --- A portable SMP operating system taking inspiration from the design of the Windows NT kernel.
Post Reply