[Version: 1.0]
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.
- 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
- PinePhone/PinePhone Pro device
- Root access
- Bash shell
- Clone this repository or download the
ppcores.sh
script.
git clone https://github.com/commander-Z3R0/ppcores.git
cd ppcores/
- Make the script executable:
chmod +x ppcores.sh
- Run the script with root privileges:
sudo ./ppcores.sh
- 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
The script performs the following actions:
- Checks for root privileges
- Displays information about all 6 CPU cores
- Prompts the user to activate or deactivate cores 1-5
- Updates the core status based on user input
- Shows the final state of all cores
- 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
Use this script at your own risk. Disabling CPU cores may affect system performance and stability.