ratbagctl list
Unable to connect to ratbagd: Make sure it is running and your user is in the required groups.
# however, as root
sudo ratbagctl list
bellowing-paca: Logitech G502
Hmnn… So that does seem to imply some sort of permissions problem!
If you’ve got any suggestions around that, they’d be much appreciated, although I am curious as which user ratbagd is running on your system? On mine, ratbagd seems to be running as root.
ratbagctl list
Unable to connect to ratbagd: Make sure it is running and your user is in the required groups.
# however, as root
sudo ratbagctl list
bellowing-paca: Logitech G502
Hmnn… So that does seem to imply some sort of permissions problem!
If you’ve got any suggestions around that, they’d be much appreciated, although I am curious as which user ratbagd is running on your system? On mine, ratbagd seems to be running as root.
I’ll also added I tried disabling Opensuses hardening for ratbagd, like so:
cat /etc/systemd/system/ratbagd.service
kn100@localhost ~ cat /etc/systemd/system/ratbagd.service
[Unit]
Description=Daemon to introspect and modify configurable mice
[Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
#ProtectSystem=full
#ProtectHome=true
#ProtectHostname=true
#ProtectKernelTunables=true
#ProtectKernelModules=true
#ProtectKernelLogs=true
#ProtectControlGroups=true
#RestrictRealtime=true
# end of automatic additions
Type=dbus
BusName=org.freedesktop.ratbag1
ExecStart=/usr/sbin/ratbagd
Restart=on-abort
[Install]
Alias=dbus-org.freedesktop.ratbag1.service
So, I went to YaST Users and Groups, removed games from my user, rebooted, then readded games, and logged out/in, the symptoms I describe above are still present:
kn100@localhost ~ groups
kn100
kn100@localhost ~ groups kn100
kn100 : kn100 games
kn100@localhost ~ sudo systemctl status ratbagd
● ratbagd.service - Daemon to introspect and modify configurable mice
Loaded: loaded (/etc/systemd/system/ratbagd.service; disabled; preset: disabled)
Active: active (running) since Sun 2024-05-26 13:36:25 EDT; 1min 47s ago
Main PID: 7906 (ratbagd)
Tasks: 1 (limit: 4915)
CPU: 33ms
CGroup: /system.slice/ratbagd.service
└─7906 /usr/sbin/ratbagd
May 26 13:36:25 localhost.localdomain systemd[1]: Starting Daemon to introspect and modify configurable mice...
May 26 13:36:25 localhost.localdomain systemd[1]: Started Daemon to introspect and modify configurable mice.
kn100@localhost ~ sudo ratbagctl list
singing-hare: Logitech G502
kn100@localhost ~ ratbagctl list
Unable to connect to ratbagd: Make sure it is running and your user is in the required groups.
Is there any chance you could share your /etc/group file with me, specifically the entries relating to your user and games? I wouldn’t discount the possibility of me screwing something up with a usermod command.
I created a new user, and added the user to the games group and piper immediately started working for that user. I then compared the groups for both users, and noticed that somehow my main user was not in the users group. I added myself to users using usermod -a -G users kn100 and voila, piper started working as expected! Thanks for your help.