Skip to contentSkip to conversation

Is it possible to issue a VBE3.0 call from Grub (1.95) to set desired refresh rate?

DISCUSSION Dimitry Golubovsky 2 participants 2 messages May 29, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I am using Linux 2.6 on x86-64 with framebuffer console, VIA Unichrome integrated graphics chip on a VIA K9MM-V motherboard.

When the videomode is set using Linux kernel boot options (video=vesafb vga=...), default refresh rate is 60Hz which causes visible blinking on a CRT monitor. The vesafb-tng driver does not work in 64 bit kernels. Kernel framebuffer driver modules specific to VIA Unichrome were tried, but none worked.

Is setting a videomode via VBE3.0 call 4f02h with desired refresh rate possible from within Grub - using the grub.cfg file, or with some programming?

Another thing, how to pass parameters to Linux kernel so that it does not attempt to change the video mode when loading the vesafb framebuffer driver?

Video mode needs to be set just once, during the boot process.

Thanks.

PS I am completely new to Grub, but familiar with low-level programming.

Signature · 3 lines
Dimitry Golubovsky

Anywhere on the Web
#1 lore raw
Quoted 11 lines · Dimitry Golubovsky

Hi,

I am using Linux 2.6 on x86-64 with framebuffer console, VIA Unichrome integrated graphics chip on a VIA K9MM-V motherboard.

When the videomode is set using Linux kernel boot options (video=vesafb vga=...), default refresh rate is 60Hz which causes visible blinking on a CRT monitor. The vesafb-tng driver does not work in 64 bit kernels. Kernel framebuffer driver modules specific to VIA Unichrome were tried, but none worked.

Quoted 3 lines

Is setting a videomode via VBE3.0 call 4f02h with desired refresh rate possible from within Grub - using the grub.cfg file, or with some programming?

I'm not familiar with the video API either, but vbe.c:grub_video_vbe_init() looks like a good place to start digging for the information you want.

grub_video_vbe_fini() might also be useful.

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.