Skip to content
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

LCD backlight probe fails on boot but not on restart #32

Closed
xthezealot opened this issue Jan 9, 2017 · 4 comments
Closed

LCD backlight probe fails on boot but not on restart #32

xthezealot opened this issue Jan 9, 2017 · 4 comments

Comments

@xthezealot
Copy link

xthezealot commented Jan 9, 2017

I enabled the pommed.service but it fails (only) after boot:

E: sysfs backlight probe failed, no fallback for this machine
E: LCD backlight probe failed, check debug output

But if I systelctl restart pommed, pommed starts and runs good.

Otherwise, when nvidia-bl is installed (with apple_bl kernel module disabled), pommed does not crash after boot but the screen backlight Fx keys (and only them) have no effect.

fullsizeoutput_61a

PS : Et merci pour le travail fourni jusqu'ici ! 👍

@xthezealot xthezealot changed the title LCD backlight probe fails only after boot LCD backlight probe fails after boot but not on restart Jan 9, 2017
@bytbox
Copy link
Owner

bytbox commented Jan 9, 2017

Which version of macbook do you have? It sounds like pommed is starting before apple_bl is done initializing, right?

(This sounds eerily familiar, like there's already a similar bug report.)

@bytbox
Copy link
Owner

bytbox commented Jan 9, 2017

Ah, this is superficially similar to #24. Not sure the same hack will work though.

@xthezealot
Copy link
Author

xthezealot commented Jan 10, 2017

Yes, I think I also have a race condition.
With which unit(s)? I don't know. I have 5 different active units having "backlight" in their name.
What I know is that pommed has been successfully launched by systemd once in ~10 reboots, without any correlative config change.

Now, it's weird that I can't manage to defer the launch of pommed.
I edited the service file with

[Unit]
After=multi-user.target

or even a dirty

[Timer]
OnBootSec=60

and pommed still failed several seconds before the user login prompt.

My setup

  • MacBookPro7,1
  • kernel 4.8.13-1-ARCH
  • pommed 1.50lw

@xthezealot xthezealot changed the title LCD backlight probe fails after boot but not on restart LCD backlight probe fails on boot but not on restart Jan 10, 2017
@xthezealot
Copy link
Author

It works!®

I reinstalled nvidia-bl but this time, I uncommented the "options" line in /etc/modprobe.d/nvidia_bl.conf.
Disabling apple_bl kernel module was not necessary.

For the record, I also replaced nouveau with the proprietary Nvidia drivers (but I don't think it's related as pommed.service still failed after this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants