Package Details: mba6x_bl-dkms 0.0-1

Git Clone URL: https://aur.archlinux.org/mba6x_bl-dkms.git (read-only)
Package Base: mba6x_bl-dkms
Description: Backlight for mba6x to fix post suspend/resume brightness.
Upstream URL: https://github.com/patjak/mba6x_bl
Keywords: brighness driver macbook
Licenses: GPL2
Submitter: frank604
Maintainer: hobarrera
Last Packager: hobarrera
Votes: 8
Popularity: 0.002723
First Submitted: 2014-02-03 12:32
Last Updated: 2016-06-29 09:39

Dependencies (1)

Required by (0)

Sources (0)

Latest Comments

aminb commented on 2016-06-22 16:19

@hobarrera I'm getting the same error as @dougv. I brought it up on pacaur's issue tracker, and here's what the author said [1]:

> Please follow proper VCS guidelines. If the issue still happens, open a new bug report.

Can you please take a look and see whether we're properly following the AUR guidelines for VCS packages?

Thanks.

[1]: https://github.com/rmarquis/pacaur/issues/419#issuecomment-227074357

dougv commented on 2016-05-08 16:57

hi. getting an error when installing with pacaur:

[CODE] mba6x_bl-dkms package(s) failed to install. Check .SRCINFO for mismatching data with PKGBUILD. [/CODE]

googling has not helped me fix this up. any tips?

thanks in advance

hobarrera commented on 2016-04-21 23:47

Sorry, looks like I'd never pushed my latest local changes. Current PKGUILD should work fine.

ericgroom commented on 2016-04-21 22:44

I just tried what @realwaysdi suggested and everything seems to be working perfectly for me. I have an early 2014 MBA running kernel version 4.5.1-1

realwaysdi commented on 2016-04-21 08:54

I solve this problem for my MacBook Air.
Edit the PKGBUILD:
depends=('dkms' 'linux-headers')

Enjoy

hobarrera commented on 2016-03-20 07:12

@ericgroom: Yes, you should be able to boot via an USB drive or something and chroot.

Here's the exact upstream issue with details:
https://github.com/patjak/mba6x_bl/issues/43

Basically, I couldn't get brightness over 0%, but there are suggested workarounds.

ericgroom commented on 2016-03-19 22:54

I'm not super familiar with dkms. If it did break my system, would I be able to chroot in and uninstall the package?

hobarrera commented on 2016-03-17 01:51

Kernel >= 4.4 support seem broken. There's an upstream issue for that. You can edit the PKGBUILD if you want to try it anyway, but it MAY break your system.

ericgroom commented on 2016-03-17 00:06

I am on 4.4.5-1-ARCH and upon attempting to install I get the error, "error: target not found: linux<4.4"

vennahlot commented on 2016-03-13 21:33

After the latest kernel update, it works fine again on my laptop(early 2015 11" MBA).

$uname -r
4.4.5-1-ARCH

hobarrera commented on 2016-02-16 14:16

I used LUKS and LVM, and thought mounting /boot failed, mounting / worked, and in the rescue mode, reinstalling linux "worked" (mkinitcpio failed, and pacman exited with an error). The system worked after that.

> Anyways, thanks for this advice anyways, hopefully it can help someone else if they find themselves in a similar situation.

Hopefully, yes.

aminb commented on 2016-02-16 13:42

> I faced a similar issue, and reinstalled `linux` to get around it, IIRC. Sorry to have this advice too late

IIRC, I did think about reinstalling `linux` at one point, but since I use LUKS, I didn't manage to open and mount it to be able install `linux`. I guess I could've just used a live USB and chrooted and installed `linux` that way, but I don't know why I didn't think about it at that moment.

Anyways, thanks for this advice anyways, hopefully it can help someone else if they find themselves in a similar situation.

hobarrera commented on 2016-02-16 06:35

> my laptop wouldn't boot up (was complaining about vfat being unknown when trying to mount /boot).

I faced a similar issue, and reinstalled `linux` to get around it, IIRC. Sorry to have this advice too late

aminb commented on 2016-02-16 05:55

Thanks for updating the PKGBUILD for now.

I upgraded to 4.4 and faced the same situation as you had in the issue you reported on the GitHub repo (#43). Then, IIRC, I tried downgrading the kernel and something didn't go as expected with dkms (I don't exactly remember what), so I renamed the 4.4 directory in /usr/lib/modules to some arbitrary name in hopes that dkms would generate the necessary files again upon upgrading (and I copied the rest of the missing files from the original directory). But I shouldn't have done that; because when I upgraded back to 4.4 and rebooted, my laptop wouldn't boot up (was complaining about vfat being unknown when trying to mount /boot). I even tried installing dosfstools but to no avail.

So, I basically gave up and made a mental note to not mess with /usr/lib/modules ever again :)

hobarrera commented on 2016-02-15 23:50

@aminb: How did it screw up so had?

I'll update this PKGBUILD to require linux < 4.4

aminb commented on 2016-02-15 23:34

Same thing, not working on 4.4.1, and dkms messed up my system beyond repair. I had to reinstall arch from scratch, and I've been staying on 4.3.

hobarrera commented on 2016-02-06 17:58

This failed for me on 4.4.1. Let me know if your experience varies.

frank604 commented on 2015-10-10 05:59

working ok here on 4.3-rc4 and 4.2.2-1
mba6x-bl ver 41.2eb9d57-1

hobarrera commented on 2015-10-10 01:27

After setting brightness to 0, it won't increase any more and my only option is a reboot.

Is anyone else having this same issue? I'm on 4.2.3, on a 2013 MBA.

frank604 commented on 2015-02-19 14:32

@freeaks, that kernel message is normal as in it doesn't cause faulty behavior afaik. Also, your issue about screen staying off is not seen with my mba. Create a thread in the forums and provide what is being used to sleep your screen when inactive (dpms? what syntax are you using?).

If you strongly feel this is an issue with the module, you are free to report bugs upstream. Please try to keep this comment section strictly for building the package, which is its only function.

freeaks commented on 2015-02-19 12:20

i could install the module, and it kind of works, now when coming back from hibernation/suspend, i can modify brighness again. that's for the good point.
now i have another problem though, when the macbookair put the screen to sleep after a pariod of inactivity, the screen gets powered off and there's no way to power it back on. i'm forced to do a hard reset.
i can see in the logs:
# zagnut kernel: mba6x_bl: Invalid response at reg: 0x1 (len: 24)

how come it works when going to suspended mode with:
# systemctl suspend

when i come back i can wakeup the macbookair, i can set the brightness and everything work as normal, but on the other hand, when the macbookair put the screen to sleep for inactivity, the screen gets powered off and there's no way to get it back on.

freeaks commented on 2015-02-19 12:12

i could install the module, and it kind of works, now when coming back from hibernation/suspend, i can modify brighness again. that's for the good point.
now i have another problem though, when the macbookair put the screen to sleep after a pariod of inactivity, the screen gets powered off and there's no way to power it back on. i'm forced to do a hard reset.
i can see in the logs:
[code]
zagnut kernel: mba6x_bl: Invalid response at reg: 0x1 (len: 24)
[/code]
how come it works when going to suspended mode with:
[code]
systemctl suspend
[/code]
when i come back i can wakeup the macbookair, i can set the brightness and everything work as normal, but on the other hand, when the macbookair put the screen to sleep for inactivity, the screen gets powered off and there's no way to get it back on.

freeaks commented on 2015-02-19 12:06

i could install the module, and it kind of works, now when coming back from hibernation/suspend, i can modify brighness again. that's for the good point.
now i have another problem though, when the macbookair put the screen to sleep after a pariod of inactivity, the screen gets powered off and there's no way to power it back on. i'm forced to do a hard reset.
i can see in the logs:
<code>
zagnut kernel: mba6x_bl: Invalid response at reg: 0x1 (len: 24)
</code>
how come it works when going to suspended mode with:
<code>
systemctl suspend
</code>
when i come back i can wakeup the macbookair, i can set the brightness and everything work as normal, but on the other hand, when the macbookair put the screen to sleep for inactivity, the screen gets powered off and there's no way to get it back on.

hobarrera commented on 2014-10-24 11:00

@frank604: Fixed.

frank604 commented on 2014-10-24 10:42

It seems many are unable to install this package. Hob, please take a look at the error

:: Retrieving package(s)...
n:: View mba6x_bl-dkms PKGBUILD? [Y/n]
:: View mba6x_bl-dkms.install script? [Y/n] n
:: Building mba6x_bl-dkms package(s)...
==> Making package: mba6x_bl-dkms latest-2 (Fri Oct 24 03:37:55 PDT 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning mba6x_bl git repo...
Cloning into bare repository '/tmp/pacaurtmp-frank604/mba6x_bl-dkms/mba6x_bl'...
Warning: Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
==> ERROR: Failure while downloading mba6x_bl git repo
Aborting...

This started happening since the new pkgbuild so I stopped using this package and just ran my own pkgbuild. I needed to scrap my arch to try out yosemite and came back to try installing this but no go. Looks like others are hitting the same wall. Thanks!

-Frank

lordvampire commented on 2014-07-23 15:42

i installed as described in mba6x_bl-github page..

thx

lordvampire commented on 2014-07-23 14:03

i get the same error as cyrofilo..

Cloning into bare repository '/tmp/yaourt-tmp-cyrofilho/aur-mba6x_bl-dkms/mba6x_bl'...
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.


also tried "ssh-keygen -t dsa" without luck...

what to do??

greets

cyrofilho commented on 2014-07-17 20:20

Yes i have the same error with makepkg -s!

cyrofilho commented on 2014-07-17 20:20

I had run "ssh-keygen -t dsa" but got the same error again! Thanks for the reply.

hobarrera commented on 2014-07-17 18:16

@cryfilho: Is it possible that you have no ssh key locally? If so, run ssh-keygen -t dsa, and accept the default location.

hobarrera commented on 2014-07-17 18:13

@cyrofilho: Do you get the same error when running makepkg?

cyrofilho commented on 2014-07-17 17:48

Every time i try to install via yaourt i get the following error:

Cloning into bare repository '/tmp/yaourt-tmp-cyrofilho/aur-mba6x_bl-dkms/mba6x_bl'...
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I then it fails to download the git repository and asks me if i want to recompile. If i try i get the same error! What am i doing wrong?

Thanks.

dnuux commented on 2014-06-10 08:27

Like I mentioned before, 98-mba6l.conf shouldn't be required anymore.

frank604 commented on 2014-06-08 21:59

PS. Any word on when this will get merged into the kernel? I was hoping it would come into 3.14 but that has come and passed.

frank604 commented on 2014-06-08 21:56

@Hobarrera

Sorry I haven't noticed the convo in the past few months. Summer season gets pretty hectic at work for me. Thank you for picking it up, I'll orphan.

dnuux commented on 2014-06-08 11:03

@hobarrera:

From https://github.com/patjak/mba6x_bl:
"Note: You no longer need to specify mba6x_bl as your backlight device in /etc/X11/xorg.conf. This is now handled automatically by promoting the driver above the ACPI backlight interface."

hobarrera commented on 2014-06-08 03:14

The following file is still missing on this package:
https://gist.github.com/hobarrera/521b4460965a41c02d1d

I reported this about 4 months ago, and without it, it simply *will not* work properly.

@iamikon: Yes, the exact filename is not important.

iamikon commented on 2014-05-02 23:01

You can also just add that backlight section to /etc/X11/xorg.conf.d/20-intel.conf

hobarrera commented on 2014-05-01 14:33

A file is still missing for this package to work (I had it prior to this package existing, so it worked-by-coincidence for me).

/etc/X11/xorg.conf.d/98-mba6bl.conf:
https://gist.github.com/hobarrera/521b4460965a41c02d1d

hobarrera commented on 2014-04-29 15:59

@frank604: I'll pick it up. I've the time and use this, plus, I like seeing PKGBUILDs conform to the standards. :)

frank604 commented on 2014-04-29 05:49

Thanks! Looks like our macbook doctor, Patjak, pushed a commit upstream. Does anyone want to maintain this? I no longer use this as I don't suspend anymore and just hibernate since I only use my macbook air afterwork until I sleep. The pkgbuild does need cleaning up to do as it doesn't adhere to the new VCS standard so if you'd like to tackle that and maintain, let me know! Until then, we'll use my frankenstein pkgbuild and I'll just update as we go.

iamikon commented on 2014-04-28 06:06

Heads up went to install today and the sha1sums don't match had to manually check and change them in the pkgbuild after that everything is working perfect

frank604 commented on 2014-04-23 03:42

Hi Step-2, did you try the suggested fix for it that I wrote? Regen initramfs with i915.

step-2 commented on 2014-04-22 21:57

Hi frank604 , my problem is similar to iaculch problem , during boot & after resume the screen is completely black , so i have to login blind , until am loged to the session ( gnome ) the brightness kicks in .

frank604 commented on 2014-04-19 11:30

Hi step-2, some more info would be needed. Do you have dkms enabled? What is controlling your brightness keys? Is it DE controlled or are you mapping them to xbacklight or similar? If screen is black after resume, most likely the module isn't installed correctly. What is output for "uname -a" ? How did you install this module? Manual or through an AUR helper? What is the output during installation?

step-2 commented on 2014-04-19 10:03

after installing , screen is black after resume & the brightness keys don't work,

any ideas ?

frank604 commented on 2014-04-08 05:10

Thanks for the flag out of date. Updated sha1sum to match new mba6x_bl.c from upstream. pkgrel bumped up to 3.

frank604 commented on 2014-04-05 03:19

iaculch, great to hear and np.

iaculch commented on 2014-04-05 03:13

That seems to have worked. Thank you

frank604 commented on 2014-03-29 20:28

I am just the maintainer of the aur package. However, please try loading i915 in modules for mkinitcpio and regen initramfs. See if that helps and post back results. If it doesn't, just remove it and regen initramfs.

iaculch commented on 2014-03-29 10:48

The fix works great for suspend/resume. However now when I boot up, the backlight is always at 0%. Which means that I have to login blind. Once I login and x is started, I am able to use my keybindings to call xbacklight and backlight returns.

Any ideas what this could be? I haven't had the time to do perform any tests yet. Suggestions on what I could check to debug this issue?

iaculch commented on 2014-03-29 10:47

The fix works great for suspend/resume. However when I boot up, the backlight is always at 0%. Which means that I have to login blind. Once I login and x is started, I am able to use my keybindings to call xbacklight and backlight returns.

Any ideas what this could be? I haven't had the time to do perform any tests yet. Suggestions on what I could check to debug this issue?

frank604 commented on 2014-03-26 02:52

@ryley, Hi, I just checked testing repo and was unable to find 3.14 so I'm thinking you pulled in kernel from upstream and compiled? I cannot offer any suggestions on troubleshooting for this, sorry.

frank604 commented on 2014-03-26 02:24

@ryley, Hi, what changes are you referring to? The sha1sum does match upstream. Also, upstream hasn't updated in 2 months. If the sha1sum did not match an error stating a mismatch would be shown and can be avoid with a skip checksum. I am unable to reproduce the error you have when I tested on 3.13.7-1-Arch and 3.13.7-1-ck. You can manually install it to troubleshoot further.

ryley commented on 2014-03-26 01:50

Anyone having issues with dkms building the module for kernel 3.14 ("implicit declaration of function ‘ACPI_FREE_BUFFER’" etc) will have to rebuild this package to reflect the upstream changes available from patjak's github page. It might be necessary to change the sha1sum of mba6x_bl.c in the PKGBUILD.

frank604 commented on 2014-03-10 06:28

@hobarrera - It worked with or without it for me but I will include it in the next update. Just need some time to clean out the pkgbuild atm. Still testing and learning. Thanks for the feedback so far :) I appreciate it.

hobarrera commented on 2014-02-11 13:16

Also, it makes no sense to not-include /etc/X11/xorg.conf.d/98-mba6bl.conf:

https://gist.github.com/hobarrera/8934616

frank604 commented on 2014-02-03 22:39

Cleaned out PKGBUILD a little according to hobarrera's comment (thanks!). Will continue to clean it further. Also updated sha1sums for mba6x_bl.c as it was updated upstream 2 hours ago.

frank604 commented on 2014-02-03 18:20

Awesome, thanks for the feedback and pointers. Will make the improvements today.

hobarrera commented on 2014-02-03 18:19

Works greats! Thanks!

Some improvements (related to PKGBUILD cleannes rather than package funcionality itself):
* No need to download/install the LICENSE file; it's already provided by the "licenses" package.
* License is not "custom", it's "GPL2" ;)
* Remove the URL for the .conf and . install files, and PKGBUILD -s will include them inside the source tarball.
* "linux-headers" is not optional. ;)