Changeset 60317 in vbox for trunk/src/VBox
- Timestamp:
- Apr 4, 2016 8:41:07 PM (9 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh
r60286 r60317 374 374 ;; 375 375 esac 376 if $MODPROBE vboxvideo; then377 # Do not install if we can use the kernel driver.378 rm -f "$modules_dir/drivers/vboxvideo_drv.so"379 vboxvideo_src=""380 dox11config=""381 fi382 376 test -n "${dox11config}" && 383 377 begin "Installing $xserver_version modules" 384 rm "$modules_dir/drivers/vboxvideo_drv$driver_ext" 2>/dev/null 385 rm "$modules_dir/input/vboxmouse_drv$driver_ext" 2>/dev/null 386 case "$vboxvideo_src" in ?*) 387 ln -s "$lib_dir/$vboxvideo_src" "$modules_dir/drivers/vboxvideo_drv$driver_ext";; 378 case "$vboxvideo_src" in 379 ?*) 380 ln -s "$lib_dir/$vboxvideo_src" "$modules_dir/drivers/vboxvideo_drv$driver_ext.new" && 381 mv "$modules_dir/drivers/vboxvideo_drv$driver_ext.new" "$modules_dir/drivers/vboxvideo_drv$driver_ext";; 382 *) 383 rm "$modules_dir/drivers/vboxvideo_drv$driver_ext" 2>/dev/null 388 384 esac 389 case "$vboxmouse_src" in ?*) 390 ln -s "$lib_dir/$vboxmouse_src" "$modules_dir/input/vboxmouse_drv$driver_ext";; 385 case "$vboxmouse_src" in 386 ?*) 387 ln -s "$lib_dir/$vboxmouse_src" "$modules_dir/input/vboxmouse_drv$driver_ext.new" && 388 mv "$modules_dir/input/vboxmouse_drv$driver_ext.new" "$modules_dir/input/vboxmouse_drv$driver_ext.new";; 389 *) 390 rm "$modules_dir/input/vboxmouse_drv$driver_ext" 2>/dev/null 391 391 esac 392 392 succ_msg "$xserver_version modules installed" -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r60103 r60317 17 17 18 18 19 # chkconfig: 345 30 7019 # chkconfig: 345 10 90 20 20 # description: VirtualBox Linux Additions kernel modules 21 21 # … … 210 210 } 211 211 } 212 212 # Load the kernel video driver if we can. 213 $MODPROBE vboxvideo > /dev/null 2>&1 214 215 # Put the X.Org driver in place. This is harmless if it is not needed. 213 216 /sbin/rcvboxadd-x11 setup 214 217 # Install the guest OpenGL drivers. For now we don't support -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r60190 r60317 728 728 { 729 729 ScrnInfoPtr pScrn; 730 struct xf86stat_s sstat; 730 731 731 732 TRACE_ENTRY(); 733 734 if (xf86stat("/dev/dri/card0", &sstat) == 0) 735 { 736 xf86Msg(X_INFO, "vboxvideo: kernel driver found, not loading.\n"); 737 return FALSE; 738 } 732 739 pScrn = xf86ConfigPciEntity(NULL, 0, entity_num, VBOXPCIchipsets, 733 740 NULL, NULL, NULL, NULL, NULL); … … 830 837 Gamma gzeros = {0.0, 0.0, 0.0}; 831 838 rgb rzeros = {0, 0, 0}; 832 struct xf86stat_s sstat;833 839 834 840 TRACE_ENTRY(); … … 853 859 if (!xf86LoadSubModule(pScrn, "vgahw")) 854 860 return FALSE; 855 856 if (xf86stat("/dev/dri/card0", &sstat) == 0)857 {858 xf86DrvMsg(pScrn->scrnIndex, X_INFO, "kernel driver found, not loading.\n");859 return FALSE;860 }861 861 862 862 /* Get our private data from the ScrnInfoRec structure. */
Note:
See TracChangeset
for help on using the changeset viewer.