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

RPI high temperature when system idle #1743

Closed
nyx-rattapoom opened this issue May 2, 2018 · 16 comments
Closed

RPI high temperature when system idle #1743

nyx-rattapoom opened this issue May 2, 2018 · 16 comments

Comments

@nyx-rattapoom
Copy link

Required Information:

  • DietPi Version : 6.7
  • SBC Device : RPi 1 B
  • Distro: Linux raspberry 4.14.37+ Octoprint/Odroid C2 #1111 Thu Apr 26 13:33:13 BST 2018 armv6l GNU/Linux

I recent change OS from raspbian-lite to DietPI. After fresh install I saw cpu abnormal temperature.
In raspbian cpu temperature idle ~42-45 C but on DietPI it idle ~60 C.
I sudo cpu command it told min-max cpu frequency is the same (700mhz)
I think it issue about cpu scaling, so could I have any advice ?

@Fourdee
Copy link
Collaborator

Fourdee commented May 2, 2018

@nyx-rattapoom

Thanks for the report, we'll run tests to see if we can replicate.

@ghost
Copy link

ghost commented May 2, 2018

@Fourdee @nyx-rattapoom Just testing this on a old RPiBPlus.... nothing stranged happens there with latest DietPi in Idle mode. CPU is around 43 degrees while doing nothing.

@nyx-rattapoom What else have you installed what could causes the idle so high?

@Fourdee
Copy link
Collaborator

Fourdee commented May 2, 2018

@SuBLiNeR

Many thanks 👍

@nyx-rattapoom What else have you installed what could causes the idle so high?

Yep, please also check htop, could be a hardware issue causing 100% cpu.

@ghost
Copy link

ghost commented May 2, 2018

@Fourdee Nothing to thank me... It was me a pleasure!

Normally this device runs a MinecraftPE Server and it almost is very low on temperature; around 56 degrees while my son is playing on it.
I did a clean install for only testing this... so it must be a hardware failure or something in the background causing this.

I'm really looking forward on hearing about what else is maybe installed.

@nyx-rattapoom
Copy link
Author

@SuBLiNeR I'm not sure. It same model. Please run lscpu and sudo cpu for me.

dietpi@raspberry:~$ lscpu
Architecture:          armv6l
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
Model:                 7
Model name:            ARMv6-compatible processor rev 7 (v6l)
CPU max MHz:           900.0000
CPU min MHz:           700.0000
BogoMIPS:              698.95
Flags:                 half thumb fastmult vfp edsp java tls

@Fourdee I reinstall dietpi without addition install result is the same.

dietpi@raspberry:~$ uptime
 05:44:50 up 1 day, 19:53,  1 user,  load average: 0.04, 0.03, 0.00
dietpi@raspberry:~$ sudo cpu
[  OK  ] Root access verified.

 ───────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ───────────────
 Architecture |     armv6l
 Temp         |     58'c : 136'f  | Running warm, but safe.
 Governor     |     ondemand
 Throttle up  |     50% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      900 MHz      700 MHz    900 MHz

I don't know why Min Freq is 700 MHz.
I have orange pi zero. It running with dietpi but Min freq is 240 Mhz maybe it cause this issue ?

screen shot 2018-05-04 at 11 44 00

@Fourdee
Copy link
Collaborator

Fourdee commented May 4, 2018

@nyx-rattapoom

I have orange pi zero. It running with dietpi but Min freq is 240 Mhz maybe it cause this issue ?

RPi 1 clock steps are 700MHz and 900MHz. Below that is possible, but unstable. Either way, the high CPU temp should not occur at 700MHz idle.

Does the CPU feel hot to the touch? Roughly the same temp?

Please paste results:

cat /sys/class/thermal/thermal_zone0/temp
vcgencmd measure_temp

@ghost
Copy link

ghost commented May 4, 2018

@nyx-rattapoom this how it looks to me... while running a Nukkit-Server:

bildschirmfoto 2018-05-04 um 19 33 32

this is how htop looks alike

bildschirmfoto 2018-05-04 um 19 31 41

Looks to me like the same.... only that the BogoMIPS is different...

cpu shows me this:

bildschirmfoto 2018-05-04 um 19 35 02

and there is no cooling fan or heatsink on top of it. i built it with my son with "LEGO" around....

aaannnnd to second this, it runs on the latest available kernel... not 4.14.37 . It is running on 4.14.34.

bildschirmfoto 2018-05-04 um 19 38 40

I think the latest kernel update you may did via rpi-update maybe the problem. It seems there are some instances which causes the high temperature at all. You should try at least a clean install with not using the rpi-update as of now.

@ghost
Copy link

ghost commented May 4, 2018

@Fourdee the result of your command is at least:

bildschirmfoto 2018-05-04 um 20 04 20

So, my thoughts are about following:

  • latest kernel is buggy
  • it may really a fault of the SBC itself... (in worst case) as of wrong used PSU (may or not)

@ghost
Copy link

ghost commented May 5, 2018

@ALL So i did some testing here with the latest kernel 4.14.37.... it seems that this kernel is not stable after doing rpi-update at least. it crahses my whole home networking.

Just to inform, do not update as of now via rpi-update!

@MichaIng
Copy link
Owner

MichaIng commented May 5, 2018

@SuBLiNeR
Just for the record: rpi-update is considered to be a developer tool and might always be unstable in certain environments. In production system one should never use it, as far as there are no certain issues with the latest stable release (APT packages raspberrypi-kernel/bootloader/bin/0) that got fixed with github master: https://github.com/Hexxeh/rpi-firmware

But yeah, I use it also 🤣, maybe 4.14.39 released an hour ago fixes your network issue with this?
kernel: lan78xx: PHY DSP registers initialization to address EEE link drop issues with long cables No idea, better stay with the APT packed firmware to avoid running into trouble by times.

@ghost
Copy link

ghost commented May 5, 2018

@MichaIng I know.... but he was talking about 4.14.37+ which i hadn't... so i gave it a try.

Offtopic:

Result was than as explained above. aaaannnndd... normally i'm using the dev kernels with no such problems since 2 years. It is now the second time that my whole network was being killed with this kernel. Just to let you know.... 🔢

@ghost
Copy link

ghost commented May 5, 2018

@nyx-rattapoom btw. as i told you, start fresh without using rpi-update or kernel updating. System runs for me stable since 3 hours between 43 - 45 degrees while my son is playing on it.

If it isn't a harware failure it should be okay.

@nyx-rattapoom
Copy link
Author

nyx-rattapoom commented May 6, 2018

@Fourdee

dietpi@raspberry:~$ cat /sys/class/thermal/thermal_zone0/temp
59452
dietpi@raspberry:~$ vcgencmd measure_temp
temp=60.0'C
dietpi@raspberry:~$ 

@SuBLiNeR OK, After that I will reinstall dietpi without rpi-update and post result again.

Update
After reinstall without rpi-update result is the same I will reverse back to raspbian-lite for a while.

@nyx-rattapoom
Copy link
Author

So I installed raspbian-lite without addition.

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 armv6l GNU/Linux

pi@raspberrypi:~ $ vcgencmd version
Apr 16 2018 18:16:56 
Copyright (c) 2012 Broadcom
version af8084725947aa2c7314172068f79dad9be1c8b4 (clean) (release)

pi@raspberrypi:~ $ vcgencmd measure_temp
temp=46.1'C

from vcgencmd version output same as dietpi but temperature lower than 10'C.
So I cann't find the reason why, And now I'm done.

@Fourdee
Copy link
Collaborator

Fourdee commented May 6, 2018

@nyx-rattapoom

Interesting, thanks for posting the results.

Its possible a incorrect CPU clock is being applied based on the board revision number and detection.

Please can you paste results, we'd like to verify the RPi revision number:

grep -m1 'Revision' /proc/cpuinfo | awk '{print $3}'

And if you run DietPi again, please paste results:

cat /DietPi/config.txt | grep freq

NB: for RPi 1 devices, we automatically set the CPU max clock to 900MHz (up from 700MHz default), based on the following:
https://www.raspberrypi.org/blog/introducing-turbo-mode-up-to-50-more-performance-for-free/

900MHz is considered a "safe clock" for the RPi 1.

If this is indeed the issue, you can disable the 900MHz clock from dietpi-config > Performance options > Overclocking

@Fourdee
Copy link
Collaborator

Fourdee commented May 11, 2018

@nyx-rattapoom

So I cann't find the reason why, And now I'm done.

I'll mark this as closed. Please reopen if you are wiling to verify https://github.com/Fourdee/DietPi/issues/1743#issuecomment-386876775 and still require assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants