Bug #29
Improve Tooltip Configuration
| Status: | New | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | KThinkBat for Kicker | |||
| Target version: | KThinkBat 0.4 for Plasma | |||
| Resolution: |
Description
After searching for the files where kthinkbat gets its (tp_smapi) information
from I found the directories
/sys/devices/platform/smapi/BAT0/ and
/sys/devices/platform/smapi/BAT1
on my system. The command ls shows the following content in each directory for
me:
barcoding
cycle_count
first_use_date
last_full_capacity
power_avg
start_charge_thresh
chemistry
design_capacity
force_discharge
manufacture_date
power_now
state
current_avg
design_voltage
inhibit_charge_minutes
manufacturer
remaining_capacity
stop_charge_thresh
current_now
dump
installed
model
serial
voltage
So there is actually more information available than kthinkbat shows in the tooltip right now. Why not provide them all when available? But how to avoid an information overkill in the tooltip?
I thought about this and came up with the idea of making the tooltip information choosable for the user. This way each user could choose according to his/her preference what information is given in the tooltip. I made a little mockup screenshot of how this could look like (see the attached file). On the top one can choose if the tooltip is actually shown or not and underneath on the left one can see all the available information and on the right the information which is shown in the tooltip. In the middle one can use the arrows to choose which information will be shown in the tooltip and to move the shown information up and down in the list according to one's liking. Something I didn't include is a different selection for each battery, maybe someone would also like to have different information shown for each battery.
One thing I noticed while making this mockup screenshot is that the window title bar only says "Einrichten - KDE Kontrollleiste" (Configure - KDE control bar), maybe something like "Kthinkbat einrichten - KDE Kontrolleiste" (Configure Kthinkbat - KDE control bar) would be more clear.
I hope you like this idea and implement it in one of your future kthinkbat
versions.
History
Updated by Tobias Roeser 980 days ago
Currently, all shown information are read on each refresh intervall. Reading a lot of information which are only rarely needed could cause some performance decrease and power consumption increase, which is a not acceptable behavior for an power monitor application. To read and provide these information only on demand will require some extra logic which is currently not there and will be not trivial to implement.
Although I like the idea of providing all these information if available, implementing this feature (especialy the configuration part of each value) will take some time and has not the highest priority.
About the config window title. I didn't managed to get the right title on it. Any hints are welcome. Maybe it's an kicker shortcomming.