linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mouse and keyboard freeze on Ivy Bridge platform
       [not found] ` <551981935.271757401.1349247690620.JavaMail.root-J/s0bdte1BApj9y2c1zofRh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
@ 2012-10-03  7:40   ` sebastien.dinot-GANU6spQydw
       [not found]     ` <181608016.271891744.1349250048886.JavaMail.root-J/s0bdte1BApj9y2c1zofRh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: sebastien.dinot-GANU6spQydw @ 2012-10-03  7:40 UTC (permalink / raw)
  To: linux-usb-u79uwXL29TY76Z2rM5mHXA
  Cc: Alan Stern, linux-input-u79uwXL29TY76Z2rM5mHXA,
	689368-61a8vm9lEZVf4u+23C9RwQ

Hi,

I am encountering random keyboard and mouse freezes which can only be resolved by a hard reset (by pushing the power switch of the computer case).

I have this frequent and irritating issue with two differents Ivy Bridge platforms: 

1. Processor:   Intel Core i5 3450 (IGP HD 2500)
   Motherboard: MSI Z77A-G43 (with uptodate BIOS)
   
2. Processor:   Intel Core i5 3570K (IGP HD 4000)
   Motherboard: ASUS P8Z77-V LX (with uptodate BIOS)

I use Debian on these platforms and I tried several Linux kernels:
  
  * linux-image-3.2.0-3-amd64   (package from Debian testing)
  * linux-image-3.4-trunk-amd64 (package from Debian experimental)
  * linux-image-3.5-trunk-amd64 (package from Debian experimental)

I pointed out this bug to the Debian kernel team:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689368

The mouse and keyboard are both USB devices and it seems that the bug is coming from the echci-hcd module:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689368#24

I attached the dmesg output and the kern.log file to my first message to Debian:

* http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=35;filename=dmesg.20121001-231244;att=1;bug=689268
* http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=35;filename=kern.log.20121001-232320.gz;att=2;bug=689268

As mentioned to the Debian maintainers, this bug is very frequent (I had up to four freezes in an hour) and my PC are really unusable!

Can I run additional tests or give you additional informations to help you resolve this painful bug?

Sebastien

-- 
Sébastien Dinot, sebastien.dinot-GANU6spQydw@public.gmane.org
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Mouse and keyboard freeze on Ivy Bridge platform
       [not found]     ` <181608016.271891744.1349250048886.JavaMail.root-J/s0bdte1BApj9y2c1zofRh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
@ 2012-10-03 14:40       ` Alan Stern
  2012-10-03 19:44         ` Jonathan Nieder
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Stern @ 2012-10-03 14:40 UTC (permalink / raw)
  To: sebastien.dinot-GANU6spQydw
  Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA, 689368-61a8vm9lEZVf4u+23C9RwQ

On Wed, 3 Oct 2012 sebastien.dinot-GANU6spQydw@public.gmane.org wrote:

> Hi,
> 
> I am encountering random keyboard and mouse freezes which can only be
> resolved by a hard reset (by pushing the power switch of the computer
> case).

> The mouse and keyboard are both USB devices and it seems that the bug
> is coming from the echci-hcd module:

> Can I run additional tests or give you additional informations to
> help you resolve this painful bug?

Please build a kernel with CONFIG_USB_DEBUG enabled.  When a hang
occurs, get a list of hang tasks (Alt-SysRq-w probably won't work, but
"echo w >/proc/sysrq-trigger" from a network login should).  Then send
the dmesg output

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Mouse and keyboard freeze on Ivy Bridge platform
  2012-10-03 14:40       ` Alan Stern
@ 2012-10-03 19:44         ` Jonathan Nieder
       [not found]           ` <20121003194402.GB23195-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Nieder @ 2012-10-03 19:44 UTC (permalink / raw)
  To: sebastien.dinot; +Cc: Alan Stern, linux-usb, linux-input

Alan Stern wrote:
> On Wed, 3 Oct 2012 sebastien.dinot@free.fr wrote:

>> I am encountering random keyboard and mouse freezes which can only be
>> resolved by a hard reset (by pushing the power switch of the computer
>> case).
[...]
> Please build a kernel with CONFIG_USB_DEBUG enabled.  When a hang
> occurs, get a list of hang tasks (Alt-SysRq-w probably won't work, but
> "echo w >/proc/sysrq-trigger" from a network login should).  Then send
> the dmesg output

Sebastien: for reference, here's a way to build a kernel with
CONFIG_USB_DEBUG enabled.

	# prerequisites
	apt-get install git build-essential

	# get the kernel history, if you don't already ahve it
	git clone \
	  git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

	# configure
	cd linux
	cp /boot/config-$(uname -r) .config; # current configuration
	scripts/config --disable DEBUG_INFO
	make localmodconfig; # optional: minimize configuration
	scripts/config --enable USB_DEBUG

	# build, test
	make deb-pkg; # can use -j<num> for parallel build
	dpkg -i ../<name of package>; # as root
	reboot

Thanks,
Jonathan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Mouse and keyboard freeze on Ivy Bridge platform
       [not found]           ` <20121003194402.GB23195-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
@ 2012-10-04 19:09             ` Sébastien Dinot
  0 siblings, 0 replies; 9+ messages in thread
From: Sébastien Dinot @ 2012-10-04 19:09 UTC (permalink / raw)
  To: Jonathan Nieder
  Cc: Alan Stern, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA

Hi,

Jonathan Nieder a écrit :
> Sebastien: for reference, here's a way to build a kernel with
> CONFIG_USB_DEBUG enabled.

Thank you for these useful instructions, I had not compiled a kernel for
some years.

Sébastien

-- 
Sébastien Dinot, sebastien.dinot-GANU6spQydw@public.gmane.org
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Mouse and keyboard freeze on Ivy Bridge platform
       [not found] ` <20121004194347.GB6927-RqwYBe9jBbFeoWH0uzbU5w@public.gmane.org>
@ 2012-10-04 20:59   ` Alan Stern
  0 siblings, 0 replies; 9+ messages in thread
From: Alan Stern @ 2012-10-04 20:59 UTC (permalink / raw)
  To: Sébastien Dinot
  Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA, 689368-61a8vm9lEZVf4u+23C9RwQ

On Thu, 4 Oct 2012, Sébastien Dinot wrote:

> Hi,
> 
> Alan Stern a écrit :
> > Please build a kernel with CONFIG_USB_DEBUG enabled.
> 
> Done (3.6.0+ kernel)
> 
> > When a hang occurs, get a list of hang tasks (Alt-SysRq-w probably
> > won't work, but "echo w >/proc/sysrq-trigger" from a network login
> > should). Then send the dmesg output
> 
> The mouse and the keyboard froze four times tonight in half an hour :
> 
> - at 20:42:05
> - at 20:53:44
> - at 20:58:21
> - at 21:15:19
> 
> But the SysRq command (executed through a remote SSH connection)
> displayed nothing. :(

No tasks were hung.  That's okay.

> In attachment, you will find the kern.log file.
 
The log file shows lots and lots of low-level communication errors.  
They could be caused by bad cabling or by bad USB hardware in your
computer.  It's unlikely that they were caused by the mouse or
keyboard, because the log shows errors for both of them starting at
exactly the same times.
 
You could try getting a USB-2 hub and attaching your mouse and
keyboard through the hub.  That might help ... or it might not.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Mouse and keyboard freeze on Ivy Bridge platform
  2012-10-04 21:36 Bug#689368: " Sébastien Dinot
@ 2012-10-05 14:23 ` Alan Stern
  2012-10-17 20:13   ` Sébastien Dinot
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Stern @ 2012-10-05 14:23 UTC (permalink / raw)
  To: Sébastien Dinot; +Cc: linux-usb, linux-input, 689368

On Thu, 4 Oct 2012, Sébastien Dinot wrote:

> Alan Stern a écrit :
> > The log file shows lots and lots of low-level communication errors.
> > They could be caused by bad cabling or by bad USB hardware in your
> > computer. It's unlikely that they were caused by the mouse or
> > keyboard, because the log shows errors for both of them starting at
> > exactly the same times.
> 
> In my humble opinion, this issue is not caused by a bad USB hardware
> because I am encountering it with two different motherboards (MSI
> Z77A-G43 and ASUS P8Z77-V LX), both with an uptodate BIOS.

Maybe they have something in common.  I don't know.  All I can do is
explain to you what your kernel log indicates -- and it strongly
indicates a hardware error.  Didn't you notice all those "detected 
XactErr" lines in the log?  There were more than 70000 of them!

> May be it is caused by a bad cabling but my mouse and my keyboard worked
> fine with my previous PC. They are connected to USB2 ports in both
> cases. But to clear up this point, I will try new mouse and keyboard.
> 
> A last question: if it is a cable failure, why does it disappear
> temporarily when I unload then reload the module? I do not have deep
> experience and knowledge of hardware, may be there is a rational
> explanation to it.

That's a good point, and a cable failure indeed seems less likely than
some of the other possibilities (such as a failure of the internal
"rate-matching" hub).

One possible explanation is that an occasional noisy signal (caused by
a slightly faulty cable) triggers a bug in the internal hub, and that
bug causes all communication to fail until the hub is reset when you
reload the module.

> > You could try getting a USB-2 hub and attaching your mouse and
> > keyboard through the hub. That might help ... or it might not.
> 
> Sorry, I do not understand the aim of this operation. Could you explain
> me it?

In addition to what Sarah said, it's possible that your problem is
related to the fact that the keyboard and mouse operate at low speed.  
If you connected them through a hub then that hub would communicate
with the internal hub at high speed, not low speed.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Mouse and keyboard freeze on Ivy Bridge platform
  2012-10-05 14:23 ` Alan Stern
@ 2012-10-17 20:13   ` Sébastien Dinot
  2012-10-17 20:54     ` Jonathan Nieder
  0 siblings, 1 reply; 9+ messages in thread
From: Sébastien Dinot @ 2012-10-17 20:13 UTC (permalink / raw)
  To: Alan Stern; +Cc: linux-usb, linux-input, 689368

Hi,

Alan Stern a écrit :
> In addition to what Sarah said, it's possible that your problem is
> related to the fact that the keyboard and mouse operate at low speed.
> If you connected them through a hub then that hub would communicate
> with the internal hub at high speed, not low speed.

I had no freeze since I bought wireless keyboard and mouse ten days ago.

Obviously, I am satisfied by this happy end but I am surprised too
because my previous keyboard and mouse still work fine with older
hardware...

Jonathan, as far as I am concerned, you can close this bug!

A big thanks to all of you.

Sebastien

-- 
Sébastien Dinot, sebastien.dinot@free.fr
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Mouse and keyboard freeze on Ivy Bridge platform
  2012-10-17 20:13   ` Sébastien Dinot
@ 2012-10-17 20:54     ` Jonathan Nieder
       [not found]       ` <20121017205401.GF12456-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Nieder @ 2012-10-17 20:54 UTC (permalink / raw)
  To: Sébastien Dinot; +Cc: 689368, Alan Stern, linux-usb, linux-input

Hi Sébastien,

Sébastien Dinot wrote:
> Alan Stern a écrit :

>> In addition to what Sarah said, it's possible that your problem is
>> related to the fact that the keyboard and mouse operate at low speed.
>> If you connected them through a hub then that hub would communicate
>> with the internal hub at high speed, not low speed.
>
> I had no freeze since I bought wireless keyboard and mouse ten days ago.
>
> Obviously, I am satisfied by this happy end but I am surprised too
> because my previous keyboard and mouse still work fine with older
> hardware...

Thanks, that's interesting.  If you have time to test connecting the
old keyboard and mouse through a hub, that would still be useful.

Jonathan
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Mouse and keyboard freeze on Ivy Bridge platform
       [not found]       ` <20121017205401.GF12456-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
@ 2012-10-17 21:12         ` Sébastien Dinot
  0 siblings, 0 replies; 9+ messages in thread
From: Sébastien Dinot @ 2012-10-17 21:12 UTC (permalink / raw)
  To: Jonathan Nieder
  Cc: 689368-61a8vm9lEZVf4u+23C9RwQ, Alan Stern,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA

Jonathan Nieder a écrit :
> Thanks, that's interesting.  If you have time to test connecting the
> old keyboard and mouse through a hub, that would still be useful.

Ok, I am going to ask for a hub to my friends and to test my hardware
through it.

Sebastien

-- 
Sébastien Dinot, sebastien.dinot-GANU6spQydw@public.gmane.org
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-10-17 21:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <551981935.271757401.1349247690620.JavaMail.root@zimbra59-e10.priv.proxad.net>
     [not found] ` <551981935.271757401.1349247690620.JavaMail.root-J/s0bdte1BApj9y2c1zofRh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
2012-10-03  7:40   ` Mouse and keyboard freeze on Ivy Bridge platform sebastien.dinot-GANU6spQydw
     [not found]     ` <181608016.271891744.1349250048886.JavaMail.root-J/s0bdte1BApj9y2c1zofRh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
2012-10-03 14:40       ` Alan Stern
2012-10-03 19:44         ` Jonathan Nieder
     [not found]           ` <20121003194402.GB23195-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-10-04 19:09             ` Sébastien Dinot
     [not found] <20121004194347.GB6927@dinot.net>
     [not found] ` <20121004194347.GB6927-RqwYBe9jBbFeoWH0uzbU5w@public.gmane.org>
2012-10-04 20:59   ` Alan Stern
2012-10-04 21:36 Bug#689368: " Sébastien Dinot
2012-10-05 14:23 ` Alan Stern
2012-10-17 20:13   ` Sébastien Dinot
2012-10-17 20:54     ` Jonathan Nieder
     [not found]       ` <20121017205401.GF12456-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-10-17 21:12         ` Sébastien Dinot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).