LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Phantom mouse in Slackware 14 64bit VBOX (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/phantom-mouse-in-slackware-14-64bit-vbox-4175447668/)

andreas-r 01-29-2013 05:51 AM

Phantom mouse in Slackware 14 64bit VBOX
 
I'm running Slackware 14 64bit as guest in VirtualBox with additions installed. I'm experiencing some weird mouse behavior:

An invisible extra mouse occasionally hovers around in the edges of the screen especially in the top left corner. I can see the application menu blink from mouse movement. If I click something one my screen with my regular mouse as this happens the applications menu or whatever the phantom mouse touches will be opened as well.

The problem is similar to the one discussed in this thread:
https://bbs.archlinux.org/viewtopic.php?id=145960&p=1

In the end of the thread one of the Arch guys comes up with a package that fixes it.

Now does anyone know how to fix it on a virtual SlackWare machine?

Cheers!

andreas-r 01-29-2013 07:41 AM

Update: the workaround in the above link actually works:

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

How do I make that run at start-up? Tried adding it to the bottom of /etc/rc.d/rc.local after some scripts added by VBOX additions, 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.


All times are GMT -5. The time now is 06:34 PM.