OnWorks favicon

evtest - Online in the Cloud

Run evtest in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command evtest that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



evtest - Input device event monitor and query tool


evtest [--grab] /dev/input/eventX

evtest --query /dev/input/eventX <type> <value>


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.

If the --grab flag is given in capture mode, evtest keeps an EVIOCGRAB on the device.
While this grab is active, other processes will not receive events from the kernel
devices. The grab is released again when evtest quits.

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.


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.

The following command shows the processes with an open file descriptor on the device:

fuser -v /dev/input/eventX


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.

Use evtest online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    TurkDevOps a?k kaynak yaz?l?m
    geli?tirici topluluklar? DevTurks-Team
    Taraf?ndan desteklenmektedir..
    Download turkdevops
  • 2
    Wine is an Open Source implementation
    of the Windows API on top of X and Unix.
    Wine provides both a development toolkit
    for porting Windows sources to Unix and...
    Download Wine
  • 3
    LAME (Lame Aint an MP3 Encoder)
    LAME (Lame Aint an MP3 Encoder)
    LAME is an educational tool to be used
    for learning about MP3 encoding. The
    goal of the LAME project is to improve
    the psycho acoustics, quality and speed
    of MP...
    Download LAME (Lame Aint an MP3 Encoder)
  • 4
    A set of Python extension modules that
    wrap the cross-platform GUI classes from
    wxWidgets.. Audience: Developers. User
    interface: X Window System (X11), Win32 ...
    Download wxPython
  • 5
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 6
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 7
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • More »

Linux commands