https://github.com/code-yeongyu/radeon-on-charging
Automatically switch to faster gpu mode while your MacBook is charging!
https://github.com/code-yeongyu/radeon-on-charging
Last synced: 4 months ago
JSON representation
Automatically switch to faster gpu mode while your MacBook is charging!
- Host: GitHub
- URL: https://github.com/code-yeongyu/radeon-on-charging
- Owner: code-yeongyu
- License: gpl-3.0
- Created: 2020-01-13T12:52:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T17:19:06.000Z (over 5 years ago)
- Last Synced: 2025-04-07T20:56:19.391Z (6 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[한국어 README](https://github.com/code-yeongyu/radeon-on-charging/blob/master/readme_kor.md)
# What is this?
It's a simple python script that automatically changes your Macbook to use Radeon Graphics when you connect to a charger.
# How to use?
Clone this project, and make sure you know the directory of this python script.
And execute following command:```
pip install -r requirements.txt
```## Set to use when boot
Then create a file named "GPU_CHANGER" (or whatever you want), and give permissions to it by executing following command:
```bash
chmod u+x GPU_CHANGER
```then write following lines to GPU_CHANGER.
```bash
#!/usr/bin/env bash
python3 {write here the path of your python script} &;
```Then open "System Preferences" -> "Users & Groups" -> "Login Items", click the '+' button, find your "GPU_CHANGER", and add it.
Now all done!