-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Logid doesn't apply config on boot, when restarted works flawless #204
Comments
Same problem here. if i run sudo systemctl start logid after boot is working ok. |
Same issue here. I was using my mouse over Bluetooth and it seemed to be working, but now I am using a unify receiver and it only works after a second run. |
I have the same problem when started to use the unifying device. No problems with Bluetooth only |
same problem here too (... std::exception) my logid.cfg :
Manjaro + KDE |
I've noticed similar behavior when my mouse has gone to sleep due to inactivity. When I move it again and it wakes up the mouse defaults to default settings until I restart logid. I wonder if it's the same issue. |
I've has the same issue at first, then i tried using |
@Aditeya All that command does is flag the service to be started on boot. If that fixes it for you then your issue was just that you forgot to do that in the first place (most services do not default to enabled when they are installed). The rest of us are experiencing a different issue. |
@ReillyBrogan I'm sorry, I should've been more clear. I meant that using sudo to start and enable the service, as opposed to just doing it as a regular user is what solved the problem for me. |
You know I just noticed this starting working perfectly for me again, and it got me wondering if this is something library related. My system is Solus which just updated a few packages, perhaps the latest Systemd fixes it? We went from 247.4 to 247.6. |
I'm also getting the issue where if the mouse is left untouched it goes to powersave mode, and when I turn the computer on it doesn't apply the config. But if i move the mouse, which activates it, and then i turn it on the computer the config is applied. |
Yes, I wonder if my experience with it starting to work was just that I was touching the mouse before I started the computer. IE, the root cause of this issue is that logid is seemingly not handling a mouse coming online. |
I'm facing a similar issue on Ubuntu 21.04, using the latest logiops.
After restarting the service, it works fine. |
I was experiencing similar issues under Arch linux with systemd 248rc4, but it went away after upgrading to systemd 248. It seems the difference is that now the kernel module |
Seems like @kris7t was right. I have fixed the issue by adding hid-logitech-hidpp.ko to the initframfs. |
Hmmm I'm not sure that's the correct solution in all cases. I am using Solus which pre-bakes the initramfs into the kernel package and that initramfs already contains the I'm thinking there might be two separate issues at play here:
I suspect that if the second issue was solved it would probably result in the first fix no longer being needed as well. |
I have tested not touching the mouse until the the system has booted, and I did not have any issue. There might be two separate issues. |
I solve this problem in Fedora 33 just made install use dnf "sudo dnf install logiops" and when restarting the problem it's solved. Need to wait a feel seconds (I'm don't count). https://koji.fedoraproject.org/koji/buildinfo?buildID=1735923 In my case, the logiops start with system but don't have any practical effect. I have libratbag install too. And I try stop this service because don't have any effect in my system and piper too. But I have the same problem yet. I think the provisory solution it's input at the terminal when the system starts "sudo systemctl restart logid" because logid starts with the system but no have an effect and restarting made them force to up effectively. |
@thiagolucio All that means is that the logid service shouldn't be automatically enabled when the package is installed, which I think is the better default. After all somebody installing it is going to need to create a config file anyway so there's no point in having it run until then. |
But I have the configuration file implemented in the correct place path. It's really a problem I think. But your opinion it's relevant because I don't think in this perspective. I created an alias in my bash to activate the service typing in terminal the command "mx" but I think in the past this service runs automatically right? |
@thiagolucio If you ran |
Yes. I actually activated the service using this command. I actually researched a lot about it. If you look at the image of the service I posted earlier, you will see that the service is "enable". However, for not being able to force the "enable" of "vendor" in systemctl, it does not start automatically. If you look at the systemctl documentation you will see that "vendor" must be enabled for it to automatically start with the system. It is this problem that I am trying to solve. Anyone else experiencing this problem could do this same check by typing in the bash 'systemctl list-unit-files --state = enabled' and doing this check. Actually, in my view, this is the service problem that is occurring in this ticket. |
@thiagolucio I did read the documentation. The vendor flag determines whether or not the service automatically starts after the service file is installed. However if a user uses |
But that is exactly the problem that I noticed. As much as I apply the command "systemctl enable" the status of "vendor" does not change for the logid. It continues to disable. Why I don't know how to tell you. I just put this information in because I thought it might help in some way. |
Any news on that ? I'm using the latest release 0.2.3 on Fedora 34 with Gnome 40. |
@Nicryc I don't believe anyone has figured it out yet. Unfortunately I'm not familiar enough with how HID works under Linux to properly know how to debug this and it doesn't seem that the dev has had the time/inclination lately to look at it (which is cool, this is a volunteer project after all). If anyone has any idea of where to start feel free to let me know (breakpoints in the code? USB protocol capture?) |
@wooparadog I experimented with this a bit more and got it working with I think that might be a better compared to |
I believe my system has some wrong config or something like that. Just manually to start work. Back to the research from me. |
@wooparadog I was looking at the system journal and I noticed that systemd-logind also processes keyboard events. That service depends on |
You know I've half wondered if this might be related to GNOME 40. I'm running that as well. |
Yes. I thought the same. However, this may also be a recurrence of Fedora 34 itself. In this new version, there have been many changes in the system itself. Assuming btrfs by default, Wayland as a graphical manager, pipeware to manage the sound. Since installing Fedora 34, I have bitterly regretted having removed Fedora33 that I used before because it was extremely stable, while Fedora 34 went through a lot of problems, mainly with Wayland because it really is not yet stable as it should be to be a standard of any system. I believe that all changes in the Fedora 34 ecosystem for these new features in addition to Gnome 40 itself are causing problems with logiops. |
As a note to people who come here with this problem, the suggestion above is to change the systemd
The reason is that the |
Maybe it is a separate issue but after a resume from suspend I have to restart logid to make it apply my settings. |
Notes for more debugging info: If you're still encountering this problem. You can check if $ systemd-analyze plot > systemd.svg There might be differences between all kinds of setups. You can change your systemd target accordingly. |
Interestingly a few times I've noticed that logiops will be working when I log in and will stop working a few seconds in. I wonder if we're seeing Gnome break it somehow? |
Man. I suggest you install "Stacer" and put them to run manually (including vendor boolean to true). I think then solve this (and other's) problems you have around. |
I tried every solution on this thread, but couldn't manage to make it work. Anyone still having troubles with this issue? distro: arch linux |
I don´t use Arch. But in this case, I think using the same solution including in Manjaro it's possible. Another solution you can try is installing Solaar in your system to have a redundancy solution. https://archlinux.org/packages/community/any/solaar/ |
Update: this workaround doesn't work. I'm still trying to find the solution here.. :(
|
Those steps worked for me, I just need to add |
Too much time after this issue was created. This problem does not exist anymore. |
Unfortunately the problem still here, at least for me after upgrade my Ubuntu to 22.04. Every day I need to start |
@thiagolucio this issue is still happening today. I'm always having to restart logid after the system boots |
@brunobmello25, so far this solution worked for me: #204 (comment) I did three reboots after that, still working. As I said here, I just needed to add a restart in to work on the first without rebooting. |
Sorry about that. In my case I don't use logiops anymore. I'm using Solaar. Works great no my Fedora. |
@thiagolucio, are you using it on Wayland? I used to use Solaar on Ubuntu 20.04 LTS, but after the upgrade to 22.04 LTS it stopped working, so I migrate to Logiops. |
I'm using the last version of Fedora (36). Fedora has used Wayland for a long time. Pipeware too. No problem at all. |
Let logiops start after multi-user.target is reached, and change it as a dependency to `graphical.target`. Fix PixlOne#204
Hello,
first thanks for the great software!
Now my problem is I'm running arch and using the logiops git package from the aur, I recently updated so I'm on the newest version.
Problem is when logid starts while booting it fails to apply the config,
systemctl status logid
shows this:So it seems like it is trying to start but either failing to add the device or failing to see my unifying receiver.
After restarting my status looks likes this
So i guess it starts too early and the system did not detect my receiver yet
The text was updated successfully, but these errors were encountered: