How To Enable WebGL In Chrome On Ubuntu?
Solution 1
For WebGL to work in Google Chrome (and Chromium), Here are the steps to enable WebGL in Google Chrome.
Step 1: Open Google Chrome
Step 2: Type chrome://flags
in the address bar
Step 3: Press Ctrl + f
and type ” Rendering list
“, “Override software rendering list”
should come up, Now click on Enable and restart the browser.
Step 4: Completely kill Chrome: Type killall chrome
into a console.
Step 5: Go to chrome://settings
and enable Use hardware acceleration when available
. By default it is off since version 43.
Step 6: Start Chrome
Now check
chrome://gpu/
Solution 2
If you still don't get any results, check if hardware-acceleration is enabled in Chromium settings, Google tends to disable this setting by default since version 43. In this case that was the problem for me after I updated GPU drivers, overrode the GPU blacklist, and so and so.
Solution 3
Maybe too old your video driver or not installed properly.
I had same problem too, but this solution fixed my problem without overrides!
-
To add PPA for Ubuntu 14.04 / 13.10 / 13.04 / 12.10
Ubuntu 14.04 / 13.10 / 13.04 / 12.10 users, Run the following command in the terminal and type the password for the user when prompted. Others use the Ubuntu-X PPA.
sudo apt-add-repository ppa:xorg-edgers/ppa
-
To add PPA for Ubuntu 12.04 / 11.10 / 11.04 / 10.04
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
After adding the PPA, update your system repository.
-
To Update
sudo apt-get update
Now install the NVIDIA GeForce graphics driver 304.108 in your system, as you install other packages by using apt-get.
-
To Install
sudo apt-get install nvidia-current nvidia-settings
Above command will install the driver.
Source: http://www.howopensource.com/2012/10/install-nvidia-geforce-driver-in-ubuntu-12-10-12-04-using-ppa/
Solution 4
using chromium Version 49.0.2623.108 on Ubuntu 14.04 (64-bit).
What we need to activate is #ignore-gpu-blacklist
It's the first line in chrome://flags/
Hope it can help,
Related videos on Youtube
Comments
-
Qasim over 1 year
chrome://gpu/
google-chrome --version Google Chrome 27.0.1453.93
http://www.chromeexperiments.com/webgl
How To Enable WebGL In Chrome On Ubuntu ?
-
Vitaly Zdanevich over 10 yearsNow I have YouTube in HTML5 players with nice performance!
-
Konstantin Schubert over 10 yearsWhy is this not enabled by default???
-
Lance Caraccioli over 10 yearsHint: in Ubuntu for sure (windows also most likely) you will need to be sure to kill the background threads (chrome) as well before the changes will take effect.
-
helpse about 10 yearsNice pointed, Lance. And this is how you kill all chrome instances: ps aux | grep chrome | awk ' { print $2 } ' | xargs kill -9
-
Kostanos about 10 years+1 Do you know if there is direct link to enable it, without Ctrl+F and all other steps. Or how to enable it from Javascript?
-
Qasim about 10 years@Kostanos no i do not know abot that...thats the easiest way ...
-
SET over 9 yearsfor some reason this does not help me to enable webgl in Chrome 37.0.2062.94 (64-bit) under ubuntu *(
-
andras.tim over 9 yearsI's using this solution on my desktop for a week, but my Chrome sometimes eat all CPU (the "GPU process" task). - I have Ubuntu Trusty with "GeForce 8400 GS Rev. 2" - I can not found solution for this side effect, only I have a workaround: Turn on "Disable accelerated 2D canvas" option in chrome://flags/ ... Grrr
-
Peter Raeves over 9 yearsSomehow this didnt work for me either on ub14.10 with chrome Version 39.0.2171.71 (64-bit)
-
Qasim over 9 years@PeterRaeves check dmesg, i think there was an bug in 14.10 that does not.
-
Adrians Netlis almost 9 yearsUsing Ubuntu 15.04, Chromium, NVIDIA GeForce GT 610. Latest aviable drivers(356.49). However, WebGL doesn't work even after doing this. How and why?
-
Stephen Niedzielski almost 9 yearsSame here. I thought I was seeing some terrible bug but didn't realize chrome://settings -> Show advanced settings... -> Use hardware acceleration when available somehow got disabled. I flipped it on, restarted the browser, and everything works.
-
jackthehipster over 8 yearsProbably old by now, but all this plus driver installation etc. didn't work for me either, until I realized there is a simple setting in "chrome://settings , advanced settings, Use hardware acceleration when available". This was disabled by default. Enabling it did the trick for me.
-
Thomas Orlita almost 7 yearsDisabling hardware-acceleration worked for me.