Some battery drivers are reporting a negative rate in /sys/class/power_supply/BAT0/current_now (replace BAT0 with your battery) such as the bq27x00-battery driver and the kernel for the toshiba ac100 (tegra 2 soc). In the two cases, the current_now contains a useful rate (i.e. no error code). A negative rate in current_now however, is interpreted by the xfce4-battery-plugin as an error such that remaining time is not displayed correctly. This could be fixed by adding abs() panel-plugin/libacpi.c around line 793 together with considering the value -1000 as a not present rate. The upower-daemon, for instance, also applies abs() to this value. AFAIK, the acpi specification does not allow negative rates but int the linux power supply class documentation, there seems to be currently no statement about the sign.
Mass-reassign all bugs from florian@ to goodies-dev@, thanks for the maintenance work! (and sorry for the bugmail spam..)
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-battery-plugin/-/issues/3. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev