eliapasquali / power-profile-switcher

Gnome extension to automatically switch between power profiles based on power supply.
https://extensions.gnome.org/extension/5575/power-profile-switcher/
GNU General Public License v3.0
51 stars 10 forks source link

[BUG]: Profile switching not working with Ubuntu 23.04 #11

Closed Shahxad-Akram closed 1 year ago

Shahxad-Akram commented 1 year ago

Describe the problem Profile switching not working with Ubuntu 23.04. The extension is incompatible with the current GNOME version.

Screenshots On GNOME, show the status in Power Statistics or the output of upower -d

shahzad@shahxad:~$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path:          ADP1
  power supply:         yes
  updated:              Fri 21 Apr 2023 01:48:23 PM EDT (1175 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               13142
  model:                RR04058
  serial:               12353
  power supply:         yes
  updated:              Fri 21 Apr 2023 02:07:54 PM EDT (4 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    warning-level:       none
    energy:              61.347 Wh
    energy-empty:        0 Wh
    energy-full:         61.347 Wh
    energy-full-design:  61.347 Wh
    energy-rate:         0 W
    voltage:             17.182 V
    charge-cycles:       N/A
    percentage:          100%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-charged-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Fri 21 Apr 2023 01:48:23 PM EDT (1175 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               fully-charged
    warning-level:       none
    energy:              61.347 Wh
    energy-full:         61.347 Wh
    energy-rate:         0 W
    charge-cycles:       N/A
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'

Daemon:
  daemon-version:  0.99.20
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: PowerOff

Device

eliapasquali commented 1 year ago

Now it should be compatible