Set tty resolution using hint.sc.0.flags with VESA

David Demelier demelier.david at gmail.com
Sun Feb 6 15:51:19 UTC 2011


Hello,

I don't like much to use allscreens_flags to set my tty resolution 
because it's done at the end of /etc/rc process. I know we can edit the 
hint.sc.0.flags in /boot/device.hints to set the resolution at the 
earliest stage.

I want to use the 1366x768 mode :

# vidcontrol -i mode
[... snip ...]
496 (0x1f0) 0x0000001f G 1366x768x32 D   8x16  0xa0000 64k 64k 
0xc0000000 4128k

To use this mode I should write hint.sc.0.flags="0x1f00180" where 80 
means VESA mode following the sc(4) manpage.

It seems that my resolution is like 1024x768 when I bootup and not the 
one I want. However when I use vidcontrol MODE_496 after boot it works 
pretty well.

Is there something wrong on my line ?

Cheers,

-- 
David Demelier


More information about the freebsd-questions mailing list