MSFT0004:00 06CB:CD98 Touchpad/trackpad mouse randomly not recognized from any given boot

Bug #1878279 reported by Till
314
This bug affects 60 people
Affects Status Importance Assigned to Milestone
Linux
Confirmed
Medium
Ubuntu
Confirmed
Undecided
Unassigned
linux-signed-hwe (Fedora)
New
Undecided
Unassigned
linux-signed-hwe (Ubuntu)
In Progress
Undecided
Unassigned

Bug Description

Touchpad 'Buttonless Mylar surface multi-touch touchpad' doesn't work at all (No response from the Touchpad) for notebook 'Lenovo Ideapad 5 14IIL05 81YH' from first system start on.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.4.0-29-generic 5.4.0-29.33
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
Uname: Linux 5.4.0-29-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: tilman 1607 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Tue May 12 21:22:22 2020
InstallationDate: Installed on 2020-05-12 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: LENOVO 81YH
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-29-generic root=UUID=bb961a96-8855-4e50-814d-7994235377c3 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-29-generic N/A
 linux-backports-modules-5.4.0-29-generic N/A
 linux-firmware 1.187
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/25/2020
dmi.bios.vendor: LENOVO
dmi.bios.version: DSCN23WW(V1.09)
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: No DPK
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: IdeaPad 5 14IIL05
dmi.modalias: dmi:bvnLENOVO:bvrDSCN23WW(V1.09):bd03/25/2020:svnLENOVO:pn81YH:pvrIdeaPad514IIL05:rvnLENOVO:rnLNVNB161216:rvrNoDPK:cvnLENOVO:ct10:cvrIdeaPad514IIL05:
dmi.product.family: IdeaPad 5 14IIL05
dmi.product.name: 81YH
dmi.product.sku: LENOVO_MT_81YH_BU_idea_FM_IdeaPad 5 14IIL05
dmi.product.version: IdeaPad 5 14IIL05
dmi.sys.vendor: LENOVO

Revision history for this message
Till (tilman-vaeth) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
You-Sheng Yang (vicamo) wrote : Re: Touchpad not recognized on Lenovo Ideapad 5 14IIL05 81YH

Please attach your acpi dump info:

  $ sudo apt install acpica-tools
  $ sudo acpidump -o acpi.dump

And attach that `acpi.dump` file.

tags: added: hwe-touchpad
Revision history for this message
AdrienM (adi90x) wrote :

Hello,

Thanks a lot for having a look, please find enclosed acpi.dump
Do not hesitate if I can provide anything else.

Regards,

Revision history for this message
You-Sheng Yang (vicamo) wrote :

@AdrienM, so you can decompile your ACPI blob shipped by the device vendor:

  $ acpixtract acpi.dump
  $ iasl -d *.dat

And from the decompiled `dsdt.dsl` file, it has:

  Name (_HID, "XXXX0000") // _HID: Hardware ID
  Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */) // _CID: Compatible ID
  ...

I'm not sure what will it be like in the runtime, so we need your to run:

  $ cd /sys/bus/acpi/devices
  $ for d in $(ls -1 */hid); do d=${d%/*}; grep -q PNP0C50 $d/modalias && echo $d; done

And, please re-attach your dmesg log with following kernel boot parameters. For detailed steps, please see https://askubuntu.com/questions/19486/how-do-i-add-a-kernel-boot-parameter:

  dyndbg="file drivers/hid/* +pt" i2c-hid.debug=1 log_buf_len=16M

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
AdrienM (adi90x) wrote :

Hello,

Result from

...
for d in $(ls -1 */hid); do d=${d%/*}; grep -q PNP0C50 $d/modalias && echo $d; done
...

=> MSFT0004:01

And attached dmesg output using the boot parameter you mention.

Regards,
Adrien

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Sorry, I missed one parameter "hid.debug=1". Could you attach dmesg one more time with that appended? It makes:

  dyndbg="file drivers/hid/* +pt" hid.debug=1 i2c-hid.debug=1 log_buf_len=16M

Thank you.

Revision history for this message
AdrienM (adi90x) wrote :

Here it is !

Revision history for this message
AdrienM (adi90x) wrote :

Hello,

Anything else I can provide ?

Regards,

Revision history for this message
TheTakylo (thetakylo) wrote :

I also have the same problem, under Linux this touchpad doesn't work.

TheTakylo (thetakylo)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
TheTakylo (thetakylo)
no longer affects: linux (Debian)
Revision history for this message
AdrienM (adi90x) wrote :

This bug report has more information than bug #1880172.
This one should be main thread no ?

affects: linux (Ubuntu) → linux-signed-hwe (Ubuntu)
no longer affects: debian
Revision history for this message
TheTakylo (thetakylo) wrote :

i dont know why but sometimes the touchpad work and sometimes the touchpad doesnt work ..

Revision history for this message
AdrienM (adi90x) wrote :

@TheTakylo: What is your OS and what is your kernel version ? Do you have the exact same ideaPad 5 - 14IIL05 ?

Revision history for this message
TheTakylo (thetakylo) wrote :

Actually the touchpad doesnt work.
This is my computer details

       _,met$$$$$gg.
    ,g$$$$$$$$$$$$$$$P. --------------------------
  ,g$$P" """Y$$.". OS: Debian GNU/Linux bullseye/sid x86_64
 ,$$P' `$$$. Host: 81YH IdeaPad 5 14IIL05
',$$P ,ggs. `$$b: Kernel: 5.6.0-1-amd64
`d$$' ,$P"' . $$$ Uptime: 49 mins
 $$P d$' , $$P Packages: 1830 (dpkg)
 $$: $$. - ,d$$' Shell: bash 5.0.16
 $$; Y$b._ _,d$P' Resolution: 1920x1080
 Y$$. `.`"Y$$$$P"' DE: GNOME
 `$$b "-.__ WM: Mutter
  `Y$$ WM Theme: Adwaita
   `Y$$. Theme: Adwaita [GTK2/3]
     `$$b. Icons: Adwaita [GTK2/3]
       `Y$$b. Terminal: gnome-terminal
          `"Y$b._ CPU: Intel i5-1035G1 (8) @ 3.600GHz
              `""" GPU: Intel Iris Plus Graphics G1
                              GPU: NVIDIA GeForce MX330
                              Memory: 2906MiB / 15758MiB

Revision history for this message
AdrienM (adi90x) wrote :

Hello,

I have it working after installation of Ubuntu 19.10. However it stop as soon as I do an apt upgrade . Will try to understand which package break it.

Revision history for this message
AdrienM (adi90x) wrote :

Ok so for the moment , I have a working install of Ubuntu 19.10.
Seems that the issue is happening when you update/change xorg-server, which I was doing almost at first to load nvidia driver.
Therefore, for the moment :
Make sure to be in UEFI
Install from Ubuntu 19.10 ISO
Install from apt nvidia-driver-440 nvidia-prime mesa-utils
(Do not use the Additional Driver GUI interface of Ubuntu)
Then do apt update && apt upgrade && apt autoremove

Not sure it will work for every one as it seems really random , will keep on trying to understand exactly what is happening.

Revision history for this message
AdrienM (adi90x) wrote :

Ok in fact the issue is still randomly happening.
Found some bug report on Arch forum too , seems to be an issue of how i2c_hid controler is working and especially how it is shutdown.

Revision history for this message
Michael Amplatz (xekuta747) wrote :

I have a 14IIL05 here, and the same issue with Ubuntu 20.04 and Kernel 5.7. The Touchpad does not respond in any way (though it works in Windows, but only after installation of drivers).

Revision history for this message
AdrienM (adi90x) wrote :

Normally you can have it working from time to time ( just being lucky on startup I guess ).
Try to shutdown & start ( and not reboot )

Revision history for this message
AdrienM (adi90x) wrote :

Did you try enabling SecureBoot ?

Revision history for this message
Michael Amplatz (xekuta747) wrote : Re: [Bug 1878279] Re: Touchpad not recognized on Lenovo Ideapad 5 14IIL05 81YH

Am 01.06.20 um 18:45 schrieb AdrienM:
> Normally you can have it working from time to time ( just being lucky on startup I guess ).
> Try to shutdown & start ( and not reboot )
>
No, Touchpad never worked in Ubuntu.

Am 01.06.20 um 19:11 schrieb AdrienM:
> Did you try enabling SecureBoot ?
>

Yes, I did two times now, but it doesn't change anything.

Revision history for this message
TheTakylo (thetakylo) wrote : Re: Touchpad not recognized on Lenovo Ideapad 5 14IIL05 81YH

For a few days the touchpad worked every other day, for a week it hadn't worked at all for me :/

TheTakylo (thetakylo)
Changed in debian:
status: New → Confirmed
Revision history for this message
Ludovic LEMARINEL (ludovic50750) wrote :

Hi
Just to add some informations.
Just got today a Lenovo Ideapad 14ILI05, Core i5 based, and no touchpad working.
I've tried with kubuntu 19.10 since AdrienM said it was working with this release, but no more luck with it (only tried Live).

I saw a BIOS update on Lenovo support page from 5 days ago, not yet installed it, but I doubt it will make it work !

If I can provide some logs or dumps, or even try patches, I'm willing to help !

Revision history for this message
Ludovic LEMARINEL (ludovic50750) wrote :

Just some follow-up :
It seems that my touchpad is not the same as AdrienM, since my acpi dump is about ELAN0001 and AdrienM's is ELAN2097.

Following some recommendations found on askubuntu.com, I'm currently trying to compile a 5.7.2 kernel with added ELAN0001 id to include/linux/input/elan-i2c-ids.h, and also made the elan touchscreen driver as a module, since this driver recognizes the ELAN0001 as a touch screen, and not a mouse.

I'll post an update when I'll have tested.

Revision history for this message
Ludovic LEMARINEL (ludovic50750) wrote :

So, tried with kernel 5.7.2, disabled elants-i2c module, and added device ID in elan-i2c-ids.h, same problem.

Don't know where to look now :(

Revision history for this message
Michael Amplatz (xekuta747) wrote :

Did you all confirm the issue? I think this is very important to estimate the priority for the developers.

Revision history for this message
bast1 (bast1) wrote :

thx for ur feedback..

same here on Lenovo IdeaPad 3 14IIL05 Core i3-1005G1 (81WD004MGE)

sudo acpidump | grep -C3 ELAN

 27EC0: 70 47 4E 55 4D 0C 10 00 01 06 49 4E 54 31 70 49 pGNUM.....INT1pI
 27ED0: 4E 55 4D 0C 10 00 01 06 49 4E 54 32 A0 34 93 54 NUM.....INT2.4.T
 27EE0: 50 54 59 01 70 0D 4D 53 46 54 30 30 30 31 00 5F PTY.p.MSFT0001._
 27EF0: 48 49 44 70 0D 45 4C 41 4E 30 30 30 31 00 5F 53 HIDp.ELAN0001._S
 27F00: 55 42 70 0A 15 42 41 44 52 70 01 48 49 44 32 A4 UBp..BADRp.HID2.
 27F10: 00 A0 36 93 54 50 54 59 0A 02 70 0D 4D 53 46 54 ..6.TPTY..p.MSFT
 27F20: 30 30 30 31 00 5F 48 49 44 70 0D 53 59 4E 41 30 0001._HIDp.SYNA0

this old fix wont work

https://forums.gentoo.org/viewtopic-t-1086512-start-0.html

greetz

Revision history for this message
bast1 (bast1) wrote :

perhaps the same issue?!

The main culprit was CONFIG_PINCTRL_SUNRISEPOINT that provides an interface that allows configuring of PCH pins and using them as GPIOs. Apparently the touchpad port needs to be unlocked by the signal raised by PCH's GPIO pins, so this module is required for it to work. It is called pinctrl_sunrisepoint, and it is a feature of my motherboard's chipset, Sunrise Point.

greetz

Revision history for this message
TheTakylo (thetakylo) wrote :

I also confirm the error, here is the error of my computer: IdeaPad 5 14IIL05

and the touchpad is not detected.

sudo acpidump | grep -C3 ELAN
   30C80: 30 93 54 50 4C 54 0A 02 70 0D 41 54 4D 4C 32 39 0.TPLT..p.ATML29
   30C90: 35 32 00 5F 48 49 44 70 00 48 49 44 32 70 0A 4A 52._HIDp.HID2p.J
   30CA0: 42 41 44 52 70 0C 80 1A 06 00 53 50 45 44 A4 00 BADRp.....SPED..
   30CB0: A0 30 93 54 50 4C 54 0A 03 70 0D 45 4C 41 4E 32 .0.TPLT..p.ELAN2
   30CC0: 30 39 37 00 5F 48 49 44 70 01 48 49 44 32 70 0A 097._HIDp.HID2p.
   30CD0: 10 42 41 44 52 70 0C 80 1A 06 00 53 50 45 44 A4 .BADRp.....SPED.
   30CE0: 00 A0 30 93 54 50 4C 54 0A 04 70 0D 4E 54 52 47 ..0.TPLT..p.NTRG

Revision history for this message
Michael Amplatz (xekuta747) wrote :

Please all click on "This bug affecty you and 7 other people" and then "Does this bug affect you?" "Yes". Thank you!

Revision history for this message
Ludovic LEMARINEL (ludovic50750) wrote :

Perhaps it has something to do with CONFIG_PINCTRL_SUNRISEPOINT, but how can we be sure that our motherboard is including SUNRISE POINT ?

Revision history for this message
Shivanand (patilshivanand) wrote :

Same issue, got a latest Ideapad 5 and found trackpad and brightness adjustment not working. Tried couple of things like changing distro, changing Kernel version etc, nothing worked.

affects: debian → ubuntu
Revision history for this message
TheTakylo (thetakylo) wrote :

Hello,

I don't know why, my touchpad is working today and it's detected!

⎜ ↳ MSFT0004:00 06CB:CD98 Mouse id=13 [slave pointer (2)]
⎜ ↳ MSFT0004:00 06CB:CD98 Touchpad id=14 [slave pointer (2)]

Revision history for this message
TheTakylo (thetakylo) wrote :

Doesnt work toaday ... too strange !

Revision history for this message
Shivanand (patilshivanand) wrote :

This bug is still unassigned for a month now, Not sure when we can have an update. Has anyone from the affected users found an alternative to this ?.

Revision history for this message
bast1 (bast1) wrote :

nope..some old workarounds that don't work for us, this is all.

Revision history for this message
Michael Amplatz (xekuta747) wrote :

What I learned by using Linux is patience. In the meantime I use a bluetooth mouse. Works fine, but you have to activate bluetooth with another device ;-) Lucky, that everything else is doing well.

Revision history for this message
drdjekyl (mrhyde) wrote :

Hi there,

My problem is same as yours.

I have an Ideapad 81YH with intel i7 chipset. I installed ubuntu 20.04 with kernel 5.4 and touchpad doesn't seem to work as well.

2-3 days ago I modified the grub in /etc/default, it made my touchpad working for a few boots. Unfortunately, it's gone..

IDK what to do to fix this. If someone has some ideas or tests to improve touchpad behaviour, it could be great !

Revision history for this message
Gustav Krogh-jeyasingham (gustavekkj) wrote :

Got at Lenovo ideapad 5 14IIL05 intel i7. Fresh install of ubuntu 20.04 touchpad never worked a single time so seems to be the same issue. Any information i can share to help with the issue?

Revision history for this message
Gustav Krogh-jeyasingham (gustavekkj) wrote :

I found a weird work around updated the kernel to 5.7.1.
Then i disabled legacy support uefi only.
Then secure boot then booted up. Ubuntu told me it couldn't.
Then disabled secure boot and then it worked.

When it stops working redo these last steps in BIOS makes it work.

Xenia (cap95)
Changed in linux-signed-hwe (Ubuntu):
status: Confirmed → In Progress
Kẏra (thekyriarchy)
summary: - Touchpad not recognized on Lenovo Ideapad 5 14IIL05 81YH
+ MSFT0004:00 06CB:CD98 Touchpad/trackpad mouse randomly not recognized
+ from any given boot
Changed in linux:
importance: Unknown → Medium
status: Unknown → Confirmed
90 comments hidden view all 162 comments
Revision history for this message
In , matteo.mazzarelli (matteo.mazzarelli-linux-kernel-bugs) wrote :

Note that the problem hasn't been fully fixed. It still persists when going out of S3 deep sleep (suspend) mode - i.e. it's random whether it will work or not when resuming. I can however confirm that running 5.9-rc6 the touchpad always works as expected on a new start or on a reboot.

Revision history for this message
In , marius.andreiana (marius.andreiana-linux-kernel-bugs) wrote :

Same issue on lenovo ideapad 5 14ARE05
Linux fedora 5.11.3-300.fc34.x86_64 #1 SMP

# dmesg | grep i2c
[ 1.569895] i2c_hid i2c-MSFT0004:00: HID over i2c has not been provided an Int IRQ
[ 1.569930] i2c_hid: probe of i2c-MSFT0004:00 failed with error -22

tags: added: patch
8 comments hidden view all 162 comments
Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

I've been working with a Fedora reporter to try and solve the case where pci=nocrs helps to get a working touchpad, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1868899

Thanks to the latest set of logs attached there, I now am finally starting to understand what is going on here.

Your BIOS claims that any memory between 0x000000004bc50000-0x00000000cfffffff is reserved:

[ 0.000000] BIOS-e820: [mem 0x000000004bc50000-0x00000000cfffffff] reserved

But then continuous with placing the iomem window for PCI devices inside that reserved range:

[ 0.609988] pci_bus 0000:00: root bus resource [mem 0x65400000-0xbfffffff window]

This confuses the kernel and makes it unable to assign PCI iomem to devices which have not already been assigned iomem by the BIOS, like the I2C-controller used for the touchpad.

If you are interested in / curious about the low level details, I'm discussing this with the kernel PCI developers (including figuring out how to deal with this) here:
https://<email address hidden>/

Revision history for this message
Jayden (jayden99) wrote (last edit ):

@Hans de Goede Hi, I am using lenovo Ideapad 5 14IIL05 also. After I installed ubuntu 20.04,I can't even boot the ubuntu, I stuck at the black screen with blinking underscore. Is there anything I can do to solve this? I try to use ctrl alt f1 to f10 but no respond from ubuntu. Thanks in advance for your help.

Revision history for this message
Michael Amplatz (xekuta747) wrote : Re: [Bug 1878279] Re: MSFT0004:00 06CB:CD98 Touchpad/trackpad mouse randomly not recognized from any given boot

@Jayden: Did you verify the image? Ubuntu 20.04 worked on my 14IIL05, of
course without touchpad. I know that all that is something off topic,
but we should clarify that very fast, so we know, if Jaydens Problem has
something to do with the Touchpad problem.

Am 08.07.21 um 04:27 schrieb Jayden:
> @Hans de Goede Hi, I am using lenovo Ideapad 5 14IIL05 also. After I
> installed ubuntu 20.04,I can't even boot the ubuntu, I stuck at the
> black screen with blinking underscore. Is there anything I can do to
> solve this? I try to use ctrl alt f1 to f10 but no respond from ubuntu.
> Thanks in advance for your help.
>

Revision history for this message
Michael Amplatz (xekuta747) wrote :

As this bug exists for more than a year now, it would be great if we
could re-activate Bluetooth-Mice with Keybord only after they say
goodbye occasionally.

Revision history for this message
Jayden (jayden99) wrote (last edit ):

Hi. I did verify the image. Now, I manage to get through the black screen by using win+fn+f2 to go to tty2 then win+fn+f1 to go to login screen. Sometimes if it stuck at black screen, I would use the method mentioned above. Sometimes it manage to get to the login screen directly. But I do think this issue has sth to do with the touchpad. Cuz I will see the error messages controller timeout when I shut the system down (if the touchpad is nit working). For my laptop, the touchpad works sometimes while sometimes it doesn't.

Revision history for this message
Ratul Saha (thatanonyg) wrote :

Can we get a fix after over a year now? I think we have enough people suffering to deserve a fix for this bug.

Revision history for this message
Abhijit (abhi-ghsh) wrote :

I had similar issue.

Lenovo Ideapad 5 14ARE05 dual boot Windows 10 and Ubuntu 20.04 (Kernel 5.11 after update)

Solution steps:

(1) Update your Ubuntu 20.04 installation with all the latest update. This should update your Kernel too (mine updated to 5.11).

(2) Reboot

(3) Go to Windows 10 and Download and install Latest BIOS update and install it. In my case BIOS updated from V1.09 to 1.10.
***Be careful and pay close attention to the instructions shown by the BIOS update installer. Ideally you should fully charge your laptop before performing BIOS update and keep your charger connected.***

Running BIOS update will reboot your system and change BIOS settings to default. If you had disabled secure boot to install and dual boot Ubuntu then this will enable secure boot option. You will need to disable it again. Once BIOS update is completed reboot and go to BIOS (F2)

(4) Disable secure boot in BIOS again

(5) Boot to Ubuntu. (Tip: Use F12 key to boot to Ubuntu if you do not get Ubuntu Grub Bootloader Menu. You can change the boot order from BIOS settings (F2) permanently)

Your touchpad should start working.

Revision history for this message
Petteri P (petterip) wrote (last edit ):

I am not sure what has happened with my Ideapad 5-14ARE05 laptop, but it just seems that this problem has disappeared. I assume some update fixed it finally.

I am unning 5.11.0-34-generic #36~20.04.1-Ubuntu

I have many other problems with the machine such as it does not suspend when the lid is closed and behaves strangely with my bluetooth headset. This laptop with Linux has really worn me out...

2 comments hidden view all 162 comments
Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

This is a follow-up to comment #123

Sorry for the long silence on this bug. I was hoping one of the upstream pci-subsys devs would help out with this...

Since that did not happen I've been looking into fixing this myself now. I've come up with a solution which still involves a kernel cmdline option for now, but this one is a much smaller hammer (almost a scalpel) and once it is confirmed that this works I can enable this by default through a DMI quirk.

I also hope that this option will not cause the stability issues seen when using pci=nocrs and that it will remove the need to specify i8042.nopnp=1 .

I'll attach my patch here and then hopefully one of the Ubuntu devs can build a test-kernel for people who need pci=nocrs to test.

Alternatively you can build your own kernel with this patch added, see the Ubuntu docs for how to do this.

Once you have a kernel with this patch, remove pci=nocrs and i8042.nopnp=1 from the kernel-commandline and instead add only "pci=no_e820".

If this helps please provide DMI strings for your laptop, so that I can add a quirk to the kernel to automatically enable "pci=no_e820" on your laptop model. Run the following command *as normal user* to collect the DMI strings for your laptop:

grep . /sys/class/dmi/id/* 2> /dev/null

And copy and paste the output here.

Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

Please test a kernel build with this patch, combined with adding "pci=no_e820" added to the kernel commandline. See comment 133 for more details.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

A test kernel with the patch can be found here:
https://people.canonical.com/~khfeng/lp1878279/

Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

Kai-Heng, thank you for providing the test kernel.

Folks, if you need to add pci=nocrs to your kernel-commandline to get your touchpad to work, please test this kernel:

https://people.canonical.com/~khfeng/lp1878279/

With pci=no_e820 on the kernel commandline (replacing pci=nocrs). If the touchpad works this way, please provide DMI strings for your laptop, so that I can add a quirk to the kernel to automatically enable "pci=no_e820" on your laptop model. Run the following command *as normal user* to collect the DMI strings for your laptop:

grep . /sys/class/dmi/id/* 2> /dev/null

And copy and paste the output here.

Revision history for this message
Noctis Bennington (noctis13) wrote :

Hello there.

the pci=nocrs on Ubuntu 22.04 doesn't allow boot. So this is again a problem in the last LTS (22.04).

Revision history for this message
Michael Amplatz (xekuta747) wrote : Re: [Bug 1878279] Re: MSFT0004:00 06CB:CD98 Touchpad/trackpad mouse randomly not recognized from any given boot

It has never been no problem. A bug that can be solved by a workaround
that works most times with many people is not solved.

In my opinion the case can be closed when the new Touchpad used by
Lenovo works after booting into the official image. I am waiting for
that for two years now on different Notebooks.

Am 26.04.22 um 22:11 schrieb Noctis Bennington:
> Hello there.
>
> the pci=nocrs on Ubuntu 22.04 doesn't allow boot. So this is again a
> problem in the last LTS (22.04).
>

Revision history for this message
Noctis Bennington (noctis13) wrote :

Yeah...I'm agree Michael. At least in 20.04 that workaround was working with me and a lot of users (but as I said, I'm agree with you). Now in 22.04 it's impossible to make it works. Let's see if we can do something about it...

Revision history for this message
Noctis Bennington (noctis13) wrote :

PS: In case you need see what's going on with pci=nocrs on 22.04

https://i.stack.imgur.com/KZtIy.jpg

Revision history for this message
Noctis Bennington (noctis13) wrote :

Hi! @Hans de Goede @j-w-r-degoede

I tested that patch in that kernel (5.14) and it definitely works!

This is the info I received with "grep . /sys/class/dmi/id/* 2> /dev/null"

/sys/class/dmi/id/bios_date:01/28/2022
/sys/class/dmi/id/bios_release:1.52
/sys/class/dmi/id/bios_vendor:LENOVO
/sys/class/dmi/id/bios_version:EMCN52WW
/sys/class/dmi/id/board_asset_tag:NO Asset Tag
/sys/class/dmi/id/board_name:LNVNB161216
/sys/class/dmi/id/board_vendor:LENOVO
/sys/class/dmi/id/board_version: NO DPK
/sys/class/dmi/id/chassis_asset_tag:NO Asset Tag
/sys/class/dmi/id/chassis_type:10
/sys/class/dmi/id/chassis_vendor:LENOVO
/sys/class/dmi/id/chassis_version:IdeaPad 3 15IIL05
/sys/class/dmi/id/ec_firmware_release:1.52
/sys/class/dmi/id/modalias:dmi:bvnLENOVO:bvrEMCN52WW:bd01/28/2022:br1.52:efr1.52:svnLENOVO:pn81WE:pvrIdeaPad315IIL05:rvnLENOVO:rnLNVNB161216:rvrNODPK:cvnLENOVO:ct10:cvrIdeaPad315IIL05:skuLENOVO_MT_81WE_BU_idea_FM_IdeaPad315IIL05:
/sys/class/dmi/id/product_family:IdeaPad 3 15IIL05
/sys/class/dmi/id/product_name:81WE
/sys/class/dmi/id/product_sku:LENOVO_MT_81WE_BU_idea_FM_IdeaPad 3 15IIL05
/sys/class/dmi/id/product_version:IdeaPad 3 15IIL05
/sys/class/dmi/id/sys_vendor:LENOVO
/sys/class/dmi/id/uevent:MODALIAS=dmi:bvnLENOVO:bvrEMCN52WW:bd01/28/2022:br1.52:efr1.52:svnLENOVO:pn81WE:pvrIdeaPad315IIL05:rvnLENOVO:rnLNVNB161216:rvrNODPK:cvnLENOVO:ct10:cvrIdeaPad315IIL05:skuLENOVO_MT_81WE_BU_idea_FM_IdeaPad315IIL05:

Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

Sorry that it is taking so long to fix this. There have been several attempts at fixing this upstream already, but all of them had to be reverted/dropped because they were causing issues on other laptop models.

The latest attempt at fixing this is here:
https://<email address hidden>/

And this patch, or something close to it will hopefully go upstream soon.

Perhaps one of the Ubuntu kernel devs can provide a test kernel with this patch for Ubuntu users with this problem to test?

Revision history for this message
Noctis Bennington (noctis13) wrote :

It could be awesome if some of the Ubuntu Kernel devs help us to test the 5.15 kernel with the patch.

I wanna try to build a custom kernel with the patch but I don't have time and I'm not an expert with it.

Someone can help us with this?

Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

Note if someone wants to build a kernel with:
https://<email address hidden>/

This patch applies on top of the 3 patches from:
https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/log/?h=pci/resource

Revision history for this message
In , tinozzo123 (tinozzo123-linux-kernel-bugs) wrote :

I have the same laptop, and while on Linux 5.17 I never witnessed the touchpad fail "randomly", I found a consistent way to make it fail: suspend the computer, close the lid, and wake it up while the lid is closed (a way to do so is by plugging/unplugging the charger).
Et voilà, the touchpad won't work, but it will work again by suspending the computer another time and waking it up with the lid open.

Revision history for this message
Noctis Bennington (noctis13) wrote :

I tried with pci=nocrs on Linux 5.18 and now it works, just to let you know.

Revision history for this message
Michael Amplatz (xekuta747) wrote : Re: [Bug 1878279] Re: MSFT0004:00 06CB:CD98 Touchpad/trackpad mouse randomly not recognized from any given boot

I had an update yesterday on Ubuntu 20.04.5. Today I recognized that the
Touchpad works. SOLVED!!!

After 2,5 years I am lucky.

Michael Amplatz

Am 05.06.22 um 19:18 schrieb Noctis Bennington:
> I tried with pci=nocrs on Linux 5.18 and now it works, just to let you
> know.
>

Revision history for this message
Bjorn Helgaas (bjorn-helgaas) wrote :

The current upstream resolution to this problem is https://git.kernel.org/linus/d341838d776a ("x86/PCI: Disable E820 reserved region clipping via quirks"), which relies on quirks that match DMI Vendor, Product Version, Product Name, and Board Name. This isn't an ideal solution because there are likely other systems we don't know about that need a similar fix.

The patch I'm attaching here is an experimental idea to work around this issue without the maintenance burden of the quirks.

If anybody would be willing to test this patch, I would be very grateful. To test it, apply this patch to your kernel, boot with "pci=use_e820 efi=debug", and collect the dmesg log.

Revision history for this message
In , bjorn (bjorn-linux-kernel-bugs) wrote :

I think this is caused by the PCI core not assigning space for a device leading to the touchpad, the same as bug 216565.

You probably see a line like this in the dmesg log:

  pci 0000:00:15.0: BAR 0: no space for [mem size 0x00001000 64bit]

On Ideapads, it should be fixed by https://git.kernel.org/linus/d341838d776a ("x86/PCI: Disable E820 reserved region clipping via quirks"), which appeared in v5.19.

The patch at https://bugzilla.kernel.org/attachment.cgi?id=303237 should fix other machines. If you test this patch, I'd appreciate a note about whether it works and what machine it was.

Revision history for this message
Bjorn Helgaas (bjorn-helgaas) wrote :

N.B. Comment #149 came from bugzilla.kernel.org, NOT from launchpad, and the bug 216565 mentioned is a kernel.org bug number: https://bugzilla.kernel.org/show_bug.cgi?id=216565.

Launchpad mistakenly linkified "bug 216565" it to an unrelated launchpad bug with the same number.

Revision history for this message
In , tinozzo123 (tinozzo123-linux-kernel-bugs) wrote :

I wrote before that on my Lenovo IdeaPad 5 14ARE05 I never got my touchpad failing randomly.
I did write however that by plugging/unplugging the charger the laptop would wake up from suspend, and if done while the lid was closed, then the touchpad would stop working until you suspend and wake up the laptop again.
On kernel 6.2, though, plugging/unplugging the charger doesn't wake up the laptop anymore (or, to be more precise, it does wake it up, but then it puts it back to sleep immediately after), meaning I don't experience this bug in any form anymore.

Revision history for this message
In , bjorn (bjorn-linux-kernel-bugs) wrote :

(In reply to tinozzo123 from comment #15)
> ... meaning I don't experience this bug in
> any form anymore.

Thanks very much for testing this out and reporting the results! Please don't hesitate to report any other issues you trip over!

I'm going to close this issue as "resolved" by these commits:

  https://git.kernel.org/linus/d341838d776a ("x86/PCI: Disable E820 reserved region clipping via quirks") (appeared in v5.19)
  https://git.kernel.org/linus/07eab0901ede ("efi/x86: Remove EfiMemoryMappedIO from E820 map") (appeared in v6.2)

If anybody still sees this issue with v6.2 or later, please re-open this and attach the complete dmesg log when booted with "efi=debug".

Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
In , radupantiru (radupantiru-linux-kernel-bugs) wrote :

I am having the same issue. Will enable "efi=boot" hopefully to capture more logs.

root@r-laptop ~]# uname -a
Linux r-laptop 6.5.9-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000 x86_64 GNU/Linux

Nov 17 18:11:24 r-laptop kernel: i2c_designware AMDI0010:00: controller timed out
Nov 17 18:11:24 r-laptop systemd[1]: Using hardware watchdog 'SP5100 TCO timer', version 0, device /dev/watchdog0
Nov 17 18:11:24 r-laptop systemd[1]: Watchdog running with a timeout of 10min.
Nov 17 18:11:24 r-laptop kernel: watchdog: watchdog0: watchdog did not stop!

Revision history for this message
In , bjorn (bjorn-linux-kernel-bugs) wrote :

radupantiru@: could you also capture the "acpidump" output, please?

We have a couple other reports like https://bugzilla.kernel.org/show_bug.cgi?id=218050 that seem related to 07eab0901ede ("efi/x86: Remove EfiMemoryMappedIO from E820 map").

Revision history for this message
In , radupantiru (radupantiru-linux-kernel-bugs) wrote :

Created attachment 305416
acpidump.txt

There you are and thanks for looking into this!

On Fri, Nov 17, 2023 at 7:02 PM <email address hidden> wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=208171
>
> Bjorn Helgaas (<email address hidden>) changed:
>
> What |Removed |Added
>
> ----------------------------------------------------------------------------
> Status|RESOLVED |REOPENED
> Resolution|CODE_FIX |---
>
> --- Comment #18 from Bjorn Helgaas (<email address hidden>) ---
> radupantiru@: could you also capture the "acpidump" output, please?
>
> We have a couple other reports like
> https://bugzilla.kernel.org/show_bug.cgi?id=218050 that seem related to
> 07eab0901ede ("efi/x86: Remove EfiMemoryMappedIO from E820 map").
>
> --
> You may reply to this email to add a comment.
>
> You are receiving this mail because:
> You are on the CC list for the bug.

Changed in linux:
status: Fix Released → Confirmed
Revision history for this message
In , bjorn (bjorn-linux-kernel-bugs) wrote :

radupantiru@: Your MCFG says there's ECAM space at [mem 0xf8000000-0xfbffffff] for [bus 00-3f]. That space *should* be reserved via a PNP0C01 or PNP0C02 device in the ACPI namespace, but it isn't, so this is likely a BIOS defect.

Can you try the patch I attached here? https://bugzilla.kernel.org/show_bug.cgi?id=218050#c6 . If you can, please attach the dmesg log here.

Revision history for this message
In , radupantiru (radupantiru-linux-kernel-bugs) wrote :

Created attachment 305462
dmesg-patched

Hello,

This is the dmesg for the patched kernel.
6.5.9-arch2-1-custom #1 SMP PREEMPT_DYNAMIC Tue, 21 Nov 2023 17:01:41 +0000
x86_64 GNU/Linux

Thank you!

On Mon, Nov 20, 2023 at 11:21 PM <email address hidden> wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=208171
>
> --- Comment #20 from Bjorn Helgaas (<email address hidden>) ---
> radupantiru@: Your MCFG says there's ECAM space at [mem
> 0xf8000000-0xfbffffff]
> for [bus 00-3f]. That space *should* be reserved via a PNP0C01 or PNP0C02
> device in the ACPI namespace, but it isn't, so this is likely a BIOS
> defect.
>
> Can you try the patch I attached here?
> https://bugzilla.kernel.org/show_bug.cgi?id=218050#c6 . If you can,
> please
> attach the dmesg log here.
>
> --
> You may reply to this email to add a comment.
>
> You are receiving this mail because:
> You are on the CC list for the bug.

Revision history for this message
In , bjorn (bjorn-linux-kernel-bugs) wrote :

(In reply to radupantiru from comment #21)
Thanks very much for testing this! The dmesg shows what I expected:

  PCI: [Firmware Info]: ECAM at [mem 0xf8000000-0xfbffffff] not reserved in ACPI motherboard resources
  PCI: ECAM at [mem 0xf8000000-0xfbffffff] reserved as EfiMemoryMappedIO
  PCI: ECAM [mem 0xf8000000-0xfbffffff] reserved to work around lack of ACPI motherboard _CRS

Just to double-check, I think you were seeing a touchpad issue, right? And I assume that problem is fixed by this patch?

Revision history for this message
In , radupantiru (radupantiru-linux-kernel-bugs) wrote :

Created attachment 305467
attachment-26413-0.html

It was indeed the touchpad which failed to work at random intervals. It
will be quite obvious if it fails again and my question is if the patch
will make its way into the future kernels as I will have not to upgrade my
OS in order to monitor the fix.

Thanks,
Radu

Revision history for this message
Frank H (fhireman) wrote :

I'm on 6.2.0-39-generic (Ubuntu 22.04) and have started to get touchpad problems(I believe around September 2023).
Touchpad often stops responding after having the laptop(Lenovo Yoga slim 14ARE05) on for a while.

A full shutdown + waiting for a while and starting the laptop again makes the touchpad work again but just a reboot doesn't fix it.

Don't think it will help but here are my journalctl logs from yesterday:

jan 09 23:18:33 codingthing kernel: i2c_designware AMDI0010:00: controller timed out
jan 09 23:18:32 codingthing kernel: i2c_designware AMDI0010:00: i2c_dw_handle_tx_abort: lost arbitration

I didn't have this in the first 2 years of usage though.

I'm unsure how to safely try other kernel versions myself so I'm really hoping this fix finds its way to Ubuntu 22.04 or 24.04 releases.

Revision history for this message
Frank H (fhireman) wrote (last edit ):

Few hours after posting I got the 6.5.0-14-generic update.
So I'll test it out for a while and see if the issue persists or if it's fixed.

Edit 12-01-2024:
No touchpad issues yet after using laptop for 2 days. Seems fixed but will report if issue happens again.

Revision history for this message
francesco (airordl) wrote (last edit ):

Same problem here, (Lenovo ideapad Flex 5 -14ARE05, Ubuntu 22.04.3 LTS), although it did work JUST ONCE, randomly, in ~two years of ownership, about a couple of months ago. The "i8042.nopnp=1 pci=nocrs" solution broke my wifi (?) and didn't fix the problem.

I also just realized that this bug report is four years old...

francesco (airordl)
Changed in ubuntu:
status: Confirmed → Invalid
status: Invalid → Confirmed
Displaying first 40 and last 40 comments. View all 162 comments or add a comment.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.