Introduction
Introduction Statistics Contact Development Disclaimer Help
Post Awf1OVJfcrutoaAR8q by [email protected]
More posts by [email protected]
Post #AweoyfHClxc7j7vViK by [email protected]
0 likes, 1 repeats
ok linux question for you smart linux people. I want to add a battery indicato…
Post #Aweoyjp1s92xpBmZzU by [email protected]
0 likes, 0 repeats
proc filesystem is already off to a bad start. an old blog post I found says t…
Post #AweoypVOk2uPS2dzE0 by [email protected]
0 likes, 0 repeats
ok looks like the correct way is probably to search /sys/class/power_supply/*/t…
Post #AweoywtPHBGyMWvl7Q by [email protected]
0 likes, 0 repeats
for the bored and the excessively curious here's what I ended up going with…
Post #AwesQotusmXZXz9OrY by [email protected]
0 likes, 1 repeats
@aeva The Fortran bit is a nice touch.
Post #Awf13c1TUotaX8h7UO by [email protected]
0 likes, 0 repeats
@cobra @aeva on my laptop /sys/class/power_supply/AC doesn’t existInstead it�…
Post #Awf18xvFV9BTtyKpsW by [email protected]
0 likes, 0 repeats
@aeva It's usually BAT0 but it can be BAT$N. Also there might be more than …
Post #Awf18y1z66ZWErUDNQ by [email protected]
0 likes, 0 repeats
@aeva note also that it's specifically "BAT", there are other thi…
Post #Awf1G6iTCjBXCclNxo by [email protected]
0 likes, 0 repeats
@cobra ok so it's alwasy BATsomenumber right? is there any way to just get…
Post #Awf1GkHE7R9ztiKC3M by [email protected]
0 likes, 0 repeats
@aeva batteries have a guaranteed serial number pattern, and it is "123456…
Post #Awf1LtNdhSplZymJpw by [email protected]
0 likes, 0 repeats
@aeva *sigh* correct, my prompt attempts to get battery status, and reads throu…
Post #Awf1OVJfcrutoaAR8q by [email protected]
0 likes, 0 repeats
@glyph @aeva It can be called other things, too! My battery info is under `/sys…
Post #Awf1OVQPDpIw9TJodk by [email protected]
0 likes, 0 repeats
@whbboyd @glyph do me a favor and tell me if you've got a command called &q…
Post #Awf1OVX8omgyUMTC8e by [email protected]
0 likes, 0 repeats
@aeva @glyph $ upower -e/org/freedesktop/UPower/devices/line_power_qcom_battmgr…
Post #Awf1OVdsPk50pFcZdY by [email protected]
0 likes, 0 repeats
@aeva @glyph Uh, except for `DisplayDevice`. That one upower made up.
Post #Awf1TaH4cS0UdkNJKK by [email protected]
0 likes, 0 repeats
@aeva All that information will probably be in `/sys/class/power_supply`, but I…
Post #Awf1Ul83kPAiavidua by [email protected]
0 likes, 0 repeats
@sky how do I do that in a generic way that will work on different machines? s…
Post #Awf1UlERMgHAuihjrE by [email protected]
0 likes, 0 repeats
@aeva Oh, hmm. I'm not sure why yours is in BAT1 instead of BAT0, but appar…
Post #Awf1hhE9Z6a4G4jpku by [email protected]
0 likes, 0 repeats
@glyph @aeva It can also have things like wireless mouse batteries, which you m…
Post #Awf1juKxnIQnUryhtI by [email protected]
0 likes, 0 repeats
@aeva I tried to do this about 20 years ago. For each one of NetBSD, OpenBSD, F…
Post #Awf1juRhOFoppl85OC by [email protected]
0 likes, 0 repeats
@david_chisnall the linux situation for this actually changed substantially for…
Post #Awf1juY50WvI9Y7BKq by [email protected]
0 likes, 0 repeats
@david_chisnall also there's a service that exposes it as a dbus api, but t…
Post #Awf1kZM7HuiOiJphse by [email protected]
0 likes, 0 repeats
@aeva i would scan all folders in /sys/class/power_supply i think. im pretty su…
Post #Awf1kZTuouxB6VTw2K by [email protected]
0 likes, 0 repeats
@aeva if there's more than one battery idk put more than one indicator on t…
Post #Awf1mBk03fEo3LmBzU by [email protected]
0 likes, 0 repeats
@aeva also some Laptops have multiple independent batteries with different perc…
Post #Awf1okLiM9Hpy4dXiC by [email protected]
0 likes, 0 repeats
@cobra a programming language
Post #Awf1s2QNbqEQtcO9J2 by [email protected]
0 likes, 0 repeats
@aeva SDL solved that for you :3 https://wiki.libsdl.org/SDL3/CategoryPower
Post #Awf1s2YB8qTDHo2NSi by [email protected]
0 likes, 0 repeats
@pupxel another thing for me to look forward to when I drop pygame for sdl3
Post #Awf1s2eCmRI5aUrBr6 by [email protected]
0 likes, 0 repeats
@aeva it's been there since SDL 2https://wiki.libsdl.org/SDL2/SDL_GetPowerI…
Post #Awf235fdseSI9JnVhI by [email protected]
0 likes, 0 repeats
@cobra @aeva Yes, ADP0/online exists and says 1 when laptop plugged in, 0 other…
Post #Awf23GHwP7254znEmW by [email protected]
0 likes, 0 repeats
@aeva I was doing some tuning on my GPU and I wondered the same, why /1/ and no…
Post #Awf2865vjPgCucTsi8 by [email protected]
0 likes, 0 repeats
@aeva "BAT0" vs "BAT1" is the name it has in the ACPI tree,…
Post #Awf2DgCGvoL8KU6pdI by [email protected]
0 likes, 0 repeats
@[email protected] Libacpi looks like it can scan and parse all the d…
Post #Awf2H9pjCUeN77DsTw by [email protected]
0 likes, 0 repeats
@cobra @aeva Lenovo V155 15API
Post #Awf2HlufcZBNDRpMSe by [email protected]
0 likes, 0 repeats
@aeva Okay, color me surprised. https://askubuntu.com/questions/69556/how-do-i-…
Post #Awf2HmLc0OjWZ0QsSG by [email protected]
0 likes, 0 repeats
@aeva Also I'm more surprised that a laptop I haven't used in a few wee…
Post #Awf2QTfmo48RFf16ES by [email protected]
0 likes, 0 repeats
@cobra one that can shell out to the terminal or call functions through the C F…
Post #Awf2XiRSIKSZ5ElUjQ by [email protected]
0 likes, 0 repeats
@cobra what happens if there is more than one battery
Post #Awf2aWiULTTLaS4YRE by [email protected]
0 likes, 0 repeats
@mattl @aeva apparently that's close to some batteries "stable" s…
Post #Awf2nUI2g82ZpFsmq8 by [email protected]
0 likes, 0 repeats
@whbboyd @glyph yup. upower is a dbus thing. you can read info about one of t…
Post #Awf2sbudlWGsulNaVs by [email protected]
0 likes, 0 repeats
@kimapr @cobra AC doesn't exist on mine either, it's called ACAD. acco…
Post #Awf34TtLPeYLVsQwfw by [email protected]
0 likes, 0 repeats
@sabik @glyph 💀
Post #Awf3Gi5GTKTj0LqAUa by [email protected]
0 likes, 0 repeats
@pupxel good to know
Post #Awf3HT6zcimsrK0iDA by [email protected]
0 likes, 0 repeats
@artemis I decided that in the event of deathstation 9000, it will simply repor…
Post #AwhWXhzqzsIxBl1ScK by [email protected]
0 likes, 0 repeats
@glyph Ah, but if you try to exclude the batteries of peripherals, you'll d…
Post #AwhWXi8MUF6tc90FsW by [email protected]
0 likes, 0 repeats
@clacke @glyph @sabik I'm ok with that
Post #AwhWXiF65CUvx29dNQ by [email protected]
0 likes, 0 repeats
@aeva They did it to themselves.@glyph @sabik
Post #AwhWXiL7inJoFiyRlo by [email protected]
0 likes, 0 repeats
@clacke @glyph @sabik I think I could probably get away with ignoring it becaus…
Post #AwhWXiSvFnYaducfvU by [email protected]
0 likes, 0 repeats
@clacke @glyph @sabik also those hardware specs are lean. I appreciate that ht…
Post #AwhWb1O3MQTACAvBIW by [email protected]
0 likes, 0 repeats
@aevaI see you already got plenty of responses. My two cents:/proc and /sys are…
Post #AwhWb1UQyhZcVxuHFA by [email protected]
0 likes, 0 repeats
@leeloo proc hasn't been the right answer for a long time but sysfs was int…
Post #AwhWb1aoayg4pktNBo by [email protected]
0 likes, 0 repeats
@aeva/proc is often easier. Feels to me like /proc is a user view, and /sys is …
Post #AwhWb1gUFtDN7LXu1w by [email protected]
0 likes, 0 repeats
@leeloo it's not intended to replace proc. there's a wikipedia article…
You are viewing proxied material from pleroma.anduin.net. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.