Bug 142329
Summary: | keyboard misbehavior after APM suspend recovery (on Thinkpad T40) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Satish Balay <balay> | ||||||
Component: | kernel | Assignee: | Dave Jones <davej> | ||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 3 | CC: | alberto.gonzalez.b, barryn, eric_a_benson, jurgen, pfrields, tapani+redhat, wtogami | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2005-07-15 18:15:48 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Satish Balay
2004-12-08 23:12:38 UTC
Created attachment 108159 [details]
lspci, lsmod, dmesg
Also - this 'crash' happens with ACPI as well http://www.redhat.com/archives/fedora-list/2004-December/msg02557.html I've seen this with my T40, APM, and the ipw2100 driver. The first time I've seen it happen was this morning. Still happens with 2.6.9-1.715_FC3 (no madwifi install yet) I'm logged into gnome - and the breakage happened perhaps after 15th (or so) attempt I can continue to login remotely into this machine. Juergen reposted this issue on LKML - and looks like this is an upstream issue (with folks having this problem with SuSE/Debian) - but so far its primarily thinkpads (T40/T41P/T42/X31) http://www.ussg.iu.edu/hypermail/linux/kernel/0412.1/1265.html Maybe this is thinkpad specific (perhaps bios) issue.. I've now updated BIOS on the T40 from 3.08a to 3.13. I've tried suspend/resume with 715 kernel for about 25 times - but couldn't reproduce the error. I'll go back to my normal 3 suspends a day routine - and see if this issue reappears. (and now back to 681 kernel) BTW: BIOS update requires 'Embedded Controller Program' update. I've updated mine from 1.02 to 3.04 (to be consitant with the 3.13-bios requirements - but in the wrong order) Adding this text here - in case others are planning on trying a bios update. Ok - it happened again - this time with 681_FC3 - so the bios updates are not the solution. Hi, I have similar problems with Compaq Evo N600c. It started when I upgraded from FC2 to FC3. BUT!!! The problem solved if you manually download source kernel-2.6.9-1.681_FC3.src.rpm, isntall it and build kernel manually. Here what I did: 1) rpm -ivh kernel-2.6.9-1.681_FC3.src.rpm 2) cd /usr/src/redhat/SPECS 3) rpmbuild -bp --target=i686 kernel-2.6.spec this step only does unpacking the kernel and applying patches. 4) build kernel manually - cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/ - make xconfig (oldconfig) - make bzImage && make modules && make modules_install - cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.9-1.681_custom - mkinitrd /boot/initrd-2.6.9-1.681_custom.img 2.6.9-prep Once installed APM works fine again. I think there is a bug either in a build target or post of FC3 spec file. The kernel is fine, it's certainly FC3 specific bug. Valentin. Hi, strange things happens, even first attempts of using custom build kernel gave working apm system, lately I got still the same problem with apm as before. Valentin Hi, it seems to me I found one solution which works for my laptop, Compaq Evo N600c. I just add atkbd.reset option to FC3 kernel and everything works fine, although I do see the following messages in my logs: Dec 20 23:52:59 localhost kernel: atkbd.c: keyboard reset failed on isa0060/serio1 Dec 20 23:52:59 localhost kernel: atkbd.c: keyboard reset failed on isa0060/serio2 Dec 20 23:52:59 localhost kernel: atkbd.c: keyboard reset failed on isa0060/serio3 Dec 20 23:52:59 localhost apmd[2557]: Normal Resume after 00:00:14 (96% unknown) AC power But I think they correspond to other "optional keyboards" (serio1,2,3) and the one I'm using is assigned as serio0. It would be interesting if other people try this option. Valentin. Valentine (comment #11) must have been mistaken or lucky... giving the kernel the atkbd.reset boot-time option does not solve the problem. I still get the hosed keyboard after some some sleep-wake cycles, usually between 2 and 8. I have had this same problem on waking up from ACPI sleep on a Thinkpad T41p in FC3 with many different kernels. The mouse (Trackpoint) is fine, everything else is fine, but the keyboard generates strings of garbage whenever you touch it. I have noticed that it seems to happen if I touch the keyboard during the wake-up process. If I wait until it is completely awake before touching the keyboard, it is fine, but if I touch a key before then it gets into this state. There may be other ways to trigger the problem but it happens every time when I do this. I have the same problem in an ancient HP Omnibook 4100, which has been running various Linux versions starting with 2.0.something when it was new in 1998, with no apm problems whatsoever. With FC3 the keyboard gets messed up every time after returning from suspend. It's not completely random though, each key seems to produce same effect each time, and as if the key got stuck. E.g., 'a' acts like hitting return and holding it down, 't' is like holding 'z', &c. Mouse continues to work normally. Additional note: I built 2.6.11.5 straight from kernel.org sources and the problem went away. Given Valentin's experience above it may be too early to declare victory, but for now things look good. There is a post on linux-thinkpad list about this bug & a patch. Adding this reference to bugzilla http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/2005-April/025480.html Created attachment 112911 [details]
fix for corrupted keyboard after resume
I can confirm that this patch seems to fix the problem. I can no longer hose the keyboard with many suspend/resumes, even if I bang on some keys right after wakeup starts. I'm including a version of the patch adapted for the latest FC3 kernel (2.6.10-1.770_FC3) SRPM. currently using the above patch from #16 with 2.6.11-1.14_FC3 from http://people.redhat.com/davej/kernels/Fedora/FC3/SRPMS.kernel So far my repeated suspend/resume attempts didn't triger the bug [my previous failure was with modified 2.6.11-1.8_FC3 kernel] An update has been released for Fedora Core 3 (kernel-2.6.12-1.1372_FC3) which may contain a fix for your problem. Please update to this new kernel, and report whether or not it fixes your problem. If you have updated to Fedora Core 4 since this bug was opened, and the problem still occurs with the latest updates for that release, please change the version field of this bug to 'fc4'. Thank you. I've been using the patch from #16 with fedora kernels [all the way to 2.6.11-1.35_FC3] - without a crash since my last report. Looks like this patch is in 2.6.12 [hence in 2.6.12-1.1371_FC3/1372] so I'll venture to say that it will work. Currently using 1371 - will report if the problem strikes again. ok, reopen if it reoccurs. thanks for testing. |