← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: Loading a web java applet with optirun64/bumblebee

 

On Wednesday 01 June 2011 07:55 PM, Héctor Franqui wrote:
> @Bilal Akhtar: I tried installing Google Chrome and the running it with
> optirun64. It worked fine, however I can't activate OpenGL mode in
> Runescape anyway. Can you activate OpenGL mode? Because software mode
> isn't that good.

I guess my solution was wrong. I followed Stephen's steps and played
Runescape for a while today. The moment I set mode to OpenGL, Java
crashes. Dunno if its bumblebee-related or not. Runescape works well on
Software mode (no lag for me when run in optirun).


Hope it helps,

Bilal Akhtar.

> 
> @Stephen Brooks: Your solution seems to be what I was looking for, but
> then again, I don't know if the game can't detect that the Nvidia card
> is running because it defaults to software mode, it doesn't allows me to
> use OpenGL. Anyway, I think I got something wrong with bumblebee. I will
> Investigate further to check this out.
> 
> Thanks for your help.
> 
> 2011/5/31 Stephen Brooks <steve@xxxxxxxxxxxxx <mailto:steve@xxxxxxxxxxxxx>>
> 
>     Hi,
> 
>         I suspect you need to wrap the java_vm binary.  I used a similar
>     trick in the past to run it via aoss.  I'm not on my laptop at the
>     moment so this is all untested, might just work can't think why it
>     wouldn't.
> 
>     Find and change to your java_vm directory ("locate java_vm" should help)
> 
>     For me is:
> 
>     cd /usr/lib/jvm/java-6-sun/jre/bin
> 
>     sudo mv java_vm java_vm_orig
> 
>     sudo touch java_vm
>     sudo chmod a+x java_vm
>     sudo vi java_vm
> 
>     Insert and save:
> 
>     #!/bin/bash
>     exec optirun64 /usr/lib/jvm/java-6-sun/jre/bin/java_vm_orig
> 
>     Probably need to restart your browser to cleanly exit any currently
>     running java_vm.  Let us know if it works :)
> 
>     Regards,
>     Steve
> 
> 
>     On 30/05/11 21:13, Héctor Franqui wrote:
>>     Nope, I was thinking the same, but I can't activate the OpenGL
>>     mode, it remains on Software mode wihich works kind of laggy. Or
>>     perhaps the game doesn't supports OpenGL with VirtualGL. Just
>>     wondering. In Windows I fixed that by adding Java to the list of
>>     programs that runs with Nvidia, nonetheless in Linux I can't do
>>     that since the Firefox plugin seems to call directly the java
>>     executable and doesn't allow any launcher/shortcut that calls
>>     optirun and Java.
>>
>>     2011/5/30 Martin Juhl <mj@xxxxxxxxxxxx <mailto:mj@xxxxxxxxxxxx>>
>>
>>         Wont launching the browser with optirun work????
>>
>>
>>
>>         ------------------------------------------------------------------------
>>         *Fra: *"Héctor Franqui" <hfzorman@xxxxxxxxx
>>         <mailto:hfzorman@xxxxxxxxx>>
>>         *Til: *hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
>>         <mailto:hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx>
>>         *Sendt: *mandag, 30. maj 2011 20:04:57
>>         *Emne: *[Hybrid-graphics-linux] Loading a web java applet
>>         with        optirun64/bumblebee
>>
>>
>>         One of my primary objectives for enabling the NVIDIA card on
>>         Linux is to play a Java-based online game named Runescape. The
>>         game has HD graphics which only run well with the NVIDIA
>>         turned on, however I'm currently unable to call Java with
>>         optirun64. I think this is because Firefox uses the Java
>>         plugin as intermediary and so I can't create a shortcut or
>>         launcher which calls optirun and Java in order for the later
>>         to be accelerated. Any idea on how to call Java using optirun?
>>
>>         _______________________________________________
>>         Mailing list: https://launchpad.net/~hybrid-graphics-linux
>>         <https://launchpad.net/%7Ehybrid-graphics-linux>
>>         Post to     : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
>>         <mailto:hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx>
>>         Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
>>         <https://launchpad.net/%7Ehybrid-graphics-linux>
>>         More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>>     _______________________________________________
>>     Mailing list: https://launchpad.net/~hybrid-graphics-linux <https://launchpad.net/%7Ehybrid-graphics-linux>
>>     Post to     : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx <mailto:hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx>
>>     Unsubscribe : https://launchpad.net/~hybrid-graphics-linux <https://launchpad.net/%7Ehybrid-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


-- 
Bilal Akhtar - Ubuntu Developer <bilalakhtar@xxxxxxxxxx>
IRC Nick: cdbs

Attachment: signature.asc
Description: OpenPGP digital signature


References