GithubHelp home page GithubHelp logo

mskjaldgaard / argon-one-case-ubuntu-20.04 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meuter/argon-one-case-ubuntu-20.04

0.0 1.0 0.0 9 KB

port of the argon one case power button and fan script for Ubuntu 20.04 on rpi 4

Shell 100.00%

argon-one-case-ubuntu-20.04's Introduction

Script for the Agon 1 case adapted for Ubuntu 20.04

Description

The argon one case is a solid case for the Raspberry Pi 4 (see https://www.argon40.com/argon-one-raspberry-pi-4-case.html)

This script has been adapted from https://download.argon40.com/argon1.sh which is designed to work with Raspbian (Raspberry OS), to work with Ubuntu 20.04.

There are mainly three changes compared to the original:

  1. need to use python3 everywhere since python2 support for GPIO has been nuked in Ubuntu 20.04.
  2. reading the temperature cannot be done using vcgencmd, but we can use the sysfs instead
  3. the list of packages on which the script depends has been adapted to Ubuntu 20.04

Install

cd /tmp/
wget https://raw.githubusercontent.com/meuter/argon-one-case-ubuntu-20.04/master/argon1.sh
# inspect script if you're paranoid
chmod a+x argon1.sh
sudo ./argon1.sh

Usage

The script will generate a bunch of scripts and config files. The main commands are

  • argonone-config to config the fan behaviour
  • argonone-uninstall to remove all the scripts and services (conf file remains though)

I also added a custom command:

  • argonone-tempmon which monitors the temerature using the linux sysfs.

Warning

This has been developped in an afternoon, and has been only tested on my Raspberry Pi 4. No issues so far, but big disclaimer nontheless: use at your own risk.

argon-one-case-ubuntu-20.04's People

Contributors

meuter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.