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

2020-08-29 Thread wangjun
@Coiby Xu (coiby) there is not any text like "invalid report id data" in dmesg output. and on fedora 32 kernel 5.8.5 = [ra@bogon ~]$ dmesg | grep MSFT [0.004946] ACPI: SSDT 0xCDFF4000 007216 (v02 LENOVO CB-01 0001 MSFT 0400) [1.534909] i2c_hid

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

2020-08-29 Thread wangjun
and after line I: 18 04f3 3140 no more output , event i touch the touchpad. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To

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

2020-09-04 Thread wangjun
@Coiby Xu (coiby) , on my windows 10 , it report error! Microsoft Windows [Version 10.0.19042.450] (c) 2020 Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>logman create trace -n HID_WPP -o

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

2020-09-07 Thread wangjun
new kernel on fedora test result: 5.8.7 not work 5.9-rc4not work -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5

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

2020-09-09 Thread wangjun
diff is amd and intel. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications about this bug go to:

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

2020-09-10 Thread wangjun
no solution to MSFT0001:00 04F3:3140 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications about this bug go to:

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

2020-09-10 Thread wangjun
new kernel on fedora test result: 5.8.8 not work -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications about

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

2020-09-14 Thread wangjun
new kernel on fedora test result: 5.8.9 not work 5.9-rc5 not work -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage

[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

[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:

[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 :

[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

[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.

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo

[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 Ubuntu Bugs, which is subscribed to Ubuntu.

[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

[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:

[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 Ubuntu Bugs, which is subscribed to Ubuntu.

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190

[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

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title:

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications about this bug go

[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

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To

[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

[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

[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

[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=

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working

[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

[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

[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

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not

[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

[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

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To

[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

[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

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo

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

2020-08-26 Thread wangjun
Lenovo release new version BIOS for Legion R7000 or Legion 5-15ARH05. 2020/8/20 BIOS Version: EUCN22WW, EC Version: EUEC22WW EUCN22WW: BIOS Notification: 1. Fixed 1) Fix panel brightness almost not changed when change from the level 0 to level 1. 2. Add 1) None. 3. Modified 1)

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

2020-08-25 Thread wangjun
my computer is Lenovo Legion R7000 ,with the MSFT0001:00 04F3:3140 touchpad. and i had tested the kernel 5.9.0 rc2 on fedora 32 with no lucky, -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190

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

2020-08-27 Thread wangjun
@Coiby Xu (coiby) ,i had tested by patch the kernel source in the file :include/linux/input/elan-i2c-ids.h with MSFT0001 , ELAN3140 ,04f33140, but it doesn't work。 and sudo acpidump | grep -C3 ELAN result as follows: ra@bogon Downloads]$ sudo acpidump | grep -C3 ELAN [sudo] password for ra:

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

2020-08-27 Thread wangjun
on kernel 5.8.5 fedora 32,touchpad does not work too. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications

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

2020-09-26 Thread wangjun
lenovo release new bios EUCN26WW -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications about this bug go to:

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

2020-09-26 Thread wangjun
sorry for my poor english! 非常感谢! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications about this bug go to:

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

2020-09-26 Thread wangjun
@Coiby Xu (coiby) my machine is MSFT0001:00 04F3:3140; i tested the patch on fedora 32 kernel 5.8.11 . the touchpad worked. but the original patch not compile : thread_hid undeclared then i add one line: static struct task_struct *thread_hid = NULL; many thanks to your hard work! i am

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

2020-12-21 Thread wangjun
on fedora 33,with kernel 5.10.2 , i use this patch ,then touchpad work! diff -Narup a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c --- a/drivers/gpio/gpiolib-acpi.c 2020-12-14 06:41:30.0 +0800 +++ b/drivers/gpio/gpiolib-acpi.c 2020-12-22 14:31:53.078877803 +0800

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

2020-12-21 Thread wangjun
all the changes are extract from the master branch of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git . -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad

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

2020-12-26 Thread wangjun
@koen (kmaris) , with kernel 5.10.2 ,you can try #311 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications

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

2020-12-26 Thread wangjun
and #311 also work with kernel 5.10.3 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887190 Title: MSFT Touchpad not working on Lenovo Legion-5 15ARH05 To manage notifications about this bug go

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

2020-12-30 Thread wangjun
because this submit (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/gpio/gpiolib.c?h=v5.10.4=2d9284c18862480bcabb331088692b51c70dad2c), #311 do not work with kernel 5.10.4. -- You received this bug notification because you are a member of Ubuntu Bugs, which is

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

2020-12-30 Thread wangjun
with kernel 5.10.4 , this patch work on fedora 33. diff -Narup a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c --- a/drivers/gpio/gpiolib-acpi.c 2020-12-14 06:41:30.0 +0800 +++ b/drivers/gpio/gpiolib-acpi.c 2020-12-22 14:31:53.078877000 +0800 @@ -205,6 +205,68 @@

[Bug 1950779] [NEW] wrong when install from USB

2021-11-12 Thread wangjun
Public bug reported: like hardware wrong ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: ubiquity 20.04.15.17 ProcVersionSignature: Ubuntu 5.11.0-27.29~20.04.1-generic 5.11.22 Uname: Linux 5.11.0-27-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: