Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "battery status"
-
I want to stop charging my e-scooter at around 85% because this will increase the battery life. To avoid always having to pull the plug at the right level, I made a stop circuit that goes between charging brick and e-scooter.
There's no processor involved, just a CMOS 555 used as inverting Schmitt Trigger which controls a power mosfet. Also two status LEDs and a start switch. The poti adjusts the cut-off level. Worked on first try, with only manual voltage and tolerance calculations beforehand!27 -
My Sunday Morning until afternoon. FML. So I was experiencing nightly reboots of my home server for three days now. Always at 3:12am strange thing. Sunday morning (10am ca) I thought I'd investigate because the reboots affected my backups as well. All the logs and the security mails said was that some processes received signal 11. Strange. Checked the periodics tasks and executed every task manually. Nothing special. Strange. Checked smart status for all disks. Two disks where having CRC errors. Not many but a couple. Oh well. Changing sata cables again 🙄. But those CRC errors cannot be the reason for the reboots at precisely the same time each night. I noticed that all my zpools got scrubbed except my root-pool which hasn't been scrubbed since the error first occured. Well, let's do it by hand: zpool scrub zroot....Freeze. dafuq. Walked over to the server and resetted. Waited 10 minutes. System not up yet. Fuuu...that was when I first guessed that Sunday won't be that sunny after all. Connected monitor. Reset. Black screen?!?! Disconnected all disks aso. Reset. Black screen. Oh c'moooon! CMOS reset. Black screen. Sigh. CMOS reset with a 5 minute battery removal. And new sata cable just in cable. Yes, boots again. Mood lightened... Now the system segfaults when importing zroot. Good damnit. Pulled out the FreeBSD bootstick. zpool import -R /tmp zroot...segfault. reboot. Read-only zroot import. Manually triggering checksum test with the zdb command. "Invalid blckptr type". Deep breath now. Destroyed pool, recreated it. Zfs send/recv from backup. Some more config. Reboot. Boots yeah ... Doesn't find files??? Reboot. Other error? Undefined symbols???? Now I need another coffee. Maybe I did something wrong during recovery? Not very likely but let's do it again...recover-recover. different but same horrible errors. What in the name...? Pulled out a really old disk. Put it in, boots fine. So it must be the disks. Walked around the house and searched for some new disks for a new 2 disk zfs root mirror to replace the obviously broken disks. Found some new ones even. Recovery boot, minimal FreeBSD Install for bootloader aso. Deleted and recreated zroot, zfs send/recv from backup. Set bootfs attribute, reboot........
It works again. Fuckit, now it is 6pm, I still haven't showered. Put both disks through extensive tests and checked every single block. These disks aren't faulty. But for some reason they froze my system in a way so that I had to reset my BIOS and they had really low level data errors....? I Wonder if those disks have a firmware problem? So that was most of my Sunday. Nice, isn't it? But hey: calm sea won't make a good sailor, right?3 -
Almost died few minutes ago. My laptop was plugged to power, while I was using it, for last one hour. Then power cut and my laptop went off too. I was really afraid. Just 9 months ago I purchased a new battery for my laptop. When power came back, and I restarted my laptop, to check status, it was saying "Plugged in. Not charging" on windows. Now I was in serious shock. "Fuck battery died again. This time so soon". Also no red light which reflects charging but white, which reflects "laptop running on direct supply". It gave me some indication when it stopped showing red light during charging for last couple of days
I removed the battery and reinserted it. Replugged the charger. Now it's charging. And red light is back
This makes me even more serious. As similar to this, is what happened with me last time battery died.
Now let's see whether my laptop battery is going to see this night or not. Next few hours are crucial8 -
I was messing with my lemonbar + i3status config (with sway), when I decided to ditch i3status entirely and generate a status line using pure Awk. Battery is calculated from /sys/class/power_supply/BAT0, got workspaces (Material Design Icons) working, have a nice dated, and all colors match Solarized Dark from Vim. Have underlines, highlights etc. setup.
It's so beautiful :)4 -
Quick question/update over a previous rant.
My netbook battery status was always 100% on Lubuntu 18.10, I switched to Xubuntu and the same happens, but it reports correctly with Puppy Linux (old version). I thought the problem was in the battery itself, but now I think it's due to some broken drivers in newer version of Debian-based distros, or it is a bug in newer Linux kernel. But since I have no time to spend on a spare netbook, I'm not willing to test more options.
Anyone has a clue? 🤔
https://devrant.com/rants/1879180/...3 -
The iPhone is only good for consuming apps, that's it. If you want to use it for anything else, good luck.
Its keyboard is miserable.
Its browser is the new IE.
If you connect to a share folder, at random you lose all networking and you have to restart the phone.
You don't reliably get notifications so good luck explaining to your boss or client or girlfriend why you didn't reply back for hours.
Once the battery permanently dies, you're just expected to spend another $1k for the privilege of this suffering.
It took over 25 edits to get to this point in the message. I had to restart this status symbol 3 times in the last 24 hours in order to restore its ability to communicate. It is agony to use this substandard pile of garbage and it has objectively made my quality of life worse in the 18 months I've had it.
It's an iphone 12. I bought it new from the store. I thought Apple only intentionally made older phones unusable through updates, but this has been unusable since the beginning.19 -
So I was looking into phone app development again (as you do) and I'm working on a simple QoL app for me and my SO that will help us automate some home management and finances stuff. Naturally I delved down the rabbit hole deep and wanted to have push notifications so we don't have to check the app periodically to know when certain things happen... Oh boy... Why is mobile development so convoluted, especially if you don't want to rely on Google Services...
It seems that the most accepted way of doing this is Firebase (FCM). Well me being me, I refuse to use google services for this and I prefer self hosted solutions (for data privacy reasons) which eliminates most products out there.
It also didn't help that my framework of choice is Flutter/Dart, because fuck Android Studio and the insane buggy XML stuff and fuck Android and it's constantly changing APIs...
Well In the end I decided on a rather simple solution and self hosted an AMQP service (RabbitMQ in my case, as I have some experience with it already) and implemented a foreground service in android platform specific code on top of my flutter project to kickstart it and made my phone a queue listener... This now means I can push notifications from my server to the Messaging Queue and it will be pushed into my App automatically!
One thing I found out on this journey was that Android now kills most background services and enforces foreground services to have a visible notification in the status drawer... which I actually approve of. It's a bit annoying that you can start a reliable background service, but I'm absolutely on-board with long running processes started by my apps are constantly visible...
Long story short, I love reinventing all the wheels, especially if it's for free and private... And I also went to sleep at 2AM again because this took longer that I'd like to tune... but it works, and it's google free...
I'm thinking of trying to package this up as a flutter module later, but first I want to do testing on battery life and the general life cycle of the service. RabbitMQ says they have the client library optimized for long-lasting connections and it should be just using a tcp socket, which should pretty much be what all the push notification services are doing anyway. I'm also not completely satisfied with how the permanent notification looks.. it isn't collapsible like some of the other ones from other apps and it's about 2 lines high instead of single line... which is something quite annoying and I'm struggling to find any relevant docs on how this is done other than possible making a custom Notification Style... but I just can't believe that everyone is doing that.. there must be a built-in somewhere -_-... Ugh Android is hell...
Anyway, if any android devs here have some hints, tips and tricks on how to handle this type of background/foreground process stuff and I'm doing something wrong let me know, cause googling this shit is a nightmare too!6 -
My Laptop recently lost his mobility. I think my battery died ;_;
i3-status-bar shows me a nice 0,00% and as soon as my charger disconnects, it shuts down. Hope My insurance is still active... -
I have a Lenovo IdeaPad 330s and it shows the battery percentage remaining when we press any key on the keyboard while the laptop is switched off. This is a really handy feature. Does anyone know how it is implemented or how could it be implemented (on other laptops) ?
Don't just ++, favorite this post, pin it (so, you can comment on it if you find the way later) and please, mention it in the comments if you know it.4 -
Anyone have any decent Android apps for showing bluetooth headset's battery level info on status bar? (It can be a non-closeable notif)
FYI, an iPhone can detect this knock-off headphone's battery level. My phone doesn't have a viewing option as a stock widget/app.3 -
Surface Pro shows battery status at 0% - Not Charging. Turns off as soon as power is removed. Looks like battery is dead. Anybody have any troubleshooting tips?5