Skip to content

A GNOME Shell extension that displays power/performance mode status in the panel. Originally designed for Lenovo IdeaPad Gaming 3 15ACH6

License

Notifications You must be signed in to change notification settings

btnrv/IP3_PowerStatus_GNOME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP3 Power Status

A GNOME Shell extension that displays power/performance mode status in the panel. Originally designed for Lenovo IdeaPad Gaming 3 15ACH6, but works with any laptop that can use a terminal command to fetch the power mode.

Image Image

Features

This GNOME extension:

  1. Executes a configurable command to read the current power mode
  2. Matches the output against user-defined mode configurations
  3. Displays the corresponding icon and text in the GNOME panel

Compatibility

You can check the Internet to find your specific ACPI calls or power mode fetch functions that work for your specific laptop model. In my experience they were listed in the Arch Wiki: Lenovo IdeaPad Gaming 3

It can realistically just work with anything or any solution, you just have to get the power mode as a string and you can customize the output to match with the power mode text you want in the extension.

Install the Polkit Rule

The extension uses pkexec to read /proc/acpi/call which normally requires authentication. To allow passwordless access:

sudo cp 50-acpi-call.rules /etc/polkit-1/rules.d/
reboot

Security Note: This rule allows commands to access /proc/acpi/call without root password. I don't know what implications this might have to your system.

3. Install the Extension

From source:

cp -r IP3_PowerStatus_GNOME ~/.local/share/gnome-shell/extensions/

Compile schemas:

glib-compile-schemas ~/.local/share/gnome-shell/extensions/ip3powerstatus@btnrv/schemas/

4. Enable the Extension

gnome-extensions enable ip3powerstatus@btnrv

5. Restart GNOME Shell

  • Wayland: Log out and log back in (or just reboot)
  • X11: Press Alt+F2, type restart, press Enter

Configuration

Open extension preferences to configure:

  • Fetch Command: The shell command to read power mode (runs with pkexec)
  • Modes: Define output values, display names, icons, and colors
  • Appearance: Icon/text visibility, sizes, spacing, colors, positioning

Example Configurations

Lenovo IdeaPad Gaming 3:

Fetch Command: echo "\_SB.PCI0.LPC0.EC0.GZ44" > /proc/acpi/call && cat /proc/acpi/call

Modes:
- Output: 0x0, Name: Intelligent Cooling
- Output: 0x1, Name: Extreme Performance  
- Output: 0x2, Name: Battery Saving

Troubleshooting

"Unknown" mode displayed:

  • Run your fetch command manually to see the output
  • Ensure the output matches one of your configured mode outputs exactly

Permission denied:

  • Ensure polkit rule is installed and polkit service restarted
  • Verify your user is in the wheel group: groups $USER

acpi_call not found:

  • Install the acpi_call module for your kernel
  • Load the module: sudo modprobe acpi_call

License

Information in LICENSE file of this repository

About

A GNOME Shell extension that displays power/performance mode status in the panel. Originally designed for Lenovo IdeaPad Gaming 3 15ACH6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published