Dear all
I am still a rookie and need help to get ydotool running. I want to use this with Ubuntu 24.04. (wayland/Gnome). I read several instructions and set up a system service with this configuration:
sudo cat /etc/systemd/system/ydotoold.service
[Unit]
Description=Ydotool Daemon
After=network.target
[Service]
ExecStart=/usr/bin/ydotoold --socket-path=/tmp/.ydotool_socket --socket-own=1000:1000
#Restart=always
User=martin
[Install]
WantedBy=multi-user.target
I reloaded daemons and (re)started the service.
Also I found advice that permissions for the socket under /tmp are important. For this I added a udev rule like this:
sudo cat /etc/udev/rules.d/80-uinput.rules
## ydotoold fix
## https://github.com/ReimuNotMoe/ydotool/issues/25#issuecomment-535842993
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
and I did this:
sudo usermod -a -G users $USER
Here are some more information:
ls -l /dev/uinput /tmp/.ydotool_socket
crw-rw---- 1 root input 10, 223 Mai 23 22:16 /dev/uinput
srw------- 1 martin martin 0 Mai 24 11:36 /tmp/.ydotool_socket
So, this is for context. When I now try to start ydotool without root permissions, I get this:
YDOTOOL_SOCKET="/tmp/.ydotool_socket" ydotool key 125:1 32:1 32:0 125:0;
ydotool: notice: ydotoold backend unavailable (may have latency+delay issues)
and as root:
sudo YDOTOOL_SOCKET="/tmp/.ydotool_socket" ydotool key 125:1 32:1 32:0 125:0;
failed to connect socket `/tmp/.ydotool_socket': Connection refused
Please check if ydotoold is running.
But:
ps -ax | grep ydo
14252 ? Ss 0:00 /usr/bin/ydotoold --socket-path=/tmp/.ydotool_socket --socket-own=1000:1000
15065 pts/0 S+ 0:00 grep --color=auto ydo
Can you help me? I am kind of at my wits end with this.
Dear all
I am still a rookie and need help to get ydotool running. I want to use this with Ubuntu 24.04. (wayland/Gnome). I read several instructions and set up a system service with this configuration:
sudo cat /etc/systemd/system/ydotoold.service
I reloaded daemons and (re)started the service.
Also I found advice that permissions for the socket under /tmp are important. For this I added a udev rule like this:
sudo cat /etc/udev/rules.d/80-uinput.rules
and I did this:
sudo usermod -a -G users $USER
Here are some more information:
ls -l /dev/uinput /tmp/.ydotool_socket
crw-rw---- 1 root input 10, 223 Mai 23 22:16 /dev/uinput
srw------- 1 martin martin 0 Mai 24 11:36 /tmp/.ydotool_socket
So, this is for context. When I now try to start ydotool without root permissions, I get this:
YDOTOOL_SOCKET="/tmp/.ydotool_socket" ydotool key 125:1 32:1 32:0 125:0;
ydotool: notice: ydotoold backend unavailable (may have latency+delay issues)
and as root:
sudo YDOTOOL_SOCKET="/tmp/.ydotool_socket" ydotool key 125:1 32:1 32:0 125:0;
failed to connect socket `/tmp/.ydotool_socket': Connection refused
Please check if ydotoold is running.
But:
ps -ax | grep ydo
14252 ? Ss 0:00 /usr/bin/ydotoold --socket-path=/tmp/.ydotool_socket --socket-own=1000:1000
15065 pts/0 S+ 0:00 grep --color=auto ydo
Can you help me? I am kind of at my wits end with this.