網頁

2022年11月25日 星期五

Jetpack L4T 35.1.0 風扇

jtop 無法在這個版本控制和查看 風扇

$ vi get_fan.sh
TEMP=`cat /sys/class/hwmon/hwmon0/temp1_input`
TEMP=$(echo "scale=2; ${TEMP}/1000" | bc)
echo Thermal=${TEMP}C

PWM=`cat /sys/class/hwmon/hwmon2/pwm1`
RPM=`cat /sys/class/hwmon/hwmon1/rpm`
echo FAN=$(( PWM * 100 / 255 ))% ${RPM}rpm


2022年11月24日 星期四

Ubuntu 開關(當)機相關命令

顯示 Linux 開機資訊指令
dmesg -T

顯示系統關機記錄和運行級別改變的日誌
last -x

/var/log/syslog
/var/log/syslog.1
The system log typically contains the greatest deal of information by default about your Ubuntu system.