Created attachment 894419 [details]
Fix touchscreen/touchpad/suspend/als and add zram for kernel 3.14.x
Description of problem:
Since kernel 3.14.2 (including .3), suspend is broken on the Acer C720P or C720; it causes a hard reset when opening the screen.
Version-Release number of selected component (if applicable):
3.14.2 and 3.14.3
close and open the screen. Works everytime
Steps to Reproduce:
1.close the screen
2.open the screen
3.the computer exhibit a hard reset
suspend should work
This patch is the cause of the issue:
Reverting it fix the issue.
Relevant parts of the script fixing this issue:
# Fix suspend by reverting drivers/char/tpm/tpm_ppi.c to kernel 3.13 behavior
wget -O - https://github.com/torvalds/linux/commit/1569a4c4ceba.patch | patch -p1 -R
mv Makefile Makefile.orig
echo 'KERNELVERSION = '$archkernver'
obj-m += tpm.o
tpm-y := tpm-interface.o tpm-dev.o tpm-sysfs.o
tpm-y += tpm_ppi.o
tpm-y += tpm_eventlog.o tpm_acpi.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
$(MAKE) -C $(KDIR) M=$(PWD) modules' > Makefile
make -C /lib/modules/$archkernver/build M=$PWD modules
mv Makefile.orig Makefile
mkdir -p /lib/modules/$archkernver/kernel/drivers/char/tpm/ && cp drivers/char/tpm/tpm.ko /lib/modules/$archkernver/kernel/drivers/char/tpm/
Grub must also be updated with those options:
in /etc/default/grub, add:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash tpm_tis.force=1 tpm_tis.interrupts=0"
# grub2-mkconfig -o /boot/grub2/grub.cfg
"tpm_tis.interrupts=0" is the necessary part. As my spare time is rare, I've not tested removeing the other options.
Reference for who had find the fix:
Posts #195 and #208
There's actually a fix for this posted. I'll try and get a scratch-build done with the fix included later today. See:
Upstream bug where the fiX was found:
I'll give a try to this fix when I've got some spare time for inclusion in my script, until it appears in 3.15 in Fedora.
Yannick, did you get a chance to try the patch? I did a scratch build but forgot to include a link to it here and have since lost it.
This should be fixed with:
Author: Rafael J. Wysocki <email@example.com>
Date: Mon May 12 01:13:28 2014 +0200
ACPI / TPM: Fix resume regression on Chromebooks
commit f759546498d820670934c901a2fdf1ce948d2e5c upstream.
which is in 3.14.6.
I tested kernel 3.14.6 and I confirm this issue is now closed. Thank you guys!