Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add CPU temp file for Raspberry Pi/linux and fix CPU detection for Raspberry Pi devices #1961

Closed
wants to merge 2 commits into from

Conversation

satmandu
Copy link

@satmandu satmandu commented Nov 18, 2021

Fixes #1960

Description

Add the location for /sys tree CPU temperature file for Raspberry Pi devices.

Tested on a Raspberry Pi 4B (works), and also on a x86_64 machine (no errors), with neofetch --cpu_temp C .

image

Also fixed CPU detection, since /proc/cpuinfo reports BCM2835 for all Raspberry Pi devices when booted into 64-bit mode as per raspberrypi/linux#3022 (comment) and raspberrypi/linux#3022 (comment) .

@satmandu
Copy link
Author

The test for a Raspberry Pi is based upon the discussion here: https://forums.raspberrypi.com/viewtopic.php?t=34678

@satmandu satmandu changed the title Add CPU temp file for Raspberry Pi/linux Add CPU temp file for Raspberry Pi/linux and fix CPU detection for Raspberry Pi devices Nov 19, 2021
@jslegers73
Copy link

Hi. I have tested it on an RPI 4B with Raspbian 11. When I use neofetch --cpu_temp C it doesn't show the temp next to the CPU. How can I get this to work. Sorry for asking.

neofetch Show resolved Hide resolved
hykilpikonna added a commit to hykilpikonna/hyfetch that referenced this pull request Aug 1, 2022
…aspberry Pi/linux and fix CPU detection for Raspberry Pi devices

Upstream PR: dylanaraps/neofetch#1961
Thanks to @satmandu

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
@satmandu satmandu closed this Aug 1, 2022
@satmandu satmandu deleted the patch-1 branch August 5, 2022 17:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raspberry Pi 4 CPU temperature
3 participants