linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Jenkins <aj504-l9TVMAoMiWs2EctHIo1CcQ@public.gmane.org>
To: Oliver Neukum <oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
Cc: discuss-csvQSjAa8IAgsBAKwltoeQ@public.gmane.org,
	linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: What is causing C2? / USB autosuspension?
Date: Wed, 07 May 2008 14:17:27 +0100	[thread overview]
Message-ID: <4821ABE7.1090103@student.cs.york.ac.uk> (raw)
In-Reply-To: <200805071457.16069.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>

Oliver Neukum wrote:
> Am Mittwoch 07 Mai 2008 00:24:58 schrieb Alan Jenkins:
>   
>> I think I've worked out how to avoid the lost key-presses.  Sometimes
>> they get lost; sometimes they don't.  The difference seems to how long I
>> wait after the keyboard suspends.  If I wait a few seconds after it's
>> suspended (as shown by the LEDs), then it resumes flawlessly.  It should
>> be possible to reduce the impact of the hardware misfeature by
>> increasing the timeout.  The longer the keyboard has been idle already,
>> the lower the probability it'll be used in the next few seconds. 
>>     
>
> This suggests a possible work around. Keyboards known to be buggy in this
> way could be reawoken periodically before the critical amount of time is over.
> How long is that time? What percentage of time does a keyboard need to be
> suspended for a positive energy balance?
>   
Sorry, I didn't explain that very clearly.

The problem happens if the keyboard resumes _immediately after_ it's 
autosuspended.  If I start typing as soon as the LED goes off, it loses 
some of the keypresses.  If I instead wait a few seconds before typing, 
it works flawlessly.  Since it's the keyboard that's resuming itself I 
don't think you could fix this.  Unless it's your code that's buggy and 
not the keyboard :-).

What I was trying to say was that I can mitigate this problem by 
increasing the autosuspend timeout from the default of 2 seconds.  I 
will quite often pause for periods of about 2 seconds while typing.  But 
if the keyboard is only suspended after 60 seconds of inactivity or 
longer, then it's far less likely that I will start typing immediately 
afterwards.

Alan

  parent reply	other threads:[~2008-05-07 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1015f9200805021702n1558873es72ac798ccdc06966@mail.gmail.com>
     [not found] ` <200805062212.31947.oliver@neukum.org>
     [not found]   ` <4820DABA.3000700@student.cs.york.ac.uk>
2008-05-07 12:57     ` [Discuss] What is causing C2? / USB autosuspension? Oliver Neukum
     [not found]       ` <200805071457.16069.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2008-05-07 13:17         ` Alan Jenkins [this message]
2008-05-07 13:41           ` Oliver Neukum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4821ABE7.1090103@student.cs.york.ac.uk \
    --to=aj504-l9tvmaomiws2ecthio1ccq@public.gmane.org \
    --cc=alan-jenkins-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org \
    --cc=discuss-csvQSjAa8IAgsBAKwltoeQ@public.gmane.org \
    --cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).