Skip to content

Commit

Permalink
mba6x_bl: init at 2016-02-12
Browse files Browse the repository at this point in the history
This driver fixes backlight after suspend/resume on Macbook Air 6,1
and 6,2.

Added a workaround for patjak/mba6x_bl#43 in
form of a systemd service.

Has been working great on my machine for at least a month now.
  • Loading branch information
simonvandel committed Mar 7, 2016
1 parent 2634885 commit aac309f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/os-specific/linux/mba6x_bl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ fetchFromGitHub, kernel, stdenv }:

with stdenv.lib;

let pkgName = "mba6x_bl";
in

stdenv.mkDerivation rec {
name = "${pkgName}-2016-02-12";

src = fetchFromGitHub {
owner = "patjak";
repo = pkgName;
rev = "9c2de8a24e7d4e8506170a19d32d6f11f380a142";
sha256 = "1zaypai8lznqcaszb6an643amsvr5qjnqj6aq6jkr0qk37x0fjff";
};

enableParallelBuilding = true;

makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"INSTALL_MOD_PATH=$(out)"
];

meta = {
description = "MacBook Air 6,1 and 6,2 (mid 2013) backlight driver";
homepage = "https://github.com/patjak/mba6x_bl";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.simonvandel ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10531,6 +10531,8 @@ let

jool = callPackage ../os-specific/linux/jool { };

mba6x_bl = callPackage ../os-specific/linux/mba6x_bl { };

/* compiles but has to be integrated into the kernel somehow
Let's have it uncommented and finish it..
*/
Expand Down

0 comments on commit aac309f

Please sign in to comment.