Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing UPS as battery #169

Open
tenplus1 opened this issue Aug 14, 2019 · 4 comments
Open

Not showing UPS as battery #169

tenplus1 opened this issue Aug 14, 2019 · 4 comments

Comments

@tenplus1
Copy link

Would is be possible to have lxqt powermanagement show my ups as a battery like it does in xfce, gnome and kde ?

@dev-zero
Copy link

... and maybe also the batteries of devices connected via bluetooth (the ones I see with upower --dump)?

@adjamhub
Copy link
Contributor

In my opinion, adding support for UPS is just 1 line of code. But I don't have one. Is there anyone willing to test it for me?

@adjamhub
Copy link
Contributor

about showing other kind of batteries... I can probably add them in the "information" widget. Showing in the systray is probably exaggerated. Isn't it?

@tenplus1
Copy link
Author

tenplus1 commented Nov 9, 2021

It seems no other tools are needed to check the ups battery (apcupsd or nuts), by typing 'upower -d' into terminal it shows all relevant ups battery information for use:

320ms2h:~$ upower -d
Device: /org/freedesktop/UPower/devices/ups_hiddev0
  native-path:          /sys/devices/pci0000:00/0000:00:08.1/0000:08:00.3/usb3/3-3/3-3:1.0/usbmisc/hiddev0                                                                                                    
  vendor:               APC                                                                            
  model:                870.O3 .I                                                                      
  serial:               5Q1402T02229                                                                   
  power supply:         yes                                                                            
  updated:              Tue 09 Nov 2021 08:22:34 GMT (15 seconds ago)                                  
  has history:          yes                                                                            
  has statistics:       yes                                                                            
  ups                                                                                                  
    present:             yes                                                                           
    state:               fully-charged                                                                 
    warning-level:       none                                                                          
    time to empty:       31.6 minutes                                                                  
    percentage:          100%                                                                          
    icon-name:          'battery-full-charged-symbolic'                                                
                                                                                                       
Device: /org/freedesktop/UPower/devices/DisplayDevice                                                  
  power supply:         yes                                                                            
  updated:              Tue 09 Nov 2021 08:18:04 GMT (285 seconds ago)                                 
  has history:          no                                                                             
  has statistics:       no                                                                             
  ups                                                                                                  
    present:             yes
    state:               fully-charged
    warning-level:       none
    time to empty:       31.6 minutes
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'

Daemon:
  daemon-version:  0.99.13
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  no
  critical-action: HybridSleep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants