bulletmark / libinput-gestures

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

Issues starting libinput #299

Closed linusrg1 closed 3 years ago

linusrg1 commented 3 years ago

My setup: Arch kde Synaptics touchpad

I dont know what is happening to be honest. It appears to be starting. I tried starting it from libinput-gestures-qt and from the terminal but there is never any output so I can't troubleshoot the issue. I dont know what is going on.

bulletmark commented 3 years ago

Please follow the TROUBLE SHOOTING section. Note the bold sentence in the opening paragraph.

linusrg1 commented 3 years ago
libinput-gestures: session KDE+x11 on Linux-5.11.15-zen1-2-zen-x86_64-with-glibc2.33, python 3.9.3, libinput 1.17.1
/usr/bin/libinput-gestures: hash 494597e082dbf3864a47761a3b7ae27c
Gestures configured in ~/.config/libinput-gestures.conf:
swipe right      3 xdotool key alt+Left
libinput-gestures: device /dev/input/by-path/platform-i8042-serio-1-event-mouse(event14): SynPS/2 Synaptics TouchPad

here is the output of libinput-gestures -l. Mb.

I was using the aur version but since it wasnt starting I tried compiling the github version instead. It started once but that was it. It never started again. I did add myself to the input group and I even checked the /etc/group file to check that I was actually added to it.

bulletmark commented 3 years ago

Please provide the output of libinput-gestures-setup status.

linusrg1 commented 3 years ago
libinput-gestures is set up as a desktop application.
libinput-gestures is not currently running.
libinput-gestures is set to autostart as a desktop application.
libinput-gestures is using custom configuration.

It says it isnt running but thats 'cause it wont start.

bulletmark commented 3 years ago

SInce you are using Arch, you are better off starting this as a systemd user service which as the README says is the preferred option. Type:

libinput-gestures-setup service
libinput-gestures-setup autostart
libinput-gestures-setup start
linusrg1 commented 3 years ago

ok i did do that but I misunderstood some of the output so I thought I disabled it instead of enabling it with those commands

bulletmark commented 3 years ago

So is it working now?

linusrg1 commented 3 years ago

sadly no it still says it is not running, should I try a reboot?

bulletmark commented 3 years ago

Please paste the output of libinput-gestures-setup status again here.

linusrg1 commented 3 years ago
libinput-gestures is set up as a user service.
libinput-gestures is not currently running.
libinput-gestures is set to autostart as a user service.
libinput-gestures is using custom configuration.
bulletmark commented 3 years ago

What is output of these:

systemctl status --user libinput-gestures
journalctl -b --user -u libinput-gestures
linusrg1 commented 3 years ago
     Loaded: loaded (/usr/lib/systemd/user/libinput-gestures.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2021-04-21 18:33:26 EDT; 5min ago
       Docs: https://github.com/bulletmark/libinput-gestures
    Process: 7275 ExecStart=/usr/bin/libinput-gestures (code=exited, status=1/FAILURE)
   Main PID: 7275 (code=exited, status=1/FAILURE)
        CPU: 234ms

Apr 21 18:33:25 linus-laptop systemd[573]: Started Actions gestures on your touchpad using libinput.
Apr 21 18:33:26 linus-laptop libinput-gestures[7275]: libinput-gestures is already running for linus, terminating ..
Apr 21 18:33:26 linus-laptop systemd[573]: libinput-gestures.service: Main process exited, code=exited, status=1/FAILURE
Apr 21 18:33:26 linus-laptop systemd[573]: libinput-gestures.service: Failed with result 'exit-code'.
Apr 21 18:31:47 linus-laptop libinput-gestures[7235]: libinput-gestures is already running for linus, terminating ..
Apr 21 18:31:47 linus-laptop systemd[573]: libinput-gestures.service: Main process exited, code=exited, status=1/FAILURE
Apr 21 18:31:47 linus-laptop systemd[573]: libinput-gestures.service: Failed with result 'exit-code'.
Apr 21 18:33:25 linus-laptop systemd[573]: Started Actions gestures on your touchpad using libinput.
Apr 21 18:33:26 linus-laptop libinput-gestures[7275]: libinput-gestures is already running for linus, terminating ..
Apr 21 18:33:26 linus-laptop systemd[573]: libinput-gestures.service: Main process exited, code=exited, status=1/FAILURE
Apr 21 18:33:26 linus-laptop systemd[573]: libinput-gestures.service: Failed with result 'exit-code'.
bulletmark commented 3 years ago

Says it is already running. Must have got something in a knot earlier. Reboot, then should be ok.

linusrg1 commented 3 years ago

ok

bulletmark commented 3 years ago

So did that fix it?

linusrg1 commented 3 years ago

Sadly no unless it doesnt autostart it still says it isnt running. Maybe it doesnt like my trackpad it is 11 years old.

bulletmark commented 3 years ago

Please type the output of the following now that you have rebooted:

systemctl status --user libinput-gestures
journalctl -b --user -u libinput-gestures
libinput-gestures-setup status
linusrg1 commented 3 years ago
     Loaded: loaded (/usr/lib/systemd/user/libinput-gestures.service; enabled; >
     Active: inactive (dead)
       Docs: https://github.com/bulletmark/libinput-gestures

-- Journal begins at Fri 2021-04-16 06:32:42 EDT, ends at Wed 2021-04-21 19:52:> -- No entries --

libinput-gestures is set up as a user service.
libinput-gestures is not currently running.
libinput-gestures is set to autostart as a user service.
libinput-gestures is using custom configuration.

Here

bulletmark commented 3 years ago

Sure you typed journalctl -b --user -u libinput-gestures exactly?

linusrg1 commented 3 years ago

yep copied and pasted ur exact command.

linusrg1 commented 3 years ago

Maybe it is a zen kernel issue? Should I try the stock kernel?

bulletmark commented 3 years ago

When you paste output always include the initiating command so there is no confusion about that.

Hard to believe it is a kernel issue when we can't even see the journal output. Something basic we are missing here.

linusrg1 commented 3 years ago

Ok. I removed the initiating command because it was cutting the first line off.

linusrg1 commented 3 years ago

Also despite using arch I know less about linux than u might think. Im not clueless I know quite a bit but not as much about the linux backend.

linusrg1 commented 3 years ago

So I apologize if I am having issues thinking of potential answers

bulletmark commented 3 years ago

Type journalctl --since today --user -u libinput-gestures (and include that command line in your output).

linusrg1 commented 3 years ago
Apr 21 18:31:47 linus-laptop libinput-gestures[7235]: libinput-gestures is already running for linus, terminating ..
Apr 21 18:31:47 linus-laptop systemd[573]: libinput-gestures.service: Main process exited, code=exited, status=1/FAILURE
Apr 21 18:31:47 linus-laptop systemd[573]: libinput-gestures.service: Failed with result 'exit-code'.
Apr 21 18:33:25 linus-laptop systemd[573]: Started Actions gestures on your touchpad using libinput.
Apr 21 18:33:26 linus-laptop libinput-gestures[7275]: libinput-gestures is already running for linus, terminating ..
Apr 21 18:33:26 linus-laptop systemd[573]: libinput-gestures.service: Main process exited, code=exited, status=1/FAILURE
Apr 21 18:33:26 linus-laptop systemd[573]: libinput-gestures.service: Failed with result 'exit-code'.
linusrg1 commented 3 years ago

It looks like to me it tries to run it thinks it is already running then kills it.

bulletmark commented 3 years ago

Please run these commands again and then paste all the output as one (including all the commands).

libinput-gestures-setup stop
libinput-gestures-setup autostop
libinput-gestures-setup service
libinput-gestures-setup autostart
libinput-gestures-setup start
libinput-gestures-setup status
linusrg1 commented 3 years ago

Created symlink /home/linus/.config/systemd/user/graphical-session.target.wants/libinput-gestures.service → /usr/lib/systemd/user/libinput-gestures.service.

libinput-gestures is set up as a user service.
libinput-gestures is currently running as a user service.
libinput-gestures is set to autostart as a user service.
libinput-gestures is using custom configuration.
bulletmark commented 3 years ago

Where's all the commands?

linusrg1 commented 3 years ago

oh u wanted those too? sry.

libinput-gestures stopped as a user service.
[linus@linus-laptop ~]$ libinput-gestures-setup autostop
[linus@linus-laptop ~]$ libinput-gestures-setup service
[linus@linus-laptop ~]$ libinput-gestures-setup autostart
Created symlink /home/linus/.config/systemd/user/graphical-session.target.wants/libinput-gestures.service → /usr/lib/systemd/user/libinput-gestures.service.
libinput-gestures enabled as a user service.
[linus@linus-laptop ~]$ libinput-gestures-setup start
libinput-gestures started as a user service.
[linus@linus-laptop ~]$ libinput-gestures-setup status
libinput-gestures is installed.
libinput-gestures is set up as a user service.
libinput-gestures is currently running as a user service.
libinput-gestures is set to autostart as a user service.
libinput-gestures is using custom configuration.
bulletmark commented 3 years ago

The above says it is running. Is there still a problem?

linusrg1 commented 3 years ago

gestures aint working but ill delete my config that gestures-qt made and use the default one.

bulletmark commented 3 years ago

Please type journalctl -b --user -u libinput-gestures exactly as you see here (i.e. copy/paste it). Then paste that command and the output that follows it here. Please include that first line (note you missed the first line in your output just above).

linusrg1 commented 3 years ago

still nope? I even restarted it. Maybe 11yr old trackpads dont have more that 2 finger support?

bulletmark commented 3 years ago

Nope? I was expecting the output I asked for?

bulletmark commented 3 years ago

If you trackpad is not supported we work that out from the log. But we aren't even getting off the ground here. Something very basic is wrong.

linusrg1 commented 3 years ago

Nope? I was expecting the output I asked for? did I forget to give u something?

bulletmark commented 3 years ago

Please read back here a litte, to this comment.

linusrg1 commented 3 years ago

ok

linusrg1 commented 3 years ago

I have a feeling it is a driver issue. Gnome didnt really like my touchpad kde doesnt mind using it but it can be buggy at times.

bulletmark commented 3 years ago

So where is the output I last asked for? We have not even established whether libinput-gestures has been installed properly so no point yet pontificating about a "driver" issue.

linusrg1 commented 3 years ago

Sorry Im getting tired didnt read everything properly.

libinput-gestures is already running for linus, terminating ..

bulletmark commented 3 years ago

You still did not paste the command! And that is not all the output.

Anyhow, what you are pasting here is not consistent. That above says it is not running as a service but just above that you paste that libinput-gestures is currently running as a user service. Please type:

libinput-gestures-setup stop
libinput-gestures-setup autostop

Then reboot. Then type:

libinput-gestures-setup service
libinput-gestures-setup autostart
libinput-gestures-setup start
libinput-gestures-setup status
journalctl -b --user -u libinput-gestures
systemctl status --user libinput-gestures

Then paste here the entire 6 last commands above with their output. Please take care to type and paste exactly what I am asking for.

BTW, when I say to paste, please paste EVERYTHING typed and printed to the terminal. I.e. the original typed commands and all the lines and all the timestamps in the output, as one big copy and paste here.

linusrg1 commented 3 years ago
"no output"
libinput-gestures-setup autostart
Created symlink /home/linus/.config/systemd/user/graphical-session.target.wants/libinput-gestures.service → /usr/lib/systemd/user/libinput-gestures.service.
libinput-gestures enabled as a user service.
libinput-gestures-setup start
libinput-gestures started as a user service.
libinput-gestures-setup status
libinput-gestures is installed.
libinput-gestures is set up as a user service.
libinput-gestures is currently running as a user service.
libinput-gestures is set to autostart as a user service.
libinput-gestures is using default configuration.
journalctl -b --user -u libinput-gestures
-- Journal begins at Fri 2021-04-16 06:32:42 EDT, ends at Thu 2021-04-22 07:17:09 EDT. --
Apr 22 07:15:48 linus-laptop systemd[573]: Started Actions gestures on your touchpad using libinput.
systemctl status --user libinput-gestures
● libinput-gestures.service - Actions gestures on your touchpad using libinput
     Loaded: loaded (/usr/lib/systemd/user/libinput-gestures.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-04-22 07:15:48 EDT; 9min ago
       Docs: https://github.com/bulletmark/libinput-gestures
   Main PID: 1955 (python3)
      Tasks: 3 (limit: 9507)
     Memory: 13.7M
        CPU: 788ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/libinput-gestures.service
             ├─1955 python3 /usr/bin/libinput-gestures
             └─1960 libinput-debug-events --device /dev/input/by-path/platform-i8042-serio-1-event-mouse

Apr 22 07:15:48 linus-laptop systemd[573]: Started Actions gestures on your touchpad using libinput.
linusrg1 commented 3 years ago

Sorry for the inconvenience

bulletmark commented 3 years ago

What is "no output"? Where are your prompts? Why not simply paste the full output of the terminal? I get the feeling you are pasting selected parts of your session so I don't have confidence I am seeing everything. I want the full session!

linusrg1 commented 3 years ago

That is the output of all the commands I only left out my username. And my laptop name. If you need it to see what type of shell I am in it is standard. I am not logged into the terminal as a root user.

linusrg1 commented 3 years ago

But if you really need all that I can run it again