-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
distinguish between two deskhop on one computer #212
Comments
You may be able to track based on which USB port you are connected to,? When you say two desks are both desks being run from the same computer? |
Patched in cf842f8, would this help you use udev rules or something else to match the two devices? |
Yes and on both desks the deskhop is connected to the same port ;-) - but yes, thanks, great idea! I didn't think about it that way, yet.
Yes, great! I'm no programmer, but the diff looks like it adds a serial that can be set in the .h file during compiling. Excellent - thank you! I'll test it later and report back. |
It's not actually set in the .h file (just the placeholder) but uses the unique ID gathered from the SPI flash which is the standard way these boards determine serial number. Each board should have an unique ID and ideally you'll be able to differentiate based on that. |
Thanks for clarifying! |
Just tested and it works. I had to struggle a bit with udev on linux. Here's my solution (Debian Bookworm): Make udev ask the hardware database using deskhops serial numberOn my system the default udev rules do not include the information about the serial number when asking the hardware database for extra information about a device.
The filename is chosen, so that this rule would run before my default rule for evdev named Add extra information for the keyboard attached to deskhopThe device match above will lookup the hardware database for a section
To get the
The first digit seperated by space from the S/N is not part of the number - in my example the |
That's great, since you were kind enough to write this down, care to put it in a Wiki format and I'll add it to the project docs? |
I believe the wiki will accept md? The comment has already been written in md, but I guess it's only possible to extract those via the api in md again. If it could help anybody, please go ahead and put it onto the wiki! Thanks for the great project! |
Added, thank you again for being helpful and sharing! |
I have two desks I'm working on, each of the desks having its own deskhop.
Keyboard and mouse are different in both places and I'd like to setup my OS to use different settings for each of the keyboard/mouse on the different two deskhops.
The deskhop connected to my computer looks in both places the same - I can't distinguish between deskhop1 (keyboard a and mouse b) and deskhop2 (keyboard c and mouse d).
Therefore I can't e.g. (re-)map keys on the OS-side for each of the keyboards differently.
A possible solution would be to allow to setup a deskhop with a different from the default usb id or maybe allow setting of a serial number that on other devices can be recognized by e.g. udevd.
The text was updated successfully, but these errors were encountered: