Skip to content

Bash script designed to manage CPU cores on the PinePhone and PinePhone Pro

Notifications You must be signed in to change notification settings

commander-Z3R0/ppcores

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Open Source Love

[Version: 1.0]

PPCores - PinePhone/PinePhone Pro CPU Core Manager

PPCores is a Bash script designed to manage CPU cores on the PinePhone and PinePhone Pro. It allows users to enable or disable individual CPU cores, providing control over power consumption and performance.

Features

  • Shows the current status of all CPU cores
  • Allows enabling/disabling of individual cores (except core 0)
  • Provides information about core performance (low/high)
  • Requires root privileges for core management

Requirements

  • PinePhone/PinePhone Pro device
  • Root access
  • Bash shell

Usage

  1. Clone this repository or download the ppcores.sh script.
git clone https://github.com/commander-Z3R0/ppcores.git
cd ppcores/
  1. Make the script executable:
chmod +x ppcores.sh
  1. Run the script with root privileges:
sudo ./ppcores.sh
  1. Follow the on-screen prompts to enable or disable cores.
                          _cyqyc_
                      :>3qKKKKKKKq3>:
                  ';CpKKKKKKKkKKKKKKKpC;'
              -"iPKKKKKKkkkCZ3R0KKKKKKKKKKPi"-
          `~v]KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK]v~`
       ,rwKKKKKKKKKKKKKPv;,:'-':,;vPKKKKKKKKKKKKKwr,
      !KKKKKKKKKKKKKKK/             !KKKKKKKKKKKKKKK!
      !KKKKKKKKKKKKKKf       ?       CKKKKKKKKKKKKKK!
      !KKKKKKKKKKKKKp-               -qKKKKKKKKKKKKK!
      !KKKKKKKKKKKKK>"               "\KKKKKKKKKKKKK!
      !KKKKKKKw;,_'-                   .-:,"wKKKKKKK!
      !KKKKKKKKhi*;"                   ";*ihKKKKKKKK!
      !KKKKKKKKKKKKK;                 ;KKKKKKKKKKKKK!
      !KKKKKKKKKKKKK2>'             '>2KKKKKKKKKKKKK!
      !KKKKKKKKKKKKKKKZ             ZKKKKKKKKKKKKKKK!
      !KKKKKKKKKKKKKKK5             eKKKKKKKKKKKKKKK!
      !KKKKKKKKKKKqC;-               -;CqKKKKKKKKKKK!
      <KKKKKKKKkr,                       ,rSKKKKKKKK<
       -"v]qj;-                             -;jq]v"-
                         [PPCores]
                Enable or Disable Cores CPU
                     by @Commander.Z3R0
[#] The PinePhone Pro has 6 cores.
[#] List of cores:
[*] Core 0: Low performance, Status: 1
[*] Core 1: Low performance, Status: 1
[*] Core 2: Low performance, Status: 1
[*] Core 3: Low performance, Status: 1
[*] Core 4: High performance, Status: 1
[*] Core 5: High performance, Status: 1
[?] Do you want to activate Core 1 (Low performance)? (y/n): y
[?] Do you want to activate Core 2 (Low performance)? (y/n): N
[?] Do you want to activate Core 3 (Low performance)? (y/n): n
[?] Do you want to activate Core 4 (High performance)? (y/n): n
[?] Do you want to activate Core 5 (High performance)? (y/n): n
[#] Final state of cores:
[+] Core 0: Low performance, Status: 1
[+] Core 1: Low performance, Status: 1
[+] Core 2: Low performance, Status: 0
[+] Core 3: Low performance, Status: 0
[+] Core 4: High performance, Status: 0
[+] Core 5: High performance, Status: 0

How it works

The script performs the following actions:

  1. Checks for root privileges
  2. Displays information about all 6 CPU cores
  3. Prompts the user to activate or deactivate cores 1-5
  4. Updates the core status based on user input
  5. Shows the final state of all cores

Note

  • Core 0 cannot be disabled as it's essential for system operation
  • Changes made by this script are temporary and will reset after a reboot

Disclaimer

Use this script at your own risk. Disabling CPU cores may affect system performance and stability.

About

Bash script designed to manage CPU cores on the PinePhone and PinePhone Pro

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages