<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Kernel interrupt weirdness?</title>
	<atom:link href="http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/feed" rel="self" type="application/rss+xml" />
	<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness</link>
	<description>Viewpoints on technology, society, and government</description>
	<lastBuildDate>Sun, 05 Feb 2012 03:11:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Amaya</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2330</link>
		<dc:creator>Amaya</dc:creator>
		<pubDate>Wed, 16 Jul 2008 12:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2330</guid>
		<description>Did we file a bug yet? :)

I have also been seeing this, for at least a year, with both usb and ps2 keyboards and it drives me mad.

Thanks for investigating this</description>
		<content:encoded><![CDATA[<p>Did we file a bug yet? :)</p>
<p>I have also been seeing this, for at least a year, with both usb and ps2 keyboards and it drives me mad.</p>
<p>Thanks for investigating this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Goerzen</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2327</link>
		<dc:creator>John Goerzen</dc:creator>
		<pubDate>Mon, 14 Jul 2008 16:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2327</guid>
		<description>Thanks to everyone for all the tips.  It looks like this CONFIG_GROUP_SCHED is the most likely culprit; I will have to try tweaking that and see if it fixes things for me.</description>
		<content:encoded><![CDATA[<p>Thanks to everyone for all the tips.  It looks like this CONFIG_GROUP_SCHED is the most likely culprit; I will have to try tweaking that and see if it fixes things for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rik</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2326</link>
		<dc:creator>Rik</dc:creator>
		<pubDate>Mon, 14 Jul 2008 08:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2326</guid>
		<description>Hi,

I&#039;ve seen this too on Debian systems. Could it be related to the CONFIG_GROUP_SCHED parameter set in the debian kernel configs? It&#039;s not set on the fedora kernels and I haven&#039;t seen this issue there. There are also bug reports with requests to change the settings for CONFIG_GROUP_SCHED in the debian kernel. Maybe they should enable the CGROUPS setting for CONFIG_GROUP_SCHED instead of the per_user setting?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve seen this too on Debian systems. Could it be related to the CONFIG_GROUP_SCHED parameter set in the debian kernel configs? It&#8217;s not set on the fedora kernels and I haven&#8217;t seen this issue there. There are also bug reports with requests to change the settings for CONFIG_GROUP_SCHED in the debian kernel. Maybe they should enable the CGROUPS setting for CONFIG_GROUP_SCHED instead of the per_user setting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Hutchings</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2325</link>
		<dc:creator>Ben Hutchings</dc:creator>
		<pubDate>Sun, 13 Jul 2008 22:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2325</guid>
		<description>XFree86/Xorg certainly used to rely on keyboard hardware repeat. If I unplugged a keyboard and plugged it back in, the effective repeat settings would return to the hardware defaults. Opening and closing GNOME keyboard properties would restore them. So perhaps it&#039;s a recent change in Xorg, not the kernel, that has made keyboard repeat unreliable.</description>
		<content:encoded><![CDATA[<p>XFree86/Xorg certainly used to rely on keyboard hardware repeat. If I unplugged a keyboard and plugged it back in, the effective repeat settings would return to the hardware defaults. Opening and closing GNOME keyboard properties would restore them. So perhaps it&#8217;s a recent change in Xorg, not the kernel, that has made keyboard repeat unreliable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben Fonseca</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2324</link>
		<dc:creator>Ruben Fonseca</dc:creator>
		<pubDate>Sun, 13 Jul 2008 12:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2324</guid>
		<description>I have the same problem too.. It even breaks the sound that I&#039;m listening to, and this is a dual-core 2Ghz, 2Gb RAM machine..

It&#039;s good to see I&#039;m not the only one :-)</description>
		<content:encoded><![CDATA[<p>I have the same problem too.. It even breaks the sound that I&#8217;m listening to, and this is a dual-core 2Ghz, 2Gb RAM machine..</p>
<p>It&#8217;s good to see I&#8217;m not the only one :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skyostil</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2323</link>
		<dc:creator>skyostil</dc:creator>
		<pubDate>Sun, 13 Jul 2008 11:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2323</guid>
		<description>I fixed a similar problem like this: http://unrealvoodoo.org/hiteck/blog/hardware/repeating-key-bug-with-usb-keyboard/</description>
		<content:encoded><![CDATA[<p>I fixed a similar problem like this: <a href="http://unrealvoodoo.org/hiteck/blog/hardware/repeating-key-bug-with-usb-keyboard/" rel="nofollow">http://unrealvoodoo.org/hiteck/blog/hardware/repeating-key-bug-with-usb-keyboard/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Lin</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2322</link>
		<dc:creator>Daniel Lin</dc:creator>
		<pubDate>Sun, 13 Jul 2008 04:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2322</guid>
		<description>Linux-kernel seems to mostly come to the conclusion that this is due to scheduling.  X doesn&#039;t take advantage of hardware keyboard repeats, instead synthesizing keyboard events from state and time.  So something like: X sees &quot;v&quot; pressed, X doesn&#039;t get scheduled for a while, X comes back and sends 30*&quot;v&quot;, then X sees &quot;v&quot; released.</description>
		<content:encoded><![CDATA[<p>Linux-kernel seems to mostly come to the conclusion that this is due to scheduling.  X doesn&#8217;t take advantage of hardware keyboard repeats, instead synthesizing keyboard events from state and time.  So something like: X sees &#8220;v&#8221; pressed, X doesn&#8217;t get scheduled for a while, X comes back and sends 30*&#8221;v&#8221;, then X sees &#8220;v&#8221; released.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Brown</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2321</link>
		<dc:creator>Mark Brown</dc:creator>
		<pubDate>Sat, 12 Jul 2008 21:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2321</guid>
		<description>There&#039;s been some discussion of this issue on linux-kernel (not particularly recently, but in an appropriate timeframe given the kernels currenly in Debian).</description>
		<content:encoded><![CDATA[<p>There&#8217;s been some discussion of this issue on linux-kernel (not particularly recently, but in an appropriate timeframe given the kernels currenly in Debian).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adeodato Simó</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2320</link>
		<dc:creator>Adeodato Simó</dc:creator>
		<pubDate>Sat, 12 Jul 2008 20:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2320</guid>
		<description>&gt; It appears to happen only on multicore machines.

No, it happens on my laptop too, which is not multi-core.</description>
		<content:encoded><![CDATA[<p>> It appears to happen only on multicore machines.</p>
<p>No, it happens on my laptop too, which is not multi-core.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Eisentraut</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2319</link>
		<dc:creator>Peter Eisentraut</dc:creator>
		<pubDate>Sat, 12 Jul 2008 20:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2319</guid>
		<description>Yes, I have also seen this happen.  It appears to happen only on multicore machines.  One explanation I have heard is that after the key is pressed, there is a context switch to a different CPU core and the key release is lost somewhere.  The likelihood of that happening is obviously higher if the machine is busy.</description>
		<content:encoded><![CDATA[<p>Yes, I have also seen this happen.  It appears to happen only on multicore machines.  One explanation I have heard is that after the key is pressed, there is a context switch to a different CPU core and the key release is lost somewhere.  The likelihood of that happening is obviously higher if the machine is busy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2318</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 12 Jul 2008 19:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2318</guid>
		<description>You can try showkey -s (as root), or showkey -k, showkey -m

This will tell you if the problem is in the kernel or in X.

You can also try putting some printk lines in either
drivers/input/keyboard/atkbd.c
drivers/hid/hid-input.c (USB keyboard)

If it is the kernel, these weird problems I think the only way to debug is to use git bisect.  It uses a binary search to narrow down exactly which commit caused the problem.

http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html
http://www.kernel.org/doc/local/git-quick.html

As mentioned in the first link, you can probably cut down on the commits to test by only bisecting in the drivers subdirectory.</description>
		<content:encoded><![CDATA[<p>You can try showkey -s (as root), or showkey -k, showkey -m</p>
<p>This will tell you if the problem is in the kernel or in X.</p>
<p>You can also try putting some printk lines in either<br />
drivers/input/keyboard/atkbd.c<br />
drivers/hid/hid-input.c (USB keyboard)</p>
<p>If it is the kernel, these weird problems I think the only way to debug is to use git bisect.  It uses a binary search to narrow down exactly which commit caused the problem.</p>
<p><a href="http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html" rel="nofollow">http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html</a><br />
<a href="http://www.kernel.org/doc/local/git-quick.html" rel="nofollow">http://www.kernel.org/doc/local/git-quick.html</a></p>
<p>As mentioned in the first link, you can probably cut down on the commits to test by only bisecting in the drivers subdirectory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: feth</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2317</link>
		<dc:creator>feth</dc:creator>
		<pubDate>Sat, 12 Jul 2008 18:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2317</guid>
		<description>I even managed to get letters in random order, some repeated, some suppressed, as my late powerbook&#039;s kernel was stuck in some heavy loops (triggered by an uninvestigated bug related to the &#039;eject&#039; key).</description>
		<content:encoded><![CDATA[<p>I even managed to get letters in random order, some repeated, some suppressed, as my late powerbook&#8217;s kernel was stuck in some heavy loops (triggered by an uninvestigated bug related to the &#8216;eject&#8217; key).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NeefRoel</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2316</link>
		<dc:creator>NeefRoel</dc:creator>
		<pubDate>Sat, 12 Jul 2008 18:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2316</guid>
		<description>I also see this frequently happen. The chars keep on repeating until i press a key, then it stops.</description>
		<content:encoded><![CDATA[<p>I also see this frequently happen. The chars keep on repeating until i press a key, then it stops.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Mcarthur</title>
		<link>http://changelog.complete.org/archives/730-kernel-interrupt-weirdness/comment-page-1#comment-2315</link>
		<dc:creator>Jake Mcarthur</dc:creator>
		<pubDate>Sat, 12 Jul 2008 18:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://changelog2.complete.org/archives/730-kernel-interrupt-weirdness.html#comment-2315</guid>
		<description>I have also had this happen to me. I haven&#039;t been able to track it down either. I don&#039;t have access to the Linux box that does this right now, but the kernel in it is usually very up to date.</description>
		<content:encoded><![CDATA[<p>I have also had this happen to me. I haven&#8217;t been able to track it down either. I don&#8217;t have access to the Linux box that does this right now, but the kernel in it is usually very up to date.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

