PixlOne / logiops

An unofficial userspace driver for HID++ Logitech devices
GNU General Public License v3.0
3.43k stars 272 forks source link

Need to launch Logid manualy for keypress actions to work #412

Closed jasht1 closed 1 year ago

jasht1 commented 1 year ago

Without initiating logid manually through the terminal none of my key press bindings work

I'm not sure if this issue is related to #166 as there are similarities, however in my case logid functions perfectly if I launch it manually in the terminal with sudo logid & that issue appears to be resolved. When I run sudo logid:

I'm still very new to Linux (only 4 days in) so I would greatly appreciate some help with this.

Configuration & further info

Oct 28 03:00:12 pop-os systemd[1]: Started Logitech Configuration Daemon. Oct 28 03:00:12 pop-os logid[878]: [WARN] Error adding device /dev/hidraw3: open failed: No such file or directory Oct 28 03:00:12 pop-os logid[878]: [WARN] Error adding device /dev/hidraw4: open failed: No such file or directory ~ ~ lines 1-13/13 (END)


~about 40 times over

so `sudo systemctl enable --now logid` seems to have worked in launching logid on boot. I'm not sure if the `[WARN]`s about hidraw3 & hidraw4 are anything to worry about as my mouse is on hidraw2:255.
jasht1 commented 1 year ago

Double install issue

2023-10-29 @ 11:26 The problem seem to have been that I had 2 instances of logiops installed, one form trying apt install logiops and one from source. I removed both and reinstalled from scratch and it solved my problem.

Removing apt version

having removed the the apt get version I can still run logid and have it work as expected & it has removed the system service that was previously enabled in systemctl that couldn't use key press actions.

joeashton@pop-os:~$ sudo apt remove logiops
...
joeashton@pop-os:~$ systemctl status logid
○ logid.service
     Loaded: masked (Reason: Unit logid.service is masked.)
     Active: inactive (dead) since Sun 2023-10-29 11:25:15 GMT; 3min 41s ago
   Main PID: 868 (code=killed, signal=TERM)
        CPU: 407ms

Oct 29 11:15:34 pop-os systemd[1]: Started Logitech Configuration Daemon.
Oct 29 11:15:35 pop-os logid[868]: [WARN] Error adding device /dev/hidraw4: ope>
Oct 29 11:15:35 pop-os logid[868]: [WARN] Error adding device /dev/hidraw3: ope>
Oct 29 11:25:14 pop-os systemd[1]: Stopping Logitech Configuration Daemon...
Oct 29 11:25:15 pop-os systemd[1]: logid.service: Deactivated successfully.
Oct 29 11:25:15 pop-os systemd[1]: Stopped Logitech Configuration Daemon.
lines 1-12/12 (END)

joeashton@pop-os:~$ sudo logid
[INFO] Device found: Wireless Mouse MX Master on /dev/hidraw2:255

Removing source version

removing programs built form source with cmake is way less clean than I hoped hope.

joeashton@pop-os:/etc/systemd/system$ sudo rm logid.service
...
joeashton@pop-os:~$ sudo xargs -a /home/joeashton/logiops/build/install_manifest.txt rm
rm: cannot remove '/usr/bin/logid': No such file or directory
rm: cannot remove '/lib/systemd/system/logid.service': No such file or directory

install from scratch

joeashton@pop-os:~/Programs$ git clone https://github.com/PixlOne/logiops.git
...
joeashton@pop-os:~/Programs$ cd logiops
joeashton@pop-os:~/Programs/logiops$ mkdir build
joeashton@pop-os:~/Programs/logiops$ cd build
joeashton@pop-os:~/Programs/logiops/build$ cmake ..
...
joeashton@pop-os:~/Programs/logiops/build$ make
...
joeashton@pop-os:~/Programs/logiops/build$ sudo make install
...
joeashton@pop-os:~/Programs/logiops/build$ sudo systemctl enable --now logid
...

Test solution

directly after install and systemctl enable logid works as expected.

joeashton@pop-os:~/Programs/logiops/build$ systemctl status logid
● logid.service - Logitech Configuration Daemon
     Loaded: loaded (/lib/systemd/system/logid.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-10-29 12:29:14 GMT; 10min ago
   Main PID: 7229 (logid)
      Tasks: 8 (limit: 18212)
     Memory: 1.3M
        CPU: 1.894s
     CGroup: /system.slice/logid.service
             └─7229 /usr/local/bin/logid

Oct 29 12:29:14 pop-os systemd[1]: Started Logitech Configuration Daemon.
Oct 29 12:29:18 pop-os logid[7229]: [INFO] Device found: Wireless Mouse MX Master on /dev/hidraw2:255

on reboot logiops continues to function as expected. Problem solved