<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 --- - Weston called from weston-launch loses permission to uaccess fb devices on tty switch back"
href="https://bugs.freedesktop.org/show_bug.cgi?id=73782">73782</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Weston called from weston-launch loses permission to uaccess fb devices on tty switch back
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>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>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>weston
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=92369" name="attach_92369" title="Weston log from running on a uaccess permissions fb device, and to a different tty and back">attachment 92369</a> <a href="attachment.cgi?id=92369&action=edit" title="Weston log from running on a uaccess permissions fb device, and to a different tty and back">[details]</a></span>
Weston log from running on a uaccess permissions fb device, and to a different
tty and back
Hi.
I have configured my framebuffer devices with udev to have uaccess, similar to
how it sets up /dev/dri/card* devices
I added this line to my udev config:
SUBSYSTEM=="graphics", KERNEL=="fb*", TAG+="uaccess"
I am able to start Weston sessions fine on this configuration.
but when I switch to a different tty, and then switch back, it seems the
permissions to /dev/fb0 are lost and Weston dies.
I am using Ubuntu, which means, I am using the limited logind. And I am calling
my user sessions from weston-launch.
If I'm really careful, I can switch tty without crashing with
'loginctl activate', but once I switch TTYs, All instances of weston lose
permission to /dev/fb0 once I switch to them, even if the next way is with
loginctl activate.
It seems to work with /dev/dri/card* and /dev/input/event*, so it should work
with /dev/fb* I would assume?
I have a log of a Weston crash attached.</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>