VirtualBox

Changeset 25174 in vbox


Ignore:
Timestamp:
Dec 3, 2009 6:09:54 PM (15 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: more xorg.conf hacking fixes - some old guests do not like /dev/input/mice

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r25100 r25174  
    290290    # By default we want to use hal for auto-loading the mouse driver
    291291    usehal="--useHal"
     292    # We need to tell our xorg.conf hacking script whether /dev/psaux exists
     293    nopsaux="--nopsaux"
     294    test -c /dev/psaux && nopsaux=""
    292295    # And on newer servers, we want to test whether dynamic resizing will work
    293296    testrandr="true"
     
    373376            # Assume X.Org post-fork or XFree86
    374377            begin "Installing XFree86 4.2/4.3 and X.Org 6.7/6.8 modules"
     378            rm "$modules_dir/drivers/vboxvideo_drv.o" 2>/dev/null
     379            rm "$modules_dir/input/vboxmouse_drv.o" 2>/dev/null
    375380            ln -s "$lib_dir/vboxvideo_drv.o" "$modules_dir/drivers/vboxvideo_drv.o"
    376381            ln -s "$lib_dir/vboxmouse_drv.o" "$modules_dir/input/vboxmouse_drv.o"
     
    427432                        generated="$generated  `printf "$i\n"`"
    428433                    else
    429                         "$lib_dir/x11config-new.pl" $newmouse $usehal "$i"
     434                        "$lib_dir/x11config-new.pl" $newmouse $usehal $nopsaux "$i"
    430435                    fi
    431436                    configured="true"
     
    535540        for i in $x11conf_files; do
    536541            if test -r "$i.vbox"; then
    537                 if test "$i" -ot "$i.vbox" -o -n "$legacy"; then
     542                if test ! "$i" -nt "$i.vbox" -o -n "$legacy"; then
    538543                    mv -f "$i.vbox" "$i"
    539544                    grep -q -E 'vboxvideo|vboxmouse' "$i" &&
     
    562567will continue to work after it is restarted.
    563568
    564 $newer
     569$failed
    565570
    566571EOF
  • trunk/src/VBox/Additions/x11/Installer/x11config-new.pl

    r25109 r25174  
    2323my $new_mouse = 0;
    2424my $no_bak = 0;
     25my $old_mouse_dev = "/dev/psaux";
    2526
    2627foreach $arg (@ARGV)
     
    3738    {
    3839        $no_bak = 1;
     40    }
     41    elsif (lc($arg) eq "--nopsaux")
     42    {
     43        $old_mouse_dev = "/dev/input/mice";
    3944    }
    4045    else
     
    113118  Driver      "vboxmouse"
    114119  Option      "Buttons" "9"
    115   Option      "Device" "/dev/input/mice"
     120  Option      "Device" "$old_mouse_dev"
    116121  Option      "Name" "VirtualBox Mouse"
    117122  Option      "Protocol" "explorerps/2"
Note: See TracChangeset for help on using the changeset viewer.

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