Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

CPU name gets cut off & GPU name too long #39

Closed
chfour opened this issue Mar 15, 2021 · 5 comments
Closed

CPU name gets cut off & GPU name too long #39

chfour opened this issue Mar 15, 2021 · 5 comments

Comments

@chfour
Copy link
Contributor

chfour commented Mar 15, 2021

This is what happens when I run it:

2021-03-15_15-03-56

The CPU model name gets weirdly cut off to just two characters and the GPU model wraps over to the next line, breaking the ASCII art on the left. Font is Terminus and I'm using Konsole if that helps

@ad-oliviero
Copy link
Owner

The issue is caused by /proc/cpuinfo and lspci could you please send the output of cat /proc/cpuinfo and lspci -mm?

@chfour
Copy link
Contributor Author

chfour commented Mar 15, 2021

Sure! https://pastebin.com/zFMWs142

ad-oliviero added a commit that referenced this issue Mar 16, 2021
@ad-oliviero
Copy link
Owner

In the last 2/3 commits i tried to fix this issues, but now to get gpu info you need lshw.

@chfour
Copy link
Contributor Author

chfour commented Mar 16, 2021

So I installed lshw, and while the CPU model name works fine now, the GPU model still wraps around to the next line.
2021-03-16_09-43-23
Neofetch solves this issue by truncating the text:
2021-03-16_10-10-44
I would implement this, however my knowledge of C is basically next to nothing. :P

@ad-oliviero
Copy link
Owner

Neofetch solution is good, I will implement a similar solution

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

No branches or pull requests

2 participants