linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Joseph P. Garcia" <jpgarcia@execpc.com>
To: Bastien Nocera <hadess@hadess.net>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: special adb buttons don't survive sleep
Date: Wed, 1 Aug 2001 17:41:58 -0500	[thread overview]
Message-ID: <20010801174158.2b4e3d5d.jpgarcia@execpc.com> (raw)
In-Reply-To: <3B688167.9010906@hadess.net>


On Wed, 01 Aug 2001 23:23:35 +0100
Bastien Nocera <hadess@hadess.net> wrote:
> Joseph's code for the special adb buttons doesn't survive sleep, the
> event device just isn't present anymore when coming back from sleep. All
> the other event devices are present (/dev/input/eventX).

One of my patches attempts to fix this.  Upon wakeup, all adb input devices are deregistered, probed, and registered.  Any device that is open at the time is left safely dangling when deregistered, and if still open upon a register, skipped over.  so if device 2 of 0,1,2,3 is open, post sleep, 2 will be 3, and 3 will be 4 (0,1,_,3,4).

My modification changes it so it re-registers devices when found and are different, registers if new, and lastly, deregisters anything that was there, but wasn't found in the probe.  All still existing hardware is re-inited, but their NIL hooks are untouched.  I don't know if its safe though.  Recently, my keyboard has been vanishing.  X runs fine, but need to login to do anything.  last I tried, a panic right after unmounting fs's.  but I'm using XF4.1, which still seems to have issues with my ati ever since the silken cursor was added. (OT)

It still seems like the best idea.  Better than telling the daemon something happened.  Sleep really shouldn't be in a keyboard event handler's vocabulary imo.

Franz might know of any pitfalls in my method.

--
Joseph P. Garcia
http://www.lycestra.com/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-08-01 22:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-01 22:23 special adb buttons don't survive sleep Bastien Nocera
2001-08-01 22:41 ` Joseph P. Garcia [this message]
2001-08-02  7:11 ` POS 2.4G card kenji mac

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=20010801174158.2b4e3d5d.jpgarcia@execpc.com \
    --to=jpgarcia@execpc.com \
    --cc=hadess@hadess.net \
    --cc=linuxppc-dev@lists.linuxppc.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).