[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-15 Thread Lu Do
Just try this morning the #210, it's working well on ubuntu 20.04 ! Thanks @Coiby Xu (coiby) I also confirmed the suspend will break the touchpad -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-15 Thread Helmut Stult
@Coiby Xu (coiby) We have received feedback in our forum that the touchpad no longer works after a resuming from suspend. I've attached the link - maybe you can take a look at it. https://forum.manjaro.org/t/i2c-touchpad-does-not-function-after- resuming-from-suspend/31987/5 -- You received

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-15 Thread Coiby Xu
Fix on #211 Another header file hid-ids.h is required to build i2c-hid module. Attached is the updated zip file. ** Attachment added: "i2c-hid_standalone.zip" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190/+attachment/5422562/+files/i2c-hid_standalone.zip -- You received this

Re: [Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-15 Thread Coiby Xu
On Thu, Oct 15, 2020 at 05:37:46AM -, Kai-Heng Feng wrote: >Coiby, can you please work on a DMI based workaround in gpiolib-acpi.c? >It'll have higher chance to get merged. > Thank you for the suggestion! Linus Walleij also suggested introducing a new quirk [1]. Although my main effort is on

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-14 Thread Kai-Heng Feng
Coiby, can you please work on a DMI based workaround in gpiolib-acpi.c? It'll have higher chance to get merged. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

Re: [Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-14 Thread Coiby Xu
On Tue, Oct 13, 2020 at 01:44:31PM -, jbuncle wrote: >I had the same issue (with both Ubuntu 20.04 and 20.10). It does seem to >be resolved after installing a 5.9 Kernel with the above patch applied >(from @coiby https://www.spinics.net/lists/linux-input/msg69458.html. Glad it works for you.

Re: [Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-14 Thread Coiby Xu
On Tue, Oct 13, 2020 at 05:27:44AM -, Azizkhan wrote: >> i2c-hid.polling_mode=1 to the kernel boot parameters to make the >touchpad work. >you mean that I can just flash 5.9 kernel and then add to grub this line: >GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video.use_native_backlight=1

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-14 Thread Coiby Xu
Additional notes to #211: Actually rebooting your machine is not necessary for simply testing the module. You can remove the old kernel first, $ sudo rmmod i2c-hid and then insert the new module with the parameter "polling_mode=1" $ sudo insmod i2c-hid.ko polling_mode=1 For have persistent

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-14 Thread Coiby Xu
For those who want to try the polling mode i2c-hid, here are the instructions to build a single i2c-hid module without building a whole kernel or downloading the whole kernel source code, 1. After you download the attached file which contains patched i2c-hid-core.c and other headers for

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-14 Thread Azizkhan
@jbuncle (jbuncle) Yo man, in your script you don't do configs, so after installation user gets all drivers that's included in kernel modules (~6Gb). -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-13 Thread jbuncle
I had the same issue (with both Ubuntu 20.04 and 20.10). It does seem to be resolved after installing a 5.9 Kernel with the above patch applied (from @coiby https://www.spinics.net/lists/linux-input/msg69458.html. I have scripted the process I used (download, patch, compile and install the

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-12 Thread Azizkhan
> i2c-hid.polling_mode=1 to the kernel boot parameters to make the touchpad work. you mean that I can just flash 5.9 kernel and then add to grub this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video.use_native_backlight=1 i2c-hid.polling_mode=1" -- You received this bug notification because

Re: [Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-12 Thread Coiby Xu
On Sun, Oct 11, 2020 at 07:07:37PM -, Paulinski wrote: >Is there any chance that his patch will be part of the official kernel >build soon? I have yet to submit the patch of fixing the root cause. But I've submitted a patch of adding polling mode to the i2c-hid module to

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-11 Thread Paulinski
Is there any chance that his patch will be part of the official kernel build soon? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not

Re: [Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-10 Thread Coiby Xu
On Sat, Oct 10, 2020 at 11:38:27AM -, PD wrote: >@Coiby Xu (coiby) >Thanks a log for your contribution > It's my pleasure! >I tried to use the way of "echo out > gpio386/direction" to fix the >problem without patching the kernel, but I found Touchpad click >sensitivity is less than patching

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-10 Thread Piotr Tomaszewski
Hey @Coiby Xu (coiby), Last question from me :) How can I use #189 with PopOS? After "make" when I run "modinfo" I got output like that: name: pinctrl_amd filename: (builtin) description:AMD GPIO pinctrl driver author: Ken Xue , Jeff Wu license:GPL v2 file:

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-10 Thread PD
@Coiby Xu (coiby) Thanks a log for your contribution I tried to use the way of "echo out > gpio386/direction" to fix the problem without patching the kernel, but I found Touchpad click sensitivity is less than patching the kernel. -- You received this bug notification because you are a member

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-10 Thread Piotr Tomaszewski
@Coiby Xu (coiby), Got it working! Installing linux58-headers solved problem. Thanks a lot for your hard work! -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-10 Thread Piotr Tomaszewski
@Coiby Xu (coiby),Thanks for reply. I'm actually trying to make it from the directory standone_pinctrl-amd, but error is still there. ~/Pobrane/standone_pinctrl-amd >>> ls -al drwxr-xr-x- piotr 9 paź 0:30 . drwxr-xr-x- piotr 9 paź 22:26 ..

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-09 Thread Coiby Xu
@Piotr Tomaszewski (nfm886) > Hey Coiby Xu (coiby), > That's does not works. Manjaro Linux 5.8.11-1-MANJARO x86_64 20.1.1 Mikah > and make ending up with error 2 > translated error is > make [1]: *** No objects found and no makefile found. Stop You should run make in the folder where you see

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-09 Thread Coiby Xu
@PD (pd1986) > If I am not misunderstanding, does it mean that only patch for pinctrl-amd.c > without changing i2c-hid-core.c should solve the problem? Yes, you are right! Only commenting out one line of code in pinctrl- amd.c would be sufficient for fixing this laptop model. But for now we are

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-09 Thread Piotr Tomaszewski
Hey Coiby Xu (coiby), That's does not works. Manjaro Linux 5.8.11-1-MANJARO x86_64 20.1.1 Mikah and make ending up with error 2 translated error is make [1]: *** No objects found and no makefile found. Stop. -- You received this bug notification because you are a member of Desktop Packages,

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-09 Thread PD
If I am not misunderstanding... -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 Status in

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-09 Thread PD
I am not misunderstanding, does it mean that only patch for pinctrl- amd.c without changing i2c-hid-core.c should solve the problem? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-08 Thread Coiby Xu
@wangjun (biggerchina) Thank you for sharing the result! Then we can be completely sure glitch filter is the sole root cause. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-08 Thread wangjun
@Coiby Xu (coiby) test to your #190; test env: 1.no use the disable glitch filter patch. 2.enabled gpio sysfs the result: 1.before run : echo out > direction ``` [ra@localhost ~]$ cat /proc/interrupts |grep pinctrl 7: 0 0 0 0 0

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-08 Thread Coiby Xu
@Helmut Stult (helmut-stult) > @Coiby Xu (coiby) > Apparently there was a similar problem with the 4.19 kernel, but with the Intel CPU, which was then solved with the following patch. > https://gitlab.manjaro.org/packages/core/linux419/-/blob/master/ELAN_touchpad_i2c_hid_pinctrl.patch > Now

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-08 Thread Coiby Xu
@PD (pd1986) > @wangjun (biggerchina), @Coiby Xu (coiby) > Could you please summarize what you tested and did for patch? I am completely lost. :D Basically, I want wangjun to find out the minimum time for manually triggering a interrupt for the ELAN touchpad. You may be also check

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-08 Thread Coiby Xu
@wangjun (biggerchina) Thank you for sharing the result in #170. I'm surprised to know that with pin's direction set to "out", no new "no data" message shows when putting the touchpad aside. Can you share the interrupt counter for me when you don't use the touchpad? For my laptop, the number of

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-08 Thread Coiby Xu
@injkgz And also for those who have difficult building the custom kernel which is not necessary, you can build a single pinctrl-amd.ko. 1. After you download the attached file which contains fixed pinctrl- amd.c and other heades for building, run make to build this module, $ make make -C

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-08 Thread MeMoS
Managed to make the touchpad work but gestures are not working. Got the PKGBUILD for 5.8.14 from the gitlab page and added the patch tried xf86-input-synaptics and xf86-input-libinput. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-07 Thread Azizkhan
After trying building kernel 5.8.14 with patches getting error: LD [M] drivers/iio/pressure/st_pressure.o GEN .version CHK include/generated/compile.h LD vmlinux.o MODPOST vmlinux.symvers MODINFO modules.builtin.modinfo GEN modules.builtin BTF: .tmp_vmlinux.btf:

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-07 Thread Helmut Stult
@Coiby Xu (coiby) Apparently there was a similar problem with the 4.19 kernel, but with the Intel CPU, which was then solved with the following patch. https://gitlab.manjaro.org/packages/core/linux419/-/blob/master/ELAN_touchpad_i2c_hid_pinctrl.patch Now the two lines are included (for example)

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-07 Thread Piotr Tomaszewski
@Helmut Stult (helmut-stult), oh right. Did not see that post. Now everything works like a charm. Even touchpad gestures works :) Thanks guys, you are awesome! -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-07 Thread Azizkhan
Is it able to build Ubuntu 5.8.13 kernel? I mean from kernel.org -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Benjamin Rogoll
Hey Guys, didnt read everything, just for me the simplest version to fix stuff on Manjaro is to download the 5.8.13-1 Kernel from the Manjaro gitlab and install xf86-input-synaptics via pacman. I have not managed to get it to work on Mint, but here it works flawlessly. -- You received this bug

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Helmut Stult
See #179 ;-) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 Status in Pop!_OS: New Status

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Piotr Tomaszewski
Won't build since there is no 0303-pinctrl-amd2.patch in repo. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Helmut Stult
Use this PKGBUILD ** Attachment added: "PKGBUILD for 5.8.13" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190/+attachment/5418466/+files/PKGBUILD -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Helmut Stult
@Piotr Tomaszewski (nfm886) The patch is not included in the kernel, as other touchpads will no longer work. You can use the attached patch and build your own kernel. It works with ELAN-Touchpad MSFT0001:00 04F3:3140 ** Patch added: "Patch for Manjaro Kernel 5.8.13"

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Azizkhan
Can anyone provide debian packages for compiled kernel 5.8.13 with patch? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Piotr Tomaszewski
Hey @Helmut Stult (helmut-stult) I compiled kernel from there: https://gitlab.manjaro.org/packages/core/linux58 but unfortunately touchpad does not works. Linux Lenovo 5.8.13-4-MANJARO #1 SMP PREEMPT Tue Oct 6 19:05:24 CEST 2020 x86_64 GNU/Linux ↳ MSFT0001:00 04F3:3140 Touchpad

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Helmut Stult
@Coiby Xu (coiby) #171 works for under Manjaro Linux and Kernel 5.8.13 too. https://linux-hardware.org/?probe=7b7c4086f5 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread PD
@Azizkhan check the patch file and your kernel file if the content for each line is consistent. If it is, you could copy patch file to kernel folder and run command "patch -p1 < patchfile" @wangjun (biggerchina), @Coiby Xu (coiby) Could you please summarize what you tested and did for patch? I

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread wangjun
@Azizkhan (injkgz) read patch file ,find the right line,then manual patch ,do not use tool. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Azizkhan
@wangjun How did you compiled old patch with kernel 5.8.13? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread wangjun
@Coiby Xu (coiby) you are the best! many thanks to you!!! #171 work for 04f3:3140 elan touchpad! env: fedora 33 kernel 5.8.13 lenovo legion R7000 (another name :Lenovo Legion-5 15ARH05) pointer move ok, two finger scroll ok! -- You received this bug notification because you are a member

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread Coiby Xu
Hi all, Can you test the follow patch works for your touchpad? Disabling glitch filter seems to eliminate the root cause. $ git diff diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c index 9a760f5cd7ed..e786d779d6c8 100644 --- a/drivers/pinctrl/pinctrl-amd.c +++

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-06 Thread wangjun
window 1 run : ``` [ra@localhost ~]$ sudo hid-recorder [sudo] password for ra: Available devices: /dev/hidraw0: Microsoft Microsoft® Nano Transceiver v1.0 /dev/hidraw1: Microsoft Microsoft® Nano Transceiver v1.0 /dev/hidraw2: Microsoft Microsoft® Nano Transceiver v1.0 /dev/hidraw3:

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread Coiby Xu
>>1. When the touchpad works by setting pin's direction=out, you could see lots of "no data" message ("IRQ triggered but there's no data") keeping popping up after moving your finger away from the touchpad, am I correct? > no, wrong. when run : echo out > direction, > dmesg say : > [ 133.854926]

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
Coiby Xu (coiby) >1. When the touchpad works by setting pin's direction=out, you could see lots >of "no data" message ("IRQ triggered but there's no data") keeping popping up >after moving your finger away from the touchpad, am I correct? no, wrong. when run : echo out > direction, dmesg say :

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread Coiby Xu
@wangjun Thank you for doing this experiment! 1. When the touchpad works by setting pin's direction=out, you could see lots of "no data" message ("IRQ triggered but there's no data") keeping popping up after moving your finger away from the touchpad, am I correct? 2. When pin's direction=out,

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
one mistake in #165, ```but there's no data``` is some copy/past err. it's not the output. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
sorry for #159, the first c program ,i missed the parameter when i run it. now test it again. reboot then ``` [ra@localhost ~]$ su Password: [root@localhost ra]# cd /sys/class/gpio [root@localhost gpio]# ls export gpiochip256 unexport [root@localhost gpio]# echo 386 > export

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
test the second c program with derection changed to :out window 1: ``` [ra@localhost ~]$ su Password: [root@localhost ra]# cd /sys/class/gpio/ [root@localhost gpio]# ls export gpiochip256 unexport [root@localhost gpio]# echo 386 > export [root@localhost gpio]# ls export gpio386 gpiochip256

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
sorry , two mistakes in # 162 and window 1: ==> and window 2: window 1 no output. ==> window 2 no output. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
test the second c program: i reboot, it's means the derection is :in windows 1: ``` [ra@localhost 2]$ su Password: [root@localhost 2]# ls fire_touchpad_pin_irq fire_touchpad_pin_irq.c [root@localhost 2]# ./fire_touchpad_pin_irq 100 Status:: Operation not permitted Status:: Operation not

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
test for script 2 ,with changed direction to out before test: ``` a. Don't put your finger on the touchpad b. Open a terminal window and run `sudo dmesg -W` c. In another terminal, "cd /sys/class/gpio/gpio386" e. "echo 1 > value" and see if the following dmesg output will keeping

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
test for script 2: ``` a. Don't put your finger on the touchpad b. Open a terminal window and run `sudo dmesg -W` c. In another terminal, "cd /sys/class/gpio/gpio386" e. "echo 1 > value" and see if the following dmesg output will keeping popping up in the previous terminal window

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
first c program, has error, window 1 ``` [ra@localhost 1]$ sudo ./test [sudo] password for ra: Segmentation fault [ra@localhost 1]$ ``` windows 2 ``` [ra@localhost ~]$ sudo dmesg -W [sudo] password for ra: [ 545.297119] test[3424]: segfault at 0 ip 7f679289151c sp 7ffc4ea14900 error

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
test the script: ``` a. Don't put your finger on the touchpad b. Open a terminal window and run `sudo dmesg -W` c. In another terminal, "cd /sys/class/gpio/gpio386" e. "echo out > direction" and see if the following dmesg output will keeping popping out in the previous terminal

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
sorry for #157, `in` should be `out` and after the test,i rerun : echo out > direction my touchpad can work. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
and after the test,i rerun : echo in > direction my touchpad can work. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
@Coiby Xu (coiby) wait a moment ,i rebuild a clean kernel ,then i test it . -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread Coiby Xu
@wangjun Thank you for sharing the results and investigating this touchpad issue! One thing confuses me is for the ELAN touchpad, no single interrupt fires when you put finger on the touchpad while for the Synaptics touchpad, you still see interrupts firing but with a very rate of ~7Hz. Judging

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
struct acpi_gpio_info { struct acpi_device *adev; enum gpiod_flags flags; bool gpioint; int pin_config; int polarity; int triggering; unsigned int quirks; }; enum gpiod_flags { GPIOD_ASIS = 0, GPIOD_IN=

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-05 Thread wangjun
according to the above analysis, error is happen with the direction is : in i found the function to set the direction of gpio pin to in: amd_gpio_direction_input, and add some pr_err and dump_stack() to the function , then dmesg out put like : [1.545190] amd_gpio_set_config

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
i have already added some pr_err to the kernel source , then the dmesg say : the touchpad work 1 time,during the system boot. the dmesg output like : ``` [1.766437] in handle_fasteoi_irq for irq:7,starting... [1.766440] in handle_irq_event start for :7 [1.766440] in

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
so may be there is some bug with the :direction, because ,i run echo out > direction,then it start to work. and may be just like #130 or #133 ,but in drivers related to this touchpad . -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
and the dmesg has some output related: ``` [ 138.233653] i2c_hid i2c-MSFT0001:00: i2c_hid_get_input: IRQ triggered but there's no data ``` -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
touch test: follow the no touch test, i touch the touchpad: then the output are: ``` # ReportID: 4 / Confidence: 1 | Tip Switch: 1 | # | Contact Id: 0 | X: 2249 | Y: 1233 | Scan Time: 59692 | Contact Count:1 | Button: 0 | # | # E: 000215.550028 12 04 03 c9 08 d1 04 2c e9 01 80 19

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
no touch test: i run :sudo hid-recorder ``` [ra@localhost ~]$ sudo hid-recorder [sudo] password for ra: Available devices: /dev/hidraw0: Microsoft Microsoft® Nano Transceiver v1.0 /dev/hidraw1: Microsoft Microsoft® Nano Transceiver v1.0 /dev/hidraw2: Microsoft Microsoft® Nano Transceiver

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
@Coiby Xu (coiby) #144 i now test it. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
@coiby xu ,many thanks to you you find another way to solve the problem. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread Coiby Xu
@@wangjun Good to know that! What's the result of "echo value"? And what's the output of hdi-recorder with and without fingers on the touchpad? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
i reboot ,and test it again. only run this script: ``` [ra@localhost ~]$ su Password: [root@localhost ra]# cd /sys/class/gpio/ [root@localhost gpio]# echo 386 > export [root@localhost gpio]# cd gpio386 [root@localhost gpio386]# echo out > direction [root@localhost gpio386]# ``` then cursor

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
after i run the line in the terminal windows 2: echo out > direction terminal window 1 has output and the cursor start move. no need to run the line echo 0 > value -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread Coiby Xu
(For those who read # 132, please ignore it and this is re-written version.) For the Synaptics touchpad, the following experiment would make the touchpad work. Could you share the result with the ELAN touchpad? 1. Install hid-tools and start hid-recorder as the root user ```bash # install

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread Coiby Xu
Hi wangjun, Thank you for testing the script. Sorry I notice there's some problems with the instructions in # 132. And those instructions can't be executed as a single shell script. If you go to /sys/class/gpio, do you see a folder named gpio386? - If yes, cd to gpio386. "echo out > direction".

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
@coiby xu, terminal window 1: - [ra@localhost ~]$ uname -r 5.8.13-301.fc33.x86_64 [ra@localhost ~]$ sudo hid-recorder [sudo] password for ra: Available devices: /dev/hidraw0: MSFT0001:00 04F3:3140 /dev/hidraw1: Microsoft Microsoft® Nano Transceiver v1.0 /dev/hidraw2:

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
sorry, default fedora kernel with the option CONFIG_GPIO_SYSFS is not set. i will set it and build new kernel to test the above script. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
@coiby xu, with my elan touchpad , [ra@localhost ~]$ sudo pip install hid-tools [sudo] password for ra: WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead. Collecting hid-tools Using cached hid-tools-0.2.tar.gz (51 kB) Collecting

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread Helmut Stult
Right - unfortunately that was a mistake on my part - please ignore # 133 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread Coiby Xu
For Legion-5 15ARH05, the GPIO chip is managed by drivers/pinctrl /pinctrl-amd.c. So the fix for drivers/gpio/gpio-amd-fch.c is irrelevant to this issue. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread Helmut Stult
Forget everything up to now - it is a kernel bug that has been known since January of this year and for which there has been a fix since then. I can't say why it hasn't been included in the kernel so far. Here is the patch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread Coiby Xu
Today I find something interesting about the GPIO controller. I wonder if the same thing would happen to the ELAN touchpads. For those who have the ELAN touchpad, could you show me the result of the following experiment with a kernel not having the polling_pin_state_touchpad.patch? ```bash #

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread Coiby Xu
Thank you for testing this patch! I'm glad it also works for both 04F3:3140 and 04F3:3186. I was completely new to things like I2C, HID before investigating this touchpad issue. So thank you for your patience with me. Note this patch is meant to be a temporary specifically for this laptop. It

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread wangjun
found a patch related to amd and gpio: gpio: amd-fch: correct logic of GPIO_LINE_DIRECTION The original commit appears to have the logic reversed in amd_fch_gpio_get_direction. Also confirmed by observing the value of "direction" in the sys tree.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread PD
Maybe expert could update in kernel git https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/tree/drivers/hid/i2c-hid/i2c-hid-core.c -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-04 Thread PD
@Coiby Xu (coiby) Great. Touchpad works. Thank you so much -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-10-02 Thread Azizkhan
Kernel 5.8.13 doesn't build with this patch -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-28 Thread Mike Boruta
I have not (yet) experienced the issue you are describing, or any issues for that matter. Maybe you can remove and re-insert i2c_hid when this happens? Hopefully a fix of the GPIO driver is not too far off and will resolve the stability issues you are experiencing. -- You received this bug

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-28 Thread alex
thanks @Mike Boruta (maridius)! wondered why it worked after re-install of nvidia driver, so thats the explanation now ;) what about any issues with the touchpad? not sure if something else produces my issues, but during longer usage there random stutterings, the mouse is not moved for some

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-28 Thread Mike Boruta
@alex (agolks) Just run 'sudo update-initramfs -u'; see https://unix.stackexchange.com/questions/424599/is-update-initramfs-u -needed-after-adding-or-removing-a-module-with-modprobe for more information. -- You received this bug notification because you are a member of Desktop Packages, which

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-28 Thread Mike Boruta
Wow, thanks a lot Coiby Xu! I applied the patch and the touchpad 04F3:3186 works as expected on the 5.7.19 ubuntu mainline kernel. Please let me know if you need help developing/testing the final fix to pinctrl_amd/amd_gpio. @Azizkhan (injkgz), @Bulat (ilov3), @Paulinski (mail-izy): Please see

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-28 Thread Azizkhan
Can anyone provide an instruction for newbees? I made a clean install of Ubuntu 20.04 LTS, how to apply patch and make touchpad work? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-27 Thread Dimitar Kotsev
@Coiby Xu, @wangjun, Helmut (schinfo) thank you for saving the day. I've `git cloned` 5.8.12-3 Manjaro kernel from GitLab and using this post I installed it on my system. -> https://forum.manjaro.org/t/how-to- compile-patch-kernel-with-custom-alsa-driver/20326/4 Everything works like a charm

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-27 Thread Stefano Galassi
@Coiby YOU ARE THE MAN! works like a charm on kernel 5.8.12-AMD! thank you so much for your efforts. you should get paid by Lenovo for this ;) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu.

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-27 Thread Bulat
Hey guys! Very excited and waited so much to the moment when this bug will be fixed. Any chances that the patch will be included into ubuntu mainline kernel build? (something go wrong when I attempting to boot from the patched kernel: in the very start says "Loading initial ramdisk" and hangs

[Desktop-packages] [Bug 1887190] Re: MSFT Touchpad not working on Lenovo Legion-5 15ARH05

2020-09-27 Thread alex
... but: have to modprobe -r and modprobe i2c_hid again, to get the touchpad working. any ideas? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-input-libinput in Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title:

<    1   2   3   4   5   >