Skip to content
/ ippm Public

Script to handle power mode of Lenovo Ideapad 5 Pro

Notifications You must be signed in to change notification settings

madlabman/ippm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

ippm

Simple bash script to handle Lenovo Ideapad 5 Pro 14ACN06 performance mode via ACPI.

Note that acpi_call kernel module should be installed.

Usage

# ippm [set/get] [cm/rc/perf] [num]

Conservation mode

# ippm get cm
0
# ippm set cm [0/1]

Rapid charge

Is not compatible with conservation mode and vice versa.

# ippm get rc
1
# ippm set rc [0/1]

Performance mode

One of:

  • 0 - performance
  • 1 - power save
  • 2 - intelligence cooling
# ippm get perf
2
# ippm set perf [0/1/2]

polybar

polybar-ippm.sh script can be used with polybar as follows:

[module/ippm]
type = custom/ipc

; Define the command to be executed when the hook is triggered
; Available tokens:
;   %pid% (id of the parent polybar process)
hook-0 = polybar-ippm

; Hook to execute on launch. The index is 1-based and using
; the example below (2) `whoami` would be executed on launch.
; If 0 is specified, no hook is run on launch
; Default: 0
initial = 1

; Mouse actions
; Available tokens:
;   %pid% (id of the parent polybar process)
click-left = polybar-ippm next

About

Script to handle power mode of Lenovo Ideapad 5 Pro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages