Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7605

Raspberry Pi OS • Re: What is the new command to read CPU temp on Bookworm?

$
0
0
It used to be that one could read the CPU temp using "vgencmd" command. But, looks like it is not there anymore on a fresh Bookworm install.

What is the new way of doing this?
There is no new way. vcgencmd is present on all of my recent bookworm installs.
I don't want to install "libraspberrypi-bin", because it tries to uninstall whole bunch of existing apps.
I don't have libraspberrypi-bin installed.

Have you done any customisations to your install? Is it a straight Raspberry Pi OS installation? 64-bit or 32-bit?

As an alternative you could use the /sys interface

Code:

rpdom@raspi9:~ $ vcgencmd measure_temp temp=46.7'Crpdom@raspi9:~ $ cat /sys/class/thermal/thermal_zone0/temp46160
That gives a slightly different temperature reading, I can't remember the exact reason for that, but it's close enough.

Statistics: Posted by rpdom — Sun Aug 10, 2025 10:01 am



Viewing all articles
Browse latest Browse all 7605

Trending Articles