Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple of useful changes to the VT handling #3

Closed
wants to merge 2 commits into from

Commits on Dec 11, 2011

  1. vt: disable the tty keyboard completely

    After we turn the keyboard to raw mode, we try to set the keyboard mode
    to K_OFF. This means we can avoid input events from the tty completely.
    
    This mode was added in linux 3.0:
    https://lkml.org/lkml/2011/2/1/609
    We only use it if we have it.
    
    Signed-off-by: Ran Benita <ran234@gmail.com>
    bluetech committed Dec 11, 2011
    Configuration menu
    Copy the full SHA
    a198e75 View commit details
    Browse the repository at this point in the history
  2. vt: add support for automatic VT switching

    Add two functions to enter/leave our VT object. This allows to
    implement to expected behavior of automatically switching to the kmscon
    when it is running on a new tty, and switching back to the tty we came
    from when the program finishes. Presumably this behavior will be
    controlled by a config variable or command line argument later on (like
    Xorg's -novtswitch).
    
    There's a bit of a subtlety in this because of VT_PROCESS. We need
    permission from ourselves to switch in/out of out VT; this is done when
    processing SIGUSR[12] in the eloop. We therefore must dispatch the loop
    at least once after switching out. The usual case is demonstrated in
    test_vt.c.
    
    Signed-off-by: Ran Benita <ran234@gmail.com>
    bluetech committed Dec 11, 2011
    Configuration menu
    Copy the full SHA
    54c5677 View commit details
    Browse the repository at this point in the history