Created attachment 159835 [details] After boot Setting kern.vt.splash_cpu=1 in loader.conf, when finished booting a litte piece remains on top of the screen, see attached image. It also does not give back "its space" on other vt's, image attached.
Created attachment 159836 [details] ttyv1
Both of these jpegs seem to be corrupt and won't display. Maybe bugzilla thinks they are text and is mangling "newlines"?
Works fine for me (Firefox and Chrome); I've copied the first one to https://people.freebsd.org/~emaste/images/20150813_133005_scaled.jpg in case that might work. Jakob, what resolution are you using? I suspect that this happens when the screen height isn't an integer multiple of the font height, and the border is never cleared.
(In reply to Ed Maste from comment #3) That's what I thought. Should be easy to fix? The resolution is 1680x1050. On my laptop (1366x768) it doesn't happen. But if I start X and then switch back to ttyv0 there is remains from X on the side borders. The second issue is interesting; If I switch from ttyv0 to ttyv1 the top portion of the screen of ttyv0 remains. If I switch from X to ttyv1, the top portion of the screen of whatever was visible in X is still visible. Switchin to ttyv0 I get all the screen real estate (minus the borders).
The image "https://people.freebsd.org/~emaste/images/20150813_133005_scaled.jpg" cannot be displayed because it contains errors. Odd that it works for you...
(In reply to Conrad Meyer from comment #5) I took the pictures with my phone and scaled them down with 'jpegtran -scale 1/8'
This fixes one of the two issues described (the giving back its space one): https://reviews.freebsd.org/D3388
(In reply to Conrad Meyer from comment #7) Tested on my laptop. It works.
A commit references this bug: Author: cem Date: Fri Aug 21 15:21:57 UTC 2015 New revision: 286997 URL: https://svnweb.freebsd.org/changeset/base/286997 Log: vt_cpulogos: Resize all terms/windows when tearing down logos PR: 202288 (partial) Tested by: Jakob Alvermark Reviewed by: ed Approved by: markj (mentor) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3388 Changes: head/sys/dev/vt/vt.h head/sys/dev/vt/vt_core.c head/sys/dev/vt/vt_cpulogos.c
cem: The area outside of the addressable console area based on the font isn't being cleared, when the logos disappear and when switching between vtys.
https://reviews.freebsd.org/D3834
Waking up this again. New laptop, different resolution (1920x1080). Broadwell, so using xf86-video-scfb. When switching to a vt from X11 there are uncleared borders on top and bottom of the screen.
D3834 (comment #11) has a fix for just the bug as-filed. It wouldn't fix switching from X to vt, though. Changed the Summary to reflect the desired fix.
I suspect BZ#210382 may fix this for you. I'd add a `depends on` but it seems mere mortal users can't do this.
Issue has a commit -> In Progress. Bug 210382 may resolve this issue. @Conrad, please remove the dependency if that's not the case
I don't see how 210382 fixes this. For example, this has been observed on 1920x1080 (comment #12), but vt already supported 2048x1200.
(In reply to Conrad E. Meyer from comment #16) It does not fix this.
A commit references this bug: Author: jkim Date: Thu Apr 13 23:00:26 UTC 2017 New revision: 316796 URL: https://svnweb.freebsd.org/changeset/base/316796 Log: Attempt to clear logos more thoroughly. PR: 202288 Reviewed by: cem Changes: head/sys/dev/vt/vt_cpulogos.c
We may try to completely clear all borders from vt_flush() if necessary.
(In reply to commit-hook from comment #18) > A commit references this bug: > > Author: jkim > Date: Thu Apr 13 23:00:26 UTC 2017 > New revision: 316796 > URL: https://svnweb.freebsd.org/changeset/base/316796 > > Log: > Attempt to clear logos more thoroughly. > > PR: 202288 > Reviewed by: cem > > Changes: > head/sys/dev/vt/vt_cpulogos.c This fixed the clear borders after boot problem (so far only tested on the 1920x1080 screen). Thanks! Borders remain "dirty" when switching from X to vt.
(In reply to Jakob Alvermark from comment #20) > Borders remain "dirty" when switching from X to vt. Maybe the vt_flush invalidate method would solve that issue.
A commit references this bug: Author: jkim Date: Wed Apr 19 22:41:24 UTC 2017 New revision: 317173 URL: https://svnweb.freebsd.org/changeset/base/317173 Log: Always clear borders when the terminal is flushed. PR: 202288 Changes: head/sys/dev/vt/vt_core.c
(In reply to Jakob Alvermark from comment #20) Please try r317173 or later.
(In reply to Jung-uk Kim from comment #23) > (In reply to Jakob Alvermark from comment #20) > Please try r317173 or later. Almost! There is still a one pixel high line on the bottom of the screen when I switch from X11 to vt. This is on the 1920x1080 screen. I haven't tested on the other machine (that has a 1366x768 screen).
Created attachment 182018 [details] r317323 crash on 1366x768
(In reply to Jakob Alvermark from comment #24) > (In reply to Jung-uk Kim from comment #23) > > (In reply to Jakob Alvermark from comment #20) > > Please try r317173 or later. > > Almost! There is still a one pixel high line on the bottom of the screen > when I switch from X11 to vt. This is on the 1920x1080 screen. > > I haven't tested on the other machine (that has a 1366x768 screen). Tested r317323 on the other machine (with 1366x768 resolution) and it crashes on boot. Attached screenshot of crash.
(In reply to Jakob Alvermark from comment #26) > Tested r317323 on the other machine (with 1366x768 resolution) and it crashes on > boot. Attached screenshot of crash. Can you please do "show registers" and show us the output?
Created attachment 182133 [details] output of show registers
A commit references this bug: Author: jkim Date: Fri Apr 28 16:39:09 UTC 2017 New revision: 317560 URL: https://svnweb.freebsd.org/changeset/base/317560 Log: Fix end coordinate of the drawable area of border. Although the name tr_end suggests it is the end coordinate, tr_end.tp_row is width and tr_end.tp_col is height of the drawable area in reality. PR: 202288 Changes: head/sys/dev/vt/vt_core.c
(In reply to Jakob Alvermark from comment #28) It should be fixed in r317560. Please try.
(In reply to Jung-uk Kim from comment #30) > (In reply to Jakob Alvermark from comment #28) > It should be fixed in r317560. Please try. Yes! Verified on both machines. No more borders with leftovers from X when switching back to vt.
A commit references this bug: Author: jkim Date: Thu May 18 23:52:29 UTC 2017 New revision: 318506 URL: https://svnweb.freebsd.org/changeset/base/318506 Log: MFC: r317171, r317173, r317560, r317561, r318326 Always clear borders when the terminal is flushed. PR: 202288 Changes: _U stable/11/ stable/11/sys/dev/vt/vt_core.c
Fixed and merged to stable/11.
A commit references this bug: Author: eadler Date: Thu Mar 8 08:02:51 UTC 2018 New revision: 330642 URL: https://svnweb.freebsd.org/changeset/base/330642 Log: MFC r316796: Attempt to clear logos more thoroughly. PR: 202288 Changes: _U stable/11/ stable/11/sys/dev/vt/vt_cpulogos.c