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

Autostart not only at boot time, but at plug time #20

Open
apocatarsis opened this issue Feb 7, 2016 · 5 comments
Open

Autostart not only at boot time, but at plug time #20

apocatarsis opened this issue Feb 7, 2016 · 5 comments

Comments

@apocatarsis
Copy link
Collaborator

I am thinking maybe we should not assume that the naga mouse is gong to be plugged in all the time (in case the mouse is unplugged, the naga exec goes mad if I remember correctly). Instead of starting the daemon at boot time we should start it/stop it according with the state of the mouse.
Starting the daemon whenever the mouse is plugged and stoping it when i'ts unplugged (to change it for another mouse or switch between docked/pluged mode).

However, as the mayority of people will just have the mouse plugged in all the time without changes this is not crucial nor urgent. Just throwing ideas.

@Destroyer
Copy link
Collaborator

I think it can be done but I don't have experience with systemd to make it work properly. Also not sure how the process ownership is going work the in this case (we may need to move conf to /etc? but not sure though).

@Destroyer Destroyer mentioned this issue Feb 8, 2016
@Destroyer
Copy link
Collaborator

Destroyer commented Oct 6, 2016

Alright, this works for me, although I am not sure if I didn't miss something in install script.
Destroyer@55ce5a2

@RaulPPelaez
Copy link
Owner

I cannot get this to work. I do not really know about the service thing and udevadm, but it just does nothing. naga is never started.

@Destroyer
Copy link
Collaborator

I've never merged this because while it worked for unplugged/plugged states (at least for me) it didn't work properly after startup. I am waiting for the main desktop environments to implement systemd graphical-session.target.

@lostallmymoney
Copy link

I guess imma do an addon to be enabled/disabled at https://github.com/lostallmymoney/Razer_Mouse_Linux in some near time :P

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

No branches or pull requests

4 participants