-
Notifications
You must be signed in to change notification settings - Fork 826
Description
On Linux Mint 17.3 running Cinnamon 2.8.6, I noticed that the power applet does not show any label text on my Lenovo T440s, which has two batteries. The only thing I get is some tooltip that's just a summary of the current state. Moreover, explicitly configuring the applet to show "percentage and time remaining" also did not show any label text. In earlier versions of Cinnamon (or rather the applet), the applet at least showed the state of one of the batteries.
I edited the JavaScript file and attached the result, which works for me. I would like to suggest to include the changes I made to that file in the next release. A short summary of the changes I made:
- always show information about all devices separated by " | " in the label and the tooltip
- fix a bug that caused some devices to be reported multiple times by the system (i.e. this._devices contained some devices more than once, devices are screened by their device_id)
- show time information only for the device that is currently in use (determined by comparing the time-to-full or time-to-empty reported by the system to the value at the last update of the label text)
It might need some further work to be a viable replacement for everybody since two numbers are hard-coded to work for my device. I would like to help with that but I am unsure about what to do exactly since some config-options might have to be added to the GUI. I attached a screenshot of the result.
