← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: Optimus Solution found!!!! Using my Nvidia card in my Alienware M11X R2!!!

 

I can confirm this works on my dell xps 15 (l501x), dont know if reporting this is useful.

Just downloaded 15 mins ago from GIT and used xv for the transport. In yesterday's version, I used jpeg and yuv but I had error [VGL] ERROR: Unable to open display :1

Now I have performance around 500fps, before the installation Ii had 60fps

About the battery life, I have 2:20 on full capacity, and before the installation I had something like 1:55. I will keep on testing this week, thanks for the hard work!
I think this should work:

sudo apt-get install git
git clone https://github.com/MrMEEE/bumblebee.git
cd bumblebee/
sudo ./install.sh
optirun64 glxgears



On Mon, May 9, 2011 at 3:33 PM, Matthew Chambers<chambers3000@xxxxxxxxx>  wrote:
Sorry for the NOOB questions but I am having trouble figuring out how to
install this from Git. Can someone please clue me in on how this works now
or how to install from Git repository. I am running 64 bit Ubuntu 11 with an
Asus N61JV. I see someone has already been successful with this model laptop
and I would like to see if I can yeild the same results. Thanks for your
time.

Matt

On Tue, May 3, 2011 at 2:31 PM, Martin Juhl<mj@xxxxxxxxxxxx>  wrote:
As I understand it, it's not vnc, but more a kind of x-forward..
performance is great, just like been connected to the nvidia card directly
(or close too).. this is not just a POC.. this is actually usable!!..

Regard arch, I don't know.. but isn't it packaged the same way in
ubuntu???

Micah Chambers<micahc.vt@xxxxxxxxx>  skrev:

Using vnc seems like it would induce some lag or cpu cycles. Whats the
performance like?

Also on a related note, I use Arch, and since libgl gets packaged with
with
the nvidia proprietary modules now, I'm guessing I would need to find a
way
to install both the open source libgl and the nvidia one? Thanks
-Micah

On Tue, May 3, 2011 at 12:01 PM, Martin Juhl<mj@xxxxxxxxxxxx>  wrote:

I will keep the howto and todo list updated here:

http://www.martin-juhl.dk/2011/05/optimus-on-linux-problem-solved/


------------------------------
*Fra: *"Martin Juhl"<mj@xxxxxxxxxxxx>
*Til: *hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
*Sendt: *tirsdag, 3. maj 2011 18:42:20
*Emne: *[Hybrid-graphics-linux] Optimus Solution found!!!! Using my
Nvidia
card in my Alienware M11X R2!!!


Hi all..

I have found a way to use the nvidia card in machines WITHOUT the
optimus
mux...

There are still a few flaws... but in my regard they are few...

First of all I have this running on my Alienware M11X R2, on Ubuntu
Natty
11.04 64-bit.. And haven't tried it on any other configurations.. so I
hope
you can report back, if it works on other laptops (it should) and other
distributions....

Here it goes:

First of all download the following:

General:

http://www.martin-juhl.dk/optimus/xorg.conf


32-bit deb-based:

http://www.martin-juhl.dk/optimus/turbojpeg_1.11.1_i386.deb

http://www.martin-juhl.dk/optimus/VirtualGL_2.2.1_i386.deb


64-bit deb-based:

http://www.martin-juhl.dk/optimus/turbojpeg_1.11.1_amd64.deb

http://www.martin-juhl.dk/optimus/VirtualGL_2.2.1_amd64.deb


32-bit rpm-based:

http://www.martin-juhl.dk/optimus/turbojpeg-1.11.i386.rpm

http://www.martin-juhl.dk/optimus/VirtualGL-2.2.1.i386.rpm


64-bit rpm-based:

http://www.martin-juhl.dk/optimus/turbojpeg-1.11.x86_64.rpm

http://www.martin-juhl.dk/optimus/VirtualGL-2.2.1.x86_64.rpm


Source:

http://www.martin-juhl.dk/optimus/turbojpeg-ipp-1.11.1.tar.gz

http://www.martin-juhl.dk/optimus/VirtualGL-2.2.1.tar.gz


Files can also be found here:

http://sourceforge.net/projects/virtualgl/files/


Ok... Installation:

Start by installing the nvidia driver:

sudo aptitude install nvidia-current     (ubuntu)

then put the xorg.conf in /etc/X11/

after that, install the two files you downloaded above:

sudo dpkg -i turbojpeg*  VirtualGL*        (deb)

or

sudo rpm -ihv turbojpeg*  VirtualGL*     (rpm)


Now run:

sudo vglserver_config

answer as below:

1) Configure server for use with VirtualGL in GLX mode
2) Unconfigure server for use with VirtualGL in GLX mode
X) Exit

Choose:
1

Restrict 3D X server access to vglusers group
(recommended)?

[Y/n]

n



Restrict framebuffer device access to vglusers group
(recommended)?

[Y/n]

n



Disable XTEST extension
(recommended)?

[Y/n]
y

... Creating /etc/modprobe.d/virtualgl.conf to set requested permissions
for

     /dev/nvidia* ...
... Attempting to remove nvidia module from memory so device permissions
     will be reloaded ...
ERROR: Module nvidia is in use
... Granting write permission to /dev/nvidia0 /dev/nvidiactl for all
users
...
... Modifying /etc/X11/xorg.conf to enable DRI permissions for
     all users ...
... Adding xhost +LOCAL: to /etc/kde4/kdm/Xsetup script ...
... Disabling XTEST extension in /etc/kde4/kdm/kdmrc ...

Done. You must restart the display manager for the changes to take
effect.

IMPORTANT NOTE: Your system uses modprobe.d to set device permissions.
You
must execute rmmod nvidia with the display manager stopped in order for
the
new device permission settings to become effective.


1) Configure server for use with VirtualGL in GLX mode
2) Unconfigure server for use with VirtualGL in GLX mode
X) Exit

Choose:
x


Then:

append the following two lines to /etc/profile

VGL_DISPLAY=:0.1
export VGL_DISPLAY


and reboot...

Hopefully your computer comes back up..

now you should be able to start applications with:

vglrun<application>

and the nvidia card will be used for acceleration..

btw.<application>  needs to contain the full path to the application if
not
in the path...

It is still the Intel card running the rest.. and for now I haven't
found a
way to activate acceleration for both cards.. so no fancy compiz
effects..
but thats no problem for me, as long as I can use my nvidia card for
gaming
:D...

Hope this will help someone..


/MrMEEE aka Martin Juhl...

_______________________________________________
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