/proc/acpi/thermal_zone/ has gone in Linux kernel 2.6.37

http://web.archiveorange.com/archive/v/nsNbdNdY5GZolxSFepLx

ok, i have installed Slackware 13.37 RC-π on my asus-eeePC 4g surf
and there was no "/proc/acpi/thermal_zone/"
i couldn't read the temperature of my cpu.
so i've found the link above and tried:
cat /sys/class/thermal/thermal_zone0/temp
it works.

cat /sys/class/thermal/thermal_zone0/temp | awk '{print substr($0,0,2)"°C"}'
will print out fine.

1 коментар: