Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old May 15th, 2007   #11
archiesteel
Just Give Me the Beans!
 
archiesteel's Avatar
 
Join Date: May 2005
Beans: 46
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

I connected to my laptop via SSH after it happened again, and looking at the dmesg output I was able to spot these two suspicious candidates:

Code:
[20840.484000] i8042 kbd 00:06: resuming
[20840.484000] pnp: Device 00:06 does not support activation.
[20840.484000] i8042 aux 00:07: resuming
[20840.484000] pnp: Device 00:07 does not support activation.
It seems that the i8042 controller is part of the serio_raw kernel module on Feisty, though trying to stop and restart this module have not help...I'm going to try whitelisting it and see how it goes.

Incidentally, I found this thread (dated from April) on the Linux Kernel Mailing List about resume problems that mentions the i8042 driver:

http://lkml.org/lkml/2007/4/15/81

If this is a kernel issue, let's hope that a Ubuntu backport of the latest kernel will be available soon, because it's not going to be easy to fix without recompiling (and for some here that may not be an option).

Last edited by archiesteel; May 15th, 2007 at 07:55 PM..
archiesteel is offline  
Old May 15th, 2007   #12
archiesteel
Just Give Me the Beans!
 
archiesteel's Avatar
 
Join Date: May 2005
Beans: 46
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

Never mind...I get those messages in dmesg even when the keyboard and touchpad work on resume, so I doubt this is related.

Sorry for the false hopes...I'll post again if I actually find something.
archiesteel is offline  
Old May 16th, 2007   #13
chele
Gee! These Aren't Roasted!
 
chele's Avatar
 
Join Date: Jan 2005
Location: east van
Beans: 180
Ubuntu 9.04 Jaunty Jackalope
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

Quote:
Originally Posted by archiesteel View Post
No love, ...I'm a bit lost as to what to try next...
https://wiki.ubuntu.com/DebuggingKernelSuspend
chele is offline  
Old May 20th, 2007   #14
hpklett
5 Cups of Ubuntu
 
Join Date: Jul 2006
Beans: 16
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

Same computer, same problem. Fix here:

https://bugs.launchpad.net/ubuntu/+s...ort/+bug/23497

I wasn't able to install the package listed, but I looked at the patch and made the changes. The result was bizarre, but then I noticed his note about priority right below the patch. Changing 80 to 40 in the filename as he suggested did the trick.

Summary:
As root, create the following files:

/etc/acpi/resume.d/40-i8042-input.sh
Code:
#!/bin/sh

# Rebind the AT keyboard interface.
if [ -f /sys/bus/platform/drivers/i8042/bind ]; then
  echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind
fi
/etc/acpi/suspend.d/20-i8042-input.sh
Code:
#!/bin/sh

# Unbind the AT keyboard interface.
if [ -f /sys/bus/platform/drivers/i8042/unbind ]; then
  echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind
fi
Set them as executable and you're good to go.
__________________
Dell D620
hpklett is offline  
Old May 20th, 2007   #15
budhe888
5 Cups of Ubuntu
 
Join Date: Sep 2006
Location: Los Angeles, CA
Beans: 17
Ubuntu 9.10 Karmic Koala
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

Wow that worked, thank you!

One small thing however... now whenever I resume, the computer is not locked anymore, it comes up right into my session without having to enter a password (whereas before, it came up on a password entry screen, but with the inputs locked).

It's not a huge deal. Again, thanks.
budhe888 is offline  
Old May 20th, 2007   #16
budhe888
5 Cups of Ubuntu
 
Join Date: Sep 2006
Location: Los Angeles, CA
Beans: 17
Ubuntu 9.10 Karmic Koala
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

disregard that last post. It works fine.
budhe888 is offline  
Old May 21st, 2007   #17
sgarman
Just Give Me the Beans!
 
sgarman's Avatar
 
Join Date: Apr 2005
Location: Portland, OR
Beans: 54
Ubuntu 9.10 Karmic Koala
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

hpklett, thank you SO much for posting this info! I have tried it and it's working so far. Kind of hard to tell for sure given that it's an intermittent problem, but from the Launchpad notes, I think this should do it.

Many thanks!

Scott
__________________
Free Software - It's About Freedom
sgarman is offline  
Old June 17th, 2008   #18
sgarman
Just Give Me the Beans!
 
sgarman's Avatar
 
Join Date: Apr 2005
Location: Portland, OR
Beans: 54
Ubuntu 9.10 Karmic Koala
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

I'm running Hardy on my D620 and would like to note that the fixes mentioned above will not work. I've been perplexed for a while that I've ran into this problem again even though I thought I had a workaround for it. The /etc/acpi/suspend.d and resume.d scripts are no longer run, as Hardy uses the pm-utils package. See the following bugs for more info:

https://bugs.launchpad.net/ubuntu/+s...nux/+bug/83243

https://bugs.launchpad.net/ubuntu/+s....20/+bug/99755

Scott
__________________
Free Software - It's About Freedom
sgarman is offline  
Old June 19th, 2008   #19
sgarman
Just Give Me the Beans!
 
sgarman's Avatar
 
Join Date: Apr 2005
Location: Portland, OR
Beans: 54
Ubuntu 9.10 Karmic Koala
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

Quote:
Originally Posted by sgarman View Post
I'm running Hardy on my D620 and would like to note that the fixes mentioned above will not work. I've been perplexed for a while that I've ran into this problem again even though I thought I had a workaround for it. The /etc/acpi/suspend.d and resume.d scripts are no longer run, as Hardy uses the pm-utils package.
Okay, I finally read up on how pm-utils works, and here is a solution that should work with Hardy.

Create the following file: /etc/pm/sleep.d/25i8042

Code:
#!/bin/bash

case "$1" in
	hibernate|suspend)
		# Unbind the AT keyboard interface.
		if [ -f /sys/bus/platform/drivers/i8042/unbind ]; then
			echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind
		fi
		;;
	thaw|resume) 
		# Rebind the AT keyboard interface.
		if [ -f /sys/bus/platform/drivers/i8042/bind ]; then
			echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind
		fi
		;;
	*)
		;;
esac

exit $?
Make sure this file is executable. There is no need to reboot your computer - your next suspend should work. Please let me know if this works for anyone else.

Scott
__________________
Free Software - It's About Freedom
sgarman is offline  
Old June 22nd, 2008   #20
ryuko2002
First Cup of Ubuntu
 
Join Date: Feb 2006
Beans: 8
Re: Dell D620 - keyboard and mouse freeze sometimes on wake from suspend.

Last character is a "?". Is it right? I just created the file, let's see if it works.
ryuko2002 is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:48 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry