News for hackers. Stuff that matters.

osdril

Re:Charging a lithium battery to 80% only? on Tuesday November 21, 2023 @09:49AM (#38364335)
My problem with the built-in charging limiter is that if you are not extremely consistent in your usage patterns (I am not), it basically never kicks in. I much prefer a manual solution.
Re:Charging a lithium battery to 80% only? on Tuesday November 21, 2023 @09:47AM (#38364312)
I don't know if they changed this, but I think AlDente follows a polling approach where it periodically checks the charge level and enable/disable the charging accordingly. Such solution is more hacky and it also could cause some sleep-related issues.

The SMC key discovered my marcan is nicer because it enables the same functionality without having to poll anything, as it's built into macOS.

Furthermore, I don't care about all the extra stuff they have put into AlDente, I just want to keep my battery at 80%.

Re:Charging a lithium battery to 80% only? on Tuesday November 21, 2023 @09:42AM (#38364255)
Nice, didn't know that!

Basically the SMC key that marcan discovered is the same thing for Apple Silicon

Re:Charging a lithium battery to 80% only? on Tuesday November 21, 2023 @08:33AM (#38363371)
I know, I hope Apple will decide to expose it to everyone in the future, since it's already implemented..
Re:Charging a lithium battery to 80% only? on Tuesday November 21, 2023 @04:12AM (#38361251)
I think this [0] native approach is preferable

[0] https://github.com/actuallymentor/battery/pull/163

Re:Charging a lithium battery to 80% only? on Tuesday November 21, 2023 @03:51AM (#38361105)
FYI, on Apple Silicon Apple included a firmware-level "hard-switch" to limit the charge to 75/80% only. It was discovered by marcan while working on Asahi and in my experience it's much more convenient than the built-in ML-based solution (and also less hacky and bloated than AlDente).

See this discussion [0] on GitHub for the explanation and this snippet [1] for easy use.

This solution also works while the laptop is sleeping, the only limitation is that it doesn't survive reboots.

[0] https://github.com/actuallymentor/battery/pull/163

[1] https://github.com/actuallymentor/battery/pull/163#issuecomm...

Re:Ask HN: Real risk of using an unpatched phone on Tuesday November 21, 2023 @03:43AM (#38361046)
That's reassuring to hear, thank you
Re:Ask HN: Real risk of using an unpatched phone on Saturday November 18, 2023 @12:18PM (#38321858)
Very interesting thread, thank you!

I think I'm going to adopt the same strategy as you, since apparently nobody can actually show any meaningful proof of widespread hacks happening..

I must also say that if I feared being a specific hackers' target, I would probably make many different choices in how I use computers/the web, other than upgrading my phone :)

Ask HN: Real risk of using an unpatched phone

Reading some discussions on HN, it looks like many people claim that using a phone which no longer receives security updates is a terrible idea because the probability of you getting hacked dramatically increases.On the other hand, millions of people in the world run unpatched Android phones everyday and yet I cannot find any significant report of them being hacked because of this. It looks...

( Read More... | 6 comments | 3 points | on HN )
That's wild. Even on my "highly unrepairable" MBA M1 the USB-C ports are very easily replaceable (new board costs $20)
Re:Pixel 8 to have seven years of Android updates on Wednesday October 04, 2023 @02:50PM (#37769826)
I completely agree. My phone lost official LineageOS support last year but it still works fine and I cannot justify throwing it away to replace with a new expensive device full of features I don't give a damn about. Probably I'm just stupid but I'm going to keep using it until it breaks.

Ask HN: Should I replace my unsupported Android phone?

I own a 5+ years old low-end Android phone whose official sw support ended in 2021. I've installed LineageOS on it but unfortunately it lost that support as well and I'm currently stuck with October 2022 security patches.The phone still runs mostly fine for my needs, but I don't know if keeping using it is a very wise choice considering the total lack of updates.I don't really "like" phones...

( Read More... | 1 comment | on HN )
Re:uBlockOrigin Lite (partially) works on Safari on Friday September 08, 2023 @01:07PM (#37436321)
AdGuard for Safari is probably the best option right now, but I really don't like the fact that it ships as a fat electron app.. Hopefully someone will fix uBOL's small incompatibilities
Re:Firefox has surpassed Chrome on Speedometer on Tuesday July 18, 2023 @05:50PM (#36779583)
I use Safari as my primary browser, only for its tab groups implementation. In my opinion they just nailed it, I think it's much better than the Chrome one. I would really like to switch to Firefox as I prefer it in every other way, but I don't think I will move until they offer a robust native tab group implementation (I've tried Simple Tab Groups but I don't want to rely on a hacky extension for such a core functionality).
Re:Docker 2.0 went from $11M to $135M in 2 years on Tuesday January 17, 2023 @07:33AM (#34411712)
That's why it remained free for individuals
Re:Docker 2.0 went from $11M to $135M in 2 years on Saturday January 14, 2023 @09:44AM (#34380659)
There's Colima[0], but in my experience it still isn't as stable as Docker Desktop. It also isn't any faster and I doubt any competing software will be, since the best way to virtualize Linux on macOS right now is to use Apple's Virtualization.framework with VirtioFS which is exactly what DD (and Colima) is doing.

On a personal note, I find the menu bar icon useful to see whether the VM is running and to pause/resume it (a functionality that none of the alternatives have).

[0](https://github.com/abiosoft/colima)

Re:Docker Desktop no longer free for large companies on Tuesday August 31, 2021 @03:20PM (#28372300)
On Apple Silicon Multipass actually uses QEMU under the hood. Basically it's just a (very convenient) wrapper
Re:Docker Desktop no longer free for large companies on Tuesday August 31, 2021 @03:17PM (#28372269)
It's in "beta" right now but it works quite well (you can find the binary in the dedicated GitHub issue). Under the hood it just uses QEMU which in turn uses Apple's Hypervisor.framework for virtualization