pop-os / gnome-shell-extension-system76-power

System76 Power Management Extension
MIT License
88 stars 26 forks source link

Cannot switch graphics modes or power profiles when battery is removed #70

Open j-tai opened 2 years ago

j-tai commented 2 years ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="21.10"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 21.10"
VERSION_ID="21.10"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=impish
UBUNTU_CODENAME=impish
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

gnome-shell-extension-system76-power:
  Installed: 2.0.2~1631828901~21.10~a901dc0
  Candidate: 2.0.2~1631828901~21.10~a901dc0
  Version table:
 *** 2.0.2~1631828901~21.10~a901dc0 1001
       1001 http://apt.pop-os.org/release impish/main amd64 Packages
       1001 http://apt.pop-os.org/release impish/main i386 Packages
        100 /var/lib/dpkg/status

Issue/Bug Description:

If the laptop battery is removed, and the laptop is running off of wall power, then the graphics modes and power profiles are inaccessible.

This can result in the computer being stuck in battery life or balanced mode when high performance mode is wanted, or being stuck in integrated graphics mode when hybrid/NVIDIA mode is wanted.

image

Steps to reproduce (if you know):

  1. Remove the battery from the laptop (this is possible on some System76 models, such as gaze14).
  2. Open the power menu at the top-right. The graphics mode and power profile options aren't there.

Expected behavior:

The options should be there because changing modes is sometimes needed when running off of wall power.

Other Notes:

This could be fixed by implementing pop-os/system76-power#128 but I would prefer to still have options in the power menu, since it's more convenient than opening the settings app.

j-tai commented 2 years ago

Actually this should probably be in https://github.com/pop-os/gnome-shell-extension-system76-power, so someone could transfer it there.

jacobgkau commented 2 years ago

Until this is addressed, you can switch using a terminal with system76-power graphics hybrid, system76-power graphics integrated, system76-power graphics nvidia, and system76-power graphics compute.

ruvaldak commented 2 years ago

ah, this is why I can't switch on my desktop - it doesn't have a battery at all.