@@ -159,6 +159,8 @@ QInputDevice *QInputDeviceManagerPrivate::addDevice(struct udev_device *udev)
159159 }
160160 eventPath = inputDevice->devicePath();
161161
162+ qDebug() << "Input device added:" << inputDevice->name() << inputDevice->devicePath() << inputDevice->type();
163+
162164 fd = open(eventPath.toLatin1(), O_RDONLY|O_NONBLOCK);
163165 if (fd == -1) {
164166 return inputDevice;
@@ -205,6 +207,7 @@ void QInputDeviceManagerPrivate::removeDevice(const QString &path)
205207 // this path is not a full evdev path
206208 Q_FOREACH (const QString devicePath, deviceMap.keys()) {
207209 if (devicePath.contains(path)) {
210+ qDebug() << "Input device removed:" << deviceMap.value(devicePath)->name() << devicePath << deviceMap.value(devicePath)->type();
208211 deviceMap.remove(devicePath);
209212 Q_EMIT deviceRemoved(devicePath);
210213 }