How to turn off read only mode like on steamos?

I need to add file to /usr/share/libratbag/ for Piper to see my mouse. How can I disable read only file mode to at least see if it works correctly? Is there a way I could layer this like packages? It’s really a dealbreaker for me if I can’t acces my own devices on my os.

What is the technical reason why this is necessary? Maybe there is a solution that uses /etc/udev/rules.d instead of /usr/...?

What do you mean by “Piper”?

Piper is practically the only app that lets you configure gaming mouse on linux. It’s released very rarely, so you need to manually ad supported devices at this location

Context: Installation · libratbag/piper Wiki · GitHub

Have you installed Piper as a flatpak?

Hi unicornandcandies,

Fedora Atomic (And by extention, UBlue and its derivatives) actually do a great job letting you (usually) not have to modify the “immutable” part.

So instead of creating /usr/share/libratbag/, anything prefixed with /usr/.. can instead be put in /usr/local/...

So I suggest trying this:
sudo mkdir -p /usr/local/share/libratbag

And rebooting and seeing if that’s enough.

Please let me know if it doesn’t work!
Good luck!

  • Dan

Which image are you on? Which mouse is it?

I’m on bazzite. I need to use logitech g705 mouse. There’s already a device file in commits and it more or less works. Doesn’t really matter which mouse as latest release of piper was 2 years ago and it’s a common thing for us to just add device files from libratbag supported list to this directory

Can you try it with solaar? We include that out of the box: GitHub - pwr-Solaar/Solaar: Linux device manager for Logitech devices

I would love to just use solaar. Unfortunately the only option I can configure with it is DPI. And only when I have one slot (I can configure up to 5 different dpi profiles and switch)

1 Like

Not the most optimal solution, but I managed to use Logitech’s Onboard Memory Manager in a Windows VM (with USB-passthru of the mouse) to setup enough onboard profiles to the DPI/Lighting I wanted for my G703 Lightspeed. I set up the DPI button on the mouse to change between the on-board profiles.

Tried a bunch with Piper and other random RGB control software on linux without success, and working with Logitech GHub in windows doesn’t save profiles to the mouse.

What vm software did you use? In gnome boxes I couldn’t make it work

Using qemu/virt-manager (can overlay with rpm-ostree install virt-install virt-manager virt-viewer)

Might be non-trivial to navigate the VM with the mouse passed in as it gets rid of the virtual cursor (unless you’re running another mouse for your host OS)

I generally run my Windows VM with VGA Passthru but that’s another rabbit hole there.

What about input-remapper? I think there is a ujust command to install it.

Personally, I use the image builder for adding stuff to my /usr folder. Alternatively, could also probably use system-d to mount stuff in whichever directory you need them to be, which is how the Nix installer works.

I don’t know how to use image builder honestly but I can provide what I’ve learned about systemd mounting:

  1. Create extension directory - mkdir /var/lib/extensions/NAME_OF_YOUR_EXTENSION (you may need to also create the “extensions” directory)
  2. Add directory - mkdir /var/lib/extensions/NAME_OF_YOUR_EXTENSION/usr
  3. Copy with sudo - sudo cp /etc/os-release to /var/lib/extensions/NAME_OF_YOUR_EXTENSION/usr/lib/extension-release.d/extension-release.NAME_OF_YOUR_EXTENSION
  4. Merge - sudo systemd-sysext merge
  5. It would possibly freeze your os, so reboot

If files disappear, after reboot (not the case for me) run:
sudo systemctl enable systemd-sysext

All of this and I still prefer making an rpm honestly. There are easy ways of creating them. They require a little tinkering or using graphical applications.