bulletmark / libinput-gestures

Actions gestures on your touchpad using libinput
3.93k stars 241 forks source link

libinput-gestures failed to start as a desktop application or a system service #323

Closed networkdeliverables closed 3 years ago

networkdeliverables commented 3 years ago

Before creating a new issue, please follow each step in the TROUBLESHOOTING section of the main README.

libinput-gestures: session ubuntu+x11 on Linux-5.13.0-1017-oem-x86_64-with-glibc2.29, python 3.8.10, libinput 1.15.5
Hash: 7fdb535fddc8a8f2306c17ccf295e6b9
Gestures configured in /etc/libinput-gestures.conf:
swipe up           _internal ws_up
swipe down         _internal ws_down
swipe left         xdotool key alt+Right
swipe right        xdotool key alt+Left
pinch in           xdotool key super+s
pinch out          xdotool key super+s
libinput-gestures: device /dev/input/by-path/pci-0000:00:15.1-platform-i2c_designware.1-event-mouse(event11): DELL0A36:00 06CB:CE65 Touchpad
libinput-gestures is installed.
libinput-gestures is set up as a desktop application.
libinput-gestures is currently running as a user service.
libinput-gestures is not set to autostart.
libinput-gestures is using default configuration file.

Some additional details

$ uname -srvp
Linux 5.13.0-1017-oem #21-Ubuntu SMP Tue Oct 12 09:32:36 UTC 2021 x86_64
$ cat /etc/group | grep input
input:x:107:networkdeliverables
$ dpkg --list | grep 'xdotool\|wmctrl\|libinput-tools' | awk '{print $2,$3}'
libinput-tools 1.15.5-1ubuntu0.2
wmctrl 1.07-7build1
xdotool 1:3.20160805.1-4

Describe the issue Unable to use the tool as the application never runs. I've gone through set up and troubleshooting with a complete uninstall twice (including subsequent reboots) but having no luck. Fails to run as a desktop or a system service. What am I missing here?

$ libinput-gestures-setup stop autostop service start
libinput-gestures failed to start as a user service.
$ libinput-gestures-setup stop autostop desktop start
libinput-gestures failed to start as a desktop application.

Great project, really excited to use it, but am just having no luck

bulletmark commented 3 years ago

Please follow all the steps in the trouble-shooting section and report specific error messages/etc here.

networkdeliverables commented 3 years ago

From troubleshooting:

  1. Yes, latest version from github repo
  2. Yes, read and re-read, and am a member of the input group
  3. Default config only, no custom
  4. libinput-gestures-status output:
    $ libinput-gestures-setup status
    libinput-gestures is installed.
    libinput-gestures is set up as a user service.
    libinput-gestures is not currently running.
    libinput-gestures is not set to autostart.
    libinput-gestures is using default configuration file.
  5. libinput-gestures debugging as follows, but notice it claims to be running and then self-terminates:
    $ libinput-gestures-setup stop && libinput-gestures -d
    libinput-gestures: session ubuntu+x11 on Linux-5.13.0-1017-oem-x86_64-with-glibc2.29, python 3.8.10, libinput 1.15.5
    Hash: 7fdb535fddc8a8f2306c17ccf295e6b9
    Gestures configured in /etc/libinput-gestures.conf:
    swipe up           _internal ws_up
    swipe down         _internal ws_down
    swipe left         xdotool key alt+Right
    swipe right        xdotool key alt+Left
    pinch in           xdotool key super+s
    pinch out          xdotool key super+s
    libinput-gestures: device /dev/input/by-path/pci-0000:00:15.1-platform-i2c_designware.1-event-mouse(event11): DELL0A36:00 06CB:CE65 Touchpad
    libinput-gestures is already running for networkdeliverables, terminating ..
  6. Same as debug mode, raw mode claims to be running and self-terminates:
    $ libinput-gestures-setup stop && libinput-gestures -r
    libinput-gestures: session ubuntu+x11 on Linux-5.13.0-1017-oem-x86_64-with-glibc2.29, python 3.8.10, libinput 1.15.5
    Hash: 7fdb535fddc8a8f2306c17ccf295e6b9
    libinput-gestures: device /dev/input/by-path/pci-0000:00:15.1-platform-i2c_designware.1-event-mouse(event11): DELL0A36:00 06CB:CE65 Touchpad
    libinput-gestures is already running for networkdeliverables, terminating ..
  7. No touchpad issues I can find online for this model.
  8. xdotool seems fine, commands are executing key and mouse clicks as expected
  9. Touchpad device is properly identified by libinput
bulletmark commented 3 years ago

Please paste output of ls -l /tmp/libinput-gestures-*.

networkdeliverables commented 3 years ago
$ ls -l /tmp/libinput-gestures*
-rw-rw-r-- 1 networkdeliverables networkdeliverables  0 Oct 19 18:03 /tmp/libinput-gestures-networkdeliverables.lock
-rw-rw-r-- 1 networkdeliverables networkdeliverables 10 Oct 19 17:47 /tmp/libinput-gestures-networkdeliverables.pid
bulletmark commented 3 years ago

It seems like you have started this some other way? Please type libinput-gestures-setup autostop, then reboot, then paste the output of libinput-gestures-setup status.

networkdeliverables commented 3 years ago

Really appreciate the help here bulletmark, I'm a bit baffled. autostop and reboots

$ libinput-gestures-setup status
libinput-gestures is installed.
libinput-gestures is set up as a user service.
libinput-gestures is not currently running.
libinput-gestures is not set to autostart.
libinput-gestures is using default configuration file.

Double checked /tmp/libinput-gestures* with no pid or lock files, nothing in ps either. Raw mode of libinput-gestures is nice and noisey now and debug mode is registering some pinches and swipes

bulletmark commented 3 years ago

So you are saying it is now working fine?

networkdeliverables commented 3 years ago

No, I still can't run the service. Every issue of 'start' returns a simply failure of "libinput-gestures failed to start as a user service."

networkdeliverables commented 3 years ago

Okay so after some combination of commands, it is running and is working. However when the service is not running and confirmed by a status command, the start command returns a failed message every time on my system. Maybe this has something to do with lock and pid files in /tmp not being cleared after a raw or debug mode?

Either way, it's working now! Thank you kindly for the assistance!

bulletmark commented 3 years ago

Please type libinput-gestures-setup stop autostop desktop start and tell me if that runs. Then try libinput-gestures-setup stop autostop service start and see what it says.

margual56 commented 2 years ago

I have the same issue.

Response

Please type libinput-gestures-setup stop autostop desktop start and tell me if that runs

libinput-gestures-setup stop autostop desktop start
removed '/home/marcos/.config/autostart/libinput-gestures.desktop'
libinput-gestures failed to start as a desktop application.

Then try libinput-gestures-setup stop autostop service start and see what it says

libinput-gestures-setup stop autostop service start
Systemd not available, can not run as service.

Additional details

libinput-gestures: session unknown+unknown on Linux-5.16.11-2-MANJARO-x86_64-with-glibc2.35, python 3.10.2, libinput 1.20.0
Hash: 40fbc7bf6f74dfec892301edf07949e5
Gestures configured in /etc/libinput-gestures.conf:
swipe left       3 xdotool key alt+Right
swipe right      3 xdotool key alt+Left
swipe down       3 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut Expose
swipe up         3 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut ShowDesktopGrid
swipe down       4 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut Window Minimize
swipe left       4 qdbus org.kde.KWin /KWin nextDesktop
swipe right      4 qdbus org.kde.KWin /KWin previousDesktop
libinput-gestures: device /dev/input/by-path/platform-i8042-serio-1-event-mouse(event9): ETPS/2 Elantech Touchpad

I'm using Manjaro KDE

$ uname -srvp
Linux 5.16.11-2-MANJARO #1 SMP PREEMPT Fri Feb 25 11:27:31 UTC 2022 unknown
$ cat /etc/group | grep input
input:x:994:
$ pacman -Q | grep 'xdotool\|wmctrl\|libinput-tools'
wmctrl 1.07-6
xdotool 3.20211022.1-1

Hypothesis

Maybe the issue is that my user didn't belong to the group "input", as seen in the output above

bulletmark commented 2 years ago

@margual56 edit: sorry, thought this was a different issue.

bulletmark commented 2 years ago

Note that the OP here eventually decided that he didn't have a problem so we got nowhere with this issue. It has been closed and there is no useful info here. @margual56 so I still think you should raise a new issue if you really think you have a problem.

ddrtwo commented 1 year ago

I had the same issue. I installed libinput-tools (not installed by default on opensuse) And it worked fine ;-)