2020-01-12, 12:10
The output of udevadm was generated while kodi was running with a buggy udev implementation. The test should be repeated without kodi running.
(2020-01-12, 12:10)FernetMenta Wrote: The output of udevadm was generated while kodi was running with a buggy udev implementation. The test should be repeated without kodi running.
Quote:From f46b169bee664b6fe959b677e2e7152b41262116 Mon Sep 17 00:00:00 2001Edit: On could add "block" or "input" additionally / instead of course. As I did not write the original Peripherals implementation I don't really know what we want to auto detect here. "usb" sounds like a good candidate for starters.
From: fritsch <[email protected]>
Date: Sun, 12 Jan 2020 12:02:53 +0100
Subject: [PATCH] PeripheralBusUSBLibUdev: Filter on input only
---
.../platform/linux/peripherals/PeripheralBusUSBLibUdev.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/xbmc/platform/linux/peripherals/PeripheralBusUSBLibUdev.cpp b/xbmc/platform/linux/peripherals/PeripheralBusUSBLibUdev.cpp
index 07c45a3e96..df3f2c2832 100644
--- a/xbmc/platform/linux/peripherals/PeripheralBusUSBLibUdev.cpp
+++ b/xbmc/platform/linux/peripherals/PeripheralBusUSBLibUdev.cpp
@@ -81,6 +81,13 @@ CPeripheralBusUSB::CPeripheralBusUSB(CPeripherals& manager) :
/* set up a devices monitor that listen for any device change */
m_udevMon = udev_monitor_new_from_netlink(m_udev, "udev");
+
+ /* filter to only receie USB subsystem events */
+ if (udev_monitor_filter_add_match_subsystem_devtype(m_udevMon, "usb", NULL) < 0)
+ {
+ CLog::Log(LOGERROR, "Could not limit filter on USB only");
+ }
+
udev_monitor_enable_receiving(m_udevMon);
CLog::Log(LOGDEBUG, "%s - initialised udev monitor", __FUNCTION__);
--
2.20.1
(2020-01-12, 08:41)fritsch Wrote: No. For Leia: https://github.com/xbmc/xbmc/blob/Leia/d....Ubuntu.md
Make sure to not skip anything from this document, it would have installed Python if you would have followed it.