I've bought a Logitech G102 and have trouble using it with the current piper-0.7-r1 version. I see that 0.8 exists (it was released last week) and it requires dev-libs/libratbag 0.18 which contains this commit: https://github.com/libratbag/libratbag/pull/1389 It would help to have it in the tree. Thank you.
Created attachment 904708 [details] libratbag-0.18.ebuild This is a simple version bump that seems to build for me. I have not tested with systemd but I expect it should work the same as 0.17. I will take a look at piper next.
Created attachment 904709 [details] piper-0.8.ebuild I think piper 0.8 is okay. They seem to have removed the test build option so I've stripped that out and that was about it. Now that I have both versions at 0.8 I have noticed some issues with libratbag I will start digging into.
Created attachment 904710 [details] ratbagd.init Installation path for ratbagd seems to have changed. I don't think things are working, at least they don't appear to be for my g502. None of the LED controls seem to stick but it seems like its trying to do something. Please test and let me know. I will keep trying to debug things on this side as time permits.
Well, I think its working... at least its reading the values from the mouse and talking to dbus. Unfortunately, just about all functionality is broken for the g502 which is the only device I have to use with this library. Try you G102 and see if you have better luck.
Hi, Thanks for your feedback and ebuild files. Unfortunately, I cannot seem to test the provided ebuilds. I downloaded them locally in my local overlay and when I run ebuild <file> digest to generate the digest file, I get this error: ebuild libratbag-0.18.ebuild digest * ERROR: dev-libs/libratbag-0.18::local_repo failed (depend phase): * Invalid implementation in PYTHON_COMPAT: python3_12 * * Call stack: * ebuild.sh, line 632: Called source '/usr/local/portage/dev-libs/libratbag/libratbag-0.18.ebuild' * libratbag-0.18.ebuild, line 8: Called inherit 'meson' 'python-single-r1' 'systemd' 'udev' * ebuild.sh, line 312: Called __qa_source '/usr/local/portage/eclass/python-single-r1.eclass' * ebuild.sh, line 123: Called source '/usr/local/portage/eclass/python-single-r1.eclass' * python-single-r1.eclass, line 257: Called _python_single_set_globals * python-single-r1.eclass, line 202: Called _python_set_impls * python-utils-r1.eclass, line 149: Called die * The specific snippet of code: * die "Invalid implementation in PYTHON_COMPAT: ${i}" * * If you need support, post the output of `emerge --info '=dev-libs/libratbag-0.18::local_repo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/libratbag-0.18::local_repo'`. * Working directory: '/usr/lib/python3.12/site-packages' * S: '/var/tmp/portage/dev-libs/libratbag-0.18/work/libratbag-0.18' On the other hand, it seems that the current version 0.7 does seem to work ok with my G102 mouse. Other than that though, it would be nice to have the newer version working.
(In reply to Vasilis Lourdas from comment #5) You seem to have an ancient copy of the eclass in your overlay: * ebuild.sh, line 123: Called source '/usr/local/portage/eclass/python-single-r1.eclass'
(In reply to Sam James from comment #6) > (In reply to Vasilis Lourdas from comment #5) > > You seem to have an ancient copy of the eclass in your overlay: > * ebuild.sh, line 123: Called source > '/usr/local/portage/eclass/python-single-r1.eclass' You are correct. I will try the newer ebuild now. Thanks!
Ok, v.0.8 works fine for me. All functionality seems to be ok. Question: Is it necessary to enable the ratbagd.service?
> Question: Is it necessary to enable the ratbagd.service? Yes and No. If you do not enable it at boot, piper will start it for you when you use it with no easy way of disabling it. I don't particularly like that dynamic, but its what they did upstream.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a43350aba997c5a3c390d477c42763ca6ba7a46e commit a43350aba997c5a3c390d477c42763ca6ba7a46e Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2025-01-20 22:28:40 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2025-01-20 22:29:38 +0000 app-misc/piper: Version bump to 0.8 Closes: https://bugs.gentoo.org/940573 Signed-off-by: James Le Cuirot <chewi@gentoo.org> app-misc/piper/Manifest | 1 + app-misc/piper/piper-0.7-r1.ebuild | 3 +- app-misc/piper/piper-0.8.ebuild | 64 ++++++++++++++++++++++++++++++++++++++ app-misc/piper/piper-9999.ebuild | 13 +++----- 4 files changed, 71 insertions(+), 10 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d001a3427076dc59d652a694c2cd95a056a002c6 commit d001a3427076dc59d652a694c2cd95a056a002c6 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2025-01-20 22:14:45 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2025-01-20 22:29:35 +0000 dev-libs/libratbag: Version bump to 0.18, fix ratbagctl test Closes: https://bugs.gentoo.org/940573 Signed-off-by: James Le Cuirot <chewi@gentoo.org> dev-libs/libratbag/Manifest | 1 + dev-libs/libratbag/files/ratbagd.init-r1 | 13 ++++ dev-libs/libratbag/libratbag-0.18.ebuild | 121 +++++++++++++++++++++++++++++++ dev-libs/libratbag/libratbag-9999.ebuild | 10 ++- 4 files changed, 143 insertions(+), 2 deletions(-)