Discussion:
I've got a question to ask you
binnan hao
2018-08-28 03:35:09 UTC
Permalink
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 <***@gmail.com>
박성진
2018-08-28 03:57:43 UTC
Permalink
_______________________________________________
wayland-devel mailing list
wayland-***@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel
binnan hao
2018-08-28 04:00:56 UTC
Permalink
I'm using Busybox root file system, and the default setting on Busybox is
mdev instead of udev.
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* ---------
*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
- 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
_______________________________________________
--
*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 <***@gmail.com>
Pekka Paalanen
2018-08-28 07:44:14 UTC
Permalink
On Tue, 28 Aug 2018 12:00:56 +0800
Post by binnan hao
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
Post by binnan hao
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* ---------
*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
- 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?
binnan hao
2018-08-28 07:46:30 UTC
Permalink
Thanks
Post by Pekka Paalanen
On Tue, 28 Aug 2018 12:00:56 +0800
Post by binnan hao
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.
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
Post by binnan hao
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* ---------
*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
Post by binnan hao
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
- no permissions to read /dev/input/event*
- seats misconfigured (weston backend option 'seat', udev device
property
Post by binnan hao
ID_SEAT)
I have root permission and device files can be found in path
/dev/input/.
Post by binnan hao
I do not want to add anything else, as that may lead to a very large
size
Post by binnan hao
system. Do you know any method to let weston use keyboard and mouse on
my
Post by binnan hao
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 <***@gmail.com>
Loading...