This is a PyQt6 application to control the state of CPU cores on a Linux system. The application allows you to enable or disable individual CPU cores or a range of CPU cores.
- Enable/Disable Individual Cores: Click on the CPU core buttons to toggle their state.
- Enable/Disable Range of Cores: Use the "Disable Range" and "Enable Range" buttons to specify a range of cores to disable or enable.
- Dynamic Core Detection: Automatically detects the number of CPU cores on your system.
- Python 3.x
- PyQt6
- Root privileges (sudo access)
-
Clone the repository:
git clone https://github.com/devansharora18/cpu-controller.git cd cpu-controller
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the application:
sudo python3 main.py
- Toggle Individual Cores: Click on the CPU core buttons to enable or disable them.
- Disable Range: Click on the "Disable Range" button and enter the start and end core indices to disable.
- Enable Range: Click on the "Enable Range" button and enter the start and end core indices to enable.
This project is licensed under the MIT License.