z3ntu / RazerGenie

Qt application for configuring your Razer devices under GNU/Linux.
GNU General Public License v3.0
374 stars 35 forks source link

FR: display battery level #163

Closed Zahrun closed 3 months ago

Zahrun commented 9 months ago

Would like to be able to see the battery level for my Viper V2 Pro in RazerGenie.

z3ntu commented 9 months ago

Definitely planned! If you have an idea (or a mockup) how you would imagine the battery % to be displayed in the UI, please feel free to tell me. I'm having a hard time figuring out a UI that works for that ;)

Zahrun commented 9 months ago
  1. I think it would be nice to have the battery level for each device on the left-side panel with all the devices (9%) so that we can see all battery levels in one glance. The battery level could be put under the name of the device, or the name of the device could go above the icon and the battery status goes under the icon. It is also fine to not have that, if you don’t want to clutter the device list.
  2. I think in the top-right corner of the device page, there is a blank space that can be used to show the battery level (42%)
  3. In the list of the options, we could also have a section with information about the battery, which could have a more visual indicator of battery level and whatever information we want to display about the battery (79%)
  4. At the bottom, above the serial number could also be a line for the battery status, but maybe the point of these small lines are to show less dynamic information (27%) mockup
TriMoon commented 9 months ago
  1. It is also fine to not have that, if you don’t want to clutter the device list.

That would be a shame to not have...

PS: AT moment i'm using https://github.com/HoroTW/RazerBatteryTray to have battery info in the tray :wink:

L0Lock commented 6 months ago

Kind of related, let me know if I should open a different ticket for it:

Could we have a different lighting state for devices that can be either plugged / on battery?

I have a wireless Razer Viper Ultimate. On Windows, the Razer Synapse software allows choosing a different lights animation for when the device is charging, and both plugged/battery settings are different by default. So that you know very easily whether your device is charging or not with no delay, unlike the software's display that can take a few more seconds to update and requires extra steps to open in the first place.

z3ntu commented 5 months ago

Could we have a different lighting state for devices that can be either plugged / on battery?

I'm not aware of this being a hardware feature, so that would require user space to be polling the device for charging status and applying a new effect when it detects that it's charging / not charging. Not sure where this would fit into the stack - for now you can write your own (e.g. Python) script that does essentially what I described, so poll charging status and set the effects you want when it's either charging or not charging.

z3ntu commented 3 months ago

Got something now for battery percent & charging status, not particularly pretty but it does the job :)

image

It's currently not refreshing automatically yet, so probably needs to re-open the app to update the percentage, I've got it planned to refresh the values on a timer. -> #167

Zahrun commented 3 months ago

Great, thank you