Coder Social home page Coder Social logo

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

Contributors

apoclyps avatar estshorter avatar falkben avatar hivehand avatar meuter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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

zombie process is detected

After installing this script, "There is 1 zombie process" is shown in the welcome message(motd).

After debugging, I found that the cause was the following line.

echo ' temp = os.popen("cat /sys/class/thermal/thermal_zone0/temp").readline()' >> $powerbuttonscript

I think just using open() is enough like this:

echo '		with open("/sys/class/thermal/thermal_zone0/temp", "r") as fp:' >> $powerbuttonscript
echo '			temp = fp.readline()' >> $powerbuttonscript

Environment

  • Ubuntu 20.04.1 LTS

constant temperature emitted by tempmon

The current temperature is evaluated at install time and inserted into the tempmon script instead of the command to get the current temperature, here: https://github.com/meuter/argon-one-case-ubuntu-20.04/blob/master/argon1.sh#L595

For instance, my script, as installed, looks like:

cat /usr/bin/argonone-tempmon
#! /usr/bin/env bash

while true; do
    date
    echo "47°C"
    sleep 1
    # Go back up two lines.
    echo -ne "\033[2A"
done

instead of what it should be which is

cat /usr/bin/argonone-tempmon
#! /usr/bin/env bash

while true; do
    date
    echo "$(( $(cat /sys/class/thermal/thermal_zone0/temp) / 1000 ))°C"
    sleep 1
    # Go back up two lines.
    echo -ne "\033[2A"
done

Very useful script, one request

Thanks for this script, it's extremely useful. I would like to request if there could be a command to know the current fan speed.

argononed.py crashed with FIleNotFoundError in __main__

Hi,

Thank you for creating this useful tool!

I'm having an issue which I suspect means the fans aren't switching on. The tempmon command seems to work fine, but every time I boot up my device I'm getting this error reported to me.

Traceback:
File "/usr/bin/argoned.py", line 11, in <module>
  bus = smbus.SMBus(1)
FileNotFoundError: [Errno 2] No such file or directory.

If it helps, I'm running Ubuntu 20.10 on a Pi 4B (4GB), booting with Bootberry.

I realize this script is for 20.04, but I'm wondering if there's a way to modify it to work with 20.10?

Temp reading

I tested this on Ubuntu 20.10 (Desktop) on the Pi 4, and when I run the argonone-tempmon command I am getting reading in the 36000 range ( 36024, 35537 ) etc. Are the numbers supposed to show up like that?

Once installed fan keeps running forever even after poweroff

Hi, I noticed a problem:
Once the script install the fan just keeps running forever, even after my rpi turned off. It stopped only after I unplugged the power supply. Then after I plugged it back in it imminently started the fan even when the rpi was still down.

argonone-config dosent affect it in any way.

Tested on:
Ubuntu 18.04 LTS 64 bit
Raspberri Pi OS 64 bit.

21.10: fanconfig and tempmon work, but power off does not.

Thank you for providing this script, I really appreciate it! Apologies if this is a dumb question, I'm not super well versed in this.

I recently upgraded my Argon One with an SSD, but in order to get it to boot from USB I had to upgrade from 20.04 LTS to a more recent Ubuntu version. I chose to just go with the most recent version for now (21.10).

The good news is that it seems fanconfig and tempmon still work just fine, but the button sadly no longer turns the Pi off. Does the script need some adjustments in order for the button to work in 21.10? And if so, can you shed some light on what I need to adjust?

Thanks in advance!

hardcoded use lxterminal in the .desktop files.

The .desktop files generated by the script hardcode Exec='lxterminal ...; which does not work on ubuntu-mate for instance.
Maybe use Terminal=true and run the script directly? to be tested...

(initially reported by Joel W.)

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.