I'm running Slackware 14 64bit as guest in VirtualBox with additions installed. I'm experiencing some weird mouse behavior similar to what is described here:
https://bbs.archlinux.org/viewtopic.php?id=145960&p=1
Well, in the above thread (treating the issue in Arch) someone mentions this workaround:
Code:
xinput set-prop "VirtualBox mouse integration" "Coordinate Transformation Matrix" 0.5 0 0 0 0.5 0 0 0 1.0
xinput set-prop "VirtualBox mouse integration" "Coordinate Transformation Matrix" 1.0 0 0 0 1.0 0 0 0 1.0
Running these two commands in the terminal actually fixes the issue.
Now my question: how do a make the commands run at start-up?
I've tried adding them to /etc/rc.d/rc.local after some stuff that virtual box additions wrote in, like this:
Code:
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
# Start vboxadd
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxadd ]; then
/etc/rc.d/rc.vboxadd start
fi
# Start vboxadd-service
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxadd-service ]; then
/etc/rc.d/rc.vboxadd-service start
fi
# Start vboxadd-x11
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxadd-x11 ]; then
/etc/rc.d/rc.vboxadd-x11 start
fi
xinput set-prop "VirtualBox mouse integration" "Coordinate Transformation Matrix" 0.5 0 0 0 0.5 0 0 0 1.0
xinput set-prop "VirtualBox mouse integration" "Coordinate Transformation Matrix" 1.0 0 0 0 1.0 0 0 0 1.0
But that doesn't work - the commands don't take effect like when run in the terminal. I would think that in important to run the commands after the VirtualBox stuff as this is what is being configured by the commands.
Any ideas on how to get the commands properly executed at start-up?
Thanks!