-
Notifications
You must be signed in to change notification settings - Fork 80
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
0anacron fails to detect ac power is on #69
Comments
It is weird that the check would mean that such system is on battery as the default for the online value is 1. It could happen only in case there are other power supply devices present matching the above paths that are actually offline. |
Can you please show output of for i in /sys/class/power_supply/*/online ; do echo -n "$i: " ; cat $i; done |
I made the script a little bit more general with 1.5.6 release. If it still doesn't work, please reopen. |
FYI I had this same problem, and at least for my case, the logic in d8490bb seems reversed. First, my output:
This machine isn't powered by a battery at all, just AC. I'm guessing that power supply is for the USB ports or something. If change the battery check from
|
Hmm... that's bad. Of course the logic might not be reversed as that would break other cases. |
I'm not sure if it's useful, but there's also the 'present' flag which is 0 on that device. I'm not sure if devices with present=0 can just be skipped or not.
|
As reported at https://bugs.mageia.org/show_bug.cgi?id=27480:
A patch was supplied but it won't apply to latest changes in master. It's a matter of adding ACAD as a path to check.
The text was updated successfully, but these errors were encountered: