z3ntu / RazerGenie

Qt application for configuring your Razer devices under GNU/Linux.
GNU General Public License v3.0
374 stars 35 forks source link

Is it possible to load mouse settings before starting your session? #131

Closed ereinstein closed 2 years ago

ereinstein commented 2 years ago

First of all, RazerGenie works flawlessly with my Razer Viper Mini once I am logged into my user. Apparently the settings are only getting loaded once I login into the user on my PC though. When I am using my mouse in my display manager SDDM before I login, the settings are clearly not loaded yet because my mouse speed is lightning fast. Is there some way to load the settings before the display manager starts?

I know that it is possible to run elevated scripts before SDDM starts as shown here for adjusting some xrandr settings but I don't know how to apply this for RazerGenie as well.

z3ntu commented 2 years ago

The daemon only runs after user login, before user login you can either force openrazer to temporarily start as root user and run your python script there or interact with the files in /sys directly.

Some "docs" can be found at https://github.com/openrazer/openrazer/wiki/Using-the-keyboard-driver

Does that answer your question?

ereinstein commented 2 years ago

That does answer my question, thanks.