<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - starting weston from kmscon "scrambles" the display"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88900">88900</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>starting weston from kmscon "scrambles" the display
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

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

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

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

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>james@nurealm.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>On Arch Linux, wayland 1.6.1-1, weston 1.6.1-1.
Dual-head on an ATI HD 5570.

Starting weston from kmscon fails to start weston but then also "scrambles" the
display.  The keyboard seems to operate normally, except that VT switching
fails.  Running "reset" does _not_ "unscramble" the display.  Restarting kmscon
resets the display to normal.  Enabling "--session-control" in kmscon, though,
can allow completely losing access to the keyboard and display, but that
probably has to do with kmscon and not weston.

kmscon is being started from systemd on vt13 with:
ExecStart=/usr/bin/kmscon "--vt=%I" --seats=seat0 --no-switchvt --hwaccel

I don't know if running weston from kmscon "should work" or not, but, either
way, it should not "scramble" the display.  I suppose that this has something
to do with the kernel KMS not being properly reset by weston.

Running "weston > westonlog 2>&1", "westonlog" shows:

Date: 2015-02-01 MST
[08:22:30.700] weston 1.6.1
               <a href="http://wayland.freedesktop.org/">http://wayland.freedesktop.org/</a>
               Bug reports to:
<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.1">https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.1</a>
               Build: 1.6.0-32-g9d27677 configure.ac: bump version to 1.6.1 for
stable release (2015-01-23 13:17:01 -0800)
[08:22:30.700] OS: Linux, 3.18.4-1-ARCH, #1 SMP PREEMPT Tue Jan 27 20:45:02 CET
2015, x86_64
[08:22:30.700] Using config file '/home/james/.config/weston.ini'
[08:22:30.701] Loading module '/usr/lib/weston/drm-backend.so'
[08:22:30.704] initializing drm backend
[08:22:30.710] logind: cannot set K_OFF KB-mode on /dev/tty13: Operation not
permitted
[08:22:30.710] logind: cannot setup systemd-logind helper (-1), using legacy
fallback
[08:22:30.710] fatal: drm backend should be run using weston-launch binary or
as root
[08:22:30.710] fatal: failed to create compositor

Actually running "weston-launch" gives:

weston-launch: weston-launch must be run from a virtual terminal

Actually running as root gives:

Date: 2015-02-01 MST
[08:31:25.614] weston 1.6.1
               <a href="http://wayland.freedesktop.org/">http://wayland.freedesktop.org/</a>
               Bug reports to:
<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.1">https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.1</a>
               Build: 1.6.0-32-g9d27677 configure.ac: bump version to 1.6.1 for
stable release (2015-01-23 13:17:01 -0800)
[08:31:25.614] OS: Linux, 3.18.4-1-ARCH, #1 SMP PREEMPT Tue Jan 27 20:45:02 CET
2015, x86_64
[08:31:25.614] fatal: environment variable XDG_RUNTIME_DIR is not set.
Refer to your distribution on how to get it, or
<a href="http://www.freedesktop.org/wiki/Specifications/basedir-spec">http://www.freedesktop.org/wiki/Specifications/basedir-spec</a>
on how to implement it.</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>