← Back to team overview

hybrid-graphics-linux team mailing list archive

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

 

Hi... 

The nvidia kernel module doesn't seem to be loaded.. 

Try running "modprobe nvidia-current" and then restart the X-server... 




Fra: "Luis Z" <luisgls@xxxxxxxxx> 
Til: "David Mackenzie" <dmackenz1981@xxxxxxxxx> 
Cc: "Martin Juhl" <mj@xxxxxxxxxxxx>, hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx 
Sendt: fredag, 6. maj 2011 16:57:23 
Emne: Re: [Hybrid-graphics-linux] Optimus Solution found!!!! Using my Nvidia card in my Alienware M11X R2!!! 

Hi people, 


I managed to use Martin solution with an external monitor. I followed the how to but I still cant run vglrun glxgears ([VGL] ERROR: Could not open display :0.1.) I tried solution CRT-0, DFP-0. nothing. Ill post my xorg.conf and my xorg.log. Thanks for all. 





On Fri, May 6, 2011 at 11:06 AM, David Mackenzie < dmackenz1981@xxxxxxxxx > wrote: 


Hi Martin and other Optimus people, 

First, a big thank you to Martin for this solution. I have my external Samsung monitor working with nvidia proprietry drivers on Ubuntu 11.04 with gnome and compiz 3d effects working using this solution, however, I am unable to get any display on my laptop LVDS. I have tried hacking around with various xorg configs but can't get any output on the laptop screen. 

Does anyone have dual screen working? If so, what is your xorg config? 

For the record I have the following hardware: 

Dell XPS L502X with: 

a) 2nd generation Intel® Core? i5-2410M processor 2.30 GHz with Turbo Boost 2.0 up to 2.90 GHz PCI:0:2:0 
b) 2GB NVIDIA® GeForce® GT 540M graphics with Optimus PCI:1:0:0 

Thanks everyone for your efforts so far. As someone else said, we all owe Martin a beer. 

Cheers, 
Dave. 






On 6 May 2011 02:59, Martin Juhl < mj@xxxxxxxxxxxx > wrote: 




Hi.. 

What are you using for testing... 

I'm using glxgears and getting: 

~ 1700 fps with libjpeg-turbo 

7362 frames in 5.0 seconds = 1472.247 FPS 
6651 frames in 5.0 seconds = 1330.055 FPS 
6507 frames in 5.0 seconds = 1301.198 FPS 
9399 frames in 5.0 seconds = 1879.629 FPS 
9519 frames in 5.0 seconds = 1903.788 FPS 
8857 frames in 5.0 seconds = 1771.247 FPS 
9524 frames in 5.0 seconds = 1904.607 FPS 
8545 frames in 5.0 seconds = 1708.921 FPS 
9485 frames in 5.0 seconds = 1896.910 FPS 
9495 frames in 5.0 seconds = 1898.814 FPS 

~ 1600 fps with turbojpeg 

6580 frames in 5.0 seconds = 1315.794 FPS 
7177 frames in 5.0 seconds = 1435.397 FPS 
9346 frames in 5.0 seconds = 1869.135 FPS 
8206 frames in 5.0 seconds = 1641.097 FPS 
6429 frames in 5.0 seconds = 1285.784 FPS 
7006 frames in 5.0 seconds = 1401.094 FPS 
6229 frames in 5.0 seconds = 1245.770 FPS 
7559 frames in 5.0 seconds = 1511.768 FPS 
8541 frames in 5.0 seconds = 1708.090 FPS 
8503 frames in 5.0 seconds = 1700.564 FPS 
8501 frames in 5.0 seconds = 1700.139 FPS 
8540 frames in 5.0 seconds = 1707.930 FPS 


~ 1900 fps with none of them installed 

7621 frames in 5.0 seconds = 1524.158 FPS 
9526 frames in 5.0 seconds = 1905.055 FPS 
9504 frames in 5.0 seconds = 1900.725 FPS 
9487 frames in 5.0 seconds = 1897.317 FPS 
9419 frames in 5.0 seconds = 1883.613 FPS 
8754 frames in 5.0 seconds = 1750.718 FPS 
9435 frames in 5.0 seconds = 1886.882 FPS 
9400 frames in 5.0 seconds = 1879.999 FPS 
9408 frames in 5.0 seconds = 1881.523 FPS 


~ 1600 fps with xuv 

7888 frames in 5.0 seconds = 1577.544 FPS 
7906 frames in 5.0 seconds = 1581.168 FPS 
7963 frames in 5.0 seconds = 1592.556 FPS 
8090 frames in 5.0 seconds = 1617.894 FPS 
8122 frames in 5.0 seconds = 1624.336 FPS 
8204 frames in 5.0 seconds = 1640.684 FPS 
8377 frames in 5.0 seconds = 1675.184 FPS 
8288 frames in 5.0 seconds = 1657.548 FPS 
8399 frames in 5.0 seconds = 1679.671 FPS 

/Martin 



Fra: "Ellington Santos" < ellington@xxxxxxxxxxxxx > 
Til: hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx 
Sendt: torsdag, 5. maj 2011 17:23:31 



Emne: Re: [Hybrid-graphics-linux] Optimus Solution found!!!! Using my Nvidia card in my Alienware M11X R2!!! 

Look my tests with libjpeg-turbo and turbojpeg-ipp: 


1) libjpeg-turbo-1.1.0: 

I got around 170fps without VGL_COMPRESS and around 130fps with VGL_COMPRESS=jpeg. 

2) turbojpeg-ipp-1.11.1: 

I got around 290fps without VGL_COMPRESS and around 350fps with VGL_COMPRESS=jpeg. 

My hardware: 

Asus Eeepc1215N, 

00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graphics Controller (rev 02) 
04:00.0 VGA compatible controller: nVidia Corporation Device 0a76 (rev a2) 

NVIDIA ION2 Optimus. 

Att, 

Ellington Santos 



On Thu, May 5, 2011 at 11:31 AM, Martin Juhl < mj@xxxxxxxxxxxx > wrote: 




Sry... Fixed... 





Fra: "Ellington Santos" < ellington@xxxxxxxxxxxxx > 
Til: "Martin Juhl" < mj@xxxxxxxxxxxx > 
Sendt: torsdag, 5. maj 2011 16:15:14 



Emne: Re: [Hybrid-graphics-linux] Optimus Solution found!!!! Using my Nvidia card in my Alienware M11X R2!!! 

Martin, my name is Ellington Santos. It isn't Santos Ellington. ;-) 


On Thu, May 5, 2011 at 10:54 AM, Martin Juhl < mj@xxxxxxxxxxxx > wrote: 




Great... 

Thanks for your feedback 





	Med venlig hilsen 

Martin Juhl 
IT-konsulent 
T: (+45) 70 20 10 63 
M: (+45) 27 52 46 58 
	
CASALOGIC A/S 



	Besøg os på 
www.casalogic.dk 
	




Fra: "Ellington Santos" < ellington@xxxxxxxxxxxxx > 
Til: "Martin Juhl" < mj@xxxxxxxxxxxx > 
Cc: "peter" < peter@xxxxxxxxxx >, hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx 
Sendt: torsdag, 5. maj 2011 02:53:17 



Emne: Re: [Hybrid-graphics-linux] Optimus Solution found!!!! Using my Nvidia card in my Alienware M11X R2!!! 

It worked with Option "ConnectedMonitor" "DFP-0". 

I attached my xorg.conf and Xorg.0.log. I swaped screen 0 and 1 to use intel as first screen. 

By the way, my netbook is a Acer EeePC 1215N. 



On Wed, May 4, 2011 at 6:51 PM, Martin Juhl < mj@xxxxxxxxxxxx > wrote: 




If that doesn't work... 

You can try: 

Option "ConnectedMonitor" "CRT" 

or 

Option "UseDisplayDevice" "none" 

instead... 




Fra: "Martin Juhl" < mj@xxxxxxxxxxxx > 
Til: "Ellington Santos" < ellington@xxxxxxxxxxxxx >, "peter" < peter@xxxxxxxxxx > 

Cc: hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx 
Sendt: onsdag, 4. maj 2011 23:49:03 



Emne: Re: [Hybrid-graphics-linux] Optimus Solution found!!!! Using my Nvidia card in my Alienware M11X R2!!! 


Hi Santos and Peter.. 

I think you guys have the same problem.. 

Could you try the following: 

Add: 

Option "ConnectedMonitor" "CRT-0" 

to your nvidia device: 

Section "Device" 
Identifier "Device1" 
Driver "nvidia" 
VendorName "NVIDIA Corporation" 
BusID "PCI:1:0:0" 
Option "IgnoreEDID" 
Option "ConnectedMonitor" "CRT-0" 
#Screen 0 
EndSection 

Santos: You might need to change your BusID as well to BusID "PCI:1:0:0"... 

Please report back... 


Fra: "Ellington Santos" < ellington@xxxxxxxxxxxxx > 
Til: hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx 
Sendt: onsdag, 4. maj 2011 23:31:14 
Emne: Re: [Hybrid-graphics-linux] Optimus Solution found!!!! Using my Nvidia card in my Alienware M11X R2!!! 

I've got the same error. 

Look Xorg.0.log lines referent to nvidia: 

[ 35340.269] (II) Module glx: vendor="NVIDIA Corporation" 
[ 35340.269] (II) NVIDIA GLX Module 260.19.29 Wed Dec 8 12:25:40 PST 2010 
[ 35340.272] (II) LoadModule: "nvidia" 
[ 35340.273] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so 
[ 35340.273] (II) Module nvidia: vendor="NVIDIA Corporation" 
[ 35340.276] (II) NVIDIA dlloader X Driver 260.19.29 Wed Dec 8 12:10:28 PST 2010 
[ 35340.276] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs 
[ 35340.298] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32 
[ 35340.298] (==) NVIDIA(0): RGB weight 888 
[ 35340.298] (==) NVIDIA(0): Default visual is TrueColor 
[ 35340.298] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0) 
[ 35340.298] (**) NVIDIA(0): Enabling RENDER acceleration 
[ 35340.298] (II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is 
[ 35340.299] (II) NVIDIA(0): enabled. 
[ 35340.579] (II) NVIDIA(0): NVIDIA GPU ION (GT218) at PCI:4:0:0 (GPU-0) 
[ 35340.579] (--) NVIDIA(0): Memory: 524288 kBytes 
[ 35340.580] (--) NVIDIA(0): VideoBIOS: 70.18.82.00.0b 
[ 35340.580] (II) NVIDIA(0): Detected PCI Express Link width: 1X 
[ 35340.580] (--) NVIDIA(0): Interlaced video modes are supported on this GPU 
[ 35340.580] (--) NVIDIA(0): Connected display device(s) on ION at PCI:4:0:0 
[ 35340.580] (--) NVIDIA(0): none 
[ 35340.581] (EE) NVIDIA(0): No display devices found for this X screen. 
[ 35340.661] (II) UnloadModule: "nvidia" 
[ 35340.703] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found) 






On Wed, May 4, 2011 at 5:57 PM, Flat6 < flat6@xxxxxxxxxxxxxx > wrote: 



Hi all, 

After some tests ( i'm quite a nob), I have the same message 


reports: [VGL] ERROR: Could not open display :0.1. 

But I think PCI buses are correctly matched in the Xorg file..... 

I tried to launch vglrun glxgears 

CU, 

Flat6 

-------- Message initial -------- 
De : Peter Liedler < peter@xxxxxxxxxx > 
Reply-to : peter@xxxxxxxxxx 

À : Luis Zaldivar < luis.zaldivar@xxxxxxxxx > 
Cc : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx 
Sujet : Re: [Hybrid-graphics-linux] Optimus Solution found!!!! Using my Nvidia card in my Alienware M11X R2!!! 
Date : Tue, 3 May 2011 23:07:55 +0200 




Hi Luis,

I've checked:

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated 
Graphics Controller (rev 18)
01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 310M] 
(rev a2)

cat /etc/X11/xorg.conf | grep PCI
    BusID          "PCI:1:0:0"
    BusID          "PCI:0:2:0"

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
    Option         "IgnoreEDID"
    #Screen         0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "intel"
    VendorName     "onboard"
    BusID          "PCI:0:2:0"
    #Screen         1
EndSection

I even stopped the display manager and reconfigured vgl_config, then rebooted.
Should work in my opinion. Am I missing something?
Peter

Am Dienstag, 3. Mai 2011, 22:48:19 schrieb Luis Zaldivar:
> Peter
> 
> I had the same issue
> 
> You must match the PCI buses to the xorg.conf ones
> 
> run lspci | grep VGA
> 
> $ lspci | grep VGA
> 00:02.0 VGA compatible controller: Intel Corporation Core Processor
> Integrated Graphics Controller (rev 18)
> 02:00.0 VGA compatible controller: nVidia Corporation Device 0df1 (rev a1)
> 
> and modify the xorg file with those numbers
> 
> ~$ fgrep "PCI" /etc/X11/xorg.conf
>      BusID          "PCI:2:0:0"
>      BusID          "PCI:0:2:0"
> 
> On 03/05/11 15:38, Peter Liedler wrote:
> > Hi there,
> > 
> > after all, this is great news! Thank you for this solution.
> > 
> > I am running Kubuntu natty 11.04 64bit.
> > The installation was absolutely smooth and worked as in described in the
> > HOWTO.
> > Still, for some reason, the display export does not work here. I appended
> > the two lines to my /etc/profile and rebooted. System comes up with gui
> > (kde). But running applications with e.g.
> > vglrun ./pslaunch
> > 
> > reports: [VGL] ERROR: Could not open display :0.1.
> > 
> > What have I missed?
> > 
> > peter
> > 
> > Am Dienstag, 3. Mai 2011, 21:36:31 schrieb Martin Juhl:
> >> Hi..
> >> 
> >> I haven't found the MUX.. as far as I can tell the M11X doesn't have a
> >> mux.. this solution actually works the way optimus is meant to work.. by
> >> using the intel card to disable everything, and only offload though
> >> stuff to the Nvidia card...
> >> 
> >> I discovered that the never versions of the nvidia driver allowed me to
> >> create a virtual screen on the nvidia card.. and worked my way from
> >> there...
> >> 
> >> /Martin
> >> 
> >> 
> >> 
> >> 
> >> Fra: "Matthew Chambers"< chambers3000@xxxxxxxxx >
> >> Til: "Martin Juhl"< mj@xxxxxxxxxxxx >
> >> Sendt: tirsdag, 3. maj 2011 21:28:44
> >> Emne: Re: [Hybrid-graphics-linux] Optimus Solution found!!!! Using my
> >> Nvidia card in my Alienware M11X R2!!!
> >> 
> >> Can you tell me how you identified the card MUX. I am a little confused
> >> or point to a link. I have a Asus NV61J with the 325M optimus Nvidia
> >> card. But when I looked into the specs of your machine you also have an
> >> Optimus "enabled". As a side note I love using linux and was wondering
> >> if there is anything I should read to be more proficient like you are
> >> with this kind of stuff.
> >> 
> >> 
> >> On Tue, May 3, 2011 at 11:42 AM, Martin Juhl< mj@xxxxxxxxxxxx >  wrote:
> >> 
> >> 
> >> 
> >> 
> >> 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 

_______________________________________________ 
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 




-- 
Luis Zapata Ortiz 
Molecular Biotechnology Engineering 
Laboratory of Bioinformatics and Mathematics of the Genome, LBMG. 
Center of Mathematical Modeling of the University of Chile. 
Av. Blanco Encalada 2120 
56-2-9784551 

References