[PATCH] Add --no-input option to rpi backend

Pekka Paalanen ppaalanen at gmail.com
Sat Apr 19 00:35:20 PDT 2014


On Fri, 18 Apr 2014 09:34:35 -0500
Jason Ekstrand <jason at jlekstrand.net> wrote:

> On Fri, Apr 18, 2014 at 9:12 AM, Fernando Herrera <fherrera at onirica.com>wrote:
> 
> > Adds a --no-input option to the rpi backend so weston can be started
> > without any input device attached. This is useful for display boxes
> > without any keyboard/mouse attached
> >
> 
> Ok, maybe this is a silly question, but why are we requiring input devices
> on start-up at all?  I agree that a --no-input option that explicitly
> disables input is potentially useful, but shouldn't weston be able to start
> up without input devices anyway?  Also, It might be a good idea to think
> about making such an option global.  I don't think making it global would
> be easy right now, but it's worth thinking about.

That's because for native backends like DRM, if you had no input
devices at start-up because of, say, permissions error like
forgetting to set suid-root on weston-launch, you cannot exit
Weston or switch VTs at all. It's simply a fail-safe, so that on a
configuration error, you are guaranteed to exit Weston and restore
the VT.

We could have a global option indeed to allow starting without any
input devices, when explicitly wanted.

I have more comments about this patch, I think it should be done a
little differently. More about that later.


Thanks,
pq


More information about the wayland-devel mailing list