[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kbd.diff (X loses keyboard on trivial operation)
From: |
Marcus Brinkmann |
Subject: |
Re: kbd.diff (X loses keyboard on trivial operation) |
Date: |
Mon, 18 Nov 2002 22:18:53 +0100 |
User-agent: |
Mutt/1.4i |
On Mon, Oct 28, 2002 at 02:55:29PM -0500, David Walter wrote:
> X loses keyboard on trivial operation
>
> ls -l /dev/kbd
>
> The kbd translator formerly believed it needed to start a new thread
> for every open call. It also _closed_ the device after every
> corresponding close_hook call.
It certainly is wrong to close the device with every close. But closing it
in when the translator goes away is too late. I would expect that if you
leave X, it won't set the keyboard back to raw mode and then you lose.
The right thing is to count how many active users there are, and open/close
the device accordingly. The reader thread needs to be made aware of that,
of course. I will see what I can hack together.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' GNU http://www.gnu.org marcus@gnu.org
Marcus Brinkmann The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/
- Re: kbd.diff (X loses keyboard on trivial operation),
Marcus Brinkmann <=