A outra resposta está no caminho certo, mas leva à solução errada no meu caso. Para rastrear arquivos ou diretórios ausentes, use esta técnica:
$ ll /sys/class/thermal/cooling_device*
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device0 -> ../../devices/virtual/thermal/cooling_device0/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device1 -> ../../devices/virtual/thermal/cooling_device1/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device2 -> ../../devices/virtual/thermal/cooling_device2/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device3 -> ../../devices/virtual/thermal/cooling_device3/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device4 -> ../../devices/virtual/thermal/cooling_device4/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device5 -> ../../devices/virtual/thermal/cooling_device5/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device6 -> ../../devices/virtual/thermal/cooling_device6/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device7 -> ../../devices/virtual/thermal/cooling_device7/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device8 -> ../../devices/virtual/thermal/cooling_device8/
lrwxrwxrwx 1 root root 0 Feb 7 04:33 /sys/class/thermal/cooling_device9 -> ../../devices/virtual/thermal/cooling_device9/
No meu sistema, os dispositivos de resfriamento são numerados de 0
a 9
. Não há nenhum número 80
que você está tentando acessar.
Em seguida, para ver o valor de todos os 9% dos arquivoscur_state
, use:
$ cat /sys/class/thermal/cooling_device*/cur_state
0
0
0
0
0
0
0
0
-1
0
Interessante notar que cooling_device8
está definido como -1
. Não sei porquê.