Bug 766339

Summary: keyboard disabled after resume from suspend
Product: [Fedora] Fedora Reporter: Stuart D Gathman <stuart>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Bill Nottingham <notting>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: dennis, gansalmon, itamar, jforbes, jonathan, kernel-maint, madhu.chinakonda, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: Work around with atkbd.reset kernel option
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-14 21:05:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Stuart D Gathman 2011-12-11 18:58:45 UTC
Description of problem:
Built-in keyboard is dead after resuming from suspend.  Plugging in a USB keyboard after resume works, and allows rebooting the system.  This is not acceptable for a laptop, of course.  A USB keyboard plugged in *before* suspend is also disabled after resume.  However, removing and reinserting the keyboard enables it again.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. suspend
2. resume
3. try to type password
  
Actual results:
internal keyboard is completely dead after resume

Expected results:
internal keyboard works normally after resume

Additional info:
Sony VAIO PCG-3E2L.  

I suspect this could be just a matter of adding a command to a resume script.  But I couldn't figure out which component has the internal keyboard driver.

Comment 1 Stuart D Gathman 2011-12-11 20:20:22 UTC
Some googling suggests that this might be a regression in i8042.c.  There doesn't seem to be any command line way to reset the keyboard controller.

http://osdir.com/ml/kernel-team/2010-09/msg00107.html

Comment 2 Stuart D Gathman 2011-12-12 17:20:39 UTC
Changing component to kernel because I think the keyboard driver needs to reset the keyboard controller when resuming from suspend (even though ACPI BIOS is supposed to do so), on the principle that it won't hurt and lots of laptops have broken ACPI.  Maybe a kernel command line option?

Comment 3 Stuart D Gathman 2011-12-16 01:08:28 UTC
Workaround: hibernate works.

Comment 4 Stuart D Gathman 2011-12-30 06:26:18 UTC
I just discovered that there is already a kernel command line option: atkbd.reset.  Just add this to grub.conf or grub2.cfg (and /etc/default/grub in GRUB_CMDLINE_LINUX for grub2) and suspend works.  (You have to reboot with this option before suspend works.)  Since this is an effective workaround, the severity should be lowered - but I don't have permission.

Comment 5 Dave Jones 2012-03-22 17:02:45 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.

Comment 6 Dave Jones 2012-03-22 17:06:03 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.

Comment 7 Dave Jones 2012-03-22 17:17:07 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.

Comment 8 Stuart D Gathman 2012-03-23 20:45:40 UTC
It will be a few days - as the laptop in question is at my daughters house.  I assume that the equivalent of atkbd.reset is now the default?

Comment 9 Dave Jones 2012-10-23 15:29:19 UTC
# Mass update to all open bugs.

Kernel 3.6.2-1.fc16 has just been pushed to updates.
This update is a significant rebase from the previous version.

Please retest with this kernel, and let us know if your problem has been fixed.

In the event that you have upgraded to a newer release and the bug you reported
is still present, please change the version field to the newest release you have
encountered the issue with.  Before doing so, please ensure you are testing the
latest kernel update in that release and attach any new and relevant information
you may have gathered.

If you are not the original bug reporter and you still experience this bug,
please file a new report, as it is possible that you may be seeing a
different problem. 
(Please don't clone this bug, a fresh bug referencing this bug in the comment is sufficient).

Comment 10 Stuart D Gathman 2012-10-24 03:00:21 UTC
The Sony laptop is now given to someone in South America.  Sorry I can't retest.  If it only affects a few models, having the kernel option available is a perfectly fine workaround.  More a special config than a workaround.