Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

evtest(1) [centos man page]

EVTEST(1)																 EVTEST(1)

NAME
evtest - Input device event monitor and query tool SYNOPSIS
evtest /dev/input/eventX evtest --query /dev/input/eventX <type> <value> DESCRIPTION
The first invocation type displayed above ("capture mode") causes evtest to display information about the specified input device, including all the events supported by the device. It then monitors the device and displays all the events layer events generated. In the second invocation type ("query mode"), evtest performs a one-shot query of the state of a specific key value of an event type. type is one of: EV_KEY, EV_SW, EV_SND, EV_LED (or the numerical value) value can be either a decimal representation (e.g. 44), hex (e.g. 0x2c), or the constant name (e.g. KEY_Z) of the key/switch/sound/LED being queried. If the state bit is set (key pressed, switch on, ...), evtest exits with code 10. If the state bit is unset (key depressed, switch off, ...), evtest exits with code 0. No other output is generated. evtest needs to be able to read from the device; in most cases this means it must be run as root. evtest is commonly used to debug issues with input devices in X.Org. The output of evtest shows the information presented by the kernel; based on this information it can be determined whether a bug may be a kernel or an X.Org issue. DIAGNOSTICS
If evtest does not show any events even though the device is being used, the device may be grabbed by a process (EVIOCGRAB). This is usually the case when debugging a synaptics device from within X. VT switching to a TTY or shutting down the X server terminates this grab and synaptics devices can be debugged. EXIT CODE
evtest returns 1 on error. When used to query state, evtest returns 0 if the state bit is unset and 10 if the state bit is set. SEE ALSO
inputattach(1) AUTHOR
evtest was written by Vojtech Pavlik <vojtech@suse.cz[1]>. This manual page was written by Stephen Kitt <steve@sk2.org[2]>, based on that present in the lineakd package, for the Debian GNU/Linux system (but may be used by others). NOTES
1. vojtech@suse.cz mailto:vojtech@suse.cz 2. steve@sk2.org mailto:steve@sk2.org 05/21/2012 EVTEST(1)

Check Out this Related Man Page

XAllowDeviceEvents(3X11)												  XAllowDeviceEvents(3X11)

NAME
XAllowDeviceEvents - release queued events SYNOPSIS
XAllowDeviceEvents(display, device, event_mode, time) Display *display; XDevice *device; int event_mode; Time time; ARGUMENTS
Specifies the connection to the X server. Specifies the device from which events are to be allowed. Specifies the event mode. You can pass AsyncThisDevice, SyncThisDevice, ReplayThisDevice, AsyncOtherDevices, SyncAll, or AsyncAll. Specifies the time. You can pass either a timestamp or CurrentTime. DESCRIPTION
The XAllowDeviceEvents function releases some queued events if the client has caused a device to freeze. It has no effect if the specified time is earlier than the last-grab time of the most recent active grab for the client and device, or if the specified time is later than the current X server time. The following describes the processing that occurs depending on what constant you pass to the event_mode argument. If the specified device is frozen by the client, event processing for that device continues as usual. If the device is frozen multiple times by the client on behalf of multiple separate grabs, AsyncThisDevice thaws for all. AsyncThisDevice has no effect if the specified device is not frozen by the client, but the device need not be grabbed by the client. If the specified device is frozen and actively grabbed by the client, event processing for that device continues normally until the next key or button event is reported to the client. At this time, the specified device again appears to freeze. However, if the reported event causes the grab to be released, the specified device does not freeze. SyncThisDevice has no effect if the specified device is not frozen by the client or is not grabbed by the client. If the specified device is actively grabbed by the client and is frozen as the result of an event having been sent to the client (either from the activation of a GrabDeviceButton or from a previous AllowDeviceEvents with mode SyncThisDevice, but not from a GrabDevice), the grab is released and that event is completely reprocessed. This time, however, the request ignores any passive grabs at or above (toward the root) that the grab- window of the grab just released. The request has no effect if the specified device is not grabbed by the client or if it is not frozen as the result of an event. If the remaining devices are frozen by the client, event processing for them continues as usual. If the other devices are frozen multiple times by the client on behalf of multiple grabs, AsyncOtherDevices "thaws" for all. AsyncOtherDevices has no effect if the devices are not frozen by the client. If all devices are frozen by the client, event processing (for all devices) continues normally until the next button or key event is reported to the client for a grabbed device, at which time all devices again appear to freeze. However, if the reported event causes the grab to be released, then the devices do not freeze. If any device is still grabbed, then a subsequent event for it will still cause all devices to freeze. SyncAll has no effect unless all devices are frozen by the client. If any device is frozen twice by the client on behalf of two separate grabs, SyncAll thaws for both. A subsequent freeze for SyncAll will only freeze each device once. If all devices are frozen by the client, event processing for all devices continues normally. If any device is frozen multiple times by the client on behalf of multiple separate grabs, AsyncAll thaws for all. AsyncAll has no effect unless all devices are frozen by the client. AsyncThisDevice, SyncThisDevice, and ReplayThisDevice have no effect on the processing of events from the remaining devices. AsyncOtherDe- vices has no effect on the processing of events from the specified device. When the event_mode is SyncAll or AsyncAll, the device parame- ter is ignored. It is possible for several grabs of different devices by the same or different clients to be active simultaneously. If a device is frozen on behalf of any grab, no event processing is performed for the device. It is possible for a single device to be frozen because of several grabs. In this case, the freeze must be released on behalf of each grab before events can again be processed. XAllowDeviceEvents can generate a BadDevice or BadValue error. DIAGNOSTICS
An invalid device was specified. The specified device does not exist or has not been opened by this client via XOpenInputDevice. This error may also occur if the specified device is the X keyboard or X pointer device. An invalid mode was specified on the request. SEE ALSO
XGrabDevice(3X11) Programming With Xlib XAllowDeviceEvents(3X11)
Man Page