-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
can't get it to work - keep getting device busy errors #10
Comments
Hi, thanks for trying out map2, I'll make sure the docs will be way easier to understand in the second release I'm currently working on. It might be that since you're giving it 2 symlinked fds which point to the same fd you get a |
Thanks! ok, so removing the second entry and running with sudo does seem to get rid of the errors...
Unfortunately, it just... doesn't do anything; e.g. the script doesn't seem to be actually remapping As a side note, I also found out that changing perms under
alternately, it seems like you can just add your user to the
|
You probably don't have an I'll check if the |
Yeah, I wondered about that originally too. I assumed since I have an htpc keyboard (single device with both a keyboard and a trackpad) that maybe it just got registered as a mouse instead of a keyboard but still thought it was weird. Unfortunately, all of mine seem to say mouse. I'll try to just step through every option later and see if one of them works.. or maybe i can find something online mentioning the file descriptor for it; these things were cheap but relatively decent htpc keyboards so i'm sure there's a few other Linux users using them.
Edit: Not sure what I did different but it started working. Only thing I can think of that was significant was rebooting since adding myself to the
anyway, when I retested in xed, it was working now. Thanks for the help! |
Also came across this page while trying to figure out how to find the event names for certain media keys (I have some keys at the top of mine with a music symbol, a house icon, a lock symbol, and a power symbol that I was interested in remapping)... Anyway, while not very helpful for what I wanted, I found them talking about the edit: also, in case anybody coming in from the web is looking for how to remap these keys for a logitech k400. here's what worked for find random odd media keys on fedora. Just make sure that you either can remove into your system with ssh to be able to kill terminal 1:
terminal 2: click to make sure it has focus then run for the k400, I had the following:
The following does seem to remap these keys... but it seems like the "Lock PC" button is literally sending left meta / super / "windows" key + L so I'm not sure if there is going to be a way to remap this guy that doesn't also affect the Super + L combo using the normal left meta key. AFAICT this is a limitation of the keyboard... not a big deal for those that use Ctrl+Alt+L or don't lock their screens but more challenging for those who do use Super + L for locking their screen.
|
issue: i can't get it to work at all; seems like it doesn't like the file descriptors. I saw issue #3 but it wasn't any help.
system: Fedora 34 Cinnamon (and yes, I tried it with SELinux disabled too)
kernel: 5.15.12-100
install type: tried both manual install from releases (/usr/bin/map2 with chmod 755) and building with cargo.
map2 version: 1.0.6 for releases page / source for cargo (
map2 --version
givesmap2 1.0
in both cases)keyboard/mouse: logitech k400 wireless htpc keyboard via logitech receiver
script: just trying to get the simple example.m2 from the README working for now:
a::b;
file descriptors: honestly, I was a bit confused about what is supposed to go in here. will give full details below.
File descriptors
This part was the most confusing for me. The README only says:
But doesn't actually describe how to identify what the correct file descriptor is (e.g. not sure if it's supposed to be obvious or it is purely a trial-and-error process).
Anyway, I had:
Since the example in the README showed 2 entries, I assume that I also need 2 entries: one from
/dev/input/by-id
and one from/dev/input/by-path
. I also made the assumption that I wanted one of the "usb-Logitech_USB_Receiver" ones and that I should probably pair similar events (e.g. the file under/dev/input/by-id
that points to ../mouse1 and the file under/dev/input/by-path
that points to ../mouse1)... but all guesswork.Since I had 2 candidates, I made 2 files and figured I just try one and if it didn't work, then try the other.
devices-mouse1.list
devices-event4.list
Errors
Attempting first as regular user then with sudo, using first the precompiled version from releases page then with version built from source with caro.
From this, I think that my devices-event4.list is the correct file descriptor to use for my logitech k400 but still can't get it to work.
I tried the same thing with the cargo build but got the same error message.
I've closed several processes like Solaar that I thought might potentially be responsible but no luck..
Any ideas?
The text was updated successfully, but these errors were encountered: