diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2014-11-22 17:37:51 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2014-11-22 17:37:51 +0000 |
commit | 2b470c5d7501426073ca250c41c34319c6ce4871 (patch) | |
tree | ef55755e5b4dc8f3c32f73dec74bec1c5944864a /share | |
parent | 395d6697ce00ffaceefdc18e548271866f962418 (diff) | |
download | FreeBSD-src-2b470c5d7501426073ca250c41c34319c6ce4871.zip FreeBSD-src-2b470c5d7501426073ca250c41c34319c6ce4871.tar.gz |
drm: Take vt(4) default mode from loader tunables
By default, vt(4) gets the "preferred mode" from DRM, when using a DRM
video driver as its backend. The preferred mode is usually the native
screen resolution.
Now, if this mode isn't appropriate, a user can use loader tunables to
select a mode. The tunables are read in the following order:
1. kern.vt.fb.modes.$connector_name
2. kern.vt.fb.default_mode
For example, to set a 1024x768 mode, no matter the connector:
kern.vt.fb.default_mode="1024x768"
To set a 800x600 mode only on the laptop builtin screen:
kern.vt.fb.modes.LVDS-1="800x600"
Beside r274031, this MFC includes:
r274049:
drm: When reading connector mode tunables, list connectors
... and their associated tunables. This gives a way to know the list of
available connectors, no matter the driver.
The problem is that xrandr(1) can list connectors but it uses a
different naming.
r274050:
vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.*
Those tunables are used to set a specific mode in vt(4) instead of using
the default mode.
Differential Revision: https://reviews.freebsd.org/D1098
Reviewed by: ak@, emaste@, kwm@
r274051:
vt(4): Improve the description of kern.vt.fb.modes.$connector
Differential Revision: https://reviews.freebsd.org/D1098
Submitted by: emaste@
r274053:
vt(4): Start new sentences on their own lines
Submitted by: brueffer@
MFC of: r274031, r274049, r274050, r274051, r274053
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/vt.4 | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index e399332..6772fdc 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -45,6 +45,8 @@ In .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 @@ Otherwise, 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,30 @@ By default, 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 . +The names of available connector names can be found in +.Xr dmesg 8 +after loading the KMS driver. +It will 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 +281,22 @@ This line changes the default color of kernel messages to be bright red 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 , |