I had the problem that one user was not happy with the default touchpad off while typing time.
Unfortunately is the touchpad off time hard coded in a library.
Compiling the library from source is way more effort than patching the binary.
Here is my solution. (Target group: advanced user/admin - if you not understand what this is about, please ask an advanced user/admin not me)
- Code: Select all
if !( which sfk >/dev/null 2>&1 ) ; then
echo "No sfk ('Swiss File Knife') installed. Download and install it i.e. in /usr/local/bin/sfk"
echo "patching hard coded syndaemon parameter"
if [ -e $PATCHTARGET ] ; then
# searchstring : 00 s y n d a e m o n 00 - i 00 0 . 5 00 - k 00
# replacestring: 00 s y n d a e m o n 00 - i 00 1 . 5 00 - K 00
# 00 73796E6461656D6F6E 00 2D69 00 302E35 00 2D6B 00"
echo "patching $PATCHTARGET: 0.5 delay -> 1.5 delay and -k -> -K"
sfk rep $PATCHTARGET -nodump -quiet -binary /$BINSEAR/$BINREPL/ >/dev/null
if [ $? -eq 1 ] ; then
cp -a -f $PATCHTARGET /root/libmouse.so.orig
sfk rep $PATCHTARGET -dump -binary /$BINSEAR/$BINREPL/ -yes
echo "You have to re-login (or restart) to activate the new settings"
echo " already patched"
The part that can adjusted is here:
This is $31 = 1 $2E = . $35 = 5 == 1.5 seconds off time after the last char is typed.
Feel free to play with it and give me some feedback.