Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toltec-wrapper.conf and Lamy Pen #351

Closed
ademasi opened this issue Apr 29, 2021 · 5 comments
Closed

Toltec-wrapper.conf and Lamy Pen #351

ademasi opened this issue Apr 29, 2021 · 5 comments

Comments

@ademasi
Copy link

ademasi commented Apr 29, 2021

Thank you for toltec, its is a super useful project.

I have been testing the "testing" branch on my RM1. I update the packages and I was not able understand why my Lamy Pen button was not working anymore. It is handle by the patched version of xochitl and a qt plugin. Normally remux take care of starting xochitl with the good command line to load the plugin.

But I discovered that the toltec-wrapper file cause issues by imposing /opt/bin/xochitl --system , instead of /opt/bin/xochitl --system -plugin evdevlamy , at least for my usage.

Is it not possible to make it dynamic ? Like remux does by reading ondisk service file ?

Regards, Alex.

@Eeems
Copy link
Member

Eeems commented Apr 29, 2021

How are you launching xochitl? Draft, Oxide, and Remux all handle launching xochitl in different ways. It also requires you to have ddvk-hacks installed.

See Eeems-Org/oxide#136 and #9

Toltec has not yet packaged remarkable-stylus which is required for the lamy pen.

@ademasi
Copy link
Author

ademasi commented Apr 29, 2021

I always had the ddvk-hacks and the qt plugin installed.

On first launch, I let systemd handle it, after I use remux if I need to switch between applications.

Even remux was not properly starting xochitl with the good argument before I modified the wrapper file. I don't understand how its possible since remux read the systemd file directly.

So in the future, I can just install the hack and the remarkable-stylus packages to get the Lamy pen working ?

@Eeems
Copy link
Member

Eeems commented Apr 29, 2021

Even remux was not properly starting xochitl with the good argument before I modified the wrapper file. I don't understand how its possible since remux read the systemd file directly.

@raisjn has a theory on this I believe.

As for Draft and Oxide, they are using configuration in the xochitl package: https://github.com/toltec-dev/toltec/blob/testing/package/xochitl/xochitl.oxide and https://github.com/toltec-dev/toltec/blob/testing/package/xochitl/xochitl.draft

So in the future, I can just install the hack and the remarkable-stylus packages to get the Lamy pen working ?

That's the plan.

For now what you can do is add a systemd environment override to set the following:

Environment="QT_QPA_GENERIC_PLUGINS=evdevlamy"

Or modify xochitl.draft to add the arguments if using Draft.
Or add the environment variable to xochitl.oxide if you are using Oxide (https://github.com/Eeems/oxide/wiki/Developing-Applications-for-Oxide#properties).

@danshick
Copy link
Member

I think it is worth noting that systemd unit overrides are "cumulative", so you can create multiple overrides that will all be considered when launching the unit. The term is a "drop-in" if you want to search the docs.

https://www.freedesktop.org/software/systemd/man/systemd.unit.html

Along with a unit file foo.service, a "drop-in" directory foo.service.d/ may exist. All files with the suffix ".conf" from this directory will be parsed after the unit file itself is parsed. This is useful to alter or add configuration settings for a unit, without having to modify unit files.

@matteodelabre
Copy link
Member

Closing this. The next step for us is to package the Lamy plugin (already tracked in #9); in the meantime, users can refer to the workarounds above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants