It would be good to know that when you connect a USB device like a web-cam, it notifies me that it works or not.
The libnotify-bin package includes a binary, notify-send which displays a notification. Here's an example of invoking it:
notify-send "New USB device connected" "A new device has been connected: blah blah blah"
I believe you could craft a udev rule for "add" and for "remove" actions to trigger a small script which would invoke a notification. I haven't looked into this but I have seen similar scripts invoking encryption/mouting comands for storage devices.
The Guadalinex project also had this type of functionality which they demo'ed in UDS Seville in 2005 (!), perhaps it would be easier to track down if they submitted their work upstream or if it's available as a separate package somewhere. Do NOT install the packages referred to in the Debian bug I am citing, this is only for reference purposes if anyone would decide to research it.
It's really surprizing for me that in 2014 we still don't have this feature working by default. It seems there are very little amount of people who needs this feature, but I really need it.
First of all, I found udev-notify package, but unfortunately it almost doesn't work for me: it works for very little time (1-2 minutes), and then, if I connect/disconnect any device, it crashes:
I haven't found any solution, so I had to remove it. (filed bugreport also)
There're no similar utilities I've found so far. So I had to implement my own solution, it is probably not brilliant, but it works for me: it notifies me with sound and visual notification for any device that I plug/unplug. Title of the device is received via
It looks like this:
Tested on Ubuntu 12.04, Xubuntu 12.04, Xubuntu 13.04, Linux Mint 13. I believe it should work on other Ubuntu derivatives, and I hope it will work on any *nix system with
After this, it should work for newly attached devices. That is, if you unplug some device, you won't get notification. But when you plug it back, you will. (yes, for me it works without any udev restarting. If it doesn't for you, try rebooting)
To make it work for all devices, just reboot your system. NOTE that there might
be many notifications during first boot (see known issues in the
You can customize it (turn on/off visual and sound notifications, or change sounds), check readme.txt in the archive for details.
There are applets for the gnome-panel which will let you see plugged in devices and let you eject them. For e.g there is ejecter which is a applet lets you see mounted removable devices and lets you eject them. KDE has a ultra cool notification system letting you see what devices has recently been plugged in. You can try using the lsusb command to check whether your device has been detected or not. And if you are the adventurous type you can write your own udev rules.
i dont believe there is such notification yet, (and right now i can't even seem to remember where to set up the notifications) i believe it may be very difficult to make a computer conclude wether or not a webcam works correct.
when you insert a usb device it normally appears on your desktop, i believe you'll have to use the program you are planning to use with your webcam to find out if the webcam actually works.
lets say skype, for an example, you can make a test to see if it works, without calling anybody (options - video devices - (then pretty obvious (that is if i remember it correct)))
i hope this answers your question :-)
protected by Community♦ Sep 13 '15 at 3:06
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?