screenFetch icon indicating copy to clipboard operation
screenFetch copied to clipboard

GPU listed simply as "intel"

Open kattjevfel opened this issue 7 years ago • 13 comments

Since a while back, probably around when intel gpu detection was added, on my server the gpu is detected as simply "intel", it's looking quite stupid and pretty useless. It doesn't appear in the verbose output but sure is in the list.

:: Finding distro...found as 'Debian 8.7' :: Finding hostname and user...found as 'kattus@server1' :: Finding kernel version...found as 'x86_64 Linux 3.16.0-4-amd64' :: Finding current uptime...found as '142d 17h 6m' :: Finding current package count...found as '732' :: Finding current shell...found as 'zsh 5.0.7' :: Finding current resolution(s)...found as '' :: Finding desktop environment...found as 'Not Present' :: Finding window manager...found as 'Not Found' :: Finding window manager theme...found as 'Not Found' :: Finding GTK2 theme...found as 'Not Found' :: Finding GTK3 theme...found as 'Not Found' :: Finding icon theme...found as 'Not Found' :: Finding user font...found as 'Not Found' :: Finding current CPU...found as 'Intel Core2 Duo E8500 @ 2x 3.165GHz' :: Finding current GPU...found as 'Not Found' :: Finding current RAM usage...found as '1452MiB / 3832MiB'

kitty_portable_2017-04-20_04-44-06

kattjevfel avatar Apr 20 '17 02:04 kattjevfel

post uname -p please

DmitryHetman avatar Apr 20 '17 12:04 DmitryHetman

@DmitryHetman ~ » uname -p unknown

kattjevfel avatar Apr 20 '17 17:04 kattjevfel

Why it doesn't working? Why you have intel in /proc/fb ?

DmitryHetman avatar Apr 20 '17 21:04 DmitryHetman

@DmitryHetman ~ » cat /proc/fb 0 inteldrmfb

kattjevfel avatar Apr 21 '17 15:04 kattjevfel

From what I know uname -p is unreliable and Gentoo is using patched coreutils to make it work. What about getting the model from ${cpu} that has already been found?

konfou avatar Apr 21 '17 16:04 konfou

Well, I need to add *) GPU="unknown" ;; in case statement.

DmitryHetman avatar Apr 24 '17 14:04 DmitryHetman

https://github.com/KittyKatt/screenFetch/pull/476

DmitryHetman avatar Apr 24 '17 14:04 DmitryHetman

Try with this patch.

DmitryHetman avatar Apr 24 '17 14:04 DmitryHetman

It now ouputs "Unknown", instead of skipping the line entirely. putty_2017-04-25_12-23-21

kattjevfel avatar Apr 25 '17 10:04 kattjevfel

Good.

DmitryHetman avatar Apr 25 '17 13:04 DmitryHetman

Screenfetch should remove everything 'Unknown' as far as I know.

DmitryHetman avatar Apr 25 '17 13:04 DmitryHetman

Actually it filters out per case 'Not Found' variables meaning that each one has an if in front that checks if variable equals 'Not Found'. I believe a more standardized approach should be implemented. Nevertheless, on this issue you can change 'Unknown' to 'Not Found' though that isn't entirely correct as GPU is known to be Intel graphics instead of another integrated GPU. Maybe make the fallback case 'Intel Graphics' or something.

konfou avatar May 21 '17 19:05 konfou

Not sure that this will help but I'm on a GM45 laptop on Parabola. For me screenfetch displays only 'Intel' for the GPU unless I have the mesa-demos package installed.

PharmaceuticalCobweb avatar Dec 16 '17 12:12 PharmaceuticalCobweb