u/lukmly013 💾 (lemmy.sdf.org)

I like computers, trains, space, radio-related everything and a bunch of other tech related stuff. User of GNU+Linux.
I am also dumb and worthless.
My laptop is ThinkPad L390y running Arch.
I own RTL-SDRv3 and RSP1 clone.

SDF Unix shell username: user224

  • 1 Post
  • 54 Comments
Joined 2 years ago
cake
Cake day: June 17th, 2023

help-circle



  • (Yeah, yeah, I get it, a bit off-topic)

    One of the rules we laid down was to plug your phone in outside your room before you go to bed.

    Sorry, just some small note. Charging to 100% daily significantly shortens the battery lifespan. Staying between 20 - 80% is generally recommended.
    But to be honest, if I still had a phone with user replaceable battery I’d just 100% it too. I mean, the battery for my Galaxy Ace is like €6.

    Anyway, I’ve got some USB tester from AliExpress that also has a time limit. I can usually nail that near 80%. There’s also some physical Bluetooth charge limiters, though that of course requires their app.

    Irrelevant if your phone has built-in charge limiter.

    But yeah, anyway, how you did it sounds fine.

    Edit: Although theoretically, it probably could be done without an app. Bluetooth can share battery charge info.














  • Just in case: If your storage is completely full all of a sudden, check /var/log/nginx if you haven’t pointed the logs elsewhere.

    I know I was pretty confused to find my storage absolutely full, then I found the multi-GB error.log file. When a network interface it was listening on disappeared it filled with errors as such:

    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    

    (I just reproduced that now on-demand, thus the date.)

    There’s a tool called logrotate to take care of logs, but I just did the stupid and lazy thing…

    error_log /dev/null;
    

    Well, in case you get the idea to run NGINX in Termux, and then later you find your phone hot, stuck in a bootloop, it’s possible the error.log filled the storage causing Android to crash because it now can’t even write system files.
    Not that I would have done such thing…