[SOLVED] How to enable HW acceleration in Firefox?

Questions about applications and software
Forum rules
Before you post please read how to get help

Re: How to enable HW acceleration in Firefox?

Postby PatH57 on Wed Jul 09, 2014 2:05 pm

just want to make sure that after all the fiddling around done you are still on the default settings
your hw acceleration is set to 0/1 basic will mine is 0/4

let's just proceed step by step and focus on firefox before going down the graphic card driver path
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
User avatar
PatH57
Level 13
Level 13
 
Posts: 4603
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Linux Mint is funded by ads and donations.
 

Re: How to enable HW acceleration in Firefox?

Postby eanfrid on Wed Jul 09, 2014 2:16 pm

It is caused by an OpenGL code cleanup that had consequences since Firefox 28. The solution is here: https://bbs.archlinux.org/viewtopic.php?pid=1394765 ;)

Code: Select all
Description de la carte   X.Org -- Gallium 0.4 on AMD JUNIPER
Fenêtres avec accélération graphique   1/1 OpenGL (OMTC)
ID du périphérique   Gallium 0.4 on AMD JUNIPER
ID du vendeur   X.Org
Rendu WebGL   X.Org -- Gallium 0.4 on AMD JUNIPER
Version du pilote   3.0 Mesa 10.2.2
windowLayerManagerRemote   true
AzureCanvasBackend   cairo
AzureContentBackend   cairo
AzureFallbackCanvasBackend   none
AzureSkiaAccelerated   0
Main desktop: Debian GNU/Linux Wheezy 64bit - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1871
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: How to enable HW acceleration in Firefox?

Postby gtsfer on Wed Jul 09, 2014 2:42 pm

Eanfrid rocks! 8)
There's no Windows in my house. And it's a brighter and happier place now.
LMDE Mate, Cinnamon 17, KDE 17, Debian 7.6.0. Edit your first post and add SOLVED to the Subject if it's resolved.
User avatar
gtsfer
Level 7
Level 7
 
Posts: 1692
Joined: Mon May 27, 2013 9:15 am
Location: Bucks County PA, USA

Re: How to enable HW acceleration in Firefox?

Postby PatH57 on Wed Jul 09, 2014 2:43 pm

well it's as always an option to try.
Keep in mind, yours is a juniper version so an oem rebadget version (marketing trick to sell older cards leftover from the opengl scene as "new" models for the end user market) Even the name was catchy back in 2010 so they had something new for 2011, you have to love these guys.
It has a beefed up firmware and a bit more memory and uses opengl for rendering (that's what the commercial card was intended to do, not to difficlt to imlement would one say and it didn't cost you an arm and a leg to buy one)


Let's see...
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
User avatar
PatH57
Level 13
Level 13
 
Posts: 4603
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: How to enable HW acceleration in Firefox?

Postby eanfrid on Wed Jul 09, 2014 2:53 pm

@patH57: you probably read that the OP in the thread I posted as a link has an NVidia card ;) It is actually a feature related to OpenGL, as long as your GPU can use hardware accelerated OpenGL rendering.

Edit: the trick to give you back hardware acceleration brings some glitches, at least on my screen, with tabs redrawing.
5209304d44ab6.png
Main desktop: Debian GNU/Linux Wheezy 64bit - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1871
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: How to enable HW acceleration in Firefox?

Postby PatH57 on Wed Jul 09, 2014 3:07 pm

Hi @eanfrid,

you are probably refering to
No more main-thread OpenGL in Firefox (important note for Linux users who use OpenGL)
Main-thread compositing with OpenGL is no more (bug 924403). The only option for OpenGL compositing is off-main-thread compositing (OMTC). This is the first big chunk of code removal following on from the layers refactoring, which began more than a year ago. It is very nice to finally be removing code and reducing the number of code paths in the graphics module.

Most users should not notice a difference. All supported configurations which use OpenGL (FirefoxOS, Android, modern OSX) already use OMTC. If you use OpenGL on Linux, however, read on.

OpenGL in Linux

OpenGL on Linux is not a supported configuration (i.e., fixing bugs is not a priority - we would love some volunteer help here, by the way, get in contact if you're keen). However, if you have good luck with your drivers, then it works pretty well and can be enabled by setting the 'layers.acceleration.force-enabled' pref to true. The main benefit is improved WebGL performance. OMTC on Linux also works pretty well, but is also not a supported configuration. If you want to continue using OpenGL on Linux for versions of Firefox 28 and later you will need to use OMTC. (Note that if you are considering trying OpenGL on Linux for the first time, you should use a new profile to make it easier to undo if your drivers are not cooperative. And be prepared for your system to crash, potentially).



They also insist on the weakness of the driver support and be prepared for a crash potentially

Again your card is a native opengl card with heavy tweaks on the firmware so it is way more robust and can flush a lot of errors that his card may not handle
But then again who am I to judge I reversed engineered quadro cards to get the last drop of performane in Doom opengl back in the good olds days .Let's wait and see...

Best of luck.
Patrick
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
User avatar
PatH57
Level 13
Level 13
 
Posts: 4603
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: How to enable HW acceleration in Firefox?

Postby Methylzero on Wed Jul 09, 2014 3:20 pm

Thanks everyone for the help, you rock :D But especially thanks to eanfrid, for finding the cause of my problems and a solution(even though it is a bit buggy, at least I now know whats going on, and have the choice).
Methylzero
Level 1
Level 1
 
Posts: 10
Joined: Tue Jun 10, 2014 2:23 pm
Location: Hungary

Re: [SOLVED] How to enable HW acceleration in Firefox?

Postby PatH57 on Wed Jul 09, 2014 3:24 pm

Great :D

Gave us a lot to talk about
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
User avatar
PatH57
Level 13
Level 13
 
Posts: 4603
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: How to enable HW acceleration in Firefox?

Postby eanfrid on Wed Jul 09, 2014 4:58 pm

PatH57 wrote:They also insist on the weakness of the driver support and be prepared for a crash potentially

Again your card is a native opengl card with heavy tweaks on the firmware so it is way more robust and can flush a lot of errors that his card may not handle
Yep. I agree with you. I only tested the solution to make sure that it was working, but I won't use it because on my config the gains are marginal at most. The important point was to find the cause and the possible solution. Using OMTC is not perfect but as he said, the OP now is aware of what was the point and can make his own decision ;)
Main desktop: Debian GNU/Linux Wheezy 64bit - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1871
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: [SOLVED] How to enable HW acceleration in Firefox?

Postby PatH57 on Wed Jul 09, 2014 6:15 pm

talked to an old friend at nvidia who is now developping cuda libraries for HPC environment. He knew about OMTC and will take a look into the code (it will give him an excuse to reopen the old opengl box) Let's see what he comes up with.
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
User avatar
PatH57
Level 13
Level 13
 
Posts: 4603
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: [SOLVED] How to enable HW acceleration in Firefox?

Postby eanfrid on Fri Aug 01, 2014 11:02 am

Small update to this thread, about minor glitches encountered when OMTC was enabled (as told above: viewtopic.php?f=190&p=888197#p888103 )

I tried on several machines using GTK-based DEs (Cinnamon, XFCE, MATE) with Firefox 31: these glitches are gone. So OMTC can probably be safely enabled if you want hardware acceleration back in Firefox ;)
Main desktop: Debian GNU/Linux Wheezy 64bit - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1871
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Linux Mint is funded by ads and donations.
 
Previous

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 5 guests