<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Launching Weston on different tty corrupts original tty"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70876">70876</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Launching Weston on different tty corrupts original tty
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ullysses.a.eoff@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When executing weston from a console tty and instructing it to launch on a
different tty causes the original tty to be corrupted.  That is, the original
tty's command-line echos garbled characters when attempting to type in it after
shutting down weston.  Moreover, while weston is running, vt-switching no
longer works.  One must use 'chvt' from an ssh session to force a vt switch.

1. Start a new console/tty session, say, on tty2 (e.g. <ctrl>+<alt>+<F2>)
2. Execute 'weston --tty=3' (as root/suid)
 * Weston should now be active and running
3. Attempt to vt-switch back to tty2 (or any other tty)
 * Observe that vt-switching does not work
4. Exit weston with <ctrl>+<alt>+<backspace>
 * Observe that display/screen does not return to a text console and
vt-switching is still not working; screen goes blank
5. Start an ssh session to the misbehaving weston device
6. Execute 'sudo chvt 2'
 * Observe the original console/tty2 session activates
7. Try typing into the console
 * Observe garbled characters echo to the screen and vt-switching is not
working

wayland (master) heads/master-0-g16b2dab
drm (master) 2.4.47-0-g951ebe0
mesa (master) heads/master-0-g64c081e
libva (master) heads/master-0-g73a11b3
intel-driver (master) heads/master-0-g01b39f7
weston (master) heads/master-0-gc85f1d4</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>