From: Vojtech Pavlik <vojtech@suse.cz>
To: Linux Kernel ML <linux-kernel@vger.kernel.org>
Subject: Re: PS/2 port on USB Keyboard
Date: Wed, 5 Dec 2001 21:32:53 +0100 [thread overview]
Message-ID: <20011205213253.A6506@suse.cz> (raw)
In-Reply-To: <20011205210420.A1581@wolverine.lohacker.net>
In-Reply-To: <20011205210420.A1581@wolverine.lohacker.net>; from emmanuele.bassi@iol.it on Wed, Dec 05, 2001 at 09:04:20PM +0100
On Wed, Dec 05, 2001 at 09:04:20PM +0100, Emmanuele Bassi wrote:
> Hi everyone,
>
> I have an USB Keyboard from BTC[1], with an onboard PS/2 mouse port.
> When I use one of the mouse' buttons, the kernel complaints (with
> a .warn):
>
> keyboard.c: can't emulate rawmode for keycode 27[2-4]
>
> The keycode depends on which mouse button I press (272 for the left,
> 273 for the right and 274 for the middle one). While I'm using the mouse
> under X11, this warning goes straight into the logs, but while I'm
> under the console, this warning scramble up everything. A possible
> workaround is to disable every kernel.warn directed (via syslog) to the
> console, but, for obvious reasons, I'd like to keep this as a "last
> resort" option.
>
> While looking inside the source code for the Keyboard HID driver, I've
> noticed that only the Mac driver enables mouse button emulation. Since
> I'm no kernel hacker, my question is: could someone work on a possible
> patch?
Comment the message out in drivers/input/keybdev.c ...
>
> TIA & best regards,
> Emmanuele.
>
> +++
>
> wolverine:~# cat /proc/bus/usb/devices
> T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
> B: Alloc=217/900 us (24%), #Int= 2, #Iso= 0
> D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
> P: Vendor=0000 ProdID=0000 Rev= 0.00
> S: Product=USB UHCI-alt Root Hub
> S: SerialNumber=6400
> C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
> I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
> E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
> T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
> D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
> P: Vendor=046e ProdID=6782 Rev=21.10
> S: Manufacturer=BTC
> S: Product=USB Keyboard and Mouse
>
> wolverine:~# usbmodules --device /proc/bus/usb/001/002
> hid
>
>
> --
> Emmanuele Bassi (Zefram) [ http://digilander.iol.it/ebassi ]
> GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738 08BD 8ECC DB8F A432 0FF4
--
Vojtech Pavlik
SuSE Labs
prev parent reply other threads:[~2001-12-05 20:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-05 20:04 PS/2 port on USB Keyboard Emmanuele Bassi
2001-12-05 20:32 ` Vojtech Pavlik [this message]
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=20011205213253.A6506@suse.cz \
--to=vojtech@suse.cz \
--cc=linux-kernel@vger.kernel.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