- About
- How to install Argon ONE Pi Power Button & Fan Control
- Usage Instructions
- Uninstalling Argon ONE Pi Script
- LineageOS (Android) Installation
- Built With
- Acknowledgments
- Alternatives
This repository serves as an unofficial archive of the Argon 40 fan control and power button scripts for Argon ONE Raspberry Pi cases. The purpose is to preserve a copy of these scripts in case they become unavailable from the official source.
Additionally, this project includes a custom fan control script for LineageOS (Android), tested on the LineageOS TV version for Raspberry Pi.
Disclaimer: This project is not affiliated with, endorsed by, or associated with Argon 40 in any way. It is maintained independently as an end-user resource.
| Resource | Link |
|---|---|
| Website | argon40.com |
| GitHub | github.com/Argon40Tech |
| Official Script | download.argon40.com/argon1.sh |
- Raspberry Pi
- Raspberry Pi OS (previously called Raspbian) installed on microSD card
- Argon ONE Cases for Raspberry Pi
-
Connect to the internet.
-
Open "Terminal" in Raspbian.
-
Type the text below in the "Terminal" to initiate installation of Argon ONE Pi script.
curl https://download.argon40.com/argon1.sh | bash -
Reboot.
| ARGON ONE PI STATE | ACTION | FUNCTION |
|---|---|---|
| OFF | Short Press | Turn ON |
| ON | Long Press (>= 3 s) | Soft Shutdown and Power Cut |
| ON | Short Press (< 3 s) | Nothing |
| ON | Double Tap | Reboot |
| ON | Long Press (>= 5 s) | Forced Shutdown |
Upon installation of the Argon ONE Pi script by default, the settings of the Argon ONE Pi cooling system are as follows:
| CPU TEMP | FAN POWER |
|---|---|
| 55 C | 30% |
| 60 C | 55% |
| 65 C | 100% |
However, you may change or configure the FAN to your desired settings by clicking the Argon ONE Pi Config icon on your Desktop.
Or via "Terminal" by typing and following the specified format:
argonone-config
To uninstall the Argon ONE Pi script you may do so by clicking the Argon One Pi Uninstall icon on your Desktop.
You may also remove the script via "Terminal" by typing.
argonone-uninstall
Always reboot after changing any configuration or uninstallation for the revised settings to take effect.
If you are running LineageOS (Android) on your Raspberry Pi with an Argon ONE case, you can enable fan control using a separate script.
- Raspberry Pi with LineageOS installed
- Argon ONE Case
- Root access (su)
- i2c-tools available on the system
-
Connect to your device using one of the following methods:
Option A: Via SSH
- On your LineageOS device, go to Settings > Raspberry Pi settings > SSH and enable it
- Note the IP address of your device (found in Settings > Network & internet)
- From your computer, connect via SSH:
ssh <user>@<device-ip>
Option B: Via ADB
Connect a USB cable to your device and run:
adb shellOption C: Terminal emulator app
Open a terminal emulator app directly on the device.
-
Get root access:
su -
Download and run the interactive installation script:
curl -O https://raw.githubusercontent.com/bikerlfh/Argon40-ArgonOne-Fan-Script/main/lineageos/install-lineageos.sh sh install-lineageos.sh -
Follow the prompts to configure your fan settings:
- Temperature thresholds: Set the temperatures (in Celsius) at which fan speed changes
- Fan speeds: Set the fan speed percentage (0-100%) for each temperature range
- Check interval: How often (in seconds) the script checks the CPU temperature
-
Review the configuration summary and confirm installation
-
Reboot your device
During installation, you can customize the fan curve. The default settings are:
| CPU TEMP | FAN POWER |
|---|---|
| < 55°C | 0% (Off) |
| 55-60°C | 25% (Low) |
| 60-65°C | 50% (Medium) |
65°C | 100% (Full)
The check interval defaults to 120 seconds.
If you prefer to install manually without the interactive script, you can append lineageos/argon-lineageos.sh to /vendor/etc/init.d/03ssh:
su
mount -o remount,rw /vendor
mkdir -p /vendor/etc/init.d
curl -O https://raw.githubusercontent.com/bikerlfh/Argon40-ArgonOne-Fan-Script/main/lineageos/argon-lineageos.sh
cat argon-lineageos.sh >> /vendor/etc/init.d/03ssh
chmod 755 /vendor/etc/init.d/03ssh
mount -o remount,ro /vendor
reboot
After installation, the fan control starts automatically on boot. To start it manually without rebooting:
su
sh /vendor/etc/init.d/03ssh &