Package Details: input-remapper-git 2.0.1.r0.ga012746a-1

Git Clone URL: https://aur.archlinux.org/input-remapper-git.git (read-only, click to copy)
Package Base: input-remapper-git
Description: A tool to change and program the mapping of your input device buttons.
Upstream URL: https://github.com/sezanzeb/input-remapper/
Licenses: GPL3
Conflicts: key-mapper
Provides: input-remapper
Submitter: sezanzeb
Maintainer: sezanzeb
Last Packager: sezanzeb
Votes: 34
Popularity: 0.54
First Submitted: 2022-01-01 12:10 (UTC)
Last Updated: 2024-10-28 19:58 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

pedrohqb commented on 2023-09-17 21:08 (UTC)

The package is broken since 16/september.

[pedro@mope-arch ~]$ systemctl status input-remapper.service

set 17 18:06:53 mope-arch input-remapper-service[21217]: File "/usr/lib/python3.11/site-packages/pydantic/deprecated/class_validators.py", line 222, in root_valid> set 17 18:06:53 mope-arch input-remapper-service[21217]: return root_validator()(*__args) # type: ignore set 17 18:06:53 mope-arch input-remapper-service[21217]: ^^^^^^^^^^^^^^^^ set 17 18:06:53 mope-arch input-remapper-service[21217]: File "/usr/lib/python3.11/site-packages/pydantic/deprecated/class_validators.py", line 228, in root_valid> set 17 18:06:53 mope-arch input-remapper-service[21217]: raise PydanticUserError( set 17 18:06:53 mope-arch input-remapper-service[21217]: pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST speci> set 17 18:06:53 mope-arch input-remapper-service[21217]: For further information visit https://errors.pydantic.dev/2.3/u/root-validator-pre-skip set 17 18:06:53 mope-arch systemd[1]: input-remapper.service: Main process exited, code=exited, status=1/FAILURE set 17 18:06:53 mope-arch systemd[1]: input-remapper.service: Failed with result 'exit-code'. set 17 18:06:53 mope-arch systemd[1]: Failed to start Service to inject keycodes without the GUI application.

Chrome commented on 2023-09-17 19:42 (UTC)

I got the GUI to show up again after a couple more attempts. Same as before, popup "User not Authorized" and got the original error along with @ssr error.

ssr commented on 2023-09-17 16:23 (UTC) (edited on 2023-09-17 16:24 (UTC) by ssr)

In my case, error is something different

Sep 18 00:13:48 input-remapper-service[4305]: Traceback (most recent call last):
Sep 18 00:13:48 input-remapper-service[4305]:   File "/usr/bin/input-remapper-service", line 47, in <module>
Sep 18 00:13:48 input-remapper-service[4305]:     from inputremapper.daemon import Daemon
Sep 18 00:13:48 input-remapper-service[4305]:   File "/usr/lib/python3.11/site-packages/inputremapper/daemon.py", line 42, in <module>
Sep 18 00:13:48 input-remapper-service[4305]:     from inputremapper.injection.injector import Injector, InjectorState
Sep 18 00:13:48 input-remapper-service[4305]:   File "/usr/lib/python3.11/site-packages/inputremapper/injection/injector.py", line 36, in <module>
Sep 18 00:13:48 input-remapper-service[4305]:     from inputremapper.configs.input_config import InputCombination, InputConfig, DeviceHash
Sep 18 00:13:48 input-remapper-service[4305]:   File "/usr/lib/python3.11/site-packages/inputremapper/configs/input_config.py", line 51, in <module>
Sep 18 00:13:48 input-remapper-service[4305]:     class InputConfig(BaseModel):
Sep 18 00:13:48 input-remapper-service[4305]:   File "/usr/lib/python3.11/site-packages/inputremapper/configs/input_config.py", line 253, in InputConfig
Sep 18 00:13:48 input-remapper-service[4305]:     @root_validator
Sep 18 00:13:48 input-remapper-service[4305]:      ^^^^^^^^^^^^^^
Sep 18 00:13:48 input-remapper-service[4305]:   File "/usr/lib/python3.11/site-packages/pydantic/deprecated/class_validators.py", line 222, in root_validator
Sep 18 00:13:48 input-remapper-service[4305]:     return root_validator()(*__args)  # type: ignore
Sep 18 00:13:48 input-remapper-service[4305]:            ^^^^^^^^^^^^^^^^
Sep 18 00:13:48 input-remapper-service[4305]:   File "/usr/lib/python3.11/site-packages/pydantic/deprecated/class_validators.py", line 228, in root_validator
Sep 18 00:13:48 input-remapper-service[4305]:     raise PydanticUserError(
Sep 18 00:13:48 input-remapper-service[4305]: pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
Sep 18 00:13:48 input-remapper-service[4305]: For further information visit https://errors.pydantic.dev/2.3/u/root-validator-pre-skip

Seems like some depreacted feature used.

Chrome commented on 2023-09-16 16:22 (UTC) (edited on 2023-09-16 16:35 (UTC) by Chrome)

Following git instructions, several issues arise.

GUI showed up once with error "User is not authorized". GUI hasn't shown up since.

GParted works and prompts for pass. I believe input remapper uses polkit as well? No password prompt though.

yay -S input-remapper-git works.

sudo systemctl restart input-remapper output:

Job for input-remapper.service failed because the control process exited with error code.
See "systemctl status input-remapper.service" and "journalctl -xeu input-remapper.service" for details.

systemctl status input-remapper.service output:

× input-remapper.service - Service to inject keycodes without the GUI application
     Loaded: loaded (/usr/lib/systemd/system/input-remapper.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Sat 2023-09-16 12:02:22 EDT; 3min 39s ago
    Process: 5018 ExecStart=/usr/bin/input-remapper-service (code=exited, status=1/FAILURE)
   Main PID: 5018 (code=exited, status=1/FAILURE)
        CPU: 149ms

Sep 16 12:02:22 battleship input-remapper-service[5018]:   File "/usr/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 98>
Sep 16 12:02:22 battleship input-remapper-service[5018]:     private_attributes = inspect_namespace(
Sep 16 12:02:22 battleship input-remapper-service[5018]:                          ^^^^^^^^^^^^^^^^^^
Sep 16 12:02:22 battleship input-remapper-service[5018]:   File "/usr/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 35>
Sep 16 12:02:22 battleship input-remapper-service[5018]:     raise PydanticUserError(
Sep 16 12:02:22 battleship input-remapper-service[5018]: pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `message_type = <M>
Sep 16 12:02:22 battleship input-remapper-service[5018]: For further information visit https://errors.pydantic.dev/2.3/u/model-field-missing-annotation
Sep 16 12:02:22 battleship systemd[1]: input-remapper.service: Main process exited, code=exited, status=1/FAILURE
Sep 16 12:02:22 battleship systemd[1]: input-remapper.service: Failed with result 'exit-code'.
Sep 16 12:02:22 battleship systemd[1]: Failed to start Service to inject keycodes without the GUI application.

journalctl -xeu input-remapper.service output:

░░ The process' exit code is 'exited' and its exit status is 1.
Sep 16 11:48:16 battleship systemd[1]: input-remapper.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit input-remapper.service has entered the 'failed' state with result 'exit-code'.
Sep 16 11:48:16 battleship systemd[1]: Failed to start Service to inject keycodes without the GUI application.
░░ Subject: A start job for unit input-remapper.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit input-remapper.service has finished with a failure.
░░ 
░░ The job identifier is 288 and the job result is failed.
Sep 16 12:02:22 battleship systemd[1]: Starting Service to inject keycodes without the GUI application...
░░ Subject: A start job for unit input-remapper.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit input-remapper.service has begun execution.
░░ 
░░ The job identifier is 3628.
Sep 16 12:02:22 battleship input-remapper-service[5018]: /usr/lib/python3.11/site-packages/pydantic/_internal/_config.py:269: UserWarning: Valid config keys have changed in V2:
Sep 16 12:02:22 battleship input-remapper-service[5018]: * 'allow_mutation' has been removed
Sep 16 12:02:22 battleship input-remapper-service[5018]: * 'underscore_attrs_are_private' has been removed
Sep 16 12:02:22 battleship input-remapper-service[5018]:   warnings.warn(message, UserWarning)
Sep 16 12:02:22 battleship input-remapper-service[5018]: Traceback (most recent call last):
Sep 16 12:02:22 battleship input-remapper-service[5018]:   File "/usr/bin/input-remapper-service", line 47, in <module>
Sep 16 12:02:22 battleship input-remapper-service[5018]:     from inputremapper.daemon import Daemon
Sep 16 12:02:22 battleship input-remapper-service[5018]:   File "/usr/lib/python3.11/site-packages/inputremapper/daemon.py", line 42, in <module>
Sep 16 12:02:22 battleship input-remapper-service[5018]:     from inputremapper.injection.injector import Injector, InjectorState
Sep 16 12:02:22 battleship input-remapper-service[5018]:   File "/usr/lib/python3.11/site-packages/inputremapper/injection/injector.py", line 36, in <module>
Sep 16 12:02:22 battleship input-remapper-service[5018]:     from inputremapper.configs.input_config import InputCombination, InputConfig, DeviceHash
Sep 16 12:02:22 battleship input-remapper-service[5018]:   File "/usr/lib/python3.11/site-packages/inputremapper/configs/input_config.py", line 51, in <module>
Sep 16 12:02:22 battleship input-remapper-service[5018]:     class InputConfig(BaseModel):
Sep 16 12:02:22 battleship input-remapper-service[5018]:   File "/usr/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 98, in __new__
Sep 16 12:02:22 battleship input-remapper-service[5018]:     private_attributes = inspect_namespace(
Sep 16 12:02:22 battleship input-remapper-service[5018]:                          ^^^^^^^^^^^^^^^^^^
Sep 16 12:02:22 battleship input-remapper-service[5018]:   File "/usr/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 352, in inspect_namespace
Sep 16 12:02:22 battleship input-remapper-service[5018]:     raise PydanticUserError(
Sep 16 12:02:22 battleship input-remapper-service[5018]: pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `message_type = <MessageType.selected_event: 'selected_event'>`. All mod>
Sep 16 12:02:22 battleship input-remapper-service[5018]: For further information visit https://errors.pydantic.dev/2.3/u/model-field-missing-annotation
Sep 16 12:02:22 battleship systemd[1]: input-remapper.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit input-remapper.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 16 12:02:22 battleship systemd[1]: input-remapper.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit input-remapper.service has entered the 'failed' state with result 'exit-code'.
Sep 16 12:02:22 battleship systemd[1]: Failed to start Service to inject keycodes without the GUI application.
░░ Subject: A start job for unit input-remapper.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit input-remapper.service has finished with a failure.
░░ 
░░ The job identifier is 3628 and the job result is failed.

ArchPie commented on 2023-05-22 19:07 (UTC)

[Solved] the bug is in Kernel 6.3 downgrading to 6.2 solved it

ArchPie commented on 2023-05-06 09:51 (UTC)

After rebuilding with @shawarden helpful note the app doesn't recognize MX master 2S any more...Any ideas to help? Thanks...

shawarden commented on 2023-05-06 00:38 (UTC) (edited on 2023-05-06 00:39 (UTC) by shawarden)

@hensansi The recent update switched python from 3.10.x to 3.11 so input-remapper needs to be rebuilt. I ended up stripping out any old python 3.10 stuff, because apparently you're not allowed 2 versions for things that need it:

sudo pacman -R $(pacman -Qoq /usr/lib/python3.10)
git clone https://aur.archlinux.org/input-remapper-git.git
cd input-remapper-git
makepkg -si

...and it's working again.

hensansi commented on 2023-05-05 07:30 (UTC) (edited on 2023-05-05 07:41 (UTC) by hensansi)

$ sudo input-remapper-control --command autoload
Traceback (most recent call last):
  File "/usr/bin/input-remapper-control", line 30, in <module>
    from inputremapper.logger import logger, update_verbosity, log_info
ModuleNotFoundError: No module named 'inputremapper'

Does anyone knows what causes this? (after upgrade)

Edit: For me uninstalling and installing again didn't work. (Paru)

I had to:

  • Remove the package - paru -R input-remapper-git
  • Clean all the caches - paru -Scc
  • Install the package - paru -Sy input-remapper-git
  • Reboot - I was having a weird error which was gone after a restart

stasadev commented on 2023-04-24 09:39 (UTC)

@hrm, try uninstalling and installing the package again. I don't have this problem anymore.

sezanzeb commented on 2023-04-21 08:51 (UTC)

Could it be that this problem keeps occurring every time a new commit is made to the main branch? I don't know what to do in that case. Because I previously had used the version generated by pkgver() already (https://aur.archlinux.org/cgit/aur.git/commit/?h=input-remapper-git&id=bd9a2a00fecde8bc0e6c852f90d8f55d63789bbe)