#Power management for multiple controllers

4 messages · Page 1 of 1 (latest)

fallow pendant
#

Hello everybody! Let me start by saying i'm pretty new to Linux Mint Cinnamon with having it installed just a few days ago. Thanks for all the hard work that went into it - it was fairly easy to get started with it!

I currently have a situation where i'm not sure if it's designed like this or if i can improve it myself (not new to developing):

I connect three controllers to my system and use the [email protected] applet in my panel (at least i think that's the correct terms). Now i have a few things that are a bit of a shame:

  • I can open the settings of the applet and rename the controllers in the battery tab (so e.g. i change "Controller" to "blue" for my blue controller. But once i reconnect the controllers in a different order the names do not match the correct controller anymore.
  • I can hover over the applet and the tooltip only says something like "game device" (not 100% sure, i'm not using the english localization). If i can get the device names working, it would be nice if the tooltip said something like "Blue 70%". When i click on the applet and the "power menu" pops up it does use the device name.
  • It seems like i could set the power applet up to show a percentage of e.g. a laptop. Is there a way to configure it to show the percentage of all connected devices / controllers?

Now, i think i could take the power applet source code from the cinnamon github, modify some things and use that. Is that a typical way to go about it? Is there any resource that gives me some notes on how to "change built-in applets"? That would allow me to try out the bullet points 2 and 3 i think.

Is there anything i could look into for bullet point 1?

#

Related to bullet point 1? I'm using wireless xbox controllers via xone, but i'm not sure that's important. I saw that apparently the settings stored by the power applet are:

$ dconf read /org/cinnamon/device-aliases
['/org/freedesktop/UPower/devices/battery_gip1x0:=Controller', '/org/freedesktop/UPower/devices/battery_gip0x0:=Blacky', '/org/freedesktop/UPower/devices/battery_gip2x0:=Controller', '/org/freedesktop/UPower/devices/battery_hidpp_battery_0:= Wireless Touch Keyboard K400 Plus']

which apparently (?) means that the names are never mapped to serial numbers or something else that's device specific but always just the path - which would mean that it will always depend on the device connection order?

iron vault
#

For point 2, I believe we support volunteers cannot address that. I believe that would be a feature request for Cinnamon.
I'm currently not sure where you can direct those concerns, given how the Linux Mint and Cinnamon as a project is structured, but you may try here:
https://github.com/orgs/linuxmint/discussions