VirtualBox

Changeset 38723 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 13, 2011 7:30:27 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73986
Message:

Additions/linux: use the kernel input driver for X.Org Server 1.3 and later

Location:
trunk/src/VBox/Additions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/70-xorg-vboxmouse.rules

    r29406 r38723  
    1 KERNEL=="vboxguest",ENV{ID_INPUT}="1"
     1KERNEL=="event*",DRIVER=="vboxguest",SYMLINK+="input/vboxevent"
     2KERNEL=="event*",DRIVERS=="vboxguest",SYMLINK+="input/vboxevent"
     3
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r38093 r38723  
    286286    # But not to install the configuration file into xorg.conf.d
    287287    doxorgconfd=""
    288     # But without the workaround for SUSE 11.1 not doing input auto-detection
     288    # Or to install the udev rule to symlink our kernel event device
     289    # to a stable device name
    289290    newmouse=""
    290291    # By default we want to use hal/udev/whatever for auto-loading the mouse driver
     
    481482                rm -r /var/cache/hald/fdi-cache 2> /dev/null
    482483            fi
     484        # Install a udev rule for symlinking our event device node to
     485        # something stable (dev/input/vboxevent)
     486        if test -d /etc/udev/rules.d -a -n "$newmouse"
     487        then
     488            install -o 0 -g 0 -m 0644 "$share_dir/70-xorg-vboxmouse.rules" /etc/udev/rules.d
     489            # Create the /dev/input/vboxevent symlink manually straight
     490            # after installation
     491            device=`find -L /sys/class/input/event* -name vboxguest \
     492                -maxdepth 5 2>/dev/null \
     493                | sed 's/.*\(event[0-9]*\).*/\1/'`
     494            case "$device" in ?*)
     495                ln -sf "$device" /dev/input/vboxevent;;
     496            esac
     497        fi
    483498        if test -n "$doxorgconfd"
    484499        then
    485             if test -d /etc/udev/rules.d
    486             then
    487                 install -o 0 -g 0 -m 0644 "$share_dir/70-xorg-vboxmouse.rules" /etc/udev/rules.d
    488                 # This is normally silent.  I have purposely not redirected
    489                 # error output as I want to know if something goes wrong,
    490                 # particularly if the command syntax ever changes.
    491                 udevadm trigger --action=change --subsystem-match=misc
    492             fi
    493500            test -d /usr/share/X11/xorg.conf.d &&
    494501                install -o 0 -g 0 -m 0644 "$share_dir/50-vboxmouse.conf" /usr/share/X11/xorg.conf.d
  • trunk/src/VBox/Additions/x11/Installer/x11config.sh

    r38194 r38723  
    112112
    113113Section "InputDevice"
    114   Driver       "vboxmouse"
     114  Driver       "evdev"
    115115  Identifier   "Mouse[2]"
    116   Option       "Device" "/dev/vboxguest"
    117   Option       "Name" "VirtualBox Mouse"
     116  Option       "Device" "/dev/input/vboxevent"
     117  Option       "Name" "VirtualBox mouse integration"
    118118  Option       "Vendor" "Oracle Corporation"
    119119  Option       "SendCoreEvents"
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette