[Asus X455LD] Elantech touchpad stops working after suspend

Bug #1490130 reported by Harris Anggara
60
This bug affects 11 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

i have asus a455ld i5 5200u running kubuntu 15.04 with kernel 4.0.8-040008-generic.
touchpad is recognized as elantech version 4. everything was fine until my notebook go to suspend and resume without touchpad working.
I tried :
modprobe -r psmouse
modprobe psmouse

it only work before suspend.
execute those commands after resume from suspend is not working.

the last thing i tried is this.

when i use this command before suspend :

insmod /lib/modules/4.0.8-040008-generic/kernel/drivers/input/mouse/psmouse.ko

these appear in the dmesg:

[ 820.207105] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x381f00)
[ 820.222270] psmouse serio1: elantech: Synaptics capabilities query result 0x10, 0x14, 0x0e.
[ 820.294698] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input146

but when i use the command after suspend, there is nothing any output in the dmesg.

i tried all ubuntu varian and opensuse 13.2 live usb, the result is the same.
but in windows 10, touchpad still active after suspend.
---
ApportVersion: 2.17.2-0ubuntu1.3
Architecture: amd64
CurrentDesktop: MATE
DistroRelease: Ubuntu 15.04
InstallationDate: Installed on 2015-06-20 (69 days ago)
InstallationMedia: Kubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
Package: linux (not installed)
Tags: vivid
Uname: Linux 4.0.8-040008-generic x86_64
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm bumblebee cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ApportVersion: 2.17.2-0ubuntu1.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: blackhole 1460 F.... pulseaudio
 /dev/snd/controlC1: blackhole 1460 F.... pulseaudio
CurrentDesktop: MATE
DistroRelease: Ubuntu 15.04
HibernationDevice: RESUME=UUID=668506c6-5b13-4a29-9c34-956c6c34a45a
InstallationDate: Installed on 2015-06-20 (129 days ago)
InstallationMedia: Kubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 004: ID 13d3:3423 IMC Networks
 Bus 001 Device 002: ID 04f2:b483 Chicony Electronics Co., Ltd
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: ASUSTeK COMPUTER INC. X455LDB
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-28-generic root=UUID=4318cf1f-564c-47ff-8b0c-f3acf77aa34f ro quiet splash i915.enable_ips=0 vt.handoff=7
ProcVersionSignature: Ubuntu 3.19.0-28.30-generic 3.19.8-ckt5
RelatedPackageVersions:
 linux-restricted-modules-3.19.0-28-generic N/A
 linux-backports-modules-3.19.0-28-generic N/A
 linux-firmware 1.143.3
Tags: vivid
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
Uname: Linux 3.19.0-28-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm bumblebee cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 02/12/2015
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: X455LDB.206
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: X455LDB
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrX455LDB.206:bd02/12/2015:svnASUSTeKCOMPUTERINC.:pnX455LDB:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnX455LDB:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: X455LDB
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1490130

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Harris Anggara (harrisanggara) wrote : JournalErrors.txt

apport information

tags: added: apport-collected vivid
description: updated
Revision history for this message
Harris Anggara (harrisanggara) wrote : ProcEnviron.txt

apport information

Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Re: Elantech touchpad stops working after suspend

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.2 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.2-unstable/

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Harris Anggara (harrisanggara) wrote :

kernel 4.2 doesn't fix this issue.

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

this issue start happening since i bought this laptop and installed ubuntu 15.04 on this. i also tried ubuntu 14.04 but this issue still exist.
i dont remember how many kernel i tried but none of them can solve this issue.

note: modprobe psmouse will bring the psmouse module back (checked in lsmod result) but touchpad still freezing.

Revision history for this message
penalvch (penalvch) wrote :

Harris Anggara, while booted into a Ubuntu kernel (not upstream one) please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 1490130

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Daniel Drake (dsdrake) wrote :

My colleague found this on a similar laptop, I suspect it is the same issue: http://marc.info/?l=linux-input&m=144312209020616&w=2

Revision history for this message
Thatoo (thatoo) wrote :

Hello, I have the same problem.
I found this thread, http://ubuntuforums.org/showthread.php?t=2182922&page=2 that gave a solution to a similar problem :
create a file here /etc/pm/sleep.d/0000trackpad
sudo gedit /etc/pm/sleep.d/0000trackpad

and add the following
#!/bin/sh
case "$1" in
    suspend|hibernate)
         modprobe -r psmouse ;;
    resume|thaw)
        modprobe psmouse ;;
esac

it didn't work at first because of the double " ; " so I changed it to
#!/bin/sh
case "$1" in
    suspend|hibernate)
        modprobe -r psmouse;
    resume|thaw)
        modprobe psmouse;
esac

and now, the computer refuse to sleep. At least, the touchpad keep working so it does something but I can't make my conputer sleepin...

By the way, if it gives a clue, I can deactivate and activate again the touchpad with the hotkey of my keyboard.

Revision history for this message
Harris Anggara (harrisanggara) wrote :

hello Daniel, thanks for your suggestion. that works ! :)
now i'm using kernel 3.19 with the patch. i changed the DMI_PRODUCT_NAME with X455LDB (because that is my laptop model)
thank you verry much.

hello thatoo, i already tried that and no result. the psmouse module loaded after suspend, but touchpad still not working.

Revision history for this message
penalvch (penalvch) wrote :

Thatoo, it will help immensely if you file a new report via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

Harris Anggara, could you please advise to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1490130/comments/7 ?

Revision history for this message
Thatoo (thatoo) wrote :

@Christopher M. Penalver (penalvch), here is the answer of
ubuntu-bug linux

It appears you are currently running a mainline kernel. It would be better to report this bug upstream at http://bugzilla.kernel.org/ so that the upstream kernel developers are aware of the issue. If you'd still like to file a bug against the Ubuntu kernel, please boot with an official Ubuntu kernel and re-file.

So I file a bug on http://bugzilla.kernel.org/
https://bugzilla.kernel.org/show_bug.cgi?id=105231

Before you read it, I'm sorry to say that I made a mistake, I confuse Elantech and Focaltech.
It seems that my touchpad is a Focaltech not an Elantech but I'm not exactly sure how to know, I've just find out in this file /proc/bus/input/devices .

Regards,

Revision history for this message
Thatoo (thatoo) wrote :

Harris Anggara (harrisanggara), could you explain me with some detail what did you do to make this patch work?
What text did you add?changed?removed? in which file (I can't file any drivers/input/serio/i8042.c)?
And how can I know what I should replace X455LDB for?

Regards,

Revision history for this message
Thatoo (thatoo) wrote :

sorry, I meant I can't find any "drivers/input/serio/i8042.c" file.

Revision history for this message
Harris Anggara (harrisanggara) wrote :

Hello thatoo, i compiled the kernel for myself with the patch that given by daniel. this is the instruction i followed https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
"drivers/input/serio/i8042.c" file only exists on the kernel source.
lines with "+" at first character are the patch that you should modify or add to "drivers/input/serio/i8042.c" file.
to identify your laptop model you can run
sudo dmidecode | grep Product\ Name

btw, i'm sorry for my english, not my native language.

Revision history for this message
Harris Anggara (harrisanggara) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
Harris Anggara (harrisanggara) wrote : CRDA.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : IwConfig.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : JournalErrors.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : Lspci.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : ProcEnviron.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : ProcModules.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : PulseList.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : RfKill.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : UdevDb.txt

apport information

Revision history for this message
Harris Anggara (harrisanggara) wrote : WifiSyslog.txt

apport information

Revision history for this message
penalvch (penalvch) wrote : Re: Elantech touchpad stops working after suspend

Harris Anggara, could you please test the latest upstream kernel available from the very top line at the top of the page from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D (the release names are irrelevant for testing, and please do not test the daily folder)? Install instructions are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds . This will allow additional upstream developers to examine the issue.

If the latest kernel did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this issue is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at the bottom of the report description:
kernel-fixed-upstream
kernel-fixed-upstream-X.Y-rcZ

Where X, Y, and Z are numbers corresponding to the kernel version.

If the mainline kernel does not fix the issue, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-X.Y-rcZ

Please note, an error to install the kernel does not fit the criteria of kernel-bug-exists-upstream.

Once testing of the latest upstream kernel is complete, please mark this report's Status as Confirmed. Please let us know your results.

Thank you for your understanding.

Revision history for this message
Thatoo (thatoo) wrote :

Thank you so much Harris Anggara (harrisanggara), it works for me with the kernel 4.2 for ubuntu 14.04. No drivers needed and I can suspend my computer.

Revision history for this message
Thatoo (thatoo) wrote :

I had to change DMI_PRODUCT_NAME with K501LX by the way.

Revision history for this message
Harris Anggara (harrisanggara) wrote :

Christopher M. Penalver (penalvch) , i tried kernel 4.3 and still can not use the touchpad after suspend.
i heard dell xps 13 developer edition also had this issue, but they already fixed that by provide .deb package.

tags: added: kernel-bug-exists-upstream-4.3
Revision history for this message
penalvch (penalvch) wrote :

Harris Anggara, could you please capture the missing information following https://wiki.ubuntu.com/DebuggingKernelSuspend .

Revision history for this message
Wladimir Mutel (mwg) wrote :

I have Asus X302LA notebook, and 'modprobe -r psmouse' followed by 'modprobe psmouse' makes its touchpad die off even without doing pm-suspend
Also I see in dmesg that ETPS/2 Elantech touchpad is initially created as /devices/platform/i8042/serio1/input/input5, and after module reload, it is recreated as .../input292 (but only after first module re-probe, next times nothing happens at all)
The script in /etc/pm/sleep.d apparently does not do anything (probably need to re-test it after a fresh boot)

Revision history for this message
Wladimir Mutel (mwg) wrote :

some records from my dmesg :

model code and BIOS version :
DMI: ASUSTeK COMPUTER INC. X302LA/X302LA, BIOS X302LA.203 04/20/2015

i8042/serio/psmouse/elantech lines :
i8042: PNP: PS/2 Controller [PNP030b:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x381f00)
psmouse serio1: elantech: Synaptics capabilities query result 0x10, 0x14, 0x0e.
psmouse serio1: elantech: Elan sample query result 00, 23, 64
input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input5

after manual mod-reprobe without pm-suspend :
psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x381f00)
psmouse serio1: elantech: Synaptics capabilities query result 0x10, 0x14, 0x0e.
psmouse serio1: elantech: Elan sample query result 00, 23, 64
input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input292

(then touchpad dies off)

$ ls -l /etc/pm/sleep.d/05_elantech
-rwxr-xr-x 1 root root 128 лис 22 20:33 /etc/pm/sleep.d/05_elantech

$ cat /etc/pm/sleep.d/05_elantech
#!/bin/sh
case "$1" in
    suspend|hibernate)
         modprobe -r psmouse ;;
    resume|thaw)
        modprobe psmouse ;;
esac

after initial boot and pm-suspend : touchpad dies off, no records about its re-detection appear in dmesg

now preparing to try a patch posted to linux-input mail list referred to at #8

Revision history for this message
penalvch (penalvch) wrote :

Wladimir Mutel, it will help immensely if you filed a new report via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

Revision history for this message
Wladimir Mutel (mwg) wrote :
Marco Russo (russomarco)
description: updated
Revision history for this message
Marco Russo (russomarco) wrote :

Harris Anggara, can you please write how the "drivers/input/serio/i8042.c" file has to look after the changes (or upload your version)? I don't exactly understand how to apply the patch provided by Daniel.

Revision history for this message
Marco Russo (russomarco) wrote :

And also what to do after to install the new modified kernel.

Revision history for this message
Erik Hoekstra (hoekstra) wrote :

Funny thing.

Reboot Ubuntu, don't login. Let the device go to hibernate/sleep.

After awaking the device the mouse still works. So this seems to only happen, after a user logged in.

Revision history for this message
Harris Anggara (harrisanggara) wrote :

Hei Christopher M. Penalver (penalvch), i'm sorry i can't give any log file or test anything that takes some times since i have a lot of project to do with this notebook.

Revision history for this message
Mihkel Tõnnov (v6lur) wrote :

Patch from #8 solved this issue for me on Asus K501LX with Mageia, kernel 4.4.8.

Revision history for this message
Mihkel Tõnnov (v6lur) wrote :
Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :

add a me too here. tried all kernel including 4.7.0

trackpad works after a resume, however it doesn't work after hibernating.

Laptop is Gigabyte Aero 14. Elantech trackpad.

Revision history for this message
penalvch (penalvch) wrote :

Jean-Yves Avenard, it will help immensely if you filed a new report with the Ubuntu repository kernel (not mainline/upstream) via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Jean-Yves Avenard (jyavenard) wrote :
Revision history for this message
Marcos Paulo de Souza (marcospsouza) wrote :

Linus just picked the today's input PR with a fix for this problem for A455LD, X455LDB, K501LB, K501LX and X302LA.

Can you please check this patchset: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=689f891c980949d3eb64f61651db53cb347e0a13 ?

If you have a different model, that needs to be included is this list, please tell us here in the kernel bug: https://bugzilla.kernel.org/show_bug.cgi?id=107971

Please, let me know if this fixes your problem.

Thanks!

Revision history for this message
Harris Anggara (harrisanggara) wrote :

i will try it and report the result as soon as posible. thank you very much.

Revision history for this message
Harris Anggara (harrisanggara) wrote :

I just cloned and compiled the latest commit. I can confirm it works and my touchpad problem is solved without applying any patch. Thank you very much.

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
penalvch (penalvch) wrote :

Harris Anggara, to advise, an upstream patch working for you wouldn't fit the definition of Fix Released for linux (Ubuntu) as per https://wiki.ubuntu.com/Bugs/Status .

Despite this, it would be helpful to confirm if the patch noted by Marcos Paulo de Souzas indeed fixed your issue. Instructions are available via https://wiki.ubuntu.com/Kernel/KernelBisection#Testing_a_newly_released_patch_from_upstream .

Could you please advise?

Changed in linux (Ubuntu):
status: Fix Released → Incomplete
tags: added: kernel-fixed-upstream needs-reverse-bisect
tags: removed: kernel-bug-exists-upstream
Revision history for this message
Ivnitskii Andrei (ivnitsky-a) wrote :

Hi! Same problem. I install kernel 4.8 in Ubuntu 16.04 (from official repos) and problem solved! Try this too.

Revision history for this message
Wladimir Mutel (mwg) wrote :

It should have been fixed with kernel package v. 4.8.0-27 and later

Revision history for this message
Sergey Zolotarev (szx) wrote :

Same problem with ASUS K501UQ on 17.10. I don't see this model in the list of "matches" in the patch, so I guess I should add it manually and see if that works.

Revision history for this message
penalvch (penalvch) wrote :

Sergey Zolotarev, it will help immensely if you use the computer the problem is reproducible with, and provide necessary debugging logs by filing a new report with Ubuntu via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

summary: - Elantech touchpad stops working after suspend
+ [Asus X455LD] Elantech touchpad stops working after suspend
Revision history for this message
Marcos Paulo de Souza (marcospsouza) wrote :

I think the bug was fixed since the patch changed over time and now it looks for all ASUS laptops in order to skip selftests:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=77b425399f6d5f1b04c58738bc10ca6decb10c9a

Sergey Zolotarev, can you please test again with a recent kernel and tell us if the issue was fixed? It should work with every modern ASUS laptop, so everyone who commented in this bug, please test against a newer kernel release.

Thanks

penalvch (penalvch)
tags: added: bios-outdated-208 needs-upstream-testing
Norbert (nrbrtx)
tags: removed: vivid
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.