ss7m / paleofetch

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

Dedicated GPU doesn't show up #52

Closed GrbavaCigla closed 4 years ago

GrbavaCigla commented 4 years ago

On neofetch I get both GPUs, but paleofetch finds only integrated GPU Paleofetch:

                  -`                    cigla@Rakija
                 .o+`                   ------------
                `ooo/                   OS: Arch Linux x86_64
               `+oooo:                  Host: 81BF Lenovo ideapad 520-15IKB
              `+oooooo:                 Kernel: 5.6.8-arch1-1
              -+oooooo+:                Uptime: 1 hour, 52 mins
            `/:-:++oooo+:               
           `/++++/+++++++:              Packages: 1611 (pacman)
          `/++++++++++++++:             Shell: fish
         `/+++ooooooooooooo/`           Resolution: 1920x1080
        ./ooosssso++osssssso+`          Terminal: gnome-terminal-server
       .oossssso-````/ossssss+`         
      -osssssso.      :ssssssso.        CPU: Intel i5-8250U (8) @ 3.4GHz
     :osssssss/        osssso+++.       GPU: Intel UHD Graphics 620
    /ossssssss/        +ssssooo/-       Memory: 3700MiB / 7745MiB (47%)
  `/ossssso+/:-        -:/+osssso+-     
 `+sso+:-`                 `.-/+oso:                            
`++:.                           `-/+/                           
.`                                 `/   

Neofetch:

                   -`                    cigla@Rakija 
                  .o+`                   ------------ 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: 81BF Lenovo ideapad 520-15IKB 
               `+oooooo:                 Kernel: 5.6.8-arch1-1 
               -+oooooo+:                Uptime: 1 hour, 52 mins 
             `/:-:++oooo+:               Packages: 1611 (pacman) 
            `/++++/+++++++:              Shell: fish 3.1.0 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: GNOME 
         ./ooosssso++osssssso+`          WM: Mutter 
        .oossssso-````/ossssss+`         WM Theme: Adwaita 
       -osssssso.      :ssssssso.        Theme: Canta-indigo-dark [GTK2/3] 
      :osssssss/        osssso+++.       Icons: Numix-Circle [GTK2/3] 
     /ossssssss/        +ssssooo/-       Terminal: gnome-terminal 
   `/ossssso+/:-        -:/+osssso+-     CPU: Intel i5-8250U (8) @ 3.400GHz 
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA GeForce MX150 
 `++:.                           `-/+/   GPU: Intel UHD Graphics 620 
 .`                                 `/   Memory: 3686MiB / 7745MiB 
dwzg commented 4 years ago

See: Issue #19 Pull Request #32 Readme

for more information about output of second GPU.

In short: You need to add a line in your config.h which calls the get_gpu2 function. If you want similiar output like in neofetch (both titled "GPU: "), this additional line must have a "false" for the cached option. If you name them "GPU1: " and "GPU2: ", both can be cached.

GrbavaCigla commented 4 years ago

Thanks for fast reply, now it works but it differs from neofetch neofetch: GPU: NVIDIA GeForce MX150 paleofetch: GPU: NVIDIA GP108M [GeForce MX150]

ss7m commented 4 years ago

Neofetch does a bit more postprocessing on the GPU name, and I believe also gets it directly from lspci, so paleofetch’s results are often not going to be a 1-1 match

dwzg commented 4 years ago

You could adjust the configuration further to achieve this, for example by adding

Paleofetch currently does not provide a lot of model name postprocessing, but its configurability allows you to tailor it specifically for your needs.

GrbavaCigla commented 4 years ago

Thanks for helping