From 7bcae5f2d206d24ba1214b0df11d2d29a1201e48 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Thu, 8 Mar 2018 11:26:10 +0000 Subject: [PATCH] Ensure that ModemManager ignores keyboard https://github.com/timvideos/HDMI2USB-mode-switch/blob/7bd2e9fbb732a67c8d245dd7603af1f293e174ef/udev/99-hdmi2usb-mm-blacklist.rules#L4 says: It should be enough to set ID_MM_DEVICE_IGNORE:="1" but it seems many versions of modem manager have a bug which makes them ignore that value. Setting ID_MM_CANDIDATE:="0" has the same effect but is an "internal implementation detail" of modem manager. so set both to be safe. Also use := rather than =, in order to prevent any later rules from overriding the settings. --- etc/99-kaleidoscope.rules | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/etc/99-kaleidoscope.rules b/etc/99-kaleidoscope.rules index cae399b2..c69b9053 100644 --- a/etc/99-kaleidoscope.rules +++ b/etc/99-kaleidoscope.rules @@ -1,4 +1,2 @@ -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2300", SYMLINK+="model01", ENV{ID_MM_DEVICE_IGNORE}="1" -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2301", SYMLINK+="model01", ENV{ID_MM_DEVICE_IGNORE}="1" - - +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2300", SYMLINK+="model01", ENV{ID_MM_DEVICE_IGNORE}:="1", ENV{ID_MM_CANDIDATE}:="0" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2301", SYMLINK+="model01", ENV{ID_MM_DEVICE_IGNORE}:="1", ENV{ID_MM_CANDIDATE}:="0"