Skip to content
Commit a44a666d authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Play notification sound when a USB device is plugged in or unplugged

This adds a kded module which will monitor Udev's "usb" subsystem
for any USB devices being added/removed and emits a notification
as a result.

Compared to device notifier, this reacts on any kind of USB device
(e.g. mouse, headset), not just storage devices. It also reacts
more quickly, for example with an external hard drive, which needs
to spin up first before device notifier scans the partitions.

It checks the sysfs `removable` property to avoid playing a sound
when an internal device that is technically a USB device (e.g.
fingerprint reader, bluetooth adapter, etc) gets enabled/disabled.

BUG: 435509
parent d23796fb
Pipeline #437905 passed with stage
in 18 minutes and 23 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment