You are not logged in.

#1 2017-10-18 16:30:17

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Horrible 3D (WebGL) performance through VirtualBox

Hello guys and girls,

If someone could help me with this problem I'd be greatly appreciative. Unfortunately I'm pretty clueless when it comes to Arch, or even Linux in general, I'm just trying to teach myself, so you'll have to baby me through any solution that might be available.

The problem is that I get really bad WebGL performance in VirtualBox. I'm assuming this extends to all 3D programs, but I've only tried it with firefox and chromium. I can't imagine this should be a problem as my host system is very powerful and the WebGL applications I'm trying to run are perfectly usable and smooth even on an old Android phone. The performance I get in Arch through VirtualBox (running on a very powerful gaming computer host) is worse than five or six year old telephone.

I believe I have the Guest Additions installed properly (shared folders work just fine, and I get a full-screen display in OpenBox with X).

It's a very bare-bones system. I've basically just installed it via the Arch Linux Installation guide (I did a UEFI boot), then installed xorg-server, firefox, chromium, virtualbox-guest-utils and openbox. I believe from my reading that the necessary drivers should come bundled with the virtualbox-guest-utils.

Can somoene please point me in the right direction to try and solve this? Needless to say I'm happy to post further information about the system and setup, but I wouldn't even know what's required.

FWIW, http://webglreport.com/ reports positive for both WebGL 1 and 2 in firefox, but negative in Chromium (says the browser supports it, but it's not enabled).

Thanks!

Offline

#2 2017-10-18 17:29:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,869

Re: Horrible 3D (WebGL) performance through VirtualBox

"glxinfo", host OS, virtualbox version and notably wheter you've enable (and correctly configured) GL acceleration in the host.
Also the actual (metal) hardware and the Xorg log.

Offline

#3 2017-10-18 19:29:20

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Horrible 3D (WebGL) performance through VirtualBox

seth wrote:

"glxinfo"

Erm ... this will probably sound really stupid, but I don't appear to have that installed. I just get "not found".

I do have the mesa package installed if that means anything.

seth wrote:

host OS

Windows 10

seth wrote:

virtualbox version

5.1.30

seth wrote:

and notably wheter you've enable (and correctly configured) GL acceleration in the host.

I'm not sure. If you just mean ticking the "3D Acceleration" box in VirutalBox display settings, then yes. If there's more to it, what is it?

seth wrote:

Also the actual (metal) hardware and the Xorg log.

GPU: Nvidia GeForce 980 4GB
CPU: Intel Core i7-4790K - 8 trådar 1150

Offline

#4 2017-10-18 19:31:11

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Horrible 3D (WebGL) performance through VirtualBox

slithery@red:~$ pacman -Fs glxinfo
extra/mesa-demos 8.3.0-4
    usr/bin/glxinfo

You also haven't pasted the Xorg.log.

Last edited by Slithery (2017-10-18 19:32:03)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-10-18 19:36:51

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Horrible 3D (WebGL) performance through VirtualBox

Here it is...

Sorry it took me a bit to figure out how to copy & paste from xterm... (obv total noob)

[    56.201] 
X.Org X Server 1.19.5
Release Date: 2017-10-12
[    56.203] X Protocol Version 11, Revision 0
[    56.203] Build Operating System: Linux 4.9.54-1-lts x86_64 
[    56.204] Current Operating System: Linux VirtualArch64EFI 4.13.7-1-ARCH #1 SMP PREEMPT Sat Oct 14 20:13:26 CEST 2017 x86_64
[    56.204] Kernel command line: vmlinuz-linux rw root=/dev/sda3 initrd=/initramfs-linux.img
[    56.205] Build Date: 12 October 2017  09:59:53PM
[    56.205]  
[    56.206] Current version of pixman: 0.34.0
[    56.207] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    56.207] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    56.209] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 18 21:21:03 2017
[    56.216] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    56.219] (==) No Layout section.  Using the first Screen section.
[    56.219] (==) No screen section available. Using defaults.
[    56.219] (**) |-->Screen "Default Screen Section" (0)
[    56.219] (**) |   |-->Monitor "<default monitor>"
[    56.222] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    56.222] (==) Automatically adding devices
[    56.222] (==) Automatically enabling devices
[    56.222] (==) Automatically adding GPU devices
[    56.222] (==) Automatically binding GPU devices
[    56.222] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    56.239] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    56.239] 	Entry deleted from font path.
[    56.241] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    56.241] 	Entry deleted from font path.
[    56.241] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    56.242] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    56.242] 	Entry deleted from font path.
[    56.242] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    56.242] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[    56.242] (==) ModulePath set to "/usr/lib/xorg/modules"
[    56.242] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    56.243] (II) Loader magic: 0x560a636aed60
[    56.243] (II) Module ABI versions:
[    56.243] 	X.Org ANSI C Emulation: 0.4
[    56.243] 	X.Org Video Driver: 23.0
[    56.243] 	X.Org XInput driver : 24.1
[    56.243] 	X.Org Server Extension : 10.0
[    56.244] (++) using VT number 1

[    56.244] (--) controlling tty is VT number 1, auto-enabling KeepTty
[    56.245] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[    56.245] (II) xfree86: Adding drm device (/dev/dri/card0)
[    56.247] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[    56.288] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0xe0000000/134217728, BIOS @ 0x????????/131072
[    56.288] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    56.288] (II) LoadModule: "glx"
[    56.291] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    56.334] (II) Module glx: vendor="X.Org Foundation"
[    56.334] 	compiled for 1.19.5, module version = 1.0.0
[    56.334] 	ABI class: X.Org Server Extension, version 10.0
[    56.334] (==) Matched vboxvideo as autoconfigured driver 0
[    56.334] (==) Matched vboxvideo as autoconfigured driver 1
[    56.334] (==) Matched modesetting as autoconfigured driver 2
[    56.334] (==) Matched fbdev as autoconfigured driver 3
[    56.334] (==) Matched vesa as autoconfigured driver 4
[    56.334] (==) Assigned the driver to the xf86ConfigLayout
[    56.334] (II) LoadModule: "vboxvideo"
[    56.339] (WW) Warning, couldn't open module vboxvideo
[    56.339] (II) UnloadModule: "vboxvideo"
[    56.339] (II) Unloading vboxvideo
[    56.339] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[    56.339] (II) LoadModule: "modesetting"
[    56.339] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    56.344] (II) Module modesetting: vendor="X.Org Foundation"
[    56.344] 	compiled for 1.19.5, module version = 1.19.5
[    56.344] 	Module class: X.Org Video Driver
[    56.344] 	ABI class: X.Org Video Driver, version 23.0
[    56.344] (II) LoadModule: "fbdev"
[    56.344] (WW) Warning, couldn't open module fbdev
[    56.344] (II) UnloadModule: "fbdev"
[    56.344] (II) Unloading fbdev
[    56.344] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    56.344] (II) LoadModule: "vesa"
[    56.344] (WW) Warning, couldn't open module vesa
[    56.344] (II) UnloadModule: "vesa"
[    56.344] (II) Unloading vesa
[    56.344] (EE) Failed to load module "vesa" (module does not exist, 0)
[    56.344] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    56.344] (II) modeset(0): using drv /dev/dri/card0
[    56.344] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    56.344] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    56.344] (==) modeset(0): RGB weight 888
[    56.344] (==) modeset(0): Default visual is TrueColor
[    56.344] (II) Loading sub module "glamoregl"
[    56.344] (II) LoadModule: "glamoregl"
[    56.344] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    56.376] (II) Module glamoregl: vendor="X.Org Foundation"
[    56.376] 	compiled for 1.19.5, module version = 1.0.0
[    56.376] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    56.376] (II) glamor: OpenGL accelerated X.org driver based.
[    57.171] (II) glamor: EGL version 1.4 (DRI2):
[    57.171] EGL_MESA_drm_image required.
[    57.175] (EE) modeset(0): glamor initialization failed
[    57.175] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[    57.177] (II) modeset(0): Output VGA-1 has no monitor section
[    57.178] (II) modeset(0): EDID for output VGA-1
[    57.178] (II) modeset(0): Manufacturer: VBX  Model: 0  Serial#: 70780800
[    57.178] (II) modeset(0): Year: 1990  Week: 1
[    57.178] (II) modeset(0): EDID Version: 1.3
[    57.178] (II) modeset(0): Digital Display Input
[    57.178] (II) modeset(0): Indeterminate output size
[    57.178] (II) modeset(0): Gamma: 2.20
[    57.178] (II) modeset(0): DPMS capabilities: StandBy Suspend Off
[    57.178] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    57.178] (II) modeset(0): Default color space is primary color space
[    57.178] (II) modeset(0): First detailed timing is preferred mode
[    57.178] (II) modeset(0): redX: 0.640 redY: 0.330   greenX: 0.300 greenY: 0.600
[    57.178] (II) modeset(0): blueX: 0.150 blueY: 0.060   whiteX: 0.312 whiteY: 0.329
[    57.178] (II) modeset(0): Manufacturer's mask: 0
[    57.178] (II) modeset(0): Supported detailed timing:
[    57.178] (II) modeset(0): clock: 125.5 MHz   Image Size:  0 x 0 mm
[    57.178] (II) modeset(0): h_active: 1920  h_sync: 1922  h_sync_end 1924 h_blank_end 1926 h_border: 0
[    57.178] (II) modeset(0): v_active: 1080  v_sync: 1080  v_sync_end 1114 v_blanking: 1086 v_border: 0
[    57.178] (II) modeset(0): Ranges: V min: 0 V max: 200 Hz, H min: 0 H max: 200 kHz, PixClock max 1005 MHz
[    57.178] (II) modeset(0): Monitor name: VBOX monitor
[    57.178] (II) modeset(0): EDID (in hex):
[    57.178] (II) modeset(0): 	00ffffffffffff005858000080073804
[    57.178] (II) modeset(0): 	0100010380000078eeee91a3544c9926
[    57.178] (II) modeset(0): 	0f505400000001010101010101010101
[    57.178] (II) modeset(0): 	01010101010105318006703806400202
[    57.178] (II) modeset(0): 	0202000000000000000000fd0000c800
[    57.178] (II) modeset(0): 	c864000a202020202020000000fc0056
[    57.178] (II) modeset(0): 	424f58206d6f6e69746f720a00000010
[    57.178] (II) modeset(0): 	000a20202020202020202020202000f0
[    57.178] (II) modeset(0): Printing probed modes for output VGA-1
[    57.178] (II) modeset(0): Modeline "1920x1080"x60.0  173.11  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync (67.2 kHz P)
[    57.178] (II) modeset(0): Modeline "2560x1600"x60.0  348.50  2560 2752 3032 3504  1600 1603 1609 1658 -hsync +vsync (99.5 kHz e)
[    57.178] (II) modeset(0): Modeline "2560x1600"x60.0  268.50  2560 2608 2640 2720  1600 1603 1609 1646 +hsync -vsync (98.7 kHz e)
[    57.178] (II) modeset(0): Modeline "1920x1440"x60.0  234.00  1920 2048 2256 2600  1440 1441 1444 1500 -hsync +vsync (90.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1856x1392"x60.0  218.25  1856 1952 2176 2528  1392 1393 1396 1439 -hsync +vsync (86.3 kHz e)
[    57.178] (II) modeset(0): Modeline "1792x1344"x60.0  204.75  1792 1920 2120 2448  1344 1345 1348 1394 -hsync +vsync (83.6 kHz e)
[    57.178] (II) modeset(0): Modeline "2048x1152"x60.0  162.00  2048 2074 2154 2250  1152 1153 1156 1200 +hsync +vsync (72.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz e)
[    57.178] (II) modeset(0): Modeline "1920x1200"x60.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 -hsync -vsync (67.5 kHz e)
[    57.178] (II) modeset(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
[    57.178] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[    57.178] (II) modeset(0): Modeline "1400x1050"x60.0  121.75  1400 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync (65.3 kHz e)
[    57.178] (II) modeset(0): Modeline "1400x1050"x59.9  101.00  1400 1448 1480 1560  1050 1053 1057 1080 +hsync -vsync (64.7 kHz e)
[    57.178] (II) modeset(0): Modeline "1600x900"x60.0  108.00  1600 1624 1704 1800  900 901 904 1000 +hsync +vsync (60.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1440x900"x59.9  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)
[    57.178] (II) modeset(0): Modeline "1440x900"x59.9   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[    57.178] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1366x768"x59.8   85.50  1366 1436 1579 1792  768 771 774 798 +hsync +vsync (47.7 kHz e)
[    57.178] (II) modeset(0): Modeline "1366x768"x60.0   72.00  1366 1380 1436 1500  768 769 772 800 +hsync +vsync (48.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1360x768"x60.0   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync (47.7 kHz e)
[    57.178] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz e)
[    57.178] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
[    57.178] (II) modeset(0): Modeline "1280x768"x59.9   79.50  1280 1344 1472 1664  768 771 778 798 -hsync +vsync (47.8 kHz e)
[    57.178] (II) modeset(0): Modeline "1280x768"x60.0   68.25  1280 1328 1360 1440  768 771 778 790 +hsync -vsync (47.4 kHz e)
[    57.178] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    57.178] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    57.178] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    57.178] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    57.178] (II) modeset(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[    57.178] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    57.178] (II) modeset(0): Output VGA-1 connected
[    57.178] (II) modeset(0): Using exact sizes for initial modes
[    57.178] (II) modeset(0): Output VGA-1 using initial mode 1920x1080 +0+0
[    57.178] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    57.178] (==) modeset(0): DPI set to (96, 96)
[    57.178] (II) Loading sub module "fb"
[    57.178] (II) LoadModule: "fb"
[    57.178] (II) Loading /usr/lib/xorg/modules/libfb.so
[    57.184] (II) Module fb: vendor="X.Org Foundation"
[    57.184] 	compiled for 1.19.5, module version = 1.0.0
[    57.184] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    57.184] (==) Depth 24 pixmap format is 32 bpp
[    57.193] (==) modeset(0): Backing store enabled
[    57.193] (==) modeset(0): Silken mouse enabled
[    57.195] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    57.198] (==) modeset(0): DPMS enabled
[    57.198] (--) RandR disabled
[    57.205] (II) AIGLX: Screen 0 is not DRI2 capable
[    57.205] (EE) AIGLX: reverting to software rendering
[    57.207] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    57.207] (II) IGLX: Loaded and initialized swrast
[    57.207] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    57.207] (II) modeset(0): Damage tracking initialized
[    57.207] (II) modeset(0): Setting screen physical size to 508 x 285
[    57.341] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[    57.341] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    57.341] (II) LoadModule: "libinput"
[    57.341] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    57.358] (II) Module libinput: vendor="X.Org Foundation"
[    57.358] 	compiled for 1.19.3, module version = 0.26.0
[    57.358] 	Module class: X.Org XInput Driver
[    57.358] 	ABI class: X.Org XInput driver, version 24.1
[    57.358] (II) Using input driver 'libinput' for 'Power Button'
[    57.358] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 22 paused 0
[    57.358] (**) Power Button: always reports core events
[    57.358] (**) Option "Device" "/dev/input/event3"
[    57.358] (**) Option "_source" "server/udev"
[    57.359] (II) event3  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    57.359] (II) event3  - (II) Power Button: (II) device is a keyboard
[    57.359] (II) event3  - (II) Power Button: (II) device removed
[    57.359] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4/event3"
[    57.359] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    57.359] (II) event3  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    57.359] (II) event3  - (II) Power Button: (II) device is a keyboard
[    57.359] (II) config/udev: Adding input device Sleep Button (/dev/input/event4)
[    57.359] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[    57.359] (II) Using input driver 'libinput' for 'Sleep Button'
[    57.360] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 25 paused 0
[    57.360] (**) Sleep Button: always reports core events
[    57.360] (**) Option "Device" "/dev/input/event4"
[    57.360] (**) Option "_source" "server/udev"
[    57.360] (II) event4  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[    57.360] (II) event4  - (II) Sleep Button: (II) device is a keyboard
[    57.360] (II) event4  - (II) Sleep Button: (II) device removed
[    57.360] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSLPBN:00/input/input5/event4"
[    57.360] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 7)
[    57.360] (II) event4  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[    57.360] (II) event4  - (II) Sleep Button: (II) device is a keyboard
[    57.360] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[    57.360] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    57.360] (II) Using input driver 'libinput' for 'Video Bus'
[    57.360] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 26 paused 0
[    57.360] (**) Video Bus: always reports core events
[    57.360] (**) Option "Device" "/dev/input/event5"
[    57.360] (**) Option "_source" "server/udev"
[    57.361] (II) event5  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    57.361] (II) event5  - (II) Video Bus: (II) device is a keyboard
[    57.361] (II) event5  - (II) Video Bus: (II) device removed
[    57.361] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/LNXVIDEO:00/input/input6/event5"
[    57.361] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[    57.361] (II) event5  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    57.361] (II) event5  - (II) Video Bus: (II) device is a keyboard
[    57.361] (II) config/udev: Adding input device VirtualBox mouse integration (/dev/input/event2)
[    57.361] (**) VirtualBox mouse integration: Applying InputClass "libinput pointer catchall"
[    57.361] (II) Using input driver 'libinput' for 'VirtualBox mouse integration'
[    57.361] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 27 paused 0
[    57.361] (**) VirtualBox mouse integration: always reports core events
[    57.361] (**) Option "Device" "/dev/input/event2"
[    57.361] (**) Option "_source" "server/udev"
[    57.362] (II) event2  - (II) VirtualBox mouse integration: (II) is tagged by udev as: Mouse
[    57.362] (II) event2  - (II) VirtualBox mouse integration: (II) device is a pointer
[    57.362] (II) event2  - (II) VirtualBox mouse integration: (II) device removed
[    57.362] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:04.0/input/input3/event2"
[    57.362] (II) XINPUT: Adding extended input device "VirtualBox mouse integration" (type: MOUSE, id 9)
[    57.362] (**) Option "AccelerationScheme" "none"
[    57.362] (**) VirtualBox mouse integration: (accel) selected scheme none/0
[    57.362] (**) VirtualBox mouse integration: (accel) acceleration factor: 2.000
[    57.362] (**) VirtualBox mouse integration: (accel) acceleration threshold: 4
[    57.362] (II) event2  - (II) VirtualBox mouse integration: (II) is tagged by udev as: Mouse
[    57.362] (II) event2  - (II) VirtualBox mouse integration: (II) device is a pointer
[    57.362] (II) config/udev: Adding input device VirtualBox mouse integration (/dev/input/js1)
[    57.362] (II) No input driver specified, ignoring this device.
[    57.362] (II) This device may have been added with another device file.
[    57.362] (II) config/udev: Adding input device VirtualBox mouse integration (/dev/input/mouse1)
[    57.362] (II) No input driver specified, ignoring this device.
[    57.362] (II) This device may have been added with another device file.
[    57.362] (II) config/udev: Adding input device VirtualBox USB Tablet (/dev/input/event1)
[    57.362] (**) VirtualBox USB Tablet: Applying InputClass "libinput pointer catchall"
[    57.362] (II) Using input driver 'libinput' for 'VirtualBox USB Tablet'
[    57.434] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 28 paused 0
[    57.434] (**) VirtualBox USB Tablet: always reports core events
[    57.434] (**) Option "Device" "/dev/input/event1"
[    57.434] (**) Option "_source" "server/udev"
[    57.438] (II) event1  - (II) VirtualBox USB Tablet: (II) is tagged by udev as: Mouse
[    57.438] (II) event1  - (II) VirtualBox USB Tablet: (II) device is a pointer
[    57.438] (II) event1  - (II) VirtualBox USB Tablet: (II) device removed
[    57.438] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:06.0/usb2/2-1/2-1:1.0/0003:80EE:0021.0001/input/input2/event1"
[    57.438] (II) XINPUT: Adding extended input device "VirtualBox USB Tablet" (type: MOUSE, id 10)
[    57.439] (**) Option "AccelerationScheme" "none"
[    57.439] (**) VirtualBox USB Tablet: (accel) selected scheme none/0
[    57.439] (**) VirtualBox USB Tablet: (accel) acceleration factor: 2.000
[    57.439] (**) VirtualBox USB Tablet: (accel) acceleration threshold: 4
[    57.441] (II) event1  - (II) VirtualBox USB Tablet: (II) is tagged by udev as: Mouse
[    57.442] (II) event1  - (II) VirtualBox USB Tablet: (II) device is a pointer
[    57.443] (II) config/udev: Adding input device VirtualBox USB Tablet (/dev/input/js0)
[    57.443] (II) No input driver specified, ignoring this device.
[    57.444] (II) This device may have been added with another device file.
[    57.445] (II) config/udev: Adding input device VirtualBox USB Tablet (/dev/input/mouse0)
[    57.445] (II) No input driver specified, ignoring this device.
[    57.445] (II) This device may have been added with another device file.
[    57.446] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    57.446] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[    57.446] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[    57.447] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 29 paused 0
[    57.447] (**) AT Translated Set 2 keyboard: always reports core events
[    57.447] (**) Option "Device" "/dev/input/event0"
[    57.447] (**) Option "_source" "server/udev"
[    57.447] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[    57.447] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[    57.447] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device removed
[    57.447] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[    57.447] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[    57.448] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[    57.448] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[    57.448] (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/event7)
[    57.448] (**) ImExPS/2 Generic Explorer Mouse: Applying InputClass "libinput pointer catchall"
[    57.448] (II) Using input driver 'libinput' for 'ImExPS/2 Generic Explorer Mouse'
[    57.449] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 30 paused 0
[    57.449] (**) ImExPS/2 Generic Explorer Mouse: always reports core events
[    57.449] (**) Option "Device" "/dev/input/event7"
[    57.449] (**) Option "_source" "server/udev"
[    57.449] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) is tagged by udev as: Mouse
[    57.449] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) device is a pointer
[    57.449] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) device removed
[    57.450] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input7/event7"
[    57.450] (II) XINPUT: Adding extended input device "ImExPS/2 Generic Explorer Mouse" (type: MOUSE, id 12)
[    57.450] (**) Option "AccelerationScheme" "none"
[    57.450] (**) ImExPS/2 Generic Explorer Mouse: (accel) selected scheme none/0
[    57.450] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration factor: 2.000
[    57.450] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration threshold: 4
[    57.450] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) is tagged by udev as: Mouse
[    57.450] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) device is a pointer
[    57.451] (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/mouse2)
[    57.451] (II) No input driver specified, ignoring this device.
[    57.451] (II) This device may have been added with another device file.
[    57.451] (II) config/udev: Adding input device PC Speaker (/dev/input/event6)
[    57.451] (II) No input driver specified, ignoring this device.
[    57.451] (II) This device may have been added with another device file.
[    57.848] (II) modeset(0): EDID vendor "VBX", prod id 0
[    57.848] (II) modeset(0): DDCModeFromDetailedTiming: 1916x979 Warning: We only handle separate sync.
[    57.848] (II) modeset(0): Using EDID range info for horizontal sync
[    57.848] (II) modeset(0): Using EDID range info for vertical refresh
[    76.081] (II) modeset(0): EDID vendor "VBX", prod id 0
[    76.081] (II) modeset(0): DDCModeFromDetailedTiming: 1916x979 Warning: We only handle separate sync.
[    76.081] (II) modeset(0): Using hsync ranges from config file
[    76.081] (II) modeset(0): Using vrefresh ranges from config file
[    76.115] (**) Option "fd" "22"
[    76.115] (II) event3  - (II) Power Button: (II) device removed
[    76.115] (**) Option "fd" "25"
[    76.115] (II) event4  - (II) Sleep Button: (II) device removed
[    76.115] (**) Option "fd" "26"
[    76.115] (II) event5  - (II) Video Bus: (II) device removed
[    76.115] (**) Option "fd" "27"
[    76.115] (II) event2  - (II) VirtualBox mouse integration: (II) device removed
[    76.115] (**) Option "fd" "28"
[    76.115] (II) event1  - (II) VirtualBox USB Tablet: (II) device removed
[    76.115] (**) Option "fd" "29"
[    76.115] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device removed
[    76.115] (**) Option "fd" "30"
[    76.115] (II) event7  - (II) ImExPS/2 Generic Explorer Mouse: (II) device removed
[    76.115] (II) UnloadModule: "libinput"
[    76.115] (II) systemd-logind: releasing fd for 13:71
[    76.115] (EE) systemd-logind: failed to release device: Connection was disconnected before a reply was received
[    76.115] (II) UnloadModule: "libinput"
[    76.115] (II) systemd-logind: releasing fd for 13:64
[    76.115] (EE) systemd-logind: failed to release device: Connection is closed
[    76.115] (II) UnloadModule: "libinput"
[    76.115] (II) systemd-logind: releasing fd for 13:65
[    76.115] (EE) systemd-logind: failed to release device: Connection is closed
[    76.115] (II) UnloadModule: "libinput"
[    76.115] (II) systemd-logind: releasing fd for 13:66
[    76.115] (EE) systemd-logind: failed to release device: Connection is closed
[    76.115] (II) UnloadModule: "libinput"
[    76.115] (II) systemd-logind: releasing fd for 13:69
[    76.115] (EE) systemd-logind: failed to release device: Connection is closed
[    76.115] (II) UnloadModule: "libinput"
[    76.115] (II) systemd-logind: releasing fd for 13:68
[    76.115] (EE) systemd-logind: failed to release device: Connection is closed
[    76.115] (II) UnloadModule: "libinput"
[    76.115] (II) systemd-logind: releasing fd for 13:67
[    76.115] (EE) systemd-logind: failed to release device: Connection is closed
[    76.156] (WW) xf86CloseConsole: KDSETMODE failed: Input/output error
[    76.156] (WW) xf86CloseConsole: VT_GETMODE failed: Input/output error
[    76.156] (WW) xf86CloseConsole: VT_ACTIVATE failed: Input/output error
[    76.197] (EE) systemd-logind: ReleaseControl failed: Connection is closed
[    76.197] (II) Server terminated successfully (0). Closing log file.

Offline

#6 2017-10-18 19:37:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,869

Re: Horrible 3D (WebGL) performance through VirtualBox

glxinfo is in the mesa-demos pacakge.
Also don't forget the xorg log and, while at it, try other GL client (eg. games or several xscreensaver hacks) in case the browser(s) blacklist the virtualbox driver for webgl.

I'm too slow. Anyway, here's your problem:

[    57.205] (II) AIGLX: Screen 0 is not DRI2 capable
[    57.205] (EE) AIGLX: reverting to software rendering
[    57.207] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    57.207] (II) IGLX: Loaded and initialized swrast
[    57.207] (II) GLX: Initialized DRISWRAST GL provider for screen 0

Last edited by seth (2017-10-18 19:39:08)

Offline

#7 2017-10-19 06:04:04

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Horrible 3D (WebGL) performance through VirtualBox

Thanks for taking the time to help seth, I'd be lost without it.

Anyway, I tried to figure out how to fix this myself, but I'm coming up empty. In fact, I can't even seem to generate an Xorg config file (using X -configure). I get the following in the xorg log file but I'm not quite sure what it means or how to even start to fix it...

[  1138.096] 
X.Org X Server 1.19.5
Release Date: 2017-10-12
[  1138.103] X Protocol Version 11, Revision 0
[  1138.113] Build Operating System: Linux 4.9.54-1-lts x86_64 
[  1138.118] Current Operating System: Linux VirtualArch64EFI 4.13.7-1-ARCH #1 SMP PREEMPT Sat Oct 14 20:13:26 CEST 2017 x86_64
[  1138.119] Kernel command line: vmlinuz-linux rw root=/dev/sda3 initrd=/initramfs-linux.img
[  1138.130] Build Date: 12 October 2017  09:59:53PM
[  1138.134]  
[  1138.140] Current version of pixman: 0.34.0
[  1138.148]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  1138.148] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1138.169] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 19 07:59:30 2017
[  1138.169] (II) Loader magic: 0x562169367d60
[  1138.169] (II) Module ABI versions:
[  1138.169]    X.Org ANSI C Emulation: 0.4
[  1138.169]    X.Org Video Driver: 23.0
[  1138.169]    X.Org XInput driver : 24.1
[  1138.169]    X.Org Server Extension : 10.0
[  1138.170] (--) using VT number 2

[  1138.170] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[  1138.173] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1138.177] (EE) 
[  1138.181] (EE) Backtrace:
[  1138.184] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x5621690e3ee9]
[  1138.192] (EE) 1: /usr/lib/libpthread.so.0 (funlockfile+0x50) [0x7fc69badbdef]
[  1138.198] (EE) 2: /usr/lib/xorg-server/Xorg (xf86PlatformMatchDriver+0x2b4) [0x562168fdd534]
[  1138.201] (EE) 3: /usr/lib/xorg-server/Xorg (xf86BusProbe+0x9) [0x562168fb5469]
[  1138.208] (EE) 4: /usr/lib/xorg-server/Xorg (InitOutput+0x7ff) [0x562168fc40ef]
[  1138.212] (EE) 5: /usr/lib/xorg-server/Xorg (InitFonts+0x213) [0x562168f82023]
[  1138.218] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7fc69b733f6a]
[  1138.222] (EE) 7: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x562168f6beaa]
[  1138.230] (EE) 
[  1138.233] (EE) Segmentation fault at address 0x50
[  1138.236] (EE) 
Fatal server error:
[  1138.249] (EE) Caught signal 11 (Segmentation fault). Server aborting
[  1138.251] (EE) 
[  1138.255] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[  1138.268] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1138.274] (EE) 
[  1138.278] (EE) Server terminated with error (1). Closing log file.

Offline

#8 2017-10-19 07:23:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,869

Re: Horrible 3D (WebGL) performance through VirtualBox

Don't try to "-configure", it's deprecated and (probably "accidentally") broken.
The cause for this is in the kernel and means either the host doesn't forward the GPU or you've no or the wrong guest utils installed.

[    56.339] (EE) Failed to load module "vboxvideo" (module does not exist, 0)

suggests the latter.

pacman -Qs virtualbox

Offline

#9 2017-10-19 09:11:31

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Horrible 3D (WebGL) performance through VirtualBox

Hmmm. Thanks for helping. When installing, I selected the virtualbox-guest-arch option (as opposed to dkms).

Output to that pacman command is:

local/virtualbox-guest-modules-arch 5.1.30-1
    Virtualbox guest kernel modules for Arch Kernel
local/virtualbox-guest-utils 5.1.30-1
    VirtualBox Guest userspace utilities

Offline

#10 2017-10-19 09:25:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Horrible 3D (WebGL) performance through VirtualBox

Afaik the vboxvideo xorg ddx isn't packaged anymore since modesetting should work fine. What's the output of

lsmod | grep vbox

is 3d enabled in your virtualbox settings? Are you using the correct drivers on your host? (i.e. drivers from nvidias website not whatever might be shipped in a default Windows)

Offline

#11 2017-10-19 09:31:22

UncleSlug
Member
Registered: 2013-10-14
Posts: 13

Re: Horrible 3D (WebGL) performance through VirtualBox

3D Support for linux guests has almost always been broken for me. https://www.virtualbox.org/wiki/X11Guest3D suggests it's up to the community to fix the breakages with 3d stuff in x.

Offline

#12 2017-10-19 10:02:04

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Horrible 3D (WebGL) performance through VirtualBox

V1del wrote:

Afaik the vboxvideo xorg ddx isn't packaged anymore since modesetting should work fine. What's the output of

lsmod | grep vbox

is 3d enabled in your virtualbox settings? Are you using the correct drivers on your host? (i.e. drivers from nvidias website not whatever might be shipped in a default Windows)

vboxvideo              49152  2
ttm                    81920  1 vboxvideo
drm_kms_helper        131072  1 vboxvideo
drm                   303104  5 vboxvideo,ttm,drm_kms_helper
syscopyarea            16384  2 vboxvideo,drm_kms_helper
sysfillrect            16384  2 vboxvideo,drm_kms_helper
sysimgblt              16384  2 vboxvideo,drm_kms_helper
vboxsf                 45056  1
vboxguest             221184  3 vboxsf,vboxvideo

Yes, 3D is enabled and host drivers are all up to date. Thanks for your help!

Offline

#13 2017-10-19 10:08:14

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Horrible 3D (WebGL) performance through VirtualBox

UncleSlug wrote:

3D Support for linux guests has almost always been broken for me. https://www.virtualbox.org/wiki/X11Guest3D suggests it's up to the community to fix the breakages with 3d stuff in x.

Hmmm. Well it's not much good at all! I develop 3D Web programs and I wanted to use Linux as my dev environment at work (I don't have the option to install Linux, it's either Mac or WIndows 10). Literally it runs worse than our lowest-supported telephones.

Weird it even does work in Firefox come to think of it.

Offline

#14 2017-10-20 08:30:25

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Horrible 3D (WebGL) performance through VirtualBox

Is there anything else I can try with this guys or do I just have to accept it doesn't work properly with VirtualBox?

Offline

#15 2017-10-20 12:43:26

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Horrible 3D (WebGL) performance through VirtualBox

wombatvvv wrote:

Is there anything else I can try .....?

Finding a job that lets you run Linux? big_smile

Seriously, I think you are just going to have to either accept that it doesn't work in Vbox and try other routes. Maybe QEMU, or maybe even trying to dig into the code and see? Maybe Wayland will change things in the future?


Matt

"It is very difficult to educate the educated."

Offline

Board footer

Powered by FluxBB