Chromium: Difference between revisions

imported>Nh2
(Link to Java issue)
imported>Primeos
(→‎Enable GPU support: Update since #85253 is merged now)
Line 79: Line 79:
To use [http://icedtea.classpath.org/wiki/Main_Page IcedTea]/[http://openjdk.java.net/ OpenJDK] as a browser's Java implementation, use the option "icedtea = true;" in the appropriate configuration file as described above.  By using this Java implementation, it is possible to avoid a manual step whenever your system's Java implementation is updated or your configuration is used to build a new system.
To use [http://icedtea.classpath.org/wiki/Main_Page IcedTea]/[http://openjdk.java.net/ OpenJDK] as a browser's Java implementation, use the option "icedtea = true;" in the appropriate configuration file as described above.  By using this Java implementation, it is possible to avoid a manual step whenever your system's Java implementation is updated or your configuration is used to build a new system.


== Enable GPU support ==  
== Enable GPU accelerated video decoding (VA-API) ==  


For intel:
Override Chromium to enable VA-API at runtime (doesn't require a Chromium rebuild):
 
64 bit
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
hardware.opengl.extraPackages = with pkgs; [ vaapiIntel ];
(chromium.override { enableVaapi = true; })
</syntaxhighlight>
</syntaxhighlight>


32 bit
And install the required VA-API drivers: [[Accelerated Video Playback]]
<syntaxhighlight lang="nix">
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ vaapiIntel ];
</syntaxhighlight>


== Gnome Shell extensions ==
== Gnome Shell extensions ==