-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for ac power supply #180
Comments
Can you clarify how this differs from your battery not discharging? I.e., the battery is not discharging if and only if the power supply is plugged in, so the two are equivalent, right? |
On 11/17/2016 09:00 AM, Michael Stapelberg wrote:
Actually is not exactly like that. Having a look at the kernel
There are some thinkpad models that support charging thresholds. e.g. I think that the I think that all of these 5 states should be supported by i3status. |
Let me rephrase: If you want to know whether your power supply is plugged in, check whether i3status displays “Discharging” as status. If not, then your power supply is plugged in. I don’t think it’s necessary to implement a special case for the not_charging state. |
On 11/19/2016 02:54 PM, Michael Stapelberg wrote:
That's a good point, but what about the custom status string? I like Looking at the code I find out that: The kernel is providing 5 different states, the internal code of
Thus I think that it is impossible, using the custom strings, to Am I wrong?
|
Correct, you cannot use the |
It would be really useful for me to see if the AC power supply is plugged and working. What do you think about adding support for it?
My
/sys/class/power_supply/AC/uevent
:The text was updated successfully, but these errors were encountered: