← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: How-to: VDPAU with Bumblebee


Doesn't work here.. 

Mplayer runs.. but I only get a black screen when running windump.. 

Also tried with xterm and glxgears.... only a black screen shows... 


Fra: "Eric Appleman" <erappleman@xxxxxxxxx> 
Til: hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx 
Sendt: søndag, 25. september 2011 19:04:08 
Emne: Re: [Hybrid-graphics-linux] How-to: VDPAU with Bumblebee 

On 09/25/2011 12:34 PM, Eric Appleman wrote: 

Screenshot: http://i.imgur.com/AxQEV.jpg 
mplayer2 output: http://pastebin.com/6D6m99D0 

What is that? It's VDPAU through Bumblebee+Windump! 

Now, there are still a few problems that need to be addressed. The main one is the presence of two cursors that don't always align and no keyboard support. The second is that Bumblebee doesn't have a comprehensive list of modeplines (1080p especially) like Ironhide's xorg.conf.nvidia does so the dumped window may be limited to 1024x768 or 1360x768. Even if the dumped window matches your LVDS resolution, there are still issues of window overlap, window priority, and Compiz being a bit fickle. gnome-panel and gnome-shell seem to also interfere with fullscreening the dumped window. 

Want to try? 

1. Build hybrid-windump but don't use the included xorg.conf! 
https://github.com/harp1n/hybrid-windump (includes borders for entire dumped window) 
https://github.com/gebart/hybrid-windump (included better cursor support, but dumped window will cover portion of Intel desktop and can't be moved) 

2. Start the Bumblebee X server 
optirun glxinfo 

3. Run Compiz (or Metacity) on Nvidia display so the dumped window can be moved around. If you skip this, VDPAU playback will be green. 
DISPLAY=:8 compiz --replace & 

4. Run mplayer2 
DISPLAY=:8 mplayer -vo vdpau videofilename & 

5. Dump window 
./windump :8 :0.0 & 

6. You now have VDPAU output! 

NB: This also works with Ironhide. 

- Eric 
One correction, don't load mplayer with & . 

DISPLAY=:8 mplayer -vo vdpau videofilename 

Mailing list: https://launchpad.net/~hybrid-graphics-linux 
Post to : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx 
Unsubscribe : https://launchpad.net/~hybrid-graphics-linux 
More help : https://help.launchpad.net/ListHelp