Skip to content

Arch Linux Input Devices

Mattscreative edited this page Dec 5, 2025 · 2 revisions

⌨ Arch Linux Input Devices Guide

Complete beginner-friendly guide to input devices on Arch Linux, including keyboard configuration, mouse setup, and input device troubleshooting.


Table of Contents

  1. Keyboard Configuration
  2. Mouse Configuration
  3. Input Device Tools
  4. Troubleshooting

⌨ Keyboard Configuration

Set Keyboard Layout

Configure layout:

# Using localectl
sudo localectl set-keymap us

# List layouts
localectl list-keymaps

X11 Keyboard

Configure X11:

# Edit config
sudo vim /etc/X11/xorg.conf.d/00-keyboard.conf

Example:

Section "InputClass"
    Identifier "keyboard"
    MatchIsKeyboard "yes"
    Option "XkbLayout" "us"
    Option "XkbVariant" "dvorak"
EndSection

Keyboard Shortcuts

Configure shortcuts:

# GNOME
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"

Mouse Configuration

Mouse Settings

Configure mouse:

# X11 config
sudo vim /etc/X11/xorg.conf.d/50-mouse.conf

Example:

Section "InputClass"
    Identifier "mouse"
    MatchIsPointer "yes"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection

Mouse Sensitivity

Adjust sensitivity:

# Using xinput
xinput list

# Set sensitivity
xinput set-prop "Mouse" "libinput Accel Speed" 0.5

Input Device Tools

xev

Test input:

# Install xev
sudo pacman -S xorg-xev

# Test keyboard
xev -event keyboard

# Test mouse
xev -event mouse

xinput

Manage input:

# List devices
xinput list

# List properties
xinput list-props "Device Name"

# Set property
xinput set-prop "Device Name" "Property" value

Troubleshooting

Keyboard Not Working

Check keyboard:

# Check if detected
lsusb | grep -i keyboard

# Check Xorg logs
cat /var/log/Xorg.0.log | grep -i keyboard

Mouse Not Working

Check mouse:

# Check if detected
lsusb | grep -i mouse

# Check Xorg logs
cat /var/log/Xorg.0.log | grep -i mouse

Summary

This guide covered keyboard, mouse configuration, input tools, and troubleshooting.


Next Steps


This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.

Clone this wiki locally