How To Enable WebGL In Chrome On Ubuntu?

168,794

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

enter image description here

Now check chrome://gpu/

enter image description here

http://webglreport.com/

enter image description here

Source

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!

  1. 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
  2. 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.

  3. 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.

  4. 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,

Share:
168,794

Related videos on Youtube

Qasim
Author by

Qasim

LinkedIn Profile

Updated on September 18, 2022

Comments

  • Qasim
    Qasim over 1 year
    chrome://gpu/
    

    enter image description here

    And http://webglreport.com/

    enter image description here

     google-chrome --version
     Google Chrome 27.0.1453.93 
    

    http://www.chromeexperiments.com/webgl

    enter image description here

    How To Enable WebGL In Chrome On Ubuntu ?

  • Vitaly Zdanevich
    Vitaly Zdanevich over 10 years
    Now I have YouTube in HTML5 players with nice performance!
  • Konstantin Schubert
    Konstantin Schubert over 10 years
    Why is this not enabled by default???
  • Lance Caraccioli
    Lance Caraccioli over 10 years
    Hint: 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
    helpse about 10 years
    Nice pointed, Lance. And this is how you kill all chrome instances: ps aux | grep chrome | awk ' { print $2 } ' | xargs kill -9
  • Kostanos
    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
    Qasim about 10 years
    @Kostanos no i do not know abot that...thats the easiest way ...
  • SET
    SET over 9 years
    for some reason this does not help me to enable webgl in Chrome 37.0.2062.94 (64-bit) under ubuntu *(
  • andras.tim
    andras.tim over 9 years
    I'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
    Peter Raeves over 9 years
    Somehow this didnt work for me either on ub14.10 with chrome Version 39.0.2171.71 (64-bit)
  • Qasim
    Qasim over 9 years
    @PeterRaeves check dmesg, i think there was an bug in 14.10 that does not.
  • Adrians Netlis
    Adrians Netlis almost 9 years
    Using 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
    Stephen Niedzielski almost 9 years
    Same 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
    jackthehipster over 8 years
    Probably 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
    Thomas Orlita almost 7 years
    Disabling hardware-acceleration worked for me.