From owner-freebsd-stable@FreeBSD.ORG Thu Sep 16 16:37:41 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D37B21065798; Thu, 16 Sep 2010 16:37:41 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 344578FC18; Thu, 16 Sep 2010 16:37:40 +0000 (UTC) Received: by bwz15 with SMTP id 15so2218240bwz.13 for ; Thu, 16 Sep 2010 09:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=VEqvuRUkfWUL6V4TKp8nfKpvGOROZ34F/O5ff3Vnjmw=; b=ioQC8i+UJBXUbZ1u8toXV7UkXUvhAczqBy+doiN1wci2JMuVb66mKDzjXZBXLqxn/w COoJX38LKObOPlf6q0gZei8whK3axTwxnu9P47K3dHt7VWj2mbMqxN0AQPlmQ6y78RYX 3+v4g7Pu2tq3Zr2sIGBiV9L/yxz7LfpU0hoGk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=DJsEk6fDXIO0vM5y/QBKahO0zoAD7Lxgc3RZEV6yRFfc/u7tXI783I4hrbtW4q+qBE 98kliNMa4lAFUJci5h0EEGvfqnCCygOA3JG9+Lj0pnD2UZ9iMnG1seS4bDnK0UOoSv8g qDmyn3LHNNH3ShR8WU076xm+mDDoTexokJ1gs= MIME-Version: 1.0 Received: by 10.204.68.206 with SMTP id w14mr2686408bki.132.1284655059253; Thu, 16 Sep 2010 09:37:39 -0700 (PDT) Received: by 10.204.80.167 with HTTP; Thu, 16 Sep 2010 09:37:39 -0700 (PDT) In-Reply-To: References: <877004.53626.qm@web59106.mail.re1.yahoo.com> <201007161522.54572.jkim@FreeBSD.org> <201007161918.32195.jkim@FreeBSD.org> <201007191503.37511.jkim@FreeBSD.org> Date: Thu, 16 Sep 2010 18:37:39 +0200 Message-ID: From: David DEMELIER To: Jung-uk Kim Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: Strange video mode output with VESA X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2010 16:37:42 -0000 2010/9/16 David DEMELIER : > 2010/7/19 Jung-uk Kim : >> On Friday 16 July 2010 07:18 pm, Jung-uk Kim wrote: >>> On Friday 16 July 2010 03:22 pm, Jung-uk Kim wrote: >>> > On Friday 16 July 2010 03:00 pm, David DEMELIER wrote: >>> > > 2010/6/19 paradox : >>> > > >>On Wednesday 02 June 2010 04:25 pm, David DEMELIER wrote: >>> > > >>> Hi there, >>> > > >>> >>> > > >>> I was so happy to see that VESA is available for amd64, but >>> > > >>> unfortunately it does not work really well for me. Take a >>> > > >>> look at this picture : >>> > > >>> >>> > > >>> http://img717.imageshack.us/img717/7311/dsc00399h.jpg >>> > > >>> >>> > > >>> My laptop is a 15,6" so the best resolution is 1366x768, I >>> > > >>> tried this >>> > > >>> >>> > > >>> : vidcontrol MODE_496. As you can see on the picture all >>> > > >>> : the lines are >>> > > >>> >>> > > >>> completely everywhere, if I mouse the cursor they move away >>> > > >>> (I'm not drunk!). >>> > > >>> >>> > > >>> I have SC_PIXEL_MODE in my kernel config. >>> > > >>> >>> > > >>> The console terminal is okay until I don't excess >>> > > >>> 1280x960x32 video mode. >>> > > >>> >>> > > >>> Do you have any idea to fix this ? >>> > > >> >>> > > >>It is kinda known problem. =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDIf the mode has larger >>> > > >> bytes per scan line than the minimum, few characters per >>> > > >> line are lost when the screen is scrolled up or down, i.e., >>> > > >> framebuffer copies of whole screen. =EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDWhen you move >>> > > >> the mouse onto the line, entire line is redrawn and >>> > > >> restored. =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BDThat's what you are seeing. =EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDEd >>> > > >> might have a better idea how to fix it (CC'ed). >>> > > >> >>> > > >>Jung-uk Kim >>> > > > >>> > > > this is incorrent calculate the scan lines in the vesa driver >>> > > > Jung-uk Kim should to fix it >>> > > >>> > > But Jung-uk Kim said Ed' should fix it so we are in an infinite >>> > > loop :- >>> > >>> > No, I didn't say that. =C2=A0What I meant was "Ed may be a better >>> > qualified person to fix syscons vs. terminal emulator interaction >>> > issues." :-( >>> >>> Can you please try the attached patch? >> >> FYI, I just went ahead and committed a (slightly better) patch on head >> as r210248. =C2=A0It will be MFC'ed soon. >> >> Jung-uk Kim >> > > Sorry, I completely forgot this thread, > > I tried your patch, it didn't solved the problem but the offset is > shorter now, only 2 or 3 characters per line are bad positionned. I > will try the r210248 revision, this revision only applies to the file > scvgarndr.c ? > > Thanks. > > -- > Demelier David > I tried the r210248 revision but it doesn't works, I still have a little offset but less than without the patch. Kind regards, --=20 Demelier David