I've got a question to ask you

binnan hao haobinnan at gmail.com
Tue Aug 28 07:46:30 UTC 2018


Thanks

Pekka Paalanen <ppaalanen at gmail.com> 于2018年8月28日周二 下午3:44写道:

> On Tue, 28 Aug 2018 12:00:56 +0800
> binnan hao <haobinnan at gmail.com> wrote:
>
> > I'm using Busybox root file system, and the default setting on Busybox is
> > mdev instead of udev.
>
> Hi,
>
> whatever you have or do, you need to set up the device attributes the
> way libinput expects them to be to recognize an input device as a
> keyboard or a mouse or other.
>
> You can look into libinput source code to see how it queries the
> devices through the libudev API, and then figure out how to make mdev
> return the data libinput expects. Hopefully you find a way to at least
> hardcode your input device types with mdev - a proper system with udev
> uses some tools that try to infer the device type from the kernel evdev
> features it supports automatically, AFAIU.
>
> For more information, see:
>
> https://wayland.freedesktop.org/libinput/doc/latest/device-configuration-via-udev.html
>
> I have no idea what mdev is or how it works, so I cannot say if that is
> possible. Please, let us know how it goes, so that we have something to
> say to the next person asking similar questions.
>
>
> Thanks,
> pq
>
> > 박성진 <sj76.park at samsung.com> 于2018年8月28日周二 上午11:58写道:
> >
> > > Hi,
> > >
> > > as weston creates libinput udev context by default, you'd better to
> > > prepare udev daemon for it.
> > >
> > > Otherwise, you can create your own fbdev backend using
> > > libinput_path_create_context() / libinput_path_add_device().
> > >
> > >
> > >
> > > Best regards,
> > >
> > > Sung-Jin Park
> > >
> > >
> > >
> > > --------- *Original Message* ---------
> > >
> > > *Sender* : binnan hao <haobinnan at gmail.com>
> > >
> > > *Date* : 2018-08-28 12:35 (GMT+9)
> > >
> > > *Title* : I've got a question to ask you
> > >
> > >
> > > I've got a question to ask you. The Linux system I'm using is built on
> my
> > > own (Kernel+Busybox), and it does not contain other extra things. Now I
> > > want to use weston(fbdev-backend.so), but the keyboard and mouse do not
> > > work and log gives following message:
> > >
> > > warning: no input devices on entering weston. possible causes:
> > > - no permissions to read /dev/input/event*
> > > - seats misconfigured (weston backend option 'seat', udev device
> property
> > > ID_SEAT)
> > >
> > > I have root permission and device files can be found in path
> /dev/input/.
> > > I do not want to add anything else, as that may lead to a very large
> size
> > > system. Do you know any method to let weston use keyboard and mouse on
> my
> > > system?
> > >
>


-- 
*Hao Binnan*
*Isoo (Qinhuangdao) software development Co., Ltd. (China)*
http://www.eassos.com

PGP Public Key: 4096R/9EF21740 / 9678 1E8C B21E 1E60 3997  811D F83B B359
9EF2 1740
haobinnan <haobinnan at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180828/187c295f/attachment.html>


More information about the wayland-devel mailing list