VirtualBox

Ignore:
Timestamp:
Jul 31, 2012 6:58:12 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79612
Message:

Additions/solaris/installer: run vboxmslnk instead of installing the X.Org vboxmouse driver.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/Installer/x11config15sol.pl

    r32388 r42469  
    3333        open(TMP, ">$temp") or die "Can't create $TMP: $!\n";
    3434
    35         my $have_mouse = 0;
    3635        my $in_section = 0;
    3736
     
    4140            {
    4241                my $section = lc($1);
    43                 if (($section eq "inputdevice") || ($section eq "device"))
     42                if ($section eq "device")
    4443                {
    4544                    $in_section = 1;
    46                 }
    47                 if ($section eq "serverlayout")
    48                 {
    49                     $in_layout = 1;
    5045                }
    5146            } else {
     
    5348                {
    5449                    $in_section = 0;
    55                     $in_layout = 0;
    5650                }
    5751            }
     
    5953            if ($in_section)
    6054            {
    61                 if ($line =~ /^\s*driver\s+\"(?:mouse|vboxmouse)\"/i)
    62                 {
    63                     $line = "    Driver      \"vboxmouse\"\n    Option      \"CorePointer\"\n";
    64                     $have_mouse = 1
    65                 }
    66 
    67                 # Other drivers sending events interfere badly with pointer integration
    68                 if ($line =~ /^\s*option\s+\"(?:alwayscore|sendcoreevents|corepointer)\"/i)
    69                 {
    70                     $line = "";
    71                 }
    72 
    73                 # Solaris specific: Use /dev/vboxguest for Xorg 1.5.3+
    74                 if ($os_type =~ 'SunOS')
    75                 {
    76                     if ($line =~ /^\s*option\s+\"(?:device)\"\s+\"(?:\/dev\/kdmouse)\"/i)
    77                     {
    78                         $line = "    Option      \"Device\" \"\/dev\/vboxguest\"\n"
    79                     }
    80 
    81                     if ($line =~ /^\s*option\s+\"(?:device)\"\s+\"(?:\/dev\/mouse)\"/i)
    82                     {
    83                         $line = "    Option      \"Device\" \"\/dev\/vboxguest\"\n"
    84                     }
    85                 }
    86 
    8755                if ($line =~ /^\s*driver\s+\"(?:fbdev|vga|vesa|vboxvideo|ChangeMe)\"/i)
    8856                {
     
    9058                }
    9159            }
    92             if ($in_layout)
    93             {
    94                 # Other drivers sending events interfere badly with pointer integration
    95                 if (   $line =~ /^\s*inputdevice.*\"(?:alwayscore|sendcoreevents)\"/i)
    96                 {
    97                     $line = "";
    98                 }
    99             }
    10060            print TMP $line;
    10161        }
    10262
    103         if (!$have_mouse) {
    104             print TMP "\n";
    105             print TMP "Section \"InputDevice\"\n";
    106             print TMP "        Identifier  \"VBoxMouse\"\n";
    107             print TMP "        Driver      \"vboxmouse\"\n";
    108             if ($os_type eq 'SunOS')
    109             {
    110                 print TMP "        Option      \"Device\"     \"\/dev\/vboxguest\"\n";
    111             }
    112             print TMP "        Option      \"CorePointer\"\n";
    113             print TMP "EndSection\n";
    114         }
    11563        close(TMP);
    11664
  • trunk/src/VBox/Additions/x11/Installer/x11restore.pl

    r32388 r42469  
    2626
    2727my $config_count = 0;
    28 my $vboxpresent = "vboxmouse";
     28my $vboxpresent = "vboxvideo";
    2929
    3030foreach $cfg (@cfg_files)
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