Skip to content
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

Unable to activate two swaps simultaneously #761

Closed
pedromarun opened this issue Sep 3, 2023 · 2 comments
Closed

Unable to activate two swaps simultaneously #761

pedromarun opened this issue Sep 3, 2023 · 2 comments

Comments

@pedromarun
Copy link

pedromarun commented Sep 3, 2023

Hello,

I'm trying to achieve the following behaviour:

Swap keys A and B.
Swap keys C and C.

Loading either one of the remappings separately works perfectly, but loading the other one deactivates the one that was running before. This happens both with manually clicking "Apply" and with selecting Autoload. Also, toggling Autoload for one of the swaps untoggles the Autoload for the other one.

Is there a way around this? Am I doing something wrong?

Below is some information about my system, as suggested by the common issue "Autoload not working", which seemed closest to my problem.

System Information and logs

  1. Version: 2.0.0
  2. pop-os
  3. gnome
  4. sudo ls -l /proc/1/exe returns lrwxrwxrwx 1 root root 0 Sep 2 19:50 /proc/1/exe -> /usr/lib/systemd/systemd
  5. cat ~/.config/input-remapper-2/config.json returns
{
    "version": "2.0.0",
    "autoload": {
        "Logitech K760 Keyboard": "backslash"
    },
    "macros": {
        "keystroke_sleep_ms": 10
    },
    "gamepad": {
        "joystick": {
            "non_linearity": 4,
            "pointer_speed": 80,
            "left_purpose": "none",
            "right_purpose": "none",
            "x_scroll_speed": 2,
            "y_scroll_speed": 0.5
        }
    }
}
  1. systemctl status input-remapper -n 50 this returns a wall of text, mostly repeating the following:
Sep 03 16:00:07 pop-os input-remapper-service[903]: Request to start injecting for "Logitech>
Sep 03 16:00:07 pop-os input-remapper-service[903]: Found "input-remapper Logitech K760 Keyb>
Sep 03 16:00:07 pop-os input-remapper-service[903]: Loading preset from "/home/pedromarun/.c>
Sep 03 16:00:07 pop-os input-remapper-service[903]: WARNING: No origin_hash set for {'type':>
Sep 03 16:00:07 pop-os input-remapper-service[903]: WARNING: No origin_hash set for {'type':>
Sep 03 16:00:07 pop-os input-remapper-service[903]: Stopping injecting keycodes for group "L>

Testing the setup

  1. input-remapper-control --command hello Daemon answered with "hello"
  2. sudo pkill -f input-remapper-service && sudo input-remapper-service -d & sleep 2 && input-remapper-control --command autoload returns
[1] 41004

[1]+  Stopped                 sudo pkill -f input-remapper-service && sudo input-remapper-service -d
Connected to the service
Autoloading all
Done
  1. (while the previous command is still running) sudo evtest returns "sudo: evtest: command not found"
@sezanzeb
Copy link
Owner

Is there a way around this?

no, only one preset can be active per device

@sezanzeb
Copy link
Owner

This might be a relevant feature request that helps in this case: #571

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants