vidcontrol / resolution problems with latest current
Jung-uk Kim
jkim at FreeBSD.org
Mon Feb 1 21:17:46 UTC 2010
On Monday 01 February 2010 12:44 pm, Marc UBM Bocklet wrote:
> Hiho! :-)
>
> Recently, I updated to the latest version of 9-current and found
> out that I cannot set my console resolution to 800x600 anymore. If
> I try, it just goes blank or shows a few coloured, garbled lines in
> the upper third of my monitor. Starting X11 blindly works, as does
> switching to X11.
>
> I'm suspecting the recent tty/xterm changes, but I am not sure.
>
>
> uname -a:
>
> FreeBSD xxx.yyy 9.0-CURRENT FreeBSD 9.0-CURRENT #17: Sat
> Jan 23 14:58:47 CET 2010
> sheep at ubm.mine.nu:/usr/obj/usr/src/sys/SUBMARINE_SMP i386
>
>
> Relevant part of my rc.conf that I used to set console to 800x600:
>
> allscreens_flags="-g 100x37 VESA_800x600"
>
>
> Relevant kernel option that I use:
>
> # VESA support
>
> options VESA
>
> # raster display support for 800x600 resolution
>
> options SC_PIXEL_MODE
>
>
> Can anyone point me to a solution / is more info required?
Hmm... The attached patch should restore the previous behavior.
Jung-uk Kim
-------------- next part --------------
--- sys/dev/fb/vesa.c
+++ sys/dev/fb/vesa.c
@@ -1322,7 +1322,7 @@ vesa_set_mode(video_adapter_t *adp, int mode)
vesa_adp->va_window_gran = info.vi_window_gran;
}
vesa_adp->va_window_orig = 0;
- vesa_adp->va_line_width = vesa_get_line_width(&info);
+ vesa_adp->va_line_width = vesa_bios_get_line_length();
vesa_adp->va_disp_start.x = 0;
vesa_adp->va_disp_start.y = 0;
#if VESA_DEBUG > 0
More information about the freebsd-current
mailing list