paleofetch icon indicating copy to clipboard operation
paleofetch copied to clipboard

CPU 0mhz

Open Titaniumtown opened this issue 4 years ago • 11 comments

I'm on arch linux arm w/ a raspberry pi 4. And now when I run paleofetch, the cpu stats are displayed as: CPU: (0) @ 0MHz

Titaniumtown avatar May 01 '20 21:05 Titaniumtown

Does anyone know what could be causing the issue?

Titaniumtown avatar May 02 '20 20:05 Titaniumtown

My guess would be that /proc/cpuinfo exists on the system, but the file is empty. Can you show me the results of cat /proc/cpuinfo and cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq?

ss7m avatar May 02 '20 20:05 ss7m

cat /proc/cpuinfo: `processor : 0 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 1 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 2 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 3 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2835 Revision : c03111 Serial : 1000000066d1aaf4 Model : Raspberry Pi 4 Model B Rev 1.1`

/sys/devices/system/cpu/cpu0/cpufreq Doesn't exist.

Titaniumtown avatar May 02 '20 21:05 Titaniumtown

The reason paleofetch isn't detecting your cpu is because your cpuinfo doesn't have a model name field. Does neofetch accurately display your CPU?

ss7m avatar May 03 '20 18:05 ss7m

No, it's completely blank

Titaniumtown avatar May 03 '20 23:05 Titaniumtown

Screenshot from 2020-05-03 19-05-26

Titaniumtown avatar May 03 '20 23:05 Titaniumtown

that's a screen shot :)

Titaniumtown avatar May 03 '20 23:05 Titaniumtown

latest commit should make it behave like neofetch in your situation

ss7m avatar May 04 '20 00:05 ss7m

Neofetch displays: (btw I installed bedrock linux on it now) Screenshot from 2020-05-03 20-46-01

Titaniumtown avatar May 04 '20 00:05 Titaniumtown

It shows my cpu!

Titaniumtown avatar May 04 '20 00:05 Titaniumtown

neofetch has several fallback methods to get a name for the CPU:

model name|Hardware|Processor|^cpu model|chip type|^cpu type

I suppose we could just look for the Hardware: entry in /proc/cpuinfo, if model name: is not available. Don't know how to get the frequency of the Raspberry Pi though. Needs further investigation if even neofetch does not give this information.

dwzg avatar May 04 '20 07:05 dwzg