-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Lumina thinks my iMac G5 has a battery #765
Comments
I dug into the code and discovered that battery monitoring is implemented by shelling out an apm command. Biggest problem here is that apm does not exist on powerpc, arm, or riscv. It's also an inefficient way to get battery info and has been superseded by the ACPI interface. The patches below should work on any platform and perform better. src-cpp/framework-OSInterface-FreeBSD.cpp does not appear to be used anymore, but I patched it just in case. I was also getting intermittent false alarms about low battery with the apm implementation when the system was under heavy load and I'm hoping this will eliminate those as well. I'll report back if the false alarms continue.
|
Also relates to #349. |
FYI, this seems to have eliminated the minor CPU spikes (usually to around 3%) I had always seen under "top". Since reinstalling with these patches, the CPU stays consistently at a small fraction of a percent. The patched 1.6.2 port is here, BTW: |
Just installed Lumina on an iMac G5 via desktop-installer. Works just about perfectly, except for thinking that the system should have a battery and stunning me with the gulag firing squad drum roll every time I log in.
"sysctl -a | grep batt" shows nothing, so I'm wondering how Lumina determines that a system has a battery?
The text was updated successfully, but these errors were encountered: