NixOS / nixos-hardware

A collection of NixOS modules covering hardware quirks.
Creative Commons Zero v1.0 Universal
2.08k stars 643 forks source link

Enable intel-hybrid-driver on some Intel architectures #74

Open lukateras opened 6 years ago

lukateras commented 6 years ago

intel-hybrid-driver adds accelerated VP8/VP9 decoding to systems that normally don't have it, such as Bay Trail devices: https://github.com/01org/intel-hybrid-driver

colemickens commented 5 years ago

@yegortimoshenko This is interesting to learn about, thanks!

Does this entail more than just enabling the option added in this commit: https://github.com/NixOS/nixpkgs/pull/42673/commits/d2935b93e6a36973c698d5340b0d3e174721e192 ?

colemickens commented 5 years ago

I added some docs to the Wiki, in the meantime: https://nixos.wiki/wiki/Accelerated_Video_Playback

lukateras commented 5 years ago

Oh, didn't see that!

I think just enabling the option will do, here: https://github.com/NixOS/nixos-hardware/blob/master/common/cpu/intel/default.nix#L9

colemickens commented 5 years ago
    nixpkgs.config.packageOverrides = pkgs: {
      vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
    };

is what I've been using. Not sure if it's working or not?

Thoughts? I can send a PR?

lukateras commented 5 years ago

Looks good!