2019-03-28 18:16:15 +00:00
# hid-bridge
Creates a virtual hid device which can be controlled by a user driver via a UDP port.
## Installation
You need Python 3.5 or higher.
2019-08-08 13:38:40 +00:00
The uhid driver is required. If it is built as a module and not loaded, load it by `modprobe uhid` .
2019-03-28 18:16:15 +00:00
2019-08-08 13:38:40 +00:00
You must have read/write permission to the `/dev/uhid/` device as well as to the newly created `/dev/hidraw*` device. This may be accomplished by copying `50-hid-bridge.rules` into `/etc/udev/rules.d/` . You may need to reload the driver afterwards.
2019-03-28 18:16:15 +00:00
## Usage
2019-06-17 18:27:55 +00:00
Run [Trezor emulator ](https://github.com/trezor/trezor-core/blob/master/docs/emulator.md ) and `./hid-bridge` .
2019-03-28 18:16:15 +00:00
## Known issues
2020-09-01 11:55:28 +00:00
It does not work with some older versions of Firefox. Firefox used to close hid devices upon loss of focus.
2019-03-28 18:16:15 +00:00
2020-09-01 11:55:28 +00:00
It does not work with the emulator in debug mode since the emulator doesn't start the hid interface in debug mode.