Re: [PATCH] Add sysfs interface for touchpad state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 1, 2017 at 4:26 PM, Ritesh Raj Sarraf <rrs@xxxxxxxxxx> wrote:
> On Wed, 2017-02-01 at 13:25 +0200, Andy Shevchenko wrote:
>> We have Yoga 900 here and I just played with it.
>> So, can you do the following:
>> 1. Boot system to a text mode (no X).
>> 2. Be sure that ideapad_lenovo module is loaded
>> 3. By looking into output of
>> % ls -l /sys/class/input
>> find VPC2004 related *event* number (/.../eventX/...)
>> 4. Run
>> % od -x /dev/input/eventX
>> 5. Ensure that you get events (hex dump) when you bend the cover.
>>
>> We can continue after you try the above.
>>
>
> Fantastic. In that case, I hope you can help enable SW_TABLET_MODE for ideapad
> driver too.
>
> Here's what you asked for:

> lrwxrwxrwx 1 root root 0 Feb  1 19:33 event6 -> ../../devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input8/event6

> root@learner:/sys/class/input# od -x /dev/input/event6
> ?0000000 ee33 5891 0000 0000 2bd9 0005 0000 0000
> ^@0000020 0004 0004 0042 0000 ee33 5891 0000 0000
> 0000040 2bd9 0005 0000 0000 0001 00c1 0001 0000
> 0000060 ee33 5891 0000 0000 2bd9 0005 0000 0000
> 0000100 0000 0000 0000 0000 ee33 5891 0000 0000
> 0000120 2c09 0005 0000 0000 0001 00c1 0000 0000
> 0000140 ee33 5891 0000 0000 2c09 0005 0000 0000
> 0000160 0000 0000 0000 0000 ee37 5891 0000 0000
> 0000200 3d7e 000f 0000 0000 0004 0004 0043 0000
> 0000220 ee37 5891 0000 0000 3d7e 000f 0000 0000
> 0000240 0001 00c0 0001 0000 ee37 5891 0000 0000
> 0000260 3d7e 000f 0000 0000 0000 0000 0000 0000
> 0000300 ee37 5891 0000 0000 3dae 000f 0000 0000
> 0000320 0001 00c0 0000 0000 ee37 5891 0000 0000
> 0000340 3dae 000f 0000 0000 0000 0000 0000 0000

So, the whole idea of this exercise is to show that driver sends an
event whenever you bend / unbend the cover.
User space already will know what is the state of the cover.

> By the way, does the patch make sense for
> inclusion ? To have an interface for touchpad mode ?

The question now is why do you need that on top of existing event?

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux