lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<Armbian-Discord>
<FreAk> Sorry just got back from Costco. I got the same thing, what kernel are you on?
<Armbian-Discord>
<FreAk> `[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
<Armbian-Discord>
<FreAk> Oh right... wrong platform for dmidecode
<Armbian-Discord>
<c0rnelius> running a custom one, so I'm gonna assume if you also have that and it doesn't work then its probs not important. unless there is a trip point?
<Armbian-Discord>
<FreAk> "Woosh" factor is high on that question.
<Armbian-Discord>
<FreAk> Tiny bit of googling... thats quite the rabbit hole. Assuming kernel controlled fan thermals?
<Armbian-Discord>
<c0rnelius> i see a lot of them for temp and it may be they just need to be set with a service and script. I've never done so on this board, but I would think if it works its just like the rest ```
<Armbian-Discord>
<c0rnelius> nanopc: ~ $ ls /sys/devices/virtual/thermal/thermal_zone*
<Armbian-Discord>
<c0rnelius> this will need to be edited I'm sure.
<Armbian-Discord>
<FreAk> I'm assuming it should be any of the writable trip_point attributes
<Armbian-Discord>
<FreAk> i.e. trip_point_0_hyst
<Armbian-Discord>
<FreAk> I miss /sys/class/pwm/pwmchip1/pwm0/duty_cycle
<Armbian-Discord>
<c0rnelius> its linux. very little is static.
<Armbian-Discord>
<FreAk> Oh I know.
<Armbian-Discord>
<FreAk> Management on one side: "don't update the OS, it costs 20k for the vendor to rebuild the kernel driver" customer on the other "if you don't update your rhel version you'll be in breach of contract"
<Armbian-Discord>
<FreAk> Read the requirements closely and it says that /etc/redhat-release must say 6.4...
<Armbian-Discord>
<c0rnelius> 20K to rebuild? I need to get a job there.
<Armbian-Discord>
<FreAk> 6.3 kernel, 6.4 rhel release, packages from 6.7, that job was a mess...
<Armbian-Discord>
<FreAk> echoed 50000 into all the trip points in thermal zone 0, nothing... moving onto the next dir
<Armbian-Discord>
<c0rnelius> echo something lower... my rk3399 idles around 39
<Armbian-Discord>
<FreAk> oh interesting
<Armbian-Discord>
<FreAk> thermal_zone1/trip_point1_temp is emergency shutdown
<Armbian-Discord>
<c0rnelius> well now we know... don't mess with that one. I think thats the same on N2.
<Armbian-Discord>
<c0rnelius> try 4
<Armbian-Discord>
<FreAk> The fan DID spin though... one sec its also my network's pihole, I should probably spin up a secondary when I play with it >.<
<Armbian-Discord>
<FreAk> `Message from syslogd@orthus at Dec 10 18:44:19 ...
<Armbian-Discord>
<FreAk> kernel:[67757.568131] thermal thermal_zone1: gpu-thermal: critical temperature reached, shutting down
<Armbian-Discord>
<FreAk> Message from syslogd@orthus at Dec 10 18:44:19 ...
<Armbian-Discord>
<FreAk> kernel:[67757.568913] reboot: HARDWARE PROTECTION shutdown (Temperature too high)`
<Armbian-Discord>
<FreAk> Ah ha! its the gpu
<Armbian-Discord>
<FreAk> Ok, back in thermal_zone0, trip_point types 0 & 1 are passive, 2 is critical and 3 and 4 are active.
<Armbian-Discord>
<FreAk> I'm thinking mess with the last two
<Armbian-Discord>
<FreAk> There it is! echo 30000 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_4_temp
<Armbian-Discord>
<FreAk> fan spun right up
<Armbian-Discord>
<FreAk> Interesting... reset 4, then did the same with 3, but its spinning slower.
<Armbian-Discord>
<FreAk> I think I understand this now
<Armbian-Discord>
<FreAk> Thank you @c0rnelius your assistance has been enlightening!
<Armbian-Discord>
<c0rnelius> @FreAk you are very welcome.
<Armbian-Discord>
<FreAk> Would you like me to submit the modded script back to you for publishing? I don't have a github due to employer requirements, they get first stab at any code I write that I want to publish. BUT, I did find forking and submitting back to the OG author is a "blessed" way to get around it.
<Armbian-Discord>
<c0rnelius> if you want to, sure. I also took note of what you said worked. So its not really a game changer if you decide against it or don't have the time. I appreciate the ask.
<Armbian-Discord>
<FreAk> grumble its less adding support for the nanopc-t4 and more writing a whole new script since there are two configurable trip points.
<Armbian-Discord>
<balbes150> On T4, fan control is performed at the core level (all the necessary functionality is in the core). No manual scripts are needed. If you are not satisfied with the modes, change the temperature trigger points.
Armbian-Discord has quit [Remote host closed the connection]