Bug 193710 - vt(4) outdated information
Summary: vt(4) outdated information
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Ed Maste
URL:
Keywords: vt
Depends on:
Blocks:
 
Reported: 2014-09-17 14:15 UTC by Ed Maste
Modified: 2014-10-20 01:49 UTC (History)
1 user (show)

See Also:


Attachments
proposed patch for vt.4 (856 bytes, patch)
2014-09-18 13:32 UTC, Warren Block
no flags Details | Diff
Another attempt. (839 bytes, patch)
2014-09-18 14:08 UTC, Warren Block
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer freebsd_triage 2014-09-17 14:15:21 UTC
|     kern.vt.spclkeys
|             bitmap of allowed special keys. 1 is enabled, 0 is disabled.
|             Encoded as:
|             0x0001    Debug request key combination. (Ctrl+Alt+Esc)
|             0x0002    Reboot. (Ctrl+Alt+Del)
|             0x0004    Halt.
|             0x0008    Power down.
|             Default is 15, all enabled.

The "spclkeys" sysctl is no longer, replaced with per-key sysctls.

|     kern.vty
|             When both vt and sc(4) have been compiled into the kernel, the
|             one to use for the system console can be selected by setting this
|             value to ‘vt’ or ‘sc’.  If this value is not set, sc(4) is used.

The last sentence is true only if not booting via UEFI on amd64.  The situation is now:

If this value is not set and the system is not booted via UEFI, sc(4) is used.  
For the UEFI boot case vt(4) is used.

syscons.4 may need a similar update.
Comment 1 Warren Block freebsd_committer freebsd_triage 2014-09-18 13:32:49 UTC
Created attachment 147442 [details]
proposed patch for vt.4
Comment 2 Ed Maste freebsd_committer freebsd_triage 2014-09-18 13:40:18 UTC
> This value is ignored on computers that boot from UEFI.

Actually, that's not quite true: UEFI chooses vt(4) by default, BIOS chooses sc(4) by default, but it is still possible to explicitly choose either console for either case.
Comment 3 Warren Block freebsd_committer freebsd_triage 2014-09-18 14:08:23 UTC
Created attachment 147447 [details]
Another attempt.
Comment 4 Ed Maste freebsd_committer freebsd_triage 2014-10-15 20:01:21 UTC
Thanks Warren, that looks correct for the default vty setting.
Comment 5 Ed Maste freebsd_committer freebsd_triage 2014-10-16 14:36:16 UTC
https://reviews.freebsd.org/D953
Comment 6 commit-hook freebsd_committer freebsd_triage 2014-10-16 18:50:13 UTC
A commit references this bug:

Author: emaste
Date: Thu Oct 16 18:49:50 UTC 2014
New revision: 273178
URL: https://svnweb.freebsd.org/changeset/base/273178

Log:
  Update vt(4) for UEFI defaults and special keys

  vt(4) is the default console for UEFI boot [1], and the bitmapped
  kern.vt.spclkeys sysctl has been replaced with individual kern.vt.kbd_*
  enable sysctls.

  PR:		193710
  Submitted by:	wblock [1]
  Reviewed by:	wblock
  MFC after:	3 days
  Relnotes:	Yes
  Sponsored by:	The FreeBSD Foundation
  Differential Revision: https://reviews.freebsd.org/D953

Changes:
  head/share/man/man4/vt.4
Comment 7 commit-hook freebsd_committer freebsd_triage 2014-10-20 00:22:11 UTC
A commit references this bug:

Author: emaste
Date: Mon Oct 20 00:22:09 UTC 2014
New revision: 273294
URL: https://svnweb.freebsd.org/changeset/base/273294

Log:
  MFC r273178: Update vt(4) for UEFI defaults and special keys

    vt(4) is the default console for UEFI boot [1], and the bitmapped
    kern.vt.spclkeys sysctl has been replaced with individual kern.vt.kbd_*
    enable sysctls.

  PR:		193710

Changes:
_U  stable/10/
  stable/10/share/man/man4/vt.4
Comment 8 commit-hook freebsd_committer freebsd_triage 2014-10-20 01:46:18 UTC
A commit references this bug:

Author: emaste
Date: Mon Oct 20 01:45:41 UTC 2014
New revision: 273297
URL: https://svnweb.freebsd.org/changeset/base/273297

Log:
  MFS10 r273294 (r273178 in HEAD):

    Update vt(4) for UEFI defaults and special keys

    vt(4) is the default console for UEFI boot [1], and the bitmapped
    kern.vt.spclkeys sysctl has been replaced with individual kern.vt.kbd_*
    enable sysctls.

  PR:		193710
  Approved by:	re

Changes:
_U  releng/10.1/
  releng/10.1/share/man/man4/vt.4