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

Dima Panov fluffy at fluffy.khv.ru
Sun Feb 6 16:52:14 UTC 2011


Hello!

[fluffy at Beastie] ~$ cat /boot/device.hints|grep sc.0
hint.sc.0.at="isa"
hint.sc.0.flags="0x180"
hint.sc.0.vesa_mode=0x1f0


07.02.2011, 01:50, "David Demelier" <demelier.david at gmail.com>:
> 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
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
Dima Panov (fluffy at FreeBSD.org)
KDE at FreeBSD team

Facebook: http://www.facebook.com/?id=100000181104157


More information about the freebsd-questions mailing list