Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting console resultion

312 views
Skip to first unread message

@lbutlr

unread,
Jan 29, 2018, 4:40:36 AM1/29/18
to
I'm not sure why this is so hard, but I've read dozens of pages and threads on setting up the console to boot into something other than VGA 80x24 and I can't get anything to change the resolution.

I have an old Core 2 duo machine with a 27" screen. Once I change by boot.conf to use sc instead of vt, I can see the mode that I want (1920x1440x32) but I cannot get the screen to change.

vidcontrol mode
This is a fresh install of 11.1.

If I try to load the intel driver, the screen goes blank.

The onboard video connector not he machine is VGA, so even though the monitor supports higher resolutions, I don't think those would work.

I've also tried 1024x600, just to see if I can get *something* to work.

Every attempt requires changing /boot/loader.conf and then rebooting, so it gets very aggravating very quickly, and I can't find consistent information since most of the pages i've found refer to FreeBSD 9.x or 10.x (or sometimes earlier) and it appears a lot has changed in 11.x.

I did manage to get a screensaver to load, which switches resolutions, but I can't get the console to show anything but 80x24 text which it overscan on the screen so the first and last character positions are clipped.




_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Polytropon

unread,
Jan 29, 2018, 9:47:57 AM1/29/18
to
On Mon, 29 Jan 2018 02:37:05 -0700, @lbutlr wrote:
> I'm not sure why this is so hard, but I've read dozens of pages
> and threads on setting up the console to boot into something
> other than VGA 80x24 and I can't get anything to change the
> resolution.

I think with vt, it's the exact opposite problem: You cannot
set it to 80x25 anymore. ;-)



> I have an old Core 2 duo machine with a 27" screen. Once I
> change by boot.conf to use sc instead of vt, I can see the
> mode that I want (1920x1440x32) but I cannot get the screen
> to change.
>
> vidcontrol mode
> This is a fresh install of 11.1.
>
> If I try to load the intel driver, the screen goes blank.

If you are using X, you cannot use sc anymore. X requires
the use of vt now.



> The onboard video connector not he machine is VGA, so even
> though the monitor supports higher resolutions, I don't think
> those would work.
>
> I've also tried 1024x600, just to see if I can get *something*
> to work.

If you can, use the exact size of your monitor (in pixels);
I assume you're talking about a LCD monitor, which is common
today, as hardly anyone still uses CRTs like I do (which can
have more than one mode, while LCDs only have one physical
mode, determined by the amount of pixels).



> Every attempt requires changing /boot/loader.conf and then
> rebooting, so it gets very aggravating very quickly, and I
> can't find consistent information since most of the pages
> i've found refer to FreeBSD 9.x or 10.x (or sometimes
> earlier) and it appears a lot has changed in 11.x.

The vt documentation isn't fully complete yet, but here is a
good starting point:

https://wiki.freebsd.org/Newcons

Maybe this is helpful too:

https://forums.freebsd.org/threads/49601/

https://forums.freebsd.org/threads/55222/



> I did manage to get a screensaver to load, which switches
> resolutions, but I can't get the console to show anything
> but 80x24 text which it overscan on the screen so the first
> and last character positions are clipped.

In all settings I've tested, vt has always changed the
"text mode" resolution from 80x25 to something much bigger
(and therefore unreadable tiny ugly characters). The key
is that you now cannot set a screen size (in columns x lines),
instead you have to deal with fonts, the screen's size in
pixels (if it has any), and this also depends on the OS
version...



--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

@lbutlr

unread,
Jan 29, 2018, 11:11:22 PM1/29/18
to
On 29 Jan 2018, at 07:44, Polytropon <fre...@edvax.de> wrote:
> On Mon, 29 Jan 2018 02:37:05 -0700, @lbutlr wrote:
>> I'm not sure why this is so hard, but I've read dozens of pages
>> and threads on setting up the console to boot into something
>> other than VGA 80x24 and I can't get anything to change the
>> resolution.
>
> I think with vt, it's the exact opposite problem: You cannot
> set it to 80x25 anymore. ;-)

I dunno, that was what my console was set to and I could not change it.

>> I have an old Core 2 duo machine with a 27" screen. Once I
>> change by boot.conf to use sc instead of vt, I can see the
>> mode that I want (1920x1440x32) but I cannot get the screen
>> to change.
>>
>> vidcontrol mode
>> This is a fresh install of 11.1.
>>
>> If I try to load the intel driver, the screen goes blank.
>
> If you are using X, you cannot use sc anymore. X requires
> the use of vt now.

I do not use X, I am only talking about the text console.

>> The onboard video connector not he machine is VGA, so even
>> though the monitor supports higher resolutions, I don't think
>> those would work.
>>
>> I've also tried 1024x600, just to see if I can get *something*
>> to work.
>
> If you can, use the exact size of your monitor (in pixels);
> I assume you're talking about a LCD monitor, which is common
> today, as hardly anyone still uses CRTs like I do (which can
> have more than one mode, while LCDs only have one physical
> mode, determined by the amount of pixels).

LCDs support many resolutions, and the VGA connector will not support the maximum number of pixels the screen can display (2564x1440).

Also, there will be a different display connected once the setup is done and the machine is actually installed in it's final location.

>> Every attempt requires changing /boot/loader.conf and then
>> rebooting, so it gets very aggravating very quickly, and I
>> can't find consistent information since most of the pages
>> i've found refer to FreeBSD 9.x or 10.x (or sometimes
>> earlier) and it appears a lot has changed in 11.x.
>
> The vt documentation isn't fully complete yet, but here is a
> good starting point:
>
> https://wiki.freebsd.org/Newcons

kldload i915kms <- screen goes black, never comes back.
hw.vga.textmode <- already set

kern.vt.fb.default_mode="1024x768"

Not sure if I tried that specific number, as that's still a very limited sccreen size, but certainly the other numbers I tried did not work.

Reading that, other than UTF-8 support, vt appears to be extremely limited and its know issues list is nearly 4 years old, which certainly gives one pause.

"Pre-loading i915kms.ko/radeonkms.ko disables video output from the point of time these video drivers are attached until interrupt threads are enabled way later. This makes kernel panics during boot undebugable."

Anyway, I have set the console to use sc which is how I got a screensaver to load (not that I want/need a screensaver, but I was testing) and I've managed to set the screen size of a current session, but I still can't get it to change during boot (so I can actually read some of the output) and I have to apply it to each console manually after logging in.

<shrug>

> The key is that you now cannot set a screen size (in columns x lines), instead you have to deal with fonts, the screen's size in pixels (if it has any), and this also depends on the OS
> version...

This seems needlessly obtuse and complicated. Not that sc was much better, though things have gotten much worse that they were in, say, freebsd 9 in terms of plugging in a screen and having a reasonable hope you'd be able to set it to a mode where each characters isn't 24-30 points.


--
Bart, don't use the Touch of Death on your sister.

Polytropon

unread,
Jan 30, 2018, 6:35:48 AM1/30/18
to
On Mon, 29 Jan 2018 21:07:54 -0700, @lbutlr wrote:
> On 29 Jan 2018, at 07:44, Polytropon <fre...@edvax.de> wrote:
> > On Mon, 29 Jan 2018 02:37:05 -0700, @lbutlr wrote:
> >> I'm not sure why this is so hard, but I've read dozens of pages
> >> and threads on setting up the console to boot into something
> >> other than VGA 80x24 and I can't get anything to change the
> >> resolution.
> >
> > I think with vt, it's the exact opposite problem: You cannot
> > set it to 80x25 anymore. ;-)
>
> I dunno, that was what my console was set to and I could not change it.

With vt as the console driver? Is that even possible?!



> >> I have an old Core 2 duo machine with a 27" screen. Once I
> >> change by boot.conf to use sc instead of vt, I can see the
> >> mode that I want (1920x1440x32) but I cannot get the screen
> >> to change.
> >>
> >> vidcontrol mode
> >> This is a fresh install of 11.1.
> >>
> >> If I try to load the intel driver, the screen goes blank.
> >
> > If you are using X, you cannot use sc anymore. X requires
> > the use of vt now.
>
> I do not use X, I am only talking about the text console.

In that case, you can choose between vt and sc. I'd suggest
becoming friends with vt under any circumstances as sc will
probably be abolished soon. Both systems allow you to change
the screen resolution, and with sc, it has always been easy
to do (with vidcontrol).

But you've been talking about loading the intel driver, this
is usually only needed if you want to use X (and X requires
you to use vt instead of sc), that's why my assumption that
you also were using X on that system (because this is the
only reason to load that driver).



> >> The onboard video connector not he machine is VGA, so even
> >> though the monitor supports higher resolutions, I don't think
> >> those would work.
> >>
> >> I've also tried 1024x600, just to see if I can get *something*
> >> to work.
> >
> > If you can, use the exact size of your monitor (in pixels);
> > I assume you're talking about a LCD monitor, which is common
> > today, as hardly anyone still uses CRTs like I do (which can
> > have more than one mode, while LCDs only have one physical
> > mode, determined by the amount of pixels).
>
> LCDs support many resolutions, and the VGA connector will not
> support the maximum number of pixels the screen can display
> (2564x1440).

An LC display has only a fixed amount of pixels, and this amount
does _not_ change. What you are describing is done in software.
Still it's common for LCDs to address them in their native mode.
So if a display has 2564x1440 pixels ("hardware pixels"), this
should be the mode the driver talks to it in; however, if its
internal software also "speaks" 1024x768, you can get to see
something in that mode, even though it will look ugly. But many
displays are able to internally "re-calculate" images and either
apply a border, or just scale them up ("light 2x2 pixels where
the source image contains 1"). So if you input 1200x800 px, the
device _can_ scale it up to fill 2564x1440 px, but that doesn't
change its physical properties.

Note that even though commonly "resolution" is being used as
a term for "size in pixels", it's technically not correct. The
resolution is provided in dpi, dots per inch, like 75, 100,
or 120 dpi (with the assumption that the horizontal and the
vertical resolution will be equal), or 150x150dpi (to
explicitely state they are equal):

width in inch height in inch
resolution = ------------- x --------------
pixels wide pixels high

As both values are _physically fixed_ on a flatpanel display,
the resolution is also fixed ("native resolution"). On a CRT,
the amount of (addressable) pixels changes with the size, so
does the resolution.



> Also, there will be a different display connected once the
> setup is done and the machine is actually installed in it's
> final location.

In combination with vt, this might require you to change your
settings once you got them working for _one_ display.



> >> Every attempt requires changing /boot/loader.conf and then
> >> rebooting, so it gets very aggravating very quickly, and I
> >> can't find consistent information since most of the pages
> >> i've found refer to FreeBSD 9.x or 10.x (or sometimes
> >> earlier) and it appears a lot has changed in 11.x.
> >
> > The vt documentation isn't fully complete yet, but here is a
> > good starting point:
> >
> > https://wiki.freebsd.org/Newcons
>
> kldload i915kms <- screen goes black, never comes back.

I'm almost sure you won't need that if you use sc.

For vt... maybe yes... but this is probably only needed if you
are going to use X (which you denied).



> hw.vga.textmode <- already set

This is only relevant for vt.



> kern.vt.fb.default_mode="1024x768"

This isn't the size in pixels your system has (it's even 4:3,
nobody uses that anymore).

Use the loader command "gop" to see what the system _thinks_ your
screen looks like.



> Not sure if I tried that specific number, as that's still a
> very limited sccreen size, but certainly the other numbers I
> tried did not work.

It might cause the screen to blank, or to to perform a fallback
to a known "good mode".

Maybe you can experiment with the following syttings (from a
FreeBSD 10.3 system connected to a CRT with now unreadable "text
mode" thanks to vt):

/boot/loader.conf:

kern.vty=vt
hw.vga.textmode=0
i915kms_load="YES" # can be removed if causing trouble && !X

/etc/rc.conf:

allscreens_flags="-f gallant" # ugly

This will give you 132x54 ugly characters on a 21" 4:3 CRT. :-)

Try fonts like vgarom-8x14 or vgarom-8x8 if you want to try a
smaller character size.

I have also experimented with kern.vt.fb.default_mode in
/boot/loader.conf, but it didn't seem to have any effect.
The "gop" loader command is not available on FreeBSD 10,
so I couldn't check that.



> Reading that, other than UTF-8 support, vt appears to be
> extremely limited and its know issues list is nearly 4 years
> old, which certainly gives one pause.

Yes, vt doesn't provide the functionality sc provided for decades,
without any trouble. Keep in mind vt isn't text mode. It is
already a graphics mode that just disguises as a text mode (by
displaying text characters). But vt is rich on features, it's
just that the documentation isn't complete yet.

If you want things like normal 16 colors, block graphics or german
umlauts, then definitely stay with sc; vt hasn't achieved that
level of excellece yet. ;-)



> "Pre-loading i915kms.ko/radeonkms.ko disables video output
> from the point of time these video drivers are attached
> until interrupt threads are enabled way later. This makes
> kernel panics during boot undebugable."

Great...



> Anyway, I have set the console to use sc which is how I got
> a screensaver to load (not that I want/need a screensaver,
> but I was testing) and I've managed to set the screen size
> of a current session, but I still can't get it to change
> during boot (so I can actually read some of the output) and
> I have to apply it to each console manually after logging in.

With vt, the screensaver wouldn't even work. ;-)



> This seems needlessly obtuse and complicated. Not that sc
> was much better, though things have gotten much worse that
> they were in, say, freebsd 9 in terms of plugging in a
> screen and having a reasonable hope you'd be able to set it
> to a mode where each characters isn't 24-30 points.

The alternative "solution" is to have tiny crappy characters
and blurry colors, so you can't read anything on your huuuge
screen. ;-)



--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

@lbutlr

unread,
Jan 30, 2018, 11:37:13 AM1/30/18
to
I’ve seen gop mentioned a few times and I have no idea what it is, or what a “loader command” is. Do you mean rebooting into the boot loader on the initial pre-startup screen (multi user, single user, etc?)

--
This is my signature. There are many like it, but this one is mine.

> On Jan 30, 2018, at 04:32, Polytropon <fre...@edvax.de> wrote:
>
> The "gop" loader command is not available on FreeBSD 10,
> so I couldn't check that.

_______________________________________________

@lbutlr

unread,
Jan 30, 2018, 11:39:35 AM1/30/18
to
On Jan 30, 2018, at 04:32, Polytropon <fre...@edvax.de> wrote:
> The alternative "solution" is to have tiny crappy characters
> and blurry colors, so you can't read anything on your huuuge
> screen. ;-)

Sorry, hit send too soon. Silly tiny screen phone.

Under FreeBSD 9.x I had no problems reading a console screen set to 132x50.

--
This is my signature. There are many like it, but this one is mine.

14th.pr...@gmail.com

unread,
Jan 30, 2018, 7:38:12 PM1/30/18
to
>> I'm not sure why this is so hard, but I've read dozens of pages
>> and threads on setting up the console to boot into something
>> other than VGA 80x24 and I can't get anything to change the
>> resolution.

On an ancient Core Duo laptop:
/usr/src/sys/i386/conf/MYCUSTOMKERNEL: (note what's commented out)
# device vga
# options VESA
device splash
# syscons is the default console driver, resembling an SCO console
# device sc
# options SC_PIXEL_MODE
# vt is the new video console driver
device vt
device vt_vga
device agp # support several AGP chipsets

/boot/loader.conf: (irrelevent lines omitted)
cuse_load="YES"
drm2_load="YES"
acpi_video_load="YES"

/etc/rc.conf: (again, rear elephant lines emitted)
kld_list="i915kms"

This autodetects the correct resolution halfway (or a bit
more) through the boot sequence with a two or three sec-
ond pause while the screen is blank and then gives a
nearly un-readably small console font. I use the good
ol' "startx" to start X, but I guess that's not relevant here.

I have a similar setup on an older Xeon (amd64) that
works pretty much exactly the same, though it runs
headless most of the time.

Polytropon

unread,
Jan 31, 2018, 4:32:54 AM1/31/18
to
On Tue, 30 Jan 2018 09:33:54 -0700, @lbutlr wrote:
> I’ve seen gop mentioned a few times and I have no idea what it is,
> or what a “loader command” is. Do you mean rebooting into the boot
> loader on the initial pre-startup screen (multi user, single user,
> etc?)

A loader command is being issued inside the loader ("_the_ loader"),
i. e., the thing with the "Ok" prompt (where you can load and unload
kernels and modules). :-)

See "man 8 loader" for details.

At system reboot, escaping from the menu (I don't use it, so I don't
know how), or simply pressing the space bar a few times will drop
you to the loader prompt where the "gop list" command can be used,
and a specific mode can be set for further booting.

See the following thread for inspiration:

https://forums.freebsd.org/threads/53150/

Note that the particular gop command won't be available on non-recent
versions, like FreeBSD 10.

Additionally:

http://lme.postach.io/post/changing-console-resolution-in-freebsd-10-with-vt-4

(reference from above thread)

--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

_______________________________________________

0 new messages