Skip to content

RPi 4B - 6.1.y/6.2.y branch: thermal sensor isn't recognised #5324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
puchu opened this issue Jan 16, 2023 · 6 comments
Closed

RPi 4B - 6.1.y/6.2.y branch: thermal sensor isn't recognised #5324

puchu opened this issue Jan 16, 2023 · 6 comments

Comments

@puchu
Copy link

puchu commented Jan 16, 2023

Describe the bug

up to the 6.0.y branch, it's possible to access the cpu thermal sensor value under /sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input, starting with 6.1.y, the thermal sensor device isn't recognised anymore

Steps to reproduce the behaviour

create 6.1.y/6.2.y branch kernel config with "make bcm2711_defconfig" and compile

Device (s)

Raspberry Pi 4 Mod. B

System

.

Logs

No response

Additional context

No response

@pelwell
Copy link
Contributor

pelwell commented Jan 17, 2023

Try this:

$ sudo rpi-update next
$ sudo reboot
...
$ uname -a
$ grep -s . /sys/devices/virtual/thermal/thermal_zone0/hwmon0/*

@puchu
Copy link
Author

puchu commented Jan 17, 2023

with the 6.0 branch:
$ uname -a
Linux foo 6.0.19-v8+ #175 SMP Sun Jan 15 15:21:08 CET 2023 aarch64 GNU/Linux
$ grep -s . /sys/devices/virtual/thermal/thermal_zone0/hwmon0/*
/sys/devices/virtual/thermal/thermal_zone0/hwmon0/name:cpu_thermal
/sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input:43329

with the 6.1 branch:
$ uname -a
Linux foo 6.1.6-v8+ #2 SMP PREEMPT Tue Jan 17 13:05:51 CET 2023 aarch64 GNU/Linux
$ grep -s . /sys/devices/virtual/thermal/thermal_zone0/hwmon0/*
$

@pelwell
Copy link
Contributor

pelwell commented Jan 17, 2023

Have you done what I asked you to and run sudo rpi-update next?

pi@raspberrypi:~$ grep -s . /sys/devices/virtual/thermal/thermal_zone0/hwmon0/*
/sys/devices/virtual/thermal/thermal_zone0/hwmon0/name:cpu_thermal
/sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_crit:110000
/sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input:55991
pi@raspberrypi:~$ uname -a
Linux raspberrypi 6.1.6-v8+ #1618 SMP PREEMPT Mon Jan 16 16:35:56 GMT 2023 aarch64 GNU/Linux

@puchu
Copy link
Author

puchu commented Jan 17, 2023

i couldn't use the script as it doesn't work on my distro, but i switched to the "next" firmware branch and now it works.

Thanks.

Is there a timeline when the "next" branch will become "stable"?

@pelwell
Copy link
Contributor

pelwell commented Jan 17, 2023

If rpi-update next works for you but not your own build then there is something wrong with your build or installation.

There is no timeline for changing our master branch yet, let alone our stable branch. It's notable that the kernel devs haven't selected the next LTS branch - I was expecting 6.1 to be one, but that's looking less and less likely. We won't be choosing our next master kernel until that happens.

@puchu
Copy link
Author

puchu commented Jan 17, 2023

rpi-update didn't work because of the distro i use but i read the code and switched the firmware to the "next" branch which fixed the bug for me.

thank you very much!

@puchu puchu closed this as completed Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants