mbuesch / razer

Razer device library and tools
http://bues.ch/h/razercfg
GNU General Public License v2.0
250 stars 50 forks source link

Settings not saved after switching from Arch Linux AUR "razercfg" package to "razercfg-git" #139

Closed KonradHoeffner closed 3 months ago

KonradHoeffner commented 3 months ago

On both my desktop PCs with Arch Linux and a Razer Deathadder Left, I used to install the razercfg package, however as that prints the warning below, I switched to razercfg-git which removes the warning, but now I have to configure the DPI every time on startup as "razercfg -r 3" is not remembered. I notice that /etc/razercfg.conf does not exist anymore.

I am not experienced enough with Arch Linux packages to know whether that is a problem that comes from this software or from the AUR package itself but in the latter case maybe I can help some other AUR users fix this problem.

My workaround right now is to copy /etc/razercfg.conf.pacsave to /etc/razercfg.conf.

/usr/bin/razercfg:279: SyntaxWarning: invalid escape sequence '\d'
  m = re.match('^\d+$', arg)
/usr/bin/razercfg:283: SyntaxWarning: invalid escape sequence '\d'
  m = re.match('^(\d+)x(\d+)$', arg)
Razer device configuration tool
Version 0.42
mbuesch commented 3 months ago

Thanks for your report.

I notice that /etc/razercfg.conf does not exist anymore.

Ok, well. It seems like the Arch package uninstall removed your configuration, too. You have to re-create that, if you want a persistent configuration.

My workaround right now is to copy /etc/razercfg.conf.pacsave to /etc/razercfg.conf.

That sounds like a perfectly good solution.

Please also note that razercfg does never remember your last settings. It will always apply what is in /etc/razercfg.conf. Remembering the last settings is an idea that has not been implemented, yet.

I hope that helps.

KonradHoeffner commented 3 months ago

OK then this is not an issue with razercfg itself and I will close this issue, thanks for the help and the quick reply!

mbuesch commented 3 months ago

I'm glad that helped. Have fun!