Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147410072
D1098.id2251.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D1098.id2251.diff
View Options
Index: share/man/man4/vt.4
===================================================================
--- share/man/man4/vt.4
+++ share/man/man4/vt.4
@@ -45,6 +45,8 @@
.Xr loader.conf 5 :
.Cd hw.vga.textmode=1
.Cd kern.vty=vt
+.Cd kern.vt.fb.default_mode="<X>x<Y>"
+.Cd kern.vt.fb.modes.<connector>="<X>x<Y>"
.Pp
In
.Xr loader.conf 5 or
@@ -176,7 +178,7 @@
switches to 640x480x16 VGA mode using
.Cm vt_vga .
If a KMS
-.Pq Kernel Mode Switching
+.Pq Kernel Mode Setting
video driver is available, the display is switched to high resolution
and the KMS driver takes over.
When a KMS driver is not available,
@@ -203,6 +205,28 @@
is used on computers that boot from BIOS, and
.Nm
is used on computers that boot from UEFI.
+.It Va kern.vt.fb.default_mode
+Set this value to a graphic mode to override the default mode picked by the
+.Nm
+backend. The mode is applied to all output connectors. This is currently
+only supported by the
+.Cm vt_fb
+backend when it's paired with a KMS video driver.
+.It Va kern.vt.fb.modes. Ns Pa connector_name
+Set this value to a graphic mode to override the default mode picked by the
+.Nm
+backend. This mode is applied to the output connector
+.Pa connector_name
+only. It has precedence over
+.Va kern.vt.fb.default_mode .
+To know the list of available connectors, load the KMS driver and look
+at
+.Xr dmesg 8 :
+it'll contain a list of connectors and their associated tunables. This
+is currently only supported by the
+.Cm vt_fb
+backend when it's paired with a KMS video driver.
+.El
.Sh KEYBOARD SYSCTL TUNABLES
These settings control whether certain special key combinations are enabled or
ignored.
@@ -255,6 +279,22 @@
on a black background, or black on a bright red background when reversed.
.Pp
.Dl "options TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK)"
+.Pp
+To set a 1024x768 mode on all output connectors, put the following line in
+.Pa /boot/loader.conf :
+.Pp
+.Dl kern.vt.fb.default_mode="1024x768"
+.Pp
+To set a 800x600 only on a laptop builtin screen, use the following line instead:
+.Pp
+.Dl kern.vt.fb.modes.LVDS-1="800x600"
+.Pp
+The connector name was found in
+.Xr dmesg 8 :
+.Pp
+.Dl info: [drm] Connector LVDS-1: get mode from tunables:
+.Dl info: [drm] - kern.vt.fb.modes.LVDS-1
+.Dl info: [drm] - kern.vt.fb.default_mode
.Sh SEE ALSO
.Xr kbdcontrol 1 ,
.Xr login 1 ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 11, 6:27 PM (8 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29546703
Default Alt Text
D1098.id2251.diff (2 KB)
Attached To
Mode
D1098: vt(4): Document the new kern.vt.fb.* tunables
Attached
Detach File
Event Timeline
Log In to Comment