Skip to content
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

No CPU or GPU temperature readings #12

Closed
Elarion245 opened this issue May 22, 2023 · 9 comments
Closed

No CPU or GPU temperature readings #12

Elarion245 opened this issue May 22, 2023 · 9 comments
Labels
enhancement New feature or request rock-4c-plus

Comments

@Elarion245
Copy link

Describe the issue you are experiencing

After Boot, System Monitor finds no CPU Temperature or GPU Temperature sensors. Indeed /sys/class/thermal ist not showing any thermal_zone* devices.

More information is available here: https://forum.radxa.com/t/rockpi-4-cpu-temperature/9530
sounds like an overlay for tsadc activation is required.

What operating system image do you use?

rock-4c-plus

What version of Home Assistant Operating System is installed?

10

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Check /sys/class/thermal after boot

Anything in the Supervisor logs that might be useful for us?

N/A

Anything in the Host logs that might be useful for us?

No particular message. Looks like a disabled feature

System information

No response

Additional information

No response

@Elarion245 Elarion245 added the bug Something isn't working label May 22, 2023
@citruz citruz added enhancement New feature or request and removed bug Something isn't working labels May 22, 2023
@citruz
Copy link
Owner

citruz commented May 22, 2023

Interesting, this only seems to apply to the 4C+. All other boards inherit from rockchip/rk3399-rock-pi-4.dtsi which includes the following snippet to activate tsadc:

&tsadc {
	status = "okay";

	/* tshut mode 0:CRU 1:GPIO */
	rockchip,hw-tshut-mode = <1>;
	/* tshut polarity 0:LOW 1:HIGH */
	rockchip,hw-tshut-polarity = <1>;
};

And indeed there are two thermal zones on my 4B+. I can try to add that into the 4C+ device tree, but I would need you to test it.

@Elarion245
Copy link
Author

Sounds great! I will test and report back once you are comfortable with an update. Thank you!

@Elarion245
Copy link
Author

Don't know if you changed something on the new beta, but it had no impact on the missing temperature sensors on the 4C+

@citruz
Copy link
Owner

citruz commented May 24, 2023

No I didn’t change anything yet, but I am planning to post a second beta with this change in the next days!

@citruz
Copy link
Owner

citruz commented May 24, 2023

@Elarion245
Copy link
Author

Elarion245 commented May 25, 2023

Works perfectly!

grafik

The systemmonitor now finds the CPU temperature. I was also able to manually read out the GPU-temp via the following sensor definition

- platform: command_line
    name: "GPU Temperature"
    command: "cat /sys/class/thermal/thermal_zone1/temp"
    unit_of_measurement: "°C"
    value_template: '{{ value | multiply(0.001) | round(1) }}'
    device_class: "temperature"

Thanks a lot for this! Now I am finally able to see if I need bigger heat-sinks or if I can put somehing on top of the housing.

@citruz
Copy link
Owner

citruz commented May 25, 2023

Oh that's cool, thanks for posting the sensor configuration! Added those two to my dashboard as well.

@Elarion245
Copy link
Author

I'm glad, if there is something that I can provide that helps you ;)

@citruz
Copy link
Owner

citruz commented May 28, 2023

@citruz citruz closed this as completed May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rock-4c-plus
Projects
None yet
Development

No branches or pull requests

2 participants