Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #230771 > unrolled thread
| Started by | Gene Heskett <gheskett@shentel.net> |
|---|---|
| First post | 2021-01-18 05:50 +0100 |
| Last post | 2021-01-18 21:20 +0100 |
| Articles | 15 — 7 participants |
Back to article view | Back to linux.debian.user
What is the command to access the temp sensors in a rpi4? Gene Heskett <gheskett@shentel.net> - 2021-01-18 05:50 +0100
Re: What is the command to access the temp sensors in a rpi4? deloptes <deloptes@gmail.com> - 2021-01-18 09:20 +0100
Re: What is the command to access the temp sensors in a rpi4? Gene Heskett <gheskett@shentel.net> - 2021-01-18 10:40 +0100
Re: What is the command to access the temp sensors in a rpi4? deloptes <deloptes@gmail.com> - 2021-01-18 12:20 +0100
Re: What is the command to access the temp sensors in a rpi4? Anssi Saari <as@sci.fi> - 2021-01-18 16:40 +0100
Re: What is the command to access the temp sensors in a rpi4? Stefan Monnier <monnier@iro.umontreal.ca> - 2021-01-18 18:20 +0100
Re: What is the command to access the temp sensors in a rpi4? Gene Heskett <gheskett@shentel.net> - 2021-01-18 19:40 +0100
Re: What is the command to access the temp sensors in a rpi4? Gene Heskett <gheskett@shentel.net> - 2021-01-18 19:50 +0100
Re: What is the command to access the temp sensors in a rpi4? Stefan Monnier <monnier@iro.umontreal.ca> - 2021-01-18 23:50 +0100
Re: What is the command to access the temp sensors in a rpi4? Stefan Monnier <monnier@iro.umontreal.ca> - 2021-01-18 19:50 +0100
Re: What is the command to access the temp sensors in a rpi4? Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2021-01-18 20:20 +0100
Re: What is the command to access the temp sensors in a rpi4? "Miguel A. Vallejo" <ea4eoz@gmail.com> - 2021-01-18 20:30 +0100
Re: What is the command to access the temp sensors in a rpi4? Gene Heskett <gheskett@shentel.net> - 2021-01-18 21:10 +0100
Re: What is the command to access the temp sensors in a rpi4? "007@caiway.net" <007@caiway.net> - 2021-01-18 21:10 +0100
Re: What is the command to access the temp sensors in a rpi4? Gene Heskett <gheskett@shentel.net> - 2021-01-18 21:20 +0100
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-01-18 05:50 +0100 |
| Subject | What is the command to access the temp sensors in a rpi4? |
| Message-ID | <ByuEh-8i-1@gated-at.bofh.it> |
Greetings all; ISTR there is a "vcg*" sort of thing to read that stuff, but have lost it in the fog of time. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
[toc] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2021-01-18 09:20 +0100 |
| Message-ID | <ByxVv-2f8-5@gated-at.bofh.it> |
| In reply to | #230771 |
Gene Heskett wrote: > ISTR there is a "vcg*" sort of thing to read that stuff, but have lost it > in the fog of time. > > Cheers, Gene Heskett Hi Gene, why not ask on the RPI list - I think you are subscribed there. Actually at the moment there is a discussion around this topic going on. vcgencmd get_throttled https://www.raspberrypi.org/forums/viewtopic.php?t=190584
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-01-18 10:40 +0100 |
| Message-ID | <ByzaW-2TT-3@gated-at.bofh.it> |
| In reply to | #230779 |
On Monday 18 January 2021 03:11:56 deloptes wrote: > Gene Heskett wrote: > > ISTR there is a "vcg*" sort of thing to read that stuff, but have > > lost it in the fog of time. > > > > Cheers, Gene Heskett > > Hi Gene, > why not ask on the RPI list - I think you are subscribed there. > Actually at the moment there is a discussion around this topic going > on. > > vcgencmd get_throttled 0x0 > https://www.raspberrypi.org/forums/viewtopic.php?t=190584 That "forum" is NOT a list. And I've changed browsers, losing all my passwds. So while I can read it, I can't post. And I am wondering where the man page for vcgencmd might be? Searching for that, I found a page that describes it, then found a blog by Jeff Geerling on make a pi4 boot from an ssd, which killed a good sized tree, but might get me going there. But first, back to bed, swearing at an electric blanket with a flaky stat. I'm having trouble with a perl module that amanda uses, and was up to see if the backup actually worked. It did. Did I mention I hate trying to run down an intermittent that takes a notion to work, and spits out missleading errors when it doesn't? Gonna need a longer wall someday. Thanks deloptes Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2021-01-18 12:20 +0100 |
| Message-ID | <ByAJH-3Wj-11@gated-at.bofh.it> |
| In reply to | #230787 |
Gene Heskett wrote: >> vcgencmd get_throttled > 0x0 means no trottle occured (see below) >> https://www.raspberrypi.org/forums/viewtopic.php?t=190584 > > That "forum" is NOT a list. And I've changed browsers, losing all my > passwds. So while I can read it, I can't post. > I mean the raspberry pi forum hosted on comp.sys - sorry for misleading you > And I am wondering where the man page for vcgencmd might be? > from what I see it is not exactly documented > Searching for that, I found a page that describes it, then found a blog > by Jeff Geerling on make a pi4 boot from an ssd, which killed a good > sized tree, but might get me going there. > yes, the usual open source & free software stuff https://www.8086.net/tools/decode-get_throttled?d=0x0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | └ Under-voltage detected | | | | | | | | | | | | | | | | | | └ Arm frequency capped | | | | | | | | | | | | | | | | | └ Currently throttled | | | | | | | | | | | | | | | | └ Soft temperature limit active | | | | | | | | | | | | | | | └ | | | | | | | | | | | | | | └ | | | | | | | | | | | | | └ | | | | | | | | | | | | └ | | | | | | | | | | | └ | | | | | | | | | | └ | | | | | | | | | └ | | | | | | | | └ | | | | | | | └ | | | | | | └ | | | | | └ | | | | └ | | | └ Under-voltage has occurred | | └ Arm frequency capped has occurred | └ Throttling has occurred └ Soft temperature limit has occurred
[toc] | [prev] | [next] | [standalone]
| From | Anssi Saari <as@sci.fi> |
|---|---|
| Date | 2021-01-18 16:40 +0100 |
| Message-ID | <ByENk-6jx-9@gated-at.bofh.it> |
| In reply to | #230771 |
Gene Heskett <gheskett@shentel.net> writes: > Greetings all; > > ISTR there is a "vcg*" sort of thing to read that stuff, but have lost it > in the fog of time. vcgencmd measure_temp Or has that changed? I don't have a Pi 4, just a 3B and 3B+.
[toc] | [prev] | [next] | [standalone]
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| Date | 2021-01-18 18:20 +0100 |
| Message-ID | <ByGm5-7l7-5@gated-at.bofh.it> |
| In reply to | #230771 |
> ISTR there is a "vcg*" sort of thing to read that stuff, but have lost it
> in the fog of time.
If the kernel is sane, then I think that the following command should
give you this info:
sensors
it comes from the `lm-sensors` package.
Stefan
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-01-18 19:40 +0100 |
| Message-ID | <ByHBv-804-5@gated-at.bofh.it> |
| In reply to | #230797 |
On Monday 18 January 2021 12:15:00 Stefan Monnier wrote: > > ISTR there is a "vcg*" sort of thing to read that stuff, but have > > lost it in the fog of time. > > If the kernel is sane, then I think that the following command should > give you this info: > > sensors This kernel isn't "sane": 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT > it comes from the `lm-sensors` package. Returns a null. > > Thank you, Stefan Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-01-18 19:50 +0100 |
| Message-ID | <ByHLb-83m-1@gated-at.bofh.it> |
| In reply to | #230799 |
On Monday 18 January 2021 13:39:36 Stefan Monnier wrote: > >> > ISTR there is a "vcg*" sort of thing to read that stuff, but have > >> > lost it in the fog of time. > >> > >> If the kernel is sane, then I think that the following command > >> should give you this info: > >> sensors > > > > This kernel isn't "sane": 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT > > This doesn't say whether it's sane or not. The question is whether > the driver for the temp sensor is using the standard kernel > infrastructure or whether it reinvented the wheel. > Its armhf Stefan, not wintel. lm_sensors is built for it, and its installled by buster but apparently the kernel abi is different. sensors-detect does not detect it. > Stefan Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
[toc] | [prev] | [next] | [standalone]
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| Date | 2021-01-18 23:50 +0100 |
| Message-ID | <ByLvr-1T3-1@gated-at.bofh.it> |
| In reply to | #230800 |
> Its armhf Stefan, not wintel.
Shouldn't make any difference, except for the fact that a lot of
development in the ARM world is done in a kind of "cowboy" way: take
some version of the kernel and then hack at it until it does what they
want (with no regards for what will happen in the longer term, no
attention paid to making sure the changes can be folded back into the
official kernel, ...).
> lm_sensors is built for it, and its installled by buster but
> apparently the kernel abi is different. sensors-detect does not
> detect it.
It works fine on systems using an Allwinner A20 SoC (and I suspect most
other Allwinner chipsets supported by the Linux kernel), so clearly it
can work on `armhf`.
Stefan
[toc] | [prev] | [next] | [standalone]
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| Date | 2021-01-18 19:50 +0100 |
| Message-ID | <ByHLb-83m-3@gated-at.bofh.it> |
| In reply to | #230799 |
>> > ISTR there is a "vcg*" sort of thing to read that stuff, but have
>> > lost it in the fog of time.
>> If the kernel is sane, then I think that the following command should
>> give you this info:
>> sensors
> This kernel isn't "sane": 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT
This doesn't say whether it's sane or not. The question is whether the
driver for the temp sensor is using the standard kernel infrastructure
or whether it reinvented the wheel.
Stefan
[toc] | [prev] | [next] | [standalone]
| From | Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> |
|---|---|
| Date | 2021-01-18 20:20 +0100 |
| Message-ID | <ByIee-8sM-23@gated-at.bofh.it> |
| In reply to | #230799 |
On 18/01/2021 15:35, Gene Heskett wrote: > On Monday 18 January 2021 12:15:00 Stefan Monnier wrote: > >>> ISTR there is a "vcg*" sort of thing to read that stuff, but have >>> lost it in the fog of time. >> >> If the kernel is sane, then I think that the following command should >> give you this info: >> >> sensors > This kernel isn't "sane": 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT > >> it comes from the `lm-sensors` package. > Returns a null. >> >> In my RPI4, running stock Debian from https://raspi.debian.net/, sensors works: $ sensors cpu_thermal-virtual-0 Adapter: Virtual device temp1: +43.8°C (crit = +90.0°C) -- Linux é user-friendly e não idiota friendly. Se você não entende isso, use o Windows! Eduardo M KALINOWSKI eduardo@kalinowski.com.br
[toc] | [prev] | [next] | [standalone]
| From | "Miguel A. Vallejo" <ea4eoz@gmail.com> |
|---|---|
| Date | 2021-01-18 20:30 +0100 |
| Message-ID | <ByInT-8vI-1@gated-at.bofh.it> |
| In reply to | #230802 |
Do not forget for sensors to work you must first run sensors-detect Greetings El lun, 18 ene 2021 a las 20:11, Eduardo M KALINOWSKI (<eduardo@kalinowski.com.br>) escribió: > > On 18/01/2021 15:35, Gene Heskett wrote: > > On Monday 18 January 2021 12:15:00 Stefan Monnier wrote: > > > >>> ISTR there is a "vcg*" sort of thing to read that stuff, but have > >>> lost it in the fog of time. > >> > >> If the kernel is sane, then I think that the following command should > >> give you this info: > >> > >> sensors > > This kernel isn't "sane": 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT > > > >> it comes from the `lm-sensors` package. > > Returns a null. > >> > >> > > In my RPI4, running stock Debian from https://raspi.debian.net/, sensors > works: > > $ sensors > cpu_thermal-virtual-0 > Adapter: Virtual device > temp1: +43.8°C (crit = +90.0°C) > > > > -- > Linux é user-friendly e não idiota friendly. Se você não entende isso, > use o Windows! > > Eduardo M KALINOWSKI > eduardo@kalinowski.com.br >
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-01-18 21:10 +0100 |
| Message-ID | <ByJ0B-xZ-15@gated-at.bofh.it> |
| In reply to | #230802 |
On Monday 18 January 2021 13:55:44 Eduardo M KALINOWSKI wrote: > On 18/01/2021 15:35, Gene Heskett wrote: > > On Monday 18 January 2021 12:15:00 Stefan Monnier wrote: > >>> ISTR there is a "vcg*" sort of thing to read that stuff, but have > >>> lost it in the fog of time. > >> > >> If the kernel is sane, then I think that the following command > >> should give you this info: > >> > >> sensors > > > > This kernel isn't "sane": 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT > > > >> it comes from the `lm-sensors` package. > > > > Returns a null. > > In my RPI4, running stock Debian from https://raspi.debian.net/, > sensors works: > > $ sensors > cpu_thermal-virtual-0 > Adapter: Virtual device > temp1: +43.8°C (crit = +90.0°C) After running sensors-detect, I get: rpi_volt-isa-0000 Adapter: ISA adapter in0: N/A So I assume that module wasn't built. I built that kernel. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
[toc] | [prev] | [next] | [standalone]
| From | "007@caiway.net" <007@caiway.net> |
|---|---|
| Date | 2021-01-18 21:10 +0100 |
| Message-ID | <ByJ0B-xZ-11@gated-at.bofh.it> |
| In reply to | #230771 |
On Sun, 17 Jan 2021 23:47:48 -0500
Gene Heskett <gheskett@shentel.net> wrote:
> Greetings all;
> Cheers, Gene Heskett
cpu=$(</sys/class/thermal/thermal_zone0/temp) ; echo -e "CPU
temperature: $((cpu/100)) Celsius" | sed 's/\B[0-9]\{1\}\>/,&/'
This oneliner works on pi3 and pi4
I use this oneliner for some color:
cpu=$(</sys/class/thermal/thermal_zone0/temp) ; echo -e "CPU
temperature: \e[31m $((cpu/100)) Celsius \e[0m" | sed
's/\B[0-9]\{1\}\>/,&/'
Or in a script:
#!/bin/bash
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo -e "CPU temperatuur: \e[31m $((cpu/100)) Celsius \e[0m" | sed
's/\B[0-9]\{1\}\>/,&/'
#eof
hope this helps
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-01-18 21:20 +0100 |
| Message-ID | <ByJai-CA-21@gated-at.bofh.it> |
| In reply to | #230805 |
On Monday 18 January 2021 14:47:03 007@caiway.net wrote:
> On Sun, 17 Jan 2021 23:47:48 -0500
>
> Gene Heskett <gheskett@shentel.net> wrote:
> > Greetings all;
> >
> > Cheers, Gene Heskett
>
> cpu=$(</sys/class/thermal/thermal_zone0/temp) ; echo -e "CPU
> temperature: $((cpu/100)) Celsius" | sed 's/\B[0-9]\{1\}\>/,&/'
>
> This oneliner works on pi3 and pi4
>
>
> I use this oneliner for some color:
> cpu=$(</sys/class/thermal/thermal_zone0/temp) ; echo -e "CPU
> temperature: \e[31m $((cpu/100)) Celsius \e[0m" | sed
> 's/\B[0-9]\{1\}\>/,&/'
>
> Or in a script:
>
> #!/bin/bash
> cpu=$(</sys/class/thermal/thermal_zone0/temp)
> echo -e "CPU temperatuur: \e[31m $((cpu/100)) Celsius \e[0m" | sed 's/\B[0-9]\{1\}\>/,&/'
> #eof
>
> hope this helps
it does, thanks.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web