From: Alastair M. <mck...@de...> - 2002-12-07 08:45:13
|
Thanks. I'm working on the new debian-installer. I'm looking at the case of having multiple potential keyboards in a computer, eg. USB & PS/2. I want to be able to tell, if possible, what keyboards are attached (possible in the USB case), and failing that (eg in the PS2 case) if there is a keyboard attached; so that if, eg we spot a keyboard on the USB port, we configure that, but is there also a keyboard on the PS/2 port ? We may need different keymaps on the different keyboards (indeed, this might be essential ; one of the few reasons a normal user might have multiple keyboards is to have different types) Alastair On Sat, 2002-12-07 at 04:10, Brad Hards wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > On Sat, 7 Dec 2002 06:20, Alastair McKinstry wrote: > > Hello, > > > > I am trying to detect, under Linux (2.4 or 2.5) if a keyboard is > > _present_ (attached to a PS/2 or other connector). (Similarly, same ges > > for any non-PC architecture. I know about USB, but PPC? Sparc? > > Acorn/Amiga/Atari?) > Easy on 2.5, you could just parse the /proc/bus/input/devices list. Or do= an=20 > EVIOCGBIT to test for a partcular event interface. >=20 > What are you actually trying to accomplish? >=20 > Brad >=20 > - --=20 > http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you? > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org >=20 > iD8DBQE98XSfW6pHgIdAuOMRAqiMAJ4qw+Cn1FxmUfZWhEdLbszVHhicUQCcDMRy > uB37rMfI4+4XCp/iRLRFEhE=3D > =3DAuHg > -----END PGP SIGNATURE----- >=20 >=20 --=20 Alastair McKinstry <mck...@de...> GPG Key fingerprint =3D 9E64 E714 8E08 81F9 F3DC 1020 FA8E 3790 9051 38F4 He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty he establishes a precedent that will reach to himself. - --Thomas Paine |