Elantech v4 trackpad no longer working after resuming for hibernate

Bug #1624339 reported by Jean-Yves Avenard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

This is a Gigabyte AERO 14 laptop (http://www.gigabyte.com.au/products/product-page.aspx?pid=5902#kf)

When laptop goes into hibernate mode, the trackpad will no longer work. Rebooting will not make the trackpad work again.
The only work around I've found so far is to reboot into windows and then reboot into ubuntu.

It is similar to bug 1490130; however here it's with hibernating and can't be recovered with rebooting (additionally, the kernel patch provided there doesn't work)
Suspend works just fine.

*** before hibernate

I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
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=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:01/PNP0C0D:00/input/input2
U: Uniq=
H: Handlers=event1
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:01/PNP0C0E:00/input/input3
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=3
B: KEY=4000 0 0

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:01/input/input4
U: Uniq=
H: Handlers=kbd event3
B: PROP=0
B: EV=3
B: KEY=4000 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input5
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input6
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input8
U: Uniq=
H: Handlers=kbd event6
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0011 Vendor=0002 Product=000e Version=0000
N: Name="ETPS/2 Elantech Touchpad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input7
U: Uniq=
H: Handlers=mouse1 event8
B: PROP=5
B: EV=b
B: KEY=e420 10000 0 0 0 0
B: ABS=661800011000003

I: Bus=0003 Vendor=1044 Product=7a06 Version=0110
N: Name="E-Signal Keyboard"
P: Phys=usb-0000:00:14.0-5/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:1044:7A06.0002/input/input10
U: Uniq=
H: Handlers=sysrq kbd leds event9
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=1044 Product=7a06 Version=0110
N: Name="E-Signal Keyboard"
P: Phys=usb-0000:00:14.0-5/input1
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:1044:7A06.0003/input/input11
U: Uniq=
H: Handlers=kbd mouse2 event10 js0
B: PROP=0
B: EV=10001f
B: KEY=3f0003007f 0 0 483ffff17aff32d bf54444600000000 1f0001 130f938b17c000 677bfad9415fed 9ed68000004400 10000002
B: REL=1c0
B: ABS=100000003
B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input12
U: Uniq=
H: Handlers=event11
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input13
U: Uniq=
H: Handlers=event12
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input14
U: Uniq=
H: Handlers=event13
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=8"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input15
U: Uniq=
H: Handlers=event14
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0003 Vendor=04f2 Product=b43b Version=6665
N: Name="Chicony USB 2.0 Camera"
P: Phys=usb-0000:00:14.0-9/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/input/input16
U: Uniq=
H: Handlers=kbd event15
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0003 Vendor=046d Product=c077 Version=0111
N: Name="Logitech USB Optical Mouse"
P: Phys=usb-0000:00:14.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C077.0005/input/input17
U: Uniq=
H: Handlers=mouse0 event7
B: PROP=0
B: EV=17
B: KEY=ff0000 0 0 0 0
B: REL=103
B: MSC=10

jyavenard@jyaaeroubuntu:~$ sudo pm-hibernate

jyavenard@jyaaeroubuntu:~$ cat /proc/bus/input/devices
I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
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=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:01/PNP0C0D:00/input/input2
U: Uniq=
H: Handlers=event1
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:01/PNP0C0E:00/input/input3
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=3
B: KEY=4000 0 0

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:01/input/input4
U: Uniq=
H: Handlers=kbd event3
B: PROP=0
B: EV=3
B: KEY=4000 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input5
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input6
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input8
U: Uniq=
H: Handlers=kbd event6
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0003 Vendor=1044 Product=7a06 Version=0110
N: Name="E-Signal Keyboard"
P: Phys=usb-0000:00:14.0-5/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:1044:7A06.0002/input/input10
U: Uniq=
H: Handlers=sysrq kbd leds event9
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=1044 Product=7a06 Version=0110
N: Name="E-Signal Keyboard"
P: Phys=usb-0000:00:14.0-5/input1
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:1044:7A06.0003/input/input11
U: Uniq=
H: Handlers=kbd mouse2 event10 js0
B: PROP=0
B: EV=10001f
B: KEY=3f0003007f 0 0 483ffff17aff32d bf54444600000000 1f0001 130f938b17c000 677bfad9415fed 9ed68000004400 10000002
B: REL=1c0
B: ABS=100000003
B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input12
U: Uniq=
H: Handlers=event11
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input13
U: Uniq=
H: Handlers=event12
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input14
U: Uniq=
H: Handlers=event13
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=8"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input15
U: Uniq=
H: Handlers=event14
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0003 Vendor=04f2 Product=b43b Version=6665
N: Name="Chicony USB 2.0 Camera"
P: Phys=usb-0000:00:14.0-9/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/input/input16
U: Uniq=
H: Handlers=kbd event15
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0003 Vendor=046d Product=c077 Version=0111
N: Name="Logitech USB Optical Mouse"
P: Phys=usb-0000:00:14.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C077.0005/input/input17
U: Uniq=
H: Handlers=mouse0 event7
B: PROP=0
B: EV=17
B: KEY=ff0000 0 0 0 0
B: REL=103
B: MSC=10

So after hibernating, the Eland trackpad no longer appears into the list.

Also tried with 4.7.3 kernel-ppa and it makes no difference.

WORKAROUND: Enable nvidia GPU in BIOS, then restore from hibernate.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-38-generic 4.4.0-38.57
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jyavenard 2241 F.... pulseaudio
CurrentDesktop: Unity
Date: Fri Sep 16 21:03:38 2016
HibernationDevice: RESUME=UUID=072f86b0-2eb6-43b8-9be4-a2c431d58eb7
InstallationDate: Installed on 2016-07-22 (56 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
MachineType: GIGABYTE Aero 14
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-4.4.0-38-generic root=UUID=553bcfba-99a2-4a1f-b286-a8ce44f2dec7 ro rootflags=subvol=@ quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-38-generic N/A
 linux-backports-modules-4.4.0-38-generic N/A
 linux-firmware 1.157.4
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/08/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: FB07
dmi.board.asset.tag: Default string
dmi.board.name: Aero 14
dmi.board.vendor: GIGABYTE
dmi.board.version: Default string
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 9
dmi.chassis.vendor: Default string
dmi.chassis.version: y.y
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrFB07:bd09/08/2016:svnGIGABYTE:pnAero14:pvrDefaultstring:rvnGIGABYTE:rnAero14:rvrDefaultstring:cvnDefaultstring:ct9:cvry.y:
dmi.product.name: Aero 14
dmi.product.version: Default string
dmi.sys.vendor: GIGABYTE

Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
summary: - Trackpad no longer working after resuming for hibernate
+ Elantech v4 trackpad no longer working after resuming for hibernate
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 :

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.8 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.8-rc6

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :

this is a new machine.

It has done so right from the start, and despite all my attempts I could never get it going.

Windows 10 anniversary edition had a similar problem when it got released but that got quickly fixed by a BIOS update. So I'm not sure if it's related at all.

BTW, the only way to get the ubuntu installer to boot on that machine was to disable the nvidia GPU and only use the intel one.

I'll try 4.8 kernel

Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :

jyavenard@jyaaeroubuntu:~$ uname -a
Linux jyaaeroubuntu 4.8.0-040800rc6-generic #201609121119 SMP Mon Sep 12 15:21:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
j

same deal...

my swap partition is 16GB (I have 16GB of RAM).
I've installed Fedora 24 and I have the same issue there too (kernel 4.5). Fedora recommends 1.5% the amount of RAM as swapped. Though I can't see how that could cause just the trackpad to stop working

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

Jean-Yves Avenard, could you please provide the missing information from https://wiki.ubuntu.com/DebuggingKernelHibernate ?

tags: added: kernel-bug-exists-upstream-4.8-rc6 latest-bios-fb07
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :

the attached files were produced as follow:

sudo -i

lsmod > lsmod-before.txt
dmesg > dmesg-before.txt
pm-hibernate
lsmod > lsmod-after.txt

echo devices > /sys/power/pm_test
echo platform > /sys/power/disk
echo disk > /sys/power/state
dmesg > /tmp/dmesg-devices-platform.txt

echo core > /sys/power/pm_test
echo platform > /sys/power/disk
echo disk > /sys/power/state
dmesg > /tmp/dmesg-core-platform.txt

echo core > /sys/power/pm_test
echo reboot > /sys/power/disk
echo disk > /sys/power/state
dmesg > /tmp/dmesg-core-reboot.txt

Excepted the trackpad, everything related to hibernation appears to work perfectly. I usually attach an external mouse and in those case the external mouse too stop working. Then it's just a matter of unplugging the mouse, replugging it. But unfortunately, I can't do the same with the trackpad

Revision history for this message
penalvch (penalvch) wrote :

Jean-Yves Avenard, to clarify, when hibernating in all the different ways, the problem remained reproducible?

Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :

Sorry I misread the instructions. I had performed all 3 hibernate susbystems in a row, after doing a full pm-hibernate, at which case the trackpad was already no longer working.

I've redone it following a new reboot (after going into Windows first to re-enable the trackpad)

after doing each of them, the tracpad continue working just fine, so I didn't reboot between each one.

I reattach the files.

sounds like somehow the drivers are missing an init seqquence, something the Windows drivers do.

Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :

I can make the trackpad non working by doing a hard shutdown (holding the power button for about 10s). Following the next reboot, the trackpad will no longer be recognised.
The usual steps of rebooting into Windows first and then back into linux is the only method I've found to make the trackpad work again.

No other ways will make the trackpad work again (no matter how many reboot, full shutdown, hard reset etc..). only booting into windows will make it work again.

somehow the trackpad enters a state that the linux driver module can't get out of

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
penalvch (penalvch) wrote :

Jean-Yves Avenard, to keep this relevant to upstream, one would want check for, and test the latest mainline kernel (now 4.9-rc5) as it is released.

Could you please advise?

tags: added: bios-outdated-fb08 needs-upstream-testing
removed: kernel-bug-exists-upstream latest-bios-fb07
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :

Yes, it still occurs with 4.9-rc5

I have made a discovery however that will help:
The problem only occurs if the nvidia GPU is disabled in the BIOS and only the intel one is active.
If the nvidia adapter is enabled in BIOS, then restoring from hibernate works.

I'm not sure why this bug was marked as incomplete, I provided all requested information.

Changed in linux (Ubuntu):
status: Expired → Incomplete
penalvch (penalvch)
description: updated
tags: added: kernel-bug-exists-upstream-4.9-rc5
removed: kernel-bug-exists-upstream-4.8-rc6
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
Jean-Yves Avenard (jyavenard) wrote :

This is still a problem.

Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :

can this bug be re-opened?

Revision history for this message
penalvch (penalvch) wrote :

Jean-Yves Avenard, to advise, if a bug is marked Expired, it's not considered closed as per:
https://wiki.ubuntu.com/Bugs/Status

Despite this, could you please test the latest mainline kernel (4.10) and advise to the results?

If reproducible, the next step is to gather hibernate debug logs.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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