Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2010 16:17:30 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        freebsd-current@FreeBSD.org
Cc:        Marc UBM Bocklet <ubm.freebsd@googlemail.com>
Subject:   Re: vidcontrol / resolution problems with latest current
Message-ID:  <201002011617.31527.jkim@FreeBSD.org>
In-Reply-To: <20100201184446.2325c04e.ubm.freebsd@gmail.com>
References:  <20100201184446.2325c04e.ubm.freebsd@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-00=_rT0ZLsydPD114mT
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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@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

--Boundary-00=_rT0ZLsydPD114mT
Content-Type: text/plain;
  charset="iso-8859-1";
  name="vesa.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="vesa.diff"

--- 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

--Boundary-00=_rT0ZLsydPD114mT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002011617.31527.jkim>