←back to thread

OpenGL 3.1 on Asahi Linux

(asahilinux.org)
512 points simjue | 6 comments | | HN request time: 0.453s | source | bottom
Show context
zamadatix ◴[] No.36213299[source]
From a follow up post on Mastadon https://social.treehouse.systems/@AsahiLinux/110497512340479...:

"Also in this update:

We now have a cpuidle driver, which significantly lowers idle power consumption by enabling deep CPU sleep. You should also get better battery runtime both idle and during sleep, especially on M1 Pro/Max machines.

Thanks to the cpuidle driver, s2idle now works properly, which should fix timekeeping issues causing journald to crash.

Also thanks to the cpuidle driver, CPU boost states are now enabled for single- and low-threaded workloads, noticeably increasing single-core performance.

Thermal throttling is now enabled, which should keep thermals in check on fanless (Air) models. There was never a risk of overheating (as there are hard cutoffs), but the behavior should now more closely match how macOS works, and avoid things getting too toasty on your lap.

Random touchpad instability woes should now finally be gone, thanks to bugfixes in both the M1 (SPI) and M2 (MTP) touchpad drivers.

A bugfix to the audio subsystem that fixes stability issues with the headphone jack codec.

New firmware-based battery charge control, which offers fixed a 75%/80% threshold setting. To use this, you need to update your system firmware to at least version 13.0, which you can do by simply updating your macOS partition to at least that version or newer. This new charge control method also works in sleep mode.

U-Boot now supports the Type A USB ports (and non-TB ports on the iMac), so you can use a keyboard connected to any port to control your bootloader.

And last but not least, this kernel release includes base support for the M2 Pro/Max/Ultra SoCs! We are not enabling installs on these machines yet as we still have some loose ends to tie, but you can expect to see support for this year's new hardware soon."

replies(6): >>36213477 #>>36214241 #>>36215165 #>>36216598 #>>36217305 #>>36226845 #
vanburen ◴[] No.36214241[source]
"New firmware-based battery charge control, which offers fixed a 75%/80% threshold setting. To use this, you need to update your system firmware to at least version 13.0, which you can do by simply updating your macOS partition to at least that version or newer. This new charge control method also works in sleep mode."

This is interesting, am I correct in thinking this a feature implemented by Apple and now supported by the Asahi team? Does that mean that macOS supports this charge control feature?

I really hope Apple brings the same charge limiting to iPhone as well.

replies(3): >>36214505 #>>36215639 #>>36218356 #
GeekyBear ◴[] No.36215639[source]
> I really hope Apple brings the same charge limiting to iPhone as well.

This was added to iPhones in 2019.

> If your iPhone stops charging at 80%, it's most likely due to a feature Apple introduced in iOS 13 called Optimized Battery Charging. It aims to prevent over-stressing the battery and hence extend the battery life of your iPhone by limiting the charge to 80%.

Your iPhone learns your usage patterns and delays 100% charging until moments before you wake up in the morning.

https://www.makeuseof.com/why-your-iphone-stops-charging-at-...

replies(1): >>36217028 #
vladvasiliu ◴[] No.36217028[source]
It's a bit different, though. I don't often need my iphone to last multiple days on end. Yet, if I keep it plugged in as often as I'm sitting at a desk, it'll never go below 80%. If I get it below 80%, sooner or later, it will figure "i want to use it" and will charge it all the way to 100%. The lowest my battery ever got on this phone was 40 something when I was away for a weekend without a charger. It's very rare I use it a lot, so the "intelligence" clearly doesn't care how long the battery needs to last.

The way it's implemented on my mom's android, it always shows 80 or 85% (can't recall which one it is), even if she leaves it plugged in for the whole weekend.

On my HP laptop, if I activate the "battery saver mode" (as opposed to "AI"), it reports the maximum capacity as somewhere around 80% of the design capacity. I don't know whether Linux cooperates with this, but probably not. HP only talks about OS compatibility for the "AI" mode, which not only requires Windows but a specific HP app.

replies(1): >>36217124 #
GeekyBear ◴[] No.36217124[source]
> It's a bit different, though.

Yes.

It learns your normal waking time (if you have one) and gives you a full charge before you wake up.

Which is what I want. A full charge for the working day, without needlessly shortening the batteries functional lifetime.

replies(2): >>36217246 #>>36218491 #
vladvasiliu ◴[] No.36217246[source]
Sure, but if I know I won't drain my battery more than 10% that day, I can't tell it not to top it up more than 80%. That's the case for me 99.9% of days.

This also seems to work only if you've drained the battery below 80%. If it says 90% and I plug it in? It'll charge it fully right away.

replies(1): >>36217497 #
GeekyBear ◴[] No.36217497[source]
That's not how Apple's implementation works.

It doesn't charge the battery over 80% at all, unless it detects that you have a normal waking time, in which case it charges fully right before you normally wake up.

Unfortunately, other companies copied the 80% charge bit without copying the part about figuring out if you have a normal waking time and giving you a full charge right before that.

For instance, Samsung's S23:

>Once you turn off the battery protection function, you'll be able to charge your battery up to 100%

https://www.samsung.com/ae/support/mobile-devices/battery-pr...

replies(1): >>36222804 #
1. vladvasiliu ◴[] No.36222804[source]
> It doesn't charge the battery over 80% at all, unless it detects that you have a normal waking time, in which case it charges fully right before you normally wake up.

My iPhone disagrees with you. I go to bed and wake up at just about the same time. If I somehow managed to drain the battery below 80%, when I plug it in, it'll charge to 80 and then tell me that by the time I wake up in the morning, it'll be fully charged. Which is the case.

But the most common use case, for me, is waking up, leaving the phone plugged in (WFH). Maybe go for a walk around noon, snap a picture or two. Forget to plug it back in and get back to work. Plug it in as I go to bed at 95%. It tops right up, doesn't wait until the morning.

> Unfortunately, other companies copied the 80% charge bit without copying the part about figuring out if you have a normal waking time and giving you a full charge right before that.

But that's actually what I want. With very, very rare exceptions, I never need a full charge on my phone. Hell, until a few weeks back, I was rocking an iphone 7 with a battery in a questionable state (started bulging). That thing never went below 60% with my use patterns. 60% meant night out, so a hefty dose of maps use. Normal days, it didn't go below 85-90%.

I think the issue is that Apple expects that when you wake up in the morning, you unplug your phone for the day and actually use it a significant amount. Which isn't my case at all. If I don't leave my house, it'll stay plugged in. I usually forget about my phone since everything I need to do, I do on my computer. For the occasional phone call, I can either keep it plugged in (the cord is long enough) or it's already connected to my headset, so don't even need to go fetch the phone. If I don't go to work, it can stay plugged in for days on end (I don't always grab it when I go out).

replies(1): >>36225146 #
2. GeekyBear ◴[] No.36225146[source]
> that's actually what I want

Why protect your battery's ability to hold a full charge over a longer lifespan if your battery is constantly throttled to a partial charge anyway?

replies(1): >>36225743 #
3. vladvasiliu ◴[] No.36225743[source]
Because it's my understanding that charging and keeping it all the way full shortens significantly its battery life compared to 80-85%. I would rather not have to dick around plugging and unplugging the phone to not have it be full all the time. Plus, that also counts as consumed cycles.

I've used my old phone for a good six years. I've swapped its battery some three years ago, and it would've needed a new one now, had I continued using it.

If that phone is any indication, my current one should be in service for at least as long. If I can avoid having to swap its battery, it's a win in my book.

It can also sometimes happen that I foresee being away from an outlet or otherwise need as much charge as possible. In those situations, I'd just deactivate the battery saver feature and let it charge to 100%. So if the remaining capacity is closer to its original one, again, it's a win.

replies(1): >>36225819 #
4. GeekyBear ◴[] No.36225819{3}[source]
> Because it's my understanding that charging and keeping it all the way full shortens significantly its battery life compared to 80-85%.

If you don't charge fully until just before the user's normal wakeup time you aren't keeping it all the way full all the time.

You protect the battery lifespan and get a full charge at the beginning of the day, instead of having a battery that constantly holds less charge.

replies(1): >>36226234 #
5. vladvasiliu ◴[] No.36226234{4}[source]
> If you don't charge fully until just before the user's normal wakeup time you aren't keeping it all the way full all the time.

You keep repeating this and seem to ignore my observation that if the battery isn't drained below 80% when I plug it in, it will recharge it fully immediately. It will not wait until the user's wake-up time.

And in my case, it's rare that the battery falls below 80%, so whenever I plug it in, it gets recharged fully right away.

So, in practice, it's all the way full all the time.

replies(1): >>36228301 #
6. GeekyBear ◴[] No.36228301{5}[source]
> in my case, it's rare that the battery falls below 80%

Yet year after year, surveys show that more battery life is the feature people want in a phone the most.

> 9 out of 10 phone users have low-battery anxiety

https://electrontogo.com/blog/9-out-of-10-phone-users-have-l...

Intentionally throttling the battery's ability to charge no matter what is going the wrong way.