logiops icon indicating copy to clipboard operation
logiops copied to clipboard

logid only works after restarting service

Open epassaro opened this issue 3 years ago • 11 comments

I never experienced #204 until a recent openSUSE Tumbleweed update (like a month ago).

Installed the latest version https://github.com/PixlOne/logiops/commit/6bb470000952405b6817032c43c7215f7d070428 and my logid.service looks ok:

### Editing /etc/systemd/system/logid.service.d/override.conf
### Anything between here and the comment below will become the new contents of the file



### Lines below this comment will be discarded

### /usr/lib/systemd/system/logid.service
# [Unit]
# Description=Logitech Configuration Daemon
# StartLimitIntervalSec=0
# After=multi-user.target
# Wants=multi-user.target
# 
# [Service]
# Type=simple
# ExecStart=/usr/local/bin/logid
# User=root
# ExecReload=/bin/kill -HUP $MAINPID
# Restart=on-failure
# 
# [Install]
# WantedBy=graphical.target

but still need to restart the service after login. Any ideas?

epassaro avatar Nov 23 '21 20:11 epassaro

I also get this issue every startup without fault. I have verified the service is enabled and running. It just needs to be restarted to properly work. A fix for this would be great.

DominikMendel avatar Dec 12 '21 00:12 DominikMendel

can confirm. additionally this is what the unit returns on querying its status right after login ○ logid.service - Logitech Configuration Daemon Loaded: loaded (/usr/lib/systemd/system/logid.service; disabled; vendor preset: disabled) Active: inactive (dead)

liznevada avatar Dec 27 '21 07:12 liznevada

It was fixed automatically for me. Now after some minutes, logiops starts working.

epassaro avatar Dec 28 '21 21:12 epassaro

Been having the same issue for months (running Gnome on Arch).

Realised recently that instead of restarting logid I could just switch my mouse off and on and it will work :shrug: thought it may be worth mentioning here as it is much easier than manually restarting the service.

Previously I had tried amending logid.service as the OP stated (and with some other tweaks too) and none of those changes seemed to fix this issue.

(MX Anywhere 3 connected via bluetooth)

Staindk avatar Jan 13 '22 07:01 Staindk

Been having the same issue for months (running Gnome on Arch).

Realised recently that instead of restarting logid I could just switch my mouse off and on and it will work shrug thought it may be worth mentioning here as it is much easier than manually restarting the service.

Previously I had tried amending logid.service as the OP stated (and with some other tweaks too) and none of those changes seemed to fix this issue.

(MX Anywhere 3 connected via bluetooth)

Hi! Switching mouse on and off worked for me. Thanks for the tip!

epassaro avatar Jan 13 '22 11:01 epassaro

What has helped me a bit is to add delay to the service start like ExecStartPre=/bin/sleep 30 But that is only a band aid. I would guess that the failure comes from that the mice is not available when the service starts so it can't connect to it. So if one moves the mice before, it will become active and the service finds it correctly.

Better solution would be to kill the logid when it gets the error for "Invalid Function ID" or similar so Systemd would then restart the service and the mouse would have time to become active.

JohanAke1 avatar Jul 22 '22 16:07 JohanAke1

For me, this happened when I used --now switch when setting the service to enabled (systemctl enable --now logid). This issue disappeared when I re-set it without that switch.

hez01 avatar Nov 27 '22 19:11 hez01

I had this issue on Fedora 37 and @hez01's hint fixed it completely for me. I just restarted computer and everything is working fine. Thanks!

dszmaj avatar Dec 13 '22 13:12 dszmaj

This is still happening.

Is there any solution for this at this moment?

Anyhow, I may look forward to get something like an udev rule that may get the work done (at least to restart the service).

joaquinvacas avatar Feb 06 '24 20:02 joaquinvacas

This issue popped up again, the fix as described in #148 (using a udev rule) and #269 (using modprobe) do not work. Up until yesterday it all worked silky smooth. After performing a DNF package update suddenly it seems the service must be restarted each time the mouse is turned on.

Any insights may prove useful.

lazarosgogos avatar Apr 06 '24 19:04 lazarosgogos

The latest bluez update (5.73-3) seems to have messed with it as reported by other people as well. A downgrade fixes it for now, it seems to be irrelevant to the driver itself. Hope this helps someone.

lazarosgogos avatar Apr 07 '24 08:04 lazarosgogos