Skip to content

Linux Input Device Permissions ​

In some configurations, SyncClipboard needs input device permissions to listen for global hotkeys and simulate key presses for actions such as copying and pasting.

When permissions are required ​

The desktop session (X11 or Wayland) and the selected backend determine whether input device permissions are required. By default, SyncClipboard needs input device permissions on Wayland to listen for global hotkeys and simulate key presses.

If global hotkeys do not respond or SyncClipboard cannot simulate key presses to copy or paste, try switching the backend under System settings → General → Global hotkey backend.

Desktop sessionGlobal hotkey backend optionInput mechanismDevice permissions required?
X11Automatic (default)XRecord/XTestNo
X11x11XRecord/XTestNo
X11libinput/uinputlibinput/uinputYes
WaylandAutomatic (default)libinput/uinputYes
Waylandx11XRecord/XTest through XWaylandNo, but functionality may not work
Waylandlibinput/uinputlibinput/uinputYes

For combinations requiring device permissions, global hotkeys need read/write access to /dev/input/event*; copy/paste operations indirectly triggered through SyncClipboard (implemented by simulating keyboard input) only need write access to /dev/uinput.

Grant input device access ​

On desktops with udev and active local session ACL support, use uaccess to automatically grant access to the active user, without joining the input group.

Not every Linux system provides udevadm; check with command -v udevadm. Minimal systems or alternative device managers may omit it. Having the command alone does not guarantee uaccess support: the corresponding rules and session management must also be available.

Create a rule with prefix 70 so it runs before 73-seat-late.rules:

shell
sudo tee /etc/udev/rules.d/70-syncclipboard.rules >/dev/null <<'EOF'
ACTION=="remove", GOTO="syncclipboard_end"
SUBSYSTEM=="input", KERNEL=="event*", TAG+="uaccess"
SUBSYSTEM=="misc", KERNEL=="uinput", TAG+="uaccess"
LABEL="syncclipboard_end"
EOF

For simulated input only, keep just the uinput device rule. If /dev/uinput is missing, run sudo modprobe uinput first. Reload the rules:

shell
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo udevadm settle

Check getfacl /dev/uinput and getfacl /dev/input/event0 for a named user entry with rw- access. Restart SyncClipboard and refresh its permission status in System settings.

WARNING

ACL permissions apply to the current user, not exclusively to SyncClipboard.

For temporary testing, use setfacl without udev. Run these from the regular user's terminal; only the second command is needed for simulated input:

shell
sudo setfacl -m "u:$(id -un):rw" /dev/input/event*
sudo setfacl -m "u:$(id -un):w" /dev/uinput

Manual ACLs may be lost when devices are recreated or sessions change. If getfacl or setfacl is missing, install your distribution's acl package (sudo apt install acl on Ubuntu/Debian).

Revoke access ​

Fully exit SyncClipboard first, then run the following from the regular user's terminal used to run the app.

If you configured the udev rule above, remove it and reload the rules. Skip this step if you only granted access manually with setfacl:

shell
sudo rm /etc/udev/rules.d/70-syncclipboard.rules
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo udevadm settle

Remove the current user's ACL entries from existing devices. Only run the commands for devices you previously granted access to:

shell
sudo setfacl -x "u:$(id -un)" /dev/input/event*
sudo setfacl -x "u:$(id -un)" /dev/uinput

-x removes the specified user's entries without clearing other users' ACL entries. Check the result:

shell
getfacl /dev/uinput
getfacl /dev/input/event0

The corresponding user:your-username:... entries should be gone. Access granted through groups or other system rules is not revoked by removing these ACL entries.