Input device to weston after start

Pekka Paalanen ppaalanen at gmail.com
Fri Dec 4 07:25:35 PST 2015


On Fri, 4 Dec 2015 08:04:55 +0000
"Keskinarkaus, Teemu" <Teemu.Keskinarkaus at Maximatecc.com> wrote:

> Hi,
> 
> I have a HW with touchscreen that is connected to serial port. I'm
> using inputattach to attach the touch to Linux input system. After
> that I start Weston and touch works just fine.
> 
> Problem now is that the inputattach takes some time to find/install
> the touch device and if I start Weston before that the touch won't
> work. This causes delay at startup that now is wanted to be
> eliminated. I think the delay in adding the touch device comes from
> kernel side so I'm not willing to touch to that if possible to avoid.
> 
> Question now is that is it possible to add input devices to Weston
> _after_ it's been started? If so, then how to do it? Simply adding
> the device the kernel input system doesn't automatically make it
> visible in Weston. Ie. if in my case the inputattach is started after
> Weston is started, the touch won't start working.

AFAIK Weston is listening on udev events and should be opening input
devices as they appear. Perhaps you could compare what happens when
hotplugging a normal keyboard or mouse vs. starting inputattach?

I suppose one would check if there are any udev events from that, does
Weston see them and if so, does something in Weston reject the device,
or is Weston never notified about it.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20151204/9b975cf0/attachment.sig>


More information about the wayland-devel mailing list