<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 --- - fbdev-backend backend appears it can't just USE a TTY. It must be run ON a tty to work."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=64882">64882</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>fbdev-backend backend appears it can't just USE a TTY. It must be run ON a tty to work.
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nerdopolis1@verizon.net
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>1.0.90
          </td>
        </tr>

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

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi.

It will appear that when using the fbdev-backend backend, that I can't just
pass --tty=2 to use tty2 when I call weston directly as root.

I have to call weston directly as root in my loginmanager. And I can't use
weston-launch because it nukes the custom XDG_RUNTIME_DIR I am using for it.

If I just pass weston --tty=2 --backend=fbdev-backend.so, it starts hijacking
all the ttys, if I switch to a text tty, and move the mouse, it starts drawing
over it.

I noticed that when I called weston like this, it does not seem to operate
under a tty when I check the process under ps

As a workaround, I now call it open with openvt -c $TTY -- weston --tty=$tty .
When I do this, it works correctly, and when I look at the process under ps, it
is running on the tty

So it appears that if the fbdev-backend backed weston is not confined to a tty,
it tries to take over everything.

I hope I'm clear enough in my wording.</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>