You are not logged in.

#1 2017-10-12 19:26:59

pspencil
Member
Registered: 2017-10-05
Posts: 14

[SOLVED] X config in .xinitrc or .bash_profile disappears after resume

I have a particular line

xset r rate 250 60

in my .xinitrc which sets the keyboard repeat rate. However, after resuming from hibernation/suspend, it is reverted back to the original. I tried putting it in bash_profile but still no luck.

Since there are no errors or warnings of any sort, I did not post the output of dmesg. If that could be useful, please let me know.

Last edited by pspencil (2017-10-12 23:07:01)

Offline

#2 2017-10-12 22:15:38

seth
Member
Registered: 2012-09-03
Posts: 4,233

Re: [SOLVED] X config in .xinitrc or .bash_profile disappears after resume

https://wiki.archlinux.org/index.php/Ke … y_and_rate
http://who-t.blogspot.de/2010/06/keyboa … cated.html

You could go  for a script in /usr/lib/systemd/system-sleep/ - see https://wiki.archlinux.org/index.php/Po … leep_hooks
There you'd make use of sth. like gist.githubusercontent.com/AladW/de1c5676d93d05a5a0e1/raw/16e010ecda9f2328e1e22d4e02ac814ed27717b4/gistfile1.txt (likely needs adjustment, looks for xinit) to operate on the proper X11 server.

Online

Board footer

Powered by FluxBB