Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268035 - No dri with virtualbox-guest-additions, due to using OSE
Summary: No dri with virtualbox-guest-additions, due to using OSE
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-30 20:03 UTC by Richard H.
Modified: 2009-06-21 06:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info from guest (emerge-info.txt,3.13 KB, text/plain)
2009-04-30 20:55 UTC, Richard H.
Details
Ebuild (virtualbox-guest-additions-2.2.0.ebuild,4.23 KB, text/plain)
2009-05-14 14:09 UTC, Josh Williams
Details
Patch (virtualbox-guest-additions-2.2.0-enable-drm.patch,1.39 KB, patch)
2009-05-14 14:09 UTC, Josh Williams
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard H. 2009-04-30 20:03:19 UTC
I have searched why I always get "[drm] could not load kernel module "vboxvideo".

While that I found out, that the OSE-Version lacks this feature.

Reproducible: Always

Steps to Reproduce:
1. merge xf86-video-virtualbox
2. enable dri
3. read the messages, no DRI

Actual Results:  
no acceleration

Expected Results:  
DRI should work by loading the kernel module "vboxvideo"
Comment 1 Patrick Lauer gentoo-dev 2009-04-30 20:51:07 UTC
Please provide info:

- which version of virtualbox
- emerge --info
Comment 2 Richard H. 2009-04-30 20:54:26 UTC
I am using Virtualbox 2.2.0 on a Mac. (The newest version available).

I have already tried upgrading all VirtualBox related things (the additions and the input and video driver). emerge --info follows as attachment.
Comment 3 Richard H. 2009-04-30 20:55:58 UTC
Created attachment 189998 [details]
emerge --info from guest

emerge --info from a VBox guest running in VBox 2.2.0 on a MacBook Pro (Late 2008)
Comment 4 Patrick Lauer gentoo-dev 2009-05-01 18:27:24 UTC
So if I understand this correctly virtualbox-ose is released without the DRI functionality. That's not something we can fix, either use virtualbox-bin, don't use DRI or complain at virtualbox upstream until they release a "fixed" version.

Closing bug as we can't fix this.
Comment 5 Richard H. 2009-05-02 01:30:21 UTC
No, virtualbox-bin didn't work either.

I think I found the problem. "export_modules" doesn't export the "drm" directory, and a whole lot more.

I'll try to put together an ebuild once this works for me...
Comment 6 Richard H. 2009-05-02 01:54:56 UTC
I was able to "fix" this problem by...

* unpacking the OSE-Tarball
* go to $unpackdir/src/VBox/Additions/linux/drm
* run kmk
* go to $unpackdir/out/linux.x86/release/bin/additions/src/vboxvideo_drm
* make
* make install

So it IS included in the OSE. But it doesn't get build by the ebuild it seems...

I hope this helps somehow...
Comment 7 Josh Williams 2009-05-14 14:09:15 UTC
Created attachment 191265 [details]
Ebuild
Comment 8 Josh Williams 2009-05-14 14:09:31 UTC
Created attachment 191269 [details, diff]
Patch
Comment 9 Josh Williams 2009-05-14 14:10:37 UTC
I was able to create a patch for export_modules that causes it to export the drm directory, and modified the ebuild to make use of it and install.  My only problem with this approach is that the drm module is being installed as part of the guest-additions, and it feels like it should be part of xf86-video-virtualbox when the drm use-flag is enabled.(In reply to comment #8)
Comment 10 Luca Santarelli 2009-06-21 06:18:32 UTC
I'd like to point out that this bug is not to be resolved upstream, but gets fixed with the attached ebuild and patch by Josh Williams.

In contrast to comment #9, though, I'd keep the patch for this ebuild (and not in the xf86 video package) by applying the patch only if the X use flag is enabled.