Closed jaamivstheworld closed 1 year ago
Just as an update if it helps: I tested installing both piper and libratbag from xbps. I also did not enable ratbagd runit service. It worked just as expected. I'm going to try compiling libratbag from source with piper to see if that solves the API error.
Compiling libratbag isn't going too well. It's missing a dependency "libsystemd". I am using Void Linux which uses runit and there's no libsystemd package. Any workarounds?
I've gotten.. somewhere. Will close this issue and open a different one
You seem to have libratbag installed from source, while having Piper from the repositories. Both have to be installed from the same place. If you have this problem with both of them installed from the repositories, this is a problem with packaging, please, report is to Void Linux.
Relevant issue: https://github.com/libratbag/libratbag/issues/1388.
Compiling libratbag isn't going too well. It's missing a dependency "libsystemd". I am using Void Linux which uses runit and there's no libsystemd package. Any workarounds?
We also support building with elogind, which is most likely what Void Linux does if they ship libratbag.
See the logind-provider
build option.
Build system setup will look something like this:
meson setup builddir -Dlogind-provider=elogind
My device is this: Sinowealth-0029 but isn't working the community package of archlinux and with aur piper.git and libratbat.git.
@linuxmobile, hey, I'm on Arch myself, and everything works fine for me,
you just have to choose to install either libratbag piper
or libratbag-git piper-git
.
What is the output of pacman -Qi libratbag piper
for you?
@linuxmobile, hey, I'm on Arch myself, and everything works fine for me, you just have to choose to install either
libratbag piper
orlibratbag-git piper-git
.What is the output of
pacman -Qi libratbag piper
for you?
So that you can understand me, I first tried the community package version (both libratbag and piper) and it doesn't work because it still doesn't have the files for my mouse (sinowealth "29"). Both git packages return the same api error. And the two packages built from source, same thing.
@linuxmobile, I see.
Could you post the output of which piper ratbagd
and pacman -Qi libratbag piper
in the terminal?
I think you may either have outdated versions of packages installed, or you may have installed something to /usr/local
, which takes precedence over /usr
.
which piper ratbagd
pacman -Qi libratbag piper
I'm sorry, the build docs of Piper are kind of misleading, as they tell you to use --prefix=/usr/
, while the docs of libratbag don't (although they do mention such option).
Using this prefix will overwrite your system installation of an application, in this case Piper.
You should rebuild and reinstall Piper without this option, but first you should uninstall it.
Steps to do it:
1) cd piper
(Change active directory to where you've downloaded Piper's source and where you have built it).
2) sudo ninja -C builddir uninstall
(Do the uninstallation).
You should see something like Deleted: 41
near the end of the output.
If it says Deleted 0
, redo the original steps from README.
Now rebuild without the --prefix
option:
1) meson builddir
2) ninja -C builddir
3) sudo ninja -C builddir install
3. sudo ninja -C builddir install
Well I thought everything would work since I removed the prefix but now I have this:
By the way, I want to thank you for helping me <3
Ah, I was wrong, I did not test this and assumed /usr/local
is PYTHONPATH, and that D-Bus would pick up configuration files from /usr/local/share/dbus-1
, sorry.
You would have to uninstall them again, and then reinstall after configuring both with the prefix option, e.g. meson builddir --prefix /usr
.
Still, I recommend you to uninstall manually installed libratbag and Piper, and simply get the from AUR.
Still, I recommend you to uninstall manually installed libratbag and Piper, and simply get the from AUR.
Sorry for answering so late. After reinstalling Arch (for other reasons), I decided to do what you indicated and the AUR version doesn't work for me.
EDIT: The screenshot device (SONiX is not the one I'm interested in configuring. The device I'm interested in configuring is SINOWEALTH)
Sinowealth is just a vendor, I would like to know exact mouse model.
For the sinowealth driver in libratbag to work with your device, you would need to add some information about it to the device file. The reason for this is that the mouse may only appear to be compatible, but in reality using it with libratbag will get you in trouble. So, before committing any changes to mouse settings, make sure that all shown fields are correct.
Now, here's what you should add to the device file to make it apear in Piper:
# Configuration length: 131 bytes.
# Sensor: PMW3360.
[Driver/sinowealth/devices/SomeRandomDevice]
# Replace this with button count of your mouse.
ButtonCount=6
# Replace this with model name of your mouse.
DeviceName=Some Random Device
FwVersion=IM12
# You may have to replace this with "RGB" if LED colors are incorrect.
LedType=RBG
Information
ratbagd
version (ratbagd --version
): 0.17uname -srmo
):Linux 6.0.15_1 x86_64 GNU/Linux
Describe the bug When I open piper, I get the an error screen saying:
Incompatible ratbagd API version (required: 2, provided:1) Please update both piper and libratbag to the latest versions
I compiled piper from source and libratbag from package available in Void Linux repos.
To Reproduce Please make sure your bug is reproducible with the CLI client,
ratbagctl
. If it is not open a bug report in libratbag instead.Steps to reproduce the behavior:
ln -s /etc/sv/libratbag /var/service/
)Logs Please start the daemon with verbosity and reproduce the issue.
First make sure it isn't running already.
Additional context I have compiled piper from source and installed libratbag prebuilt from repos before on other distributions before, I am only experiencing this on Void Linux.
Void Linux uses runit instead of SystemD