From 8c91d84c239b72dd5a49d019f1369f47d38c561a Mon Sep 17 00:00:00 2001 From: Leibniz137 Date: Sat, 14 May 2022 14:02:25 -0700 Subject: [PATCH 1/2] add model id for ledger nano s plus --- hwilib/devices/ledger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hwilib/devices/ledger.py b/hwilib/devices/ledger.py index 2da9731a4..12c28d917 100644 --- a/hwilib/devices/ledger.py +++ b/hwilib/devices/ledger.py @@ -80,7 +80,8 @@ LEDGER_VENDOR_ID = 0x2c97 LEDGER_MODEL_IDS = { 0x10: "ledger_nano_s", - 0x40: "ledger_nano_x" + 0x40: "ledger_nano_x", + 0x50: "ledger_nano_s_plus" } LEDGER_LEGACY_PRODUCT_IDS = { 0x0001: "ledger_nano_s", From 8874f3ae23db66acb62b571b2b708b4b7a839d16 Mon Sep 17 00:00:00 2001 From: Leibniz137 Date: Wed, 18 May 2022 14:44:52 -0700 Subject: [PATCH 2/2] update udev rules to include ledger nano s+ source: https://github.com/LedgerHQ/udev-rules/blob/2776324af6df36c2af4d2e8e92a1c98c281117c9/20-hw1.rules --- hwilib/udev/20-hw1.rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hwilib/udev/20-hw1.rules b/hwilib/udev/20-hw1.rules index 235dee75a..5928fd429 100644 --- a/hwilib/udev/20-hw1.rules +++ b/hwilib/udev/20-hw1.rules @@ -10,3 +10,5 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0002|2000|2001|20 SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0003|3000|3001|3002|3003|3004|3005|3006|3007|3008|3009|300a|300b|300c|300d|300e|300f|3010|3011|3012|3013|3014|3015|3016|3017|3018|3019|301a|301b|301c|301d|301e|301f", TAG+="uaccess", TAG+="udev-acl" # Nano X SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0004|4000|4001|4002|4003|4004|4005|4006|4007|4008|4009|400a|400b|400c|400d|400e|400f|4010|4011|4012|4013|4014|4015|4016|4017|4018|4019|401a|401b|401c|401d|401e|401f", TAG+="uaccess", TAG+="udev-acl" +# Ledger Test +SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0005|5000|5001|5002|5003|5004|5005|5006|5007|5008|5009|500a|500b|500c|500d|500e|500f|5010|5011|5012|5013|5014|5015|5016|5017|5018|5019|501a|501b|501c|501d|501e|501f", TAG+="uaccess", TAG+="udev-acl" \ No newline at end of file