ss7m / paleofetch

neofetch, but written in C
MIT License
167 stars 50 forks source link

CPU 0mhz #56

Open Titaniumtown opened 4 years ago

Titaniumtown commented 4 years ago

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 commented 4 years ago

Does anyone know what could be causing the issue?

ss7m commented 4 years ago

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?

Titaniumtown commented 4 years ago

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.

ss7m commented 4 years ago

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?

Titaniumtown commented 4 years ago

No, it's completely blank

Titaniumtown commented 4 years ago

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

Titaniumtown commented 4 years ago

that's a screen shot :)

ss7m commented 4 years ago

latest commit should make it behave like neofetch in your situation

Titaniumtown commented 4 years ago

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

Titaniumtown commented 4 years ago

It shows my cpu!

dwzg commented 4 years ago

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.