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

2011-05-03 Thread Luis Zaldivar

vglrun startkde?

On 03/05/11 15:35, Martin Juhl wrote:

Hi..

As I also have written in the howto here:

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

You currently lose 3D acceleration on the intel card, caused to the 
mesa libraries for nvidia is installed and overwrites the intel ones.. 
so right now you need to either run gnome through the nvidia as well.. 
or forget about transparency on the desktop for now...


I will look into this, I don't think it will be hard to fix...



*Fra: *Luis Zaldivar luis.zaldi...@gmail.com
*Til: *Martin Juhl m...@casalogic.dk
*Cc: *Matthew Chambers chambers3...@gmail.com, 
hybrid-graphics-linux@lists.launchpad.net

*Sendt: *tirsdag, 3. maj 2011 22:24:08
*Emne: *Re: [Hybrid-graphics-linux] Optimus Solution found Using 
my Nvidia card in my Alienware M11X R2!!!



Uhm
This is weird. I lost desktop effects with the intel card.

Icons on the systray lost transparency also. Seems like there is a 
problem with the GL extensions or something.




On 03/05/11 14:36, Martin Juhl wrote:

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 chambers3...@gmail.com
*Til: *Martin Juhl m...@casalogic.dk


*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 m...@casalogic.dk
mailto:m...@casalogic.dk 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

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

2011-05-03 Thread 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 Chamberschambers3...@gmail.com
Til: Martin Juhlm...@casalogic.dk
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  m...@casalogic.dk  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 

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

2011-05-03 Thread Luis Zaldivar
Btw, I tested the chrome webgl experiments with the latest firefox 
nightly + nvidia and works amazing


Great job, we all owe you a drink


On 03/05/11 11:42, Martin Juhl 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@lists.launchpad.net
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
More help   : https://help.launchpad.net/ListHelp


Re: [Hybrid-graphics-linux] bumblebee v1.0 has been released... updated script and new name...

2011-05-10 Thread Luis Zaldivar

Just reporting.

Dell XPS 15, works flawlessly with version 1.1.2 of the script

My nvidia card is an GT520M

I get much better performance (at least in glxgears) with yuv that with xv



On 10/05/11 09:23, daniel wrote:
Okay, read through the script and looked over the files.  Seems there 
is no support for anything other than a debian based distro?


And why aren't you running some sort of PCI scan or dmidecode to 
determine what machine it is being installed to?  Using dmidecode 
will reveal a lot about the machine.



On 05/10/2011 08:27 AM, Martin Juhl wrote:

Thanks..

Fixed in v.1.1.2




*Fra: *Gaspo mar...@gaspo.sk
*Cc: *Martin Juhl m...@casalogic.dk, 
hybrid-graphics-linux@lists.launchpad.net

*Sendt: *tirsdag, 10. maj 2011 13:39:49
*Emne: *Re: [Hybrid-graphics-linux] bumblebee v1.0 has been 
released... updated script and new name...


I reviewed your script, and on line 326 you create aliases for optirun64
for both architectures, and then you create it again from line 328.

also on line 367 you echo But... if one doesn't work... try the other
for both architectures.

Gaspo

On 10/05/11 13:32, Albert Vilella wrote:
 Hi Martin,

 Once installed, does it need a restart or should the instructions 
below suffice?


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

 On Tue, May 10, 2011 at 11:33 AM, Martin Juhlm...@casalogic.dk  wrote:
 Yeah... exactly...

 I just finished implementing the same change in v.1.1.1.. so now 
the 32-bit

 support should work...




 
 Fra: Gaspomar...@gaspo.sk
 Til: Martin Juhlm...@casalogic.dk
 Cc: hybrid-graphics-linux@lists.launchpad.net
 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: *Gaspomar...@gaspo.sk
 *Til: *hybrid-graphics-linux@lists.launchpad.net
 *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: *Gaspomar...@gaspo.sk
   *Til: *Martin Juhlm...@casalogic.dk
   *Cc: *hybrid-graphics-linux@lists.launchpad.net
   *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
  

[Hybrid-graphics-linux] [offtopic] The /usr bug

2011-06-17 Thread Luis Zaldivar

How are you holding up, Martin? the bug has been featured everywhere.

I think is funny how everybody is freaking out about this, specially 
given the bleeding edge nature of the project.




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


Re: [Hybrid-graphics-linux] Not able to boot live cd on Dell XPS with NVIDIA optimus

2011-08-19 Thread Luis Zaldivar

It happened to me today.

I had  to rmmod and blacklist nouveau and then it works like a charm.

Maybe you can try to blacklist the module on the boot command line with

nouveau.blackist=yes

See more info here

https://help.ubuntu.com/8.04/installation-guide/i386/boot-parms.html 
(ctrl + F BLACLKIST)


El 19/08/11 11:02, Chinni escribió:

Hello,

Wondering if you could help me out here..
I bought a new Dell XPS 15 Laptop with Intel Core i5-2410M and NVIDIA
GeForce GT 525M 1GB graphics with Optimus
I tried Fedora (both 32 bit and 64 bit) and also Ubuntu, but neither of
them would even boot into the Live CD..
The error message nouveau unsupported chipset would appear while
trying to boot.. So I guess it's some problem with my graphics card..
I'm a student at North Carolina State University studying Electrical
Engineering and will be needing Linux on my Laptop for many of my
projects and courses.. It'd be great if someone could help me figure out
how to get this working..

Thank you,
Abhay Chinivar


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