Detect input devices and optionally start the input manager
inputtrap [-f device] [-l device] [-s] [-T] [-t trapfile] [-V...] [-v[v]...] [-X class]... [-x device]... [start] [query]
Neutrino
The inputtrap utility detects input devices and optionally starts the input manager. It runs in one of the following ways:
Or:
This utility needs to have the setuid (“set user ID”) bit set in its permissions. If you use mkefs, mketfs, or mkifs on a Windows host to include this utility in an image, use the perms attribute to specify its permissions explicitly, and the uid and gid attributes to set the ownership correctly. |
If probing, inputtrap probes for input devices, and writes to slogger the invocation commands along with the appropriate options and arguments for starting the found devices. If you specify the query option, inputtrap also writes the commands to standard output.
The probing order is as follows:
The device names (given above) are recognized as arguments to the -f and -x options.
To override the options that inputtrap uses by default, probe the devices, using the query option as described above, redirect the output to a file, and then edit the file. When the options are correct, move or copy the trapfile to /etc/system/trap/input.${HOSTNAME}.
If the /etc/system/trap/input.${HOSTNAME} file exists, inputtrap uses the contents of this file as arguments to start a devi-* driver.
Each line of the trapfile corresponds to a separate invocation of a devi-* driver. The first word on the line indicates the driver to start. For example:
devi-elo elo fd -d/dev/ser1
The above line tells inputtrap to start the Elographics touchscreen driver.
If the line doesn't start with the name of a devi-* driver, inputtrap starts devi-hirun. For example:
kbd fd -d/dev/kbd ps2 k6-2
Adding invalid information to the input.hostname file can cause the system to hang. If your hardware changes, remember to remove the old input.hostname file. |
Probe for input devices, but don't start the input driver:
inputtrap
Probe for input devices. Don't start the input driver, but write the command line for the driver on standard output:
inputtrap query
Probe for input devices. Once one of each class of device has been recognized, spawn devi-hirun with an appropriate command line:
inputtrap start
Connecting Hardware in the Neutrino User's Guide