-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch *KIND OF WORKS* in xubuntu 14.10 (kernel 3.16 or 3.17) but causes new problems #19
Comments
Hi
A long shot but perhaps it gets loaded too late. Have you tried putting mba6x_bl in your initramfs? Cheers |
Hi Jakob, Thanks for your response. Yes, I am able to control by command like: In this case, the values seem to vary between 0 and 255 (unsigned char?) (255 is max brightness). I want to note that thanks to your driver, I am able to control backlight even after suspend using command such as above, or xbacklight. However it causes the 2 main problems of super-low brightness after reboot or cold boot, and the F1/F2 keys no longer are grabbed by your driver for some reason (this is probably because there is some place in xubuntu I have to tell it to use your driver instead of the native intel_backlight one?)
|
By the way, dmesg doesn't seem to say anything useful, everything seems to be working... riveale@rvmba: |
I've push a patch to the master branch that might make a difference. Please try and report back. |
Dear Patrik, Thanks for the update and thank you again for your work on this driver! I installed the new driver update and I unfortunately I still see the very low (almost black) brightness after a cold boot. After logging in (more or less blindly), I can use xbacklight to make it brighter. Here's a pastebin of dmesg after the boot (I logged in and then used xbacklight to increase the brightness). Not sure what might be relevant to you so I just put everything without any greps. |
You don't need acpi_backlight=vendor. If I add that parameter to my system the wrong backlight is picked and mba6x_bl no longer works. I don't remember what effect acpi_osi=Linux have on the backlight but I'm not using it so you can try removing that as well. |
Thanks for the tip, I have tried both with and without both of those and it doesn't seem to fix things. If I remove those kernel arguments, then it sometimes binds the buttons (i.e. F1 and F2 work correctly), but in those cases after suspending I get the "only max or minimum brightness" bug (I guess the intel driver is somehow getting grabbed first?). So, I cannot change the brightness after suspend, even if I use xbacklight. I tried adding/removing the xorg.conf file to no avail. In (random) cases where the mba6xbl driver correctly binds, the F1/F2 do not work and the login screen brightness and xubuntu splash screen before it are at like 10% brightness, but after that I can use xbacklight to change the brightness. However, using F1/F2 do not change anything. This happens both after reboots or after cold boots (power cycle). Anyway, I'm going to try a couple more things to see if any patterns arise... riveale@rvmba: |
OK, I did about 30 reboot cycles and shutdown/boot cycles to see if there was any pattern. I could not find any other than the fact that in "failed" cases, dmesg never says anything about mba6xbl driver being loaded, except in the lsmod (I'm not sure what "OE" means?). However, if I do the kernel argument of vendor and osi=linux like I was doing before, the driver is correctly bound every time, although it pretty much always has the initial dark (extremely low brightness) screen. "UNBOUND" CASES
(before suspend -- nothing)
(after suspend)
"BOUND" CASESHowever, in "working" cases, it looks something like this (after suspend):
(before suspend)
In working (bound) cases, any initial command to decrease brightness will first increase it to a visible level!One observation that may be a hint is that when there is super-low brightness at the splash/login screen, after logging in, it seems that ANY brightness command brings the backlight to a visible level! In other words even if the first thing I call is "xbacklight -10", that still brings the backlight up to about 60% (from 5% or whatever it was at), and after that it changes normally at 10% intervals. So, next I'm going to try to see what happens in low brightness cases where I manually check the brightneses... EDITI also just verified that in cases where the mba6x driver doesn't bind the backlight, the /sys/class/backlight/mba6xbl directory does not exist. Only the /sys/class/backlight/intel_backlight/ EDIT 2After a "successful bind", I grepped the raw brightnesses. The first one is done while the screen is BLACK (<5%) right after I login. But it still thinks it's at 150! So something is weird! riveale@rvmba: |
In the unbound case after suspend you're getting an Oops or a Warning. Can you post the full dmesg when that happens? |
Here is the relevant part around 2 suspends (lid close -> lid open). Full pastebin http://pastebin.com/tnPu8YgF Edit: It looks to me like all the errors/warnings are related to the wireless or to the ata SSD, none to the backlight?Relevant part...:
|
I can't make heads or tails of this. Your system seems very unpredictable and it might some other weirdness causing this issues. Either way, I'm going to rewrite the driver to directly access the smbus instead of using the ACPI methods. Hopefully that will work better and most of the issues we have will go away. I'll keep you posted. |
Hi Patrik, Thanks for the note. I'll keep an eye out for any updates then. Sounds like you're getting similar (?) problems with dark screen at login time now, so maybe that will be much easier for you to figure out. I don't think I'm running anything weird except that I'm on ubuntu 14.10 and I'm using the latest 3.16 kernel (3.16.7). Same was happening for previous versions of 3.16 as well down to 3.16.0. Richard |
I've pushed a fix (works for me at least) for the blackscreen on boot problem. Check out the "notify" branch. I've also started experiencing the case where the driver is loaded but doesn't register (unbound). It doesn't happen very often and it seems totally random. |
Hi @patjak, MBA 6,2 user here. I have tried the notify branchd and I'm experiencing the super-low brightness at boot. Even when I log out from my X session and return to the Display manager greeter the brightness is reset to a very low setting. The sysfs files have the previously "echoed" values (I'm trying just by echoing brightness values manually), but the screen is almost black. If I re-echo the same brightness value, then the screen shows up the correct setting again. I just installed the driver and rebootes, did not modify the xorg.conf configuration, does that fix the problem or is some work still going on? Should you need me to perform further tests or provide logfiles, be free to ask. Thanks and regards, |
I tried the patch on Linux 3.17 and had some problems. I commented on issue #14 (comment), sorry for that. |
@AlexanderSelzer sound like you have a different issue with suspend/resume. Try the following as root and then try suspending again:
|
I installed the latest kernel quite recently, which seems to have introduced the problems. It looked like it was related. Now I installed the module from the After writing Then after writing There are three things that can happen on suspend:
|
Hi, I've been observing that one of your issues happened to me, but quite randomly as well: After closing the lid the system did not suspend and the "backlight apple" was on as well. After a couple retries it just started working. Right now I'm not able to reproduce, the first time I have closed the lid, it suspended and the apple went off, but it's true that the second try needed about 5-10 seconds and the first one was almost instant. Maybe the problem is with suspending itself you might want to debug your powersave settings or tools? Regards, |
@agimenez thanks, good to know I'm not alone. What version of Linux are you using? Here is my dmesg log after waking up, might be interesting (especially Invalid response at reg: 0x1).
|
The backlight is now blinking on and off repeatedly while the laptop is closed, since I plugged in an Android phone. Currently there is nothing in the USB port. I think it looks very much like the suspend and backlight flashing problem was not caused by mba6x_bl, but by something related to USB and possibly another bug in Linux. @agimenez you could try to check if the message also appears in your log, since you have the same or similar problems. Thanks a lot. |
Just wanted to echo that I've been seeing the "apple light goes out, then relights, then goes off again" for about 4 months now, ever since updating past 3.14 (?) kernel. However, it does suspend correctly after the second flash so I've been ignoring it. I'm currently on 3.16.7. I tried 3.17 and installed from source the broadcomm wireless driver, however I was having problems with the backlight driver so that's why I'm only using 3.16 for now... |
@AlexanderSelzer Hi, sorry for the delay! I have checked and I don't have any of your messages, (invalid response/bad cable/unable to enumerate). I'm on 3.16.0, stock Debian Jessie version. Right now everything is working for me using the notify branch, have you tried that? Hope that helps! L. Alberto |
@agimenez It works well enough (notify branch), though the invalid response errors are still showing. |
In case this helps anyone using XFCE, what fixed the keyboard keys for display brightness for me was installing |
Thank you so much for your contributions.
I had great success installing the mba6x_bl driver on 3.14 and was using it for a while. The other day I tried to install xubuntu 14.10 (kernel 3.16) and adding the mba6x_bl driver caused several symptoms. I have installed all together about 5 times and tried different combinations of kernel parameters (acpi_backlight=vendor and video.somethingsomethingvendor=1) etc.. I also tried adding/removing the xorg.conf telling it to use the mba6x_backlight driver. I also tried kernel 3.17.
Anyway, I have no idea if these issues are related to the kernel version or to other changes in xubuntu (e.g. now using systemd). I know that certain power-management things seem to have changed as it no longer seems to recognize i915 kernel parameters.
EDIT: by the way I tried both using the .deb package as well as installing from source from this git repo.
EDIT: xbacklight does NOT work by default after suspend, however it DOES work after installing your driver. So, I have installed your driver, and am grappling with
The text was updated successfully, but these errors were encountered: