最終更新:2012-11-07 (水) 17:38:50 (4186d)
inputattach
Top / inputattach
シリアルポート接続の周辺機器(シリアルマウス?とかジョイスティック、タッチスクリーン)をLinuxの入力サブシステムにアタッチするツール
utility to connect serial-attached peripherals to the input subsystem
http://sourceforge.net/projects/linuxconsole/
inputattach [--daemon] [--always] [--noinit] [--baud baud>] <mode> <device>
例
inputattach --microsoft /dev/ttyS0 inputattach --dump /dev/ttyUSB0
概要
- inputattach attaches a serial line to an input-layer device via a line discipline.
- Exactly one of the available modes must be specified on the command line.
- inputattach connects legacy serial-attached input peripherals to the input subsystem: keyboards, mice, joysticks, touch-screens...
Supported devices include:
- Serial-attached keyboards including the Apple Newton keyboard, DEC LK201 / LK401 keyboards, the Stowaway keyboard, Sun type 4 and 5 keyboards, standard PS/2 keyboards with a serial adapter
- Serial mice using Genius, Logitech, Microsoft or Mouse Systems protocols
- Serial-attached touchscreens including those manufactured by 3M, Elo Touch Solutions, 富士通, Penmount, Touchright, Touchwindow
- Serial-attached joysticks including I-Force, SpaceBall?, SpaceOrb?, Gravis Stinger, WingMan? Warrior
- The Handykey Twiddler used as a joystick or a chording keyboard
デバイス
man
inputattach(1) inputattach(1) NAME inputattach - attach a serial line to an input-layer device SYNOPSIS inputattach [--daemon] [--always] [--noinit] [--baud baud>] <mode> <device> DESCRIPTION inputattach attaches a serial line to an input-layer device via a line discipline. Exactly one of the available modes must be specified on the command line. OPTIONS --daemon Forks into the background. --always Ignore initialization failures when attaching the device. --noinit Skip device initialization. --baud Specify the baud rate to use. (This is only necessary if the default rate is incorrect.) Modes -dump, --dump Just enable device . -elo3b, --elo261-280 ELO Touchscreen, 3-byte mode. -elo4b, --elo271-140 ELO touchscreen, 4-byte mode. -elo6b, --elo4002 ELO touchscreen, 6-byte mode. -elo, --elotouch ELO touchscreen, 10-byte mode. -fjt, --fujitsu Fujitsu serial touchscreen. -ipaq, --h3600ts Ipaq h3600 touchscreen. -ifor, --iforce I-Force joystick or wheel. -ms3, --intellimouse Microsoft IntelliMouse. -lk, --lkkbd DEC LK201 / LK401 keyboards. -mag, --magellan Magellan / SpaceMouse. -bare, --microsoft 2-button Microsoft mouse. -mmw, --mmwheel Logitech mouse with 4-5 buttons or a wheel. -mman, --mouseman 3-button Logitech / Genius mouse. -msc, --mousesystems 3-button Mouse Systems mouse. -ms, --mshack 3-button mouse in Microsoft mode. -mtouch, --mtouch MicroTouch (3M) touchscreen. -newt, --newtonkbd Newton keyboard. -pm, --penmount Penmount touchscreen. -ps2ser, --ps2serkbd PS/2 via serial keyboard. -sbl, --spaceball SpaceBall 2003 / 3003 / 4000 FLX. -orb, --spaceorb SpaceOrb 360 / SpaceBall Avenger. -sting, --stinger Gravis Stinger. -ipaqkbd, --stowawaykbd Stowaway keyboard. -skb, --sunkbd Sun Type 4 and Type 5 keyboards. -sun, --sunmouse 3-button Sun mouse. -taos, --taos-evm TAOS evaluation module. -t213, --touchit213 Sahara Touch-iT213 Tablet PC. -tr, --touchright Touchright serial touchscreen. -tw, --touchwin Touchwindow serial touchscreen. -twidjoy, --twiddler-joy Handykey Twiddler used as a joystick. -twid, --twiddler Handykey Twiddler chording keyboard. -vs, --vsxxx-aa DEC VSXXX-AA / VSXXX-GA mouse and VSXXX-A tablet. -w8001, --w8001 Wacom W8001 pen and/or touch devices. The default baud rate, 38400bps, allows for touch-only or pen and touch devices; for pen-only devices, "--baud 19200" must be specified. -war, --warrior WingMan Warrior. -zhen, --zhen-hua Zhen Hua 5-byte protocol. AUTHORS inputattach was written by Vojtech Pavlik and Arndt Schoenewald, and improved by many others; see the linuxconsole tools documentation for details. This manual page was written by Stephen Kitt <steve@sk2.org>, for the Debian GNU/Linux system (but may be used by others). inputattach August 9, 2011 inputattach(1)
関連デバイス
udev/ルール
- Linux/lib/udev/rules.d/40-inputattach.rules? (Ubuntu)
- Linux/lib/udev/rules.d/60-inputattach.rules (Debian)
evtest
- The evtest tool, which used to be part of this package, is now maintained separately.
関連
- linux/serio.h
- Linux/dev/input/mice
- kernel.org/doc/Documentation/input/joystick.txt?