[HP Pavilion dv2910us Entertainment Notebook PC] i8042 need to start early after grub

Bug #1599306 reported by Federico Leoni
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

The kernel module i8042 need to start early after grub selection. I've upgrade my notebook (HP dv2700 series, model dv2910us) with an SSD and now I need to wait 15 seconds after LightDM show up before I can use the internal keyboard.On bios and on GRUB the keyboard works fine but stops working the exact moment the kernel starts to load.
An USB external keyboard works fine with no delay at all (different module, I know).
It's not related to the SSD because even on recovery mode I can reproduce the issue with an old mechanical disk.

Here's a video showing a full cycle of boots with Ubuntu 16.04:

https://youtu.be/yseDPvqWNw4

And here a video of the recovery mode where the delay is much evident:

https://youtu.be/vbsD9tb-Dn8

Here is my xinput configuration:

⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ AlpsPS/2 ALPS GlidePoint id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Video Bus id=7 [slave keyboard (3)]
    ↳ Sleep Button id=8 [slave keyboard (3)]
    ↳ HP Webcam id=9 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
    ↳ HP WMI hotkeys id=12 [slave keyboard (3)]

Keyboard on id 10.

Would be nice have it working at the same time of the USB module.

Tested with Ubuntu/Xubuntu 14.04, 14.10, 15.04, 15.10 and the latest 16.04.
Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-21-generic 4.4.0-21.37 [modified: boot/vmlinuz-4.4.0-21-generic]
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: effe 1383 F.... pulseaudio
CurrentDesktop: XFCE
Date: Tue Jul 5 18:16:09 2016
HibernationDevice: RESUME=UUID=19d86b30-2bc7-4db2-9f45-c2e79b64d298
InstallationDate: Installed on 2016-06-25 (9 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
MachineType: Hewlett-Packard HP Pavilion dv2700 Notebook PC
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-28-generic root=UUID=2841e7bc-0cd5-4641-8eee-c3954c5587e2 ro locale=pt_PT quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-28-generic N/A
 linux-backports-modules-4.4.0-28-generic N/A
 linux-firmware 1.157.1
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/07/2008
dmi.bios.vendor: Phoenix
dmi.bios.version: F.2B
dmi.board.name: 30CD
dmi.board.vendor: Wistron
dmi.board.version: 80.52
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenix:bvrF.2B:bd05/07/2008:svnHewlett-Packard:pnHPPaviliondv2700NotebookPC:pvrF.2B:rvnWistron:rn30CD:rvr80.52:cvnHewlett-Packard:ct10:cvrN/A:
dmi.product.name: HP Pavilion dv2700 Notebook PC
dmi.product.version: F.2B
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Federico Leoni (effelle-gmail) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Re: 16.04: i8042 need to start early after grub

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.7 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7-rc6-yakkety/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Federico Leoni (effelle-gmail) wrote :

Joseph,

thank you for your reply.
All the tests I've made were done starting from fresh install.
The issue persist on 4.7.0-040700rc6-generic (X64): at least 10 seconds before have the keyboard working again.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-upstream
penalvch (penalvch)
tags: added: bios-outdated-f.2d
Revision history for this message
penalvch (penalvch) wrote :

Federico Leoni, could you please post the results of the following terminal command uncompressed/untarred:
cat /proc/bus/input/devices

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Federico Leoni (effelle-gmail) wrote :

Sure Christopher.

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0
B: PROP=0
B: EV=120013
B: KEY=20000 20 0 0 1500f02140003 3803078f900d401 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

Please note the following line:

Bus=0011 Vendor=0001 Product=0001 Version=ab41

is the same I have on another notebook, a Dell Vostro 1310, where I tested the SSD right now. Don't know if is important. The file I've attached is from my HP Dv2700.
Side note: even if with a very similar configuration (same CPU, same chipset, different touch and keyboard but again enabled trough i8042) I was not able to reproduce the same issue I have with the HP on the Dell.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
tags: added: trusty utopic vivid wily
Revision history for this message
Federico Leoni (effelle-gmail) wrote :

I've made another test on a Dell 1545 with an Intel GM45 chipset. This notebook is using the i8042 to identify devices but no delay at all. Again seems the issue is just with HP NOtebook.
What can I do to help?

penalvch (penalvch)
summary: - 16.04: i8042 need to start early after grub
+ [HP Pavilion dv2910us Entertainment Notebook PC] i8042 need to start
+ early after grub
Changed in linux (Ubuntu):
importance: Medium → Low
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Federico Leoni (effelle-gmail) wrote :

Christopher, sorry for the delay but I completely missed your last messages.

My bios is the latest version:

F.2D 08/26/2008

And the issue is still present with any *buntu I've tried.

Changed in linux (Ubuntu):
status: Expired → Confirmed
tags: added: bios-updated-f.2d
removed: bios-outdated-f.2d
Revision history for this message
penalvch (penalvch) wrote :

Federico Leoni, to keep this relevant to upstream, one would want to periodically check for, and test the latest mainline kernel (now 4.11-rc1) as it is released.

Could you please advise?

Changed in linux (Ubuntu):
importance: Low → Medium
status: Confirmed → Incomplete
penalvch (penalvch)
tags: added: latest-bios-f.2d
removed: bios-updated-f.2d
Revision history for this message
Federico Leoni (effelle-gmail) wrote :

Tested (even with broken wifi drivers)

4.11.0-041100rc1-generic #201703051731 SMP Sun Mar 5 22:34:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Issue still present.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-mainline-4.11rc1
penalvch (penalvch)
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Does your touchpad/trackpoint work in this 10 seconds?

Revision history for this message
Federico Leoni (effelle-gmail) wrote :

Yes, the touchpad works just fine (see videos on OP).

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

Have you tried various quirks on i8042 and atkbd? Like i8042.kbdreset=1 or atkbd.reset=1?

Revision history for this message
Federico Leoni (effelle-gmail) wrote :

i8042.kbdreset=1, i8042.reset and i8042.nomux=1 with no luck.
I don't remember if I've tested atkbd, but I can give a new spin of boot options tomorrow just to be sure.

Revision history for this message
Federico Leoni (effelle-gmail) wrote :

Finally I got the time to test (with a second SSD just to be sure) this notebook with some quirks.
So far, the quirks I've found and tested are:

i8042.kbdreset
i8042.reset
i8042.nomux
i8042.dumbkbd
i8042.direct
i8042.noaux (irrelevant but tested anyway)
i8042.nokbd (completely kill the keyboard)
i8042.noloop
i8042.unlock
atkbd.reset

If you folks knows any other quirks, please share them here, thanks.

tags: added: kernel-bug-exists-mainline-4.12.3
removed: kernel-bug-exists-mainline-4.11rc1
Revision history for this message
Federico Leoni (effelle-gmail) wrote :

I've created a script for lightDM to check the state of the keyboard with xinput: it starts when X is loaded (tested with display-setup-script and greeter-setup-script options) and check the state of the internal keyboard then create a txt in my home.
The keyboard is correctly identified from the script but still is unusable for 10-15 seconds.

Here's the script I've used:

#!/bin/bash
xinput query-state 10 >/home/effe.state.txt # check if KeyClass is up
xinput float 10 && xinput reattach 10 3 #try to force the keyboard on

Hope it helps.

Revision history for this message
Filipe Fernandes (fernandes-fd) wrote :

I'm having the same issue on my Lenovo T430s using Ubuntu 16.04.3, except that my internal keyboard works just fine, it's my external USB keyboard that has the issue.

Same symptoms though; as soon as lightdm starts up (after having entered the password via plymouth to decrypt and mount the hard-drive), the external keyboard is completely unresponsive for about 15 seconds, after which the keyboard starts to work and I can enter my credentials.

I'll try to reproduce what Frederico had already tested to see if I can resolve the above issue.

Revision history for this message
Federico Leoni (effelle-gmail) wrote :

Filipe,
as far as I can see you're having issue with usbhid module, not with i8042. But since you get a very similar issue could be very related to my issue. Good luck!

To post a comment you must log in.
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.