Closed Moini closed 1 year ago
Failed to enable unit: Unit file /etc/systemd/system/input-remapper-daemon.service is masked.
That is probably the issue. You need to unmask the service:
sudo systemctl unmask input-remapper
Then you can run the postinst script again. It should say something like this:
Failed to disable unit: Unit file key-mapper.service does not exist.
Failed to stop key-mapper.service: Unit key-mapper.service not loaded.
Created symlink /etc/systemd/system/default.target.wants/input-remapper.service → /usr/lib/systemd/system/input-remapper.service.
You can ignore the first two errors.
Thank you.
Unfortunately, it doesn't say anything like that :-(
The file /usr/lib/systemd/system/input-remapper.service exists. The file /usr/bin/input-remapper.service exists. The file /etc/systemd/system/default.target.wants/input-remapper-daemon.service exists, but not /etc/systemd/system/default.target.wants/input-remapper.service
$ sudo systemctl unmask input-remapper
$ sudo systemctl daemon-reload
[Try installing package again - does not work, same error message as before]
$ sudo systemctl unmask input-remapper [Tab][Maybe this wasn't complete? Let's try unmasking more services.]
> input-remapper-daemon.service input-remapper.service
$ sudo systemctl unmask input-remapper-daemon.service
Removed /etc/systemd/system/input-remapper-daemon.service. [What? Removed?!? …]
$ sudo systemctl daemon-reload
$ sudo ./postinst [Well, let's try again...]
> Failed to disable unit: Unit file key-mapper.service does not exist.
> Failed to stop key-mapper.service: Unit key-mapper.service not loaded.
> Failed to enable unit: File input-remapper.service: Link has been severed
> Failed to start input-remapper.service: Unit input-remapper.service not found.
[Nope... :-( ]
$ sudo systemctl unmask input-remapper.service [Maybe with the .service at the end?]
> Unit input-remapper.service does not exist, proceeding anyway. [No... ]
$ sudo systemctl daemon-reload
$ sudo ./postinst [Try again... but no ... ]
> Failed to disable unit: Unit file key-mapper.service does not exist.
> Failed to stop key-mapper.service: Unit key-mapper.service not loaded.
> Failed to enable unit: File input-remapper.service: Link has been severed
> Failed to start input-remapper.service: Unit input-remapper.service not found.
Might have something to do with me having the 1.4 version installed via package management before, and removing it (and reinstalling it, and removing it again, and installing 2.0, and removing that again - a couple times back and forth).
I assume you previously used the package from the mint repository and you are now trying to install the .deb file directly from the releases page?
It looks like the ubuntu version is split into two packages: a daemon and a gui did you make sure to uninstall both of those packages with your package manager? There should not be any input-remapper related files in /usr/lib/systemd/system/
, /usr/bin/
and /etc/systemd/system/default.target.wants/
after the uninstall.
This looks like an issue with the packaging for mint. Unfortunately I am not super familliar with Ubuntu or mint packaging. Maybe @skitt can help whit this.
What does dpkg -l 'input-remapper*'
show? You may need to purge packages marked rc
.
Thanks, purging helped!
I used
sudo apt purge python3-evdev python3-pydbus python3-inputremapper input-remapper-daemon input-remapper
and then downloaded 2.0.0 again and installed it.
For some reason, the purging did not delete the two configuration folders... which is weird. I backed them up and removed from ./.config before re-installing, and moved the 'input-remapper-2' config folder back after having started and closed the program once. Then restarted it, with the new config. Then rebooted.
The number keypad works as a 'streamdeck' and Inkscape button set for use with a graphics tablet now directly after logging in! ❤️
Thank you very much to both of you!
Should the possibility of purging being needed when coming from distro debs be documented somewhere?
(those were the packages from my apt log that I had installed when I first installed the 1.4 version)
Thanks, purging helped!
I used
sudo apt purge python3-evdev python3-pydbus python3-inputremapper input-remapper-daemon input-remapper
and then downloaded 2.0.0 again and installed it.For some reason, the purging did not delete the two configuration folders... which is weird. I backed them up and removed from ./.config before re-installing, and moved the 'input-remapper-2' config folder back after having started and closed the program once. Then restarted it, with the new config. Then rebooted.
The number keypad works as a 'streamdeck' and Inkscape button set for use with a graphics tablet now directly after logging in! ❤️
Thank you very much to both of you!
Should the possibility of purging being needed when coming from distro debs be documented somewhere?
Thank you SO much.
Please install the newest version from source to see if the problem has already been solved.
2.0.0 is the version that has the problem. Installed from .deb on GitLab.
The postinst script failed, making apt constantly complain.
When I run postinst manually, I get:
System Information and logs
input-remapper-control --version
Linux Mint 21.1
Xfce
sudo ls -l /proc/1/exe
to check if you are using systemdYes!
cat ~/.config/input-remapper-2/config.json
to see if the "autoload" config is written correctlysystemctl status input-remapper -n 50
the service has to be runningThis is where it doesn't work:
I've already tried reloading, but something must be wrong there.
Testing the status returns:
Testing the setup
input-remapper-control --command hello
sudo pkill -f input-remapper-service && sudo input-remapper-service -d & sleep 2 && input-remapper-control --command autoload
, are your keys mapped now?Yes.
sudo evtest
and search for a device suffixed by "mapped". Select it, does it report any events? Share the output.no 'mapped', but suffixed by 'forwarded'.
sudo udevadm control --log-priority=debug && sudo udevadm control --reload-rules && journalctl -f | grep input-remapper
,log.txt