vesa driver already for amd64!

Figured it out. It appears to be incorrectly documented in syscons(4). Setting the high 16 bits of hint.sc.0.flags will get you no where. You need to set hint.sc.0.vesa_mode in /boot/loader.conf. For example, the kernel sets 1024x768x16 for me with this:

Code:
hint.sc.0.flags=0x0180
hint.sc.0.vesa_mode=0x0117

0x0117 is taken from
# vidcontrol -i mode
(MODE_279)

A little bit better than allscreens_flags in rc.conf. :)
 
paradox said:
continued

http://paradox.lissyara.su/syscons.c.diff for freebsd 8 stable
Code:
cp syscons.c.diff /usr/src
patch -p1 < syscons.c.diff
and rebuild yr kernel

this is patch to allow switch the console to graphic mode early at boot time
the new flags is hint.sc.0.flags=0x01150180
where
0x100 - the flag for keyboard (used by default in freebsd)
0x80 - flag to switch the graphic console at boot(new flag)
0x0115 - the graphic mode that can be see from vidcontrol -i mode(new flag)
add this flag 0xXXX mode after testing with vidcontorl MODE_****
as example MODE_277 is 0x0115

all virtual console will be to switched to new graphic mode

don't forget the install vesa driver and add to loader.conf vesa_load="YES" options

dont use any more allscreens_flags= in rc.conf
becouse its clear boot log in console

Hi,

I wanted to do the same thing :

Code:
496 (0x1f0) 0x0000001f G 1366x768x32 D   8x16  0xa0000 64k 64k 0xc0000000 4128k

This is the mode I want so I modified hint.sc.0.flags to
Code:
hint.sc.0.flags="0x1f00180"
but it seems to use 1024x768 resolution (or something else but not 1366x768).

It works after the boot if I do vidcontrol MODE_496 so I don't know...
 
Can't try it right now ( am on Windows OS ), but I think you're supposed to use
Code:
hint.sc.0.flags=0x180
hint.sc.0.vesa_mode=0xYYY
where YYY is the hexadecimal form of the decimal number suffix to MODE_ according to post 51. In your case that would be
Code:
hint.sc.0.flags=0x180
hint.sc.0.vesa_mode=0x1f0
 
busyboy said:
Can someone please share an active link for Vesa Module for FreeBSD/AMD64. Thanks

Uhm, sure /boot/kernel/vesa.ko, if you run FreeBSD AMD64 8.2 or greater.

In other words: you already have it.
 
Back
Top