[-- Attachment #1: Type: text/plain, Size: 408 bytes --] what is the trick to getting the cpu temperature to read correctly in stats in a drawterm session? i have googled quite a bit on this topic and can't find anything helpful. thanks! ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc8476d0fe749cf6c-M59b4b4eeec20c47e35736007 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 900 bytes --]
I don't believe 9legacy '#c/sysstat' (/sys/src/9/port/devcons.c) supports temperature reporting. If both drawterm's '#c/sysstat' and Plan 9's '#c/sysstat' implement it, they would need to agree on the format, because when using drawterm (as opposed to a real Plan 9 term), the commands run on the cpu but use the namespace exported by drawterm. On Tue, Feb 14, 2023 at 1:06 PM <jimerickso@gmail.com> wrote: > > what is the trick to getting the cpu temperature to read correctly in stats in a drawterm session? i have googled quite a bit on this topic and can't find anything helpful. thanks! > 9fans / 9fans / see discussions + participants + delivery options Permalink ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc8476d0fe749cf6c-Meeed6f8c97015fa9abab97ac Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
9legacy supports temperature reporting on x86, using /dev/cputemp. -- David du Colombier ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc8476d0fe749cf6c-M2a3473706c2d1e85ad580680 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #1: Type: text/plain, Size: 846 bytes --] Resending this through the web interface because my email was dropped. Temperature stats are read from /dev/cputemp. How that file is served depends on your system. On my machine the file is just in arch(3), other machines use acpi(8) to serve this. You just need to ensure this file is in the namespace stats(1) is run within. For getting the temperature of the machine you are connecting to, either: % bind -a '#P' /dev # if your machine is like mine % aux/acpi # if your machine uses acpi You will likely have more success in just cracking open the code and reading it then you will with google. moody ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc8476d0fe749cf6c-Meb226150653c010c57b2a088 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1521 bytes --]
thank you moody! 'bind -a '#P' /dev' did the trick! i appreciate the feedback. thanks to all for your time. On Tue, Feb 14, 2023 at 4:13 PM <moody@posixcafe.org> wrote: > > Resending this through the web interface because my email was dropped. > > Temperature stats are read from /dev/cputemp. How that file is served depends on your system. > On my machine the file is just in arch(3), other machines use acpi(8) to serve this. > You just need to ensure this file is in the namespace stats(1) is run within. > > > For getting the temperature of the machine you are connecting to, either: > % bind -a '#P' /dev # if your machine is like mine > % aux/acpi # if your machine uses acpi > > You will likely have more success in just cracking open the code and reading it then you will with google. > > moody > > > 9fans / 9fans / see discussions + participants + delivery options Permalink ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc8476d0fe749cf6c-Mc4d14e19a0d57e11c6b4888c Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Cool! Thanks. FYI, the patch is in http://9legacy.org/patch.html, but not on sources (not applied to pc/devarch.c and not in the patch directory) On Tue, Feb 14, 2023 at 2:06 PM David du Colombier <0intro@gmail.com> wrote: > > 9legacy supports temperature reporting on x86, using /dev/cputemp. > > -- > David du Colombier ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc8476d0fe749cf6c-M032adb2bef6abb8bcc189e8c Delivery options: https://9fans.topicbox.com/groups/9fans/subscription