Hi Matzo70
That's great.
Chook
Hi Matzo70
That's great.
Chook
How did you do it? I can't get video out of that case no matter what I did. Spent 10 hours trying with the help of the forum. Is your Argon case a V2? Do you have an SSD?
How did you do it? I can't get video out of that case no matter what I did. Spent 10 hours trying with the help of the forum. Is your Argon case a V2? Do you have an SSD?
By default video is from HDMI port 0 which is the one nearest the edge. Make sure the connector "clicks" in. Some cable connectors are a bit short and don't fit due to the case thickness. Try another cable if you have one. If you have trouble you can try loosen the circuit board and push while re-tightening to get it as close to the cable hole as possible. You may get the 0.5mm required to make it work. I bought an expensive cable which had a bulky connector housing and was making intermittent contact. I wasted hours sorting it out. I ended up filing a hole in the housing to accommodate the connector molding.
I had multiple cables and I had everything out of the case so no issue with fitment. As far as I can tell, the Argon One V2 does not work with the 10.0.1. It worked, although no audio, with 10.0.0.
Been using the case for a year with an older version. Got fed up and moved to other cases and no problem now.
Display MoreHello chook,
Well I finally got it working I actually did a typo on editing the execstart line in "argonone.service" file. I also managed to get the config file to behave in a way where you can set the temp/speed as well. This is what I did the steps below.
1. Ensure you have Pi tools and system tools installed.
2. Install the following script "curl argonone-setup-libreelec.sh | bash"
3. reboot (very important)
4.
Create a sh file and name it autostart.sh and in that file copy and paste this script and save:
place file in /storage/.config directory
#!/bin/sh
(
python /storage/.config/argononed.py
) &
5. Edit the argononed.service file in the /storage/.config/system.d directory and add this command to line 8:
ExecStart=/bin/sh -c ". /etc/profile; exec /usr/bin/python /storage/.config/argononed.py"
6. open "argonone-config" and delete all entries and add the below and save the file.
#!/bin/bash
daemonconfigfile=/storage/argononed.conf
echo "--------------------------------------"
echo "Argon One Fan Speed Configuration Tool"
echo "--------------------------------------"
echo "WARNING: This will remove existing configuration."
echo -n "Press Y to continue:"
read -n 1 confirm
echo
if [ "$confirm" = "y" ]
then
confirm="Y"
fi
if [ "$confirm" != "Y" ]
then
echo "Cancelled"
exit
fi
echo "Thank you."
get_number () {
read curnumber
re="^[0-9]+$"
if [ -z "$curnumber" ]
then
echo "-2"
return
else
if [ $curnumber -lt 0 ]
then
echo "-1"
return
elif [ $curnumber -gt 100 ]
then
echo "-1"
return
fi
echo $curnumber
return
fi
echo "-1"
return
}
loopflag=1
while [ $loopflag -eq 1 ]
do
echo
echo "Select fan mode:"
echo " 1. Always on"
echo " 2. Adjust to temperatures (55C, 60C, and 65C)"
echo " 3. Customize behavior"
echo " 4. Fixed Speed"
echo " 5. Cancel"
echo "NOTE: You can also edit argononed.conf directly"
echo -n "Enter Number (1-5):"
newmode=$( get_number )
if [[ $newmode -ge 1 && $newmode -le 5 ]]
then
loopflag=0
fi
done
echo
if [ $newmode -eq 5 ]
then
echo "Cancelled"
exit
elif [ $newmode -eq 1 ]
then
echo "#" > $daemonconfigfile
echo "# Argon One Fan Speed Configuration" >> $daemonconfigfile
echo "#" >> $daemonconfigfile
echo "# Min Temp=Fan Speed" >> $daemonconfigfile
echo 1"="100 >> $daemonconfigfile
systemctl restart argononed.service
echo "Fan always on."
exit
elif [ $newmode -eq 4 ]
then
echo "Please provide fan speed:"
echo "#" > $daemonconfigfile
echo "# Argon One Fan Speed Configuration" >> $daemonconfigfile
echo "#" >> $daemonconfigfile
echo "# Min Temp=Fan Speed" >> $daemonconfigfile
echo -n "Speed (0-100 only):"
curfan=$( get_number )
echo 1"="$curfan >> $daemonconfigfile
systemctl restart argononed.service
echo "Fan set to "$curfan
exit
elif [ $newmode -eq 2 ]
then
echo "Please provide fan speeds for the following temperatures:"
echo "#" > $daemonconfigfile
echo "# Argon One Fan Speed Configuration" >> $daemonconfigfile
echo "#" >> $daemonconfigfile
echo "# Min Temp=Fan Speed" >> $daemonconfigfile
curtemp=55
while [ $curtemp -lt 70 ]
do
errorfanflag=1
while [ $errorfanflag -eq 1 ]
do
echo -n ""$curtemp"C (0-100 only):"
curfan=$( get_number )
if [ $curfan -ge 0 ]
then
errorfanflag=0
fi
done
echo $curtemp"="$curfan >> $daemonconfigfile
curtemp=$((curtemp+5))
done
systemctl restart argononed.service
echo "Configuration updated."
exit
fi
echo "Please provide fan speeds and temperature pairs"
echo
loopflag=1
paircounter=0
while [ $loopflag -eq 1 ]
do
errortempflag=1
errorfanflag=1
while [ $errortempflag -eq 1 ]
do
echo -n "Provide minimum temperature (in Celsius) then [ENTER]:"
curtemp=$( get_number )
if [ $curtemp -ge 0 ]
then
errortempflag=0
elif [ $curtemp -eq -2 ]
then
errortempflag=0
errorfanflag=0
loopflag=0
fi
done
while [ $errorfanflag -eq 1 ]
do
echo -n "Provide fan speed for "$curtemp"C (0-100) then [ENTER]:"
curfan=$( get_number )
if [ $curfan -ge 0 ]
then
errorfanflag=0
elif [ $curfan -eq -2 ]
then
errortempflag=0
errorfanflag=0
loopflag=0
fi
done
if [ $loopflag -eq 1 ]
then
if [ $paircounter -eq 0 ]
then
echo "#" > $daemonconfigfile
echo "# Argon One Fan Speed Configuration" >> $daemonconfigfile
echo "#" >> $daemonconfigfile
echo "# Min Temp=Fan Speed" >> $daemonconfigfile
fi
echo $curtemp"="$curfan >> $daemonconfigfile
paircounter=$((paircounter+1))
echo "* Fan speed will be set to "$curfan" once temperature reaches "$curtemp" C"
echo
fi
done
echo
if [ $paircounter -gt 0 ]
then
echo "Thank you! We saved "$paircounter" pairs."
systemctl restart argononed.service
echo "Changes should take effect now."
else
echo "Cancelled, no data saved."
fi
7. Reboot then type "./argonone-config" (without quotes) and you can now control the fan to your likeing.
Thanks for your help chook I just needed a nudge.
Hi guys,
I've just followed the above instruction, but unfortunately the fan never starts when I select the Always on option.
The config file has changed correctly. Pi tools and System tools are installed, I'm on librelec 10.0.0.1
The script says it installed fine but there is an error that says "too many errors from stdin" after installing the script.
Anyone can help me?
Thank you!
Xorm What's the output when you start from SSH by exec /usr/bin/python /storage/.config/argononed.py?
Xorm What's the output when you start from SSH by exec /usr/bin/python /storage/.config/argononed.py?
Da Flex it just stuck, no output....
About this point:
5. Edit the argononed.service file in the /storage/.config/system.d directory and add this command to line 8:
ExecStart=/bin/sh -c ". /etc/profile; exec /usr/bin/python /storage/.config/argononed.py"
I need to replace the line that start with ExecStart with the one posted or do I need to add the command to the file without replace it?
At the moment I've replaced it, because if I just add it i received an errore that the file is not in unit form.
Can anyone post the complete and correct argononed.service file?
Moreover if I do systemcl status argoneoned.service this is the output:
argononed.service - Argon One Fan and Button Service
Loaded: loaded (/storage/.config/system.d/argononed.service; enabled; vendo
Active: active (running) since Wed 2022-02-09 09:32:06 CET; 6s ago
Main PID: 4553 (python)
CGroup: /system.slice/argononed.service
└─4553 /usr/bin/python /storage/.config/argononed.py
Feb 09 09:32:06 LibreELEC systemd[1]: Started Argon One Fan and Button Service.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
Don't know if this could help.
Thank you!
I need to replace the line that start with ExecStart with the one posted or do I need to add the command to the file without replace it?
At the moment I've replaced it, because if I just add it i received an errore that the file is not in unit form.
Replacing the line is right. /storage/.config/system.d/argononed.service should look like this after the edit:
Replacing the line is right. /storage/.config/system.d/argononed.service should look like this after the edit:
That's exactly how my argononed.service file looks like....
Anyone could help? It could be a hardware problem?
anyone else got this fixed?
I have same issue, the service does not work and script hangs
Almost a year later I've revisited your suggestions here and implemented them after a rebuild. Thanks.
Chook
Sorry to warm this thread up. Anyone upgraded from LE10 to LE11 and kept this working?
I plan to upgrade to LE11 and want to keep the ability to keep the fan at lower speeds.
EDIT: After some more websearch i found this: https://forum.argon40.com/t/libreelec-10…-software/803/9
Could be useful for LE11
With LE12 you will also have to "fix" Raspberry Pi Tools Add-On yourself to get the Fan & Button Service working again:
LE 12 Nightly - RPI tools add-on issue
(Until Raspberry Pi Tools Add-On will updated to aarch64 from official side)
Thanks for the headsup! This will hopefully be fixed before the first official LE12 build will be out.
You could also all request Argon40 to update their Kodi Add-On "Prototype" for supporting the case on LibreELEC.
It is currently not written in Python3 (has to me migrated) and it needs to be submitted for Pull Request to LibreELEC repository, not Kodi ones.
Their Repo:
Write to: [email protected] - maybe you could refer to request 8798 for context.
I'm not completely against having an Argon add-on in our repo, but IMHO the better approach would be for Argon to host their own repo so they can maintain the add-on and push updates to their users from a central location.
I'm not completely against having an Argon add-on in our repo, but IMHO the better approach would be for Argon to host their own repo so they can maintain the add-on and push updates to their users from a central location.
Whilst I understand this approach, and admire your 'stewardship' (if you like) of LE as a project that's doubtless delivered pleasure to hundreds of thousands, I wonder if a possibly, arguably, more pragmatic (debatably) approach than what appears to be the Torvalds approach to hardware support, might, just might, be worth considering?
Now, that paragraph may well be well and truly too 'loaded' with triggers so I do acknowledge that and would like to explain that it's not my intention to create any argy bargy.
I'm just curious if it might be possible to attempt to integrate a generic fan control mechanism into LE. Why? It's taken decades for the Torvalds approach to hardware support - make the OEMs do it - to get to the current stage of relatively good support. But that's with large OEMs. The sort of OEMs that make smaller, cheaper products for the likes of us poor sods who don't want to / cannot pay for an arguably spyware solution like an nVidia Shield running Android and not even booting straight to Kodi (natively), have proven blithely inept at supporting LE. Yet there's myriad "piece of junk code but works for me [in my non-LE edge case]" attempts to use generic PWM, I2C, non-Python / dependancy-free, ``systemd approaches out there. Seemingly indicating - to my largely ignorant perspective - that a generic approach is within the bounds of possibility. Especially if OEMs can at least dump documentation for controlling their hardware. The alternative, generic approaches just largely seem to flounder, repositories becoming archived, or only come with installation instructions for non-LE scenarios like using APT and so on.
Might it be possible to at least attempt to galvanise, centralise these efforts into a central LE managed repo to create and modify a generic fan control, perhaps power button control, add on that installs a systemd service and generally makes this whole nightmare a much more high-quality experience that is in concert with the rest of the LE experience?
Again, I reiterate, I'm feeling mild agitation (actually, tamed rage) towards these OEMs who can so easily, cheaply, seemingly create this hardware (because so much of the world's manufacturing has been killed off and centralised in their home country / language) but I'm trying to turn that feeling into at least expressing an idea that *might* be somewhat relatively productive. I apologise in advance if the agitation I'm feeling is coming through this e motion-less medium as more directed towards anybody or any project other than the OEMs selling their dubious products. Thanks for reading.