running script when resuming from suspend


I have a special keyboard so i have modified it somehow using xmodmap. so when i boot my laptop this script runs:


xmodmap /etc/X11/Xmodmap

with KDE Autostart tool. But when i suspend to RAM and resume from it , keyboard is like the original version and all the changes are lost. so i need to that script manually.

is there any specific script that is called when resuming from suspend, which i can append the upper lines to that?

thanks a lot,


You should report this bug, state is being lost when it shouldn’t.

When it comes back, the keyboard lock is started isn’t it? Perhaps that’s turning off your key settings, or could be used to reset them via a hack.