Re: I've got a question to ask you

2018-08-28 Thread binnan hao
Thanks

Pekka Paalanen  于2018年8月28日周二 下午3:44写道:

> On Tue, 28 Aug 2018 12:00:56 +0800
> binnan hao  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
>
> > 박성진  于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 
> > >
> > > *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 
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: I've got a question to ask you

2018-08-28 Thread Pekka Paalanen
On Tue, 28 Aug 2018 12:00:56 +0800
binnan hao  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

> 박성진  于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 
> >
> > *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?
> >


pgp_43PCh0i0b.pgp
Description: OpenPGP digital signature
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: I've got a question to ask you

2018-08-27 Thread binnan hao
I'm using Busybox root file system, and the default setting on Busybox is
mdev instead of udev.

박성진  于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 
>
> *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 
>
> ___
> wayland-devel mailing 
> listwayland-devel@lists.freedesktop.orghttps://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
>
>
>


-- 
*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 
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


RE: I've got a question to ask you

2018-08-27 Thread 박성진



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 
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 <haobin...@gmail.com>___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel
 
 
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


I've got a question to ask you

2018-08-27 Thread binnan hao
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 
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel