← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: bumblebee v1.0 has been released... updated script and new name...

 

Yestarday after a pair of hours spent to work, i got the 3d acceleration
working on my NVIDIA, but the embeeded intel doesn't have the GLX
acceleration.
Today i reinstalled the package, and i have the GLX working on the intel but
the discrete NVIDIA doesn't seems to work, when i ran:

snowpunk@phobos:~$ optirun64 glxgears
Xlib:  extension "GLX" missing on display ":1".
[VGL] WARNING: VirtualGL attempted and failed to obtain a Pbuffer-enabled
[VGL]    24-bit visual on the 3D X server :1.  If the application
[VGL]    subsequently fails, then make sure that the 3D X server is
configured
[VGL]    for 24-bit color and has accelerated 3D drivers installed.
Error: couldn't get an RGB, Double-buffered visual

This is very strange.
I tried to start without x and launch xdm-optimus, but the session is bugged
and i miss the panel and the input text forms :-0 .

Martin can you write a full featured how to , on the solution you built ...
explaining how this trick works?


2011/5/10 Martin Juhl <mj@xxxxxxxxxxxx>

> Yeah... exactly...
>
> I just finished implementing the same change in v.1.1.1.. so now the 32-bit
> support should work...
>
>
>
>
> ------------------------------
> *Fra: *"Gaspo" <martin@xxxxxxxx>
> *Til: *"Martin Juhl" <mj@xxxxxxxxxxxx>
> *Cc: *hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> *Sendt: *tirsdag, 10. maj 2011 12:30:36
>
> *Emne: *Re: [Hybrid-graphics-linux] bumblebee v1.0 has been released...
> updated script and new name...
>
> Finaly.. I found it
>
> xdm-optimus is actualy xdm, right? I have installed 32bit version of
> xdm, renamed it and it works now. Im getting 1000 fps.
>
> The glxgear window is still lagging as hell, but Im heading right way, I
> hope.
>
> Gaspo
>
> On 10/05/11 11:50, Martin Juhl wrote:
> > Ok..
> >
> > Please send me your Xorg.1.log now
> >
> > /Martin
> >
> >
> >
> > ------------------------------------------------------------------------
> > *Fra: *"Gaspo" <martin@xxxxxxxx>
> > *Til: *hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> > *Sendt: *tirsdag, 10. maj 2011 11:26:21
> > *Emne: *Re: [Hybrid-graphics-linux] bumblebee v1.0 has been released...
> > updated script and new name...
> >
> > OK, Im sorry, after I restarted my notebook, things has changed a bit..
> >
> > $ ps aux | grep X
> >
> > root 1150 8.9 0.8 283508 24316 tty7 Ss+ 11:16 0:23
> > /usr/bin/X :0 -nr -verbose -auth
> > /var/run/gdm/auth-for-gdm-wTPORz/database -nolisten tcp vt7
> >
> > X server is back on vt7, I dont know how it got to 9. But now I get this
> > error:
> >
> > [VGL] ERROR: Could not open display :1
> >
> > I will search more, but no luck so far. Please let me know if you have
> > any idea.
> >
> > Gaspo
> >
> > On 10/05/11 10:52, Gaspo wrote:
> >  > $ ps aux |grep X
> >  >
> >  > root 4718 6.6 1.3 297172 38876 tty9 Ss+ 08:42 7:55 /usr/bin/X :1 -br
> >  > -verbose -auth /var/run/gdm/auth-for-gdm-ZmhXqe/database -nolisten tcp
> >  >
> >  > gaspo 8315 0.0 0.0 4160 848 pts/2 S+ 10:42 0:00 grep --color=auto X
> >  >
> >  > and
> >  >
> >  > after changing
> >  > LD_LIBRARY_PATH=/usr/lib/nvidia-current/ DISPLAY=:1 glxgears\
> >  >
> >  > I ran:
> >  > $ sudo /etc/init.d/xdm-optimus stop
> >  > * Stopping X display manager xdm-optimus
> >  >
> >  > $ sudo /etc/init.d/xdm-optimus start
> >  > * Starting X display manager xdm-optimus
> >  > Xlib: extension "NV-GLX" missing on display ":1".
> >  > Xlib: extension "NV-GLX" missing on display ":1".
> >  > Running synchronized to the vertical refresh. The framerate should be
> >  > approximately the same as the monitor refresh rate.
> >  > 343 frames in 5.0 seconds = 68.067 FPS
> >  >
> >  > But the window with gears refreshes only 2-3 times per second.
> >  >
> >  > running "optirun glxgears" is with no change.
> >  >
> >  >
> >  > On 10/05/11 10:34, Martin Juhl wrote:
> >  >> and also send me a:
> >  >>
> >  >> ps aux |grep X
> >  >>
> >  >> and your
> >  >>
> >  >> /var/log/Xorg.1.log
> >  >>
> >  >>
> >  >>
> >  >>
> ------------------------------------------------------------------------
> >  >> *Fra: *"Gaspo" <martin@xxxxxxxx>
> >  >> *Til: *"Martin Juhl" <mj@xxxxxxxxxxxx>
> >  >> *Cc: *hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> >  >> *Sendt: *tirsdag, 10. maj 2011 09:55:48
> >  >> *Emne: *Re: [Hybrid-graphics-linux] bumblebee v1.0 has been
> released...
> >  >> updated script and new name...
> >  >>
> >  >> Hi,
> >  >>
> >  >> Im sorry, I forgot..
> >  >>
> >  >> I've done these changes before, and the test I did was actualy with
> them
> >  >> applied.
> >  >>
> >  >> Any other ideas?
> >  >>
> >  >> Gaspo
> >  >>
> >  >> On 10/05/11 09:29, Martin Juhl wrote:
> >  >> > Hi..
> >  >> >
> >  >> > Thanks for the info..
> >  >> >
> >  >> > Try to change the following to things:
> >  >> >
> >  >> > /etc/init.d/xdm-optimus line 64:
> >  >> >
> >  >> > change:
> >  >> >
> >  >> > LD_LIBRARY_PATH=/usr/lib64/nvidia-current start-stop-daemon --start
> >  >> > --quiet $SSD_START_ARGS -- -config /etc/X11/xdm-optimus/xdm-config\
> to
> >  >> >
> >  >> > LD_LIBRARY_PATH=/usr/lib/nvidia-current start-stop-daemon --start
> >  >> > --quiet $SSD_START_ARGS -- -config /etc/X11/xdm-optimus/xdm-config\
> >  >> >
> >  >> >
> >  >> > and
> >  >> >
> >  >> > /usr/local/bin/optimusXserver line 2:
> >  >> >
> >  >> > LD_LIBRARY_PATH=/usr/lib64/nvidia-current /usr/bin/X $@
> >  >> >
> >  >> > to
> >  >> >
> >  >> > LD_LIBRARY_PATH=/usr/lib/nvidia-current /usr/bin/X $@
> >  >> >
> >  >> > I think that should do it... let me know how it goes...
> >  >> >
> >  >> > /Martin
> >  >> >
> >  >> >
> >  >> >
> >  >> >
> >  >>
> ------------------------------------------------------------------------
> >  >> > *Fra: *"Gaspo" <martin@xxxxxxxx>
> >  >> > *Til: *hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> >  >> > *Sendt: *tirsdag, 10. maj 2011 09:22:30
> >  >> > *Emne: *Re: [Hybrid-graphics-linux] bumblebee v1.0 has been
> > released...
> >  >> > updated script and new name...
> >  >> >
> >  >> > Hi Martin,
> >  >> >
> >  >> > Im trying to make it work on my 32bit ubuntu. I have customized
> your
> >  >> > install script. There were only few changes:
> >  >> >
> >  >> > dpkg -i install-files/VirtualGL_i386.deb
> >  >> > instead of 64bit version.
> >  >> >
> >  >> > and
> >  >> >
> >  >> > echo "VGL_DISPLAY=:1
> >  >> > export VGL_DISPLAY
> >  >> > VGL_COMPRESS=$IMAGETRANSPORT
> >  >> > export VGL_COMPRESS
> >  >> > VGL_READBACK=fbo
> >  >> > export VGL_READBACK
> >  >> >
> >  >> > alias optirun='vglrun -ld /usr/lib/nvidia-current'" >>
> > /etc/bash.bashrc
> >  >> >
> >  >> > instead of
> >  >> >
> >  >> > alias optirun32='vglrun -ld /usr/lib32/nvidia-current'
> >  >> > alias optirun64='vglrun -ld /usr/lib64/nvidia-current'" >>
> >  >> /etc/bash.bashrc
> >  >> >
> >  >> >
> >  >> > but when I run
> >  >> > $ optirun glxgears
> >  >> >
> >  >> > I get a black window and low fps with this output:
> >  >> >
> >  >> > Xlib: extension "NV-GLX" missing on display ":1".
> >  >> > Xlib: extension "NV-GLX" missing on display ":1".
> >  >> > [VGL] WARNING: The OpenGL rendering context obtained on X display
> >  >> > [VGL] :1 is indirect, which may cause performance to suffer.
> >  >> > [VGL] If :1 is a local X display, then the framebuffer device
> >  >> > [VGL] permissions may be set incorrectly.
> >  >> > 195 frames in 5.0 seconds = 38.994 FPS
> >  >> > 174 frames in 5.0 seconds = 34.514 FPS
> >  >> > 196 frames in 5.0 seconds = 39.157 FPS
> >  >> > 182 frames in 5.0 seconds = 36.312 FPS
> >  >> >
> >  >> > Could you please direct me, where sould I look to solve this?
> >  >> >
> >  >> > Gaspo
> >  >> >
> >  >> > On 10/05/11 00:02, Martin Juhl wrote:
> >  >> > > The script should take care of any pci setup...
> >  >> > >
> >  >> > >
> >  >> > > Please provide the logs:
> >  >> > > /var/log/Xorg.1.log and /var/log/xdm-optimus.log...
> >  >> > >
> >  >> > >
> >  >> > >
> >  >> > >
> >  >> > >
> >  >>
> ------------------------------------------------------------------------
> >  >> > > *Fra: *"Eric Bechet" <bechet@xxxxxxxxxx>
> >  >> > > *Til: *hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> >  >> > > *Sendt: *mandag, 9. maj 2011 19:19:41
> >  >> > > *Emne: *Re: [Hybrid-graphics-linux] bumblebee v1.0 has been
> >  >> released...
> >  >> > > updated script and new name...
> >  >> > >
> >  >> > > Hi,
> >  >> > >
> >  >> > > Nice job.
> >  >> > >
> >  >> > > I've tested this on an asus eeepc1215N running ubuntu 10.04 (LTS)
> >  >> > >
> >  >> > > First, there seem to be at least two variants of the same
> > laptop, one
> >  >> > > with nvidia card at PCI 4:0:0 (at least one member of the list
> >  >> reported
> >  >> > > this port number) and another at 5:0:0 (mine)
> >  >> > >
> >  >> > > For now it is not working on my configuration. Installation is
> >  >> without
> >  >> > > trouble, but when using optirun64 (with glxgears for instance),
> >  >> nothing
> >  >> > > displays and a message says that it cannot open the display.
> >  >> > >
> >  >> > > running glxgears from command line is ok (uses the intel graphic
> >  >> card)
> >  >> > >
> >  >> > > What can I do to help ?
> >  >> > >
> >  >> > > Eric
> >  >> > >
> >  >> > > Le 08/05/2011 23:19, Martin Juhl a écrit :
> >  >> > > > Hi all
> >  >> > > >
> >  >> > > > The prime-ng project has, for several reasons, been renamed to
> >  >> > > bumblebee..
> >  >> > > >
> >  >> > > > The script has now also been updated... thanks to all for your
> >  >> great
> >  >> > > > feedback.. keep it comming...
> >  >> > > >
> >  >> > > > bumblebee is Optimus support for Linux, with real offloading,
> >  >> and not
> >  >> > > > switchable graphics.. More important.. it works on Optimus
> Laptops
> >  >> > > without a
> >  >> > > > graphical multiplexer..
> >  >> > > >
> >  >> > > > Version 1.0 of the bumblebee project has been release!!!
> (version
> >  >> > > number has
> >  >> > > > been reset from the prime-ng project)
> >  >> > > >
> >  >> > > > The Installation should now be completely automatic...
> >  >> > > >
> >  >> > > >
> >  >> > > > Now 3D is enabled on both the Intel and the nVidia at the same
> >  >> time..
> >  >> > > >
> >  >> > > >
> >  >> > > >
> >  >> > > > Status available here: http://www.martin-juhl.dk
> >  >> > > >
> >  >> > > > Code @GitHub: https://github.com/MrMEEE/bumblebee
> >  >> > > >
> >  >> > > > Twitter here: http://twitter.com/martinjuhl
> >  >> > > >
> >  >> > > >
> >  >> > > > Martin Juhl/MrMEEE
> >  >> > > >
> >  >> > > >
> >  >> > > >
> >  >> > > > _______________________________________________
> >  >> > > > 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
> >  >> > >
> >  >> > >
> >  >> > > _______________________________________________
> >  >> > > 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
> >  >> > >
> >  >> > >
> >  >> > >
> >  >> > > _______________________________________________
> >  >> > > 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
> >  >> >
> >  >> > _______________________________________________
> >  >> > 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
> >  >
> >  >
> >  > _______________________________________________
> >  > 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
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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
>
>

References