woodruffw / screenfetch-c

A rewrite of screenFetch in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

manjaro & integrated gpu

benwaffle opened this issue · comments

Doesn't work:

  • OS is ManjaroLinux but should be Manjaro 0.8.10 Ascella
  • GPU not detected (Intel HD 4400)
  • DE & WM not detected (gnome shell)
  • Packages is 0 (can get from pacman -Q | wc -l)
  • GTK themes not found (is adwaita), regular screenfetch doesn't find them either

Hello!

I need a few things to help you:

  • Could you embed or link me an image of the output, including with --verbose?
  • Are you running the most recent version?
  • The GPU isn't being detected because GPU detection isn't completely implemented on Linux systems. If you want to help me implement it, you can by giving me the output from the following: lspci, lshw -numeric -C display, and glxinfo.
  • If screenfetch-c isn't detecting your DE and/or WM, it's probably because you either installed it manually or didn't install it at all. Make sure to use make install and specify a custom PREFIX if you want one.
  • I'll have to do more research on the GTK theme detection. It's always been a problem point, especially in a language like C.

I'll try to fix the packages detection bug right now. It's probably being caused by a change in Manjaro's /etc/lsb-release formatting, which has caused problems before.

The latest commit, d70d1d5, should fix the erroneus ManjaroLinux output, which should in turn should fix the package detection bug.

I tried it on my desktop (previous was laptop). Logo & OS name are fine. this time nvidia gpu not detected
verbose output, although I see nothing useful:

:: Found distro as Manjaro
:: Found system arch as x86_64
:: Found uptime as 3d 5h 9m 38s
:: Found host as ben@electron
:: Found kernel as Linux 3.17.0-1-MANJARO
:: Found package count as 1407
:: Found memory usage as 7672MB / 7870MB
:: Found GPU as Unknown
:: Found WM as Unknown
:: Found resolution as 1600x900
:: Found WM theme as Unknown
:: Found GTK as Unknown (GTK2), Unknown (Icons)
:: Found DE as Unknown
:: Found shell as zsh 5.0.7
:: Found CPU as Intel(R) Core(TM) i3-2100 CPU
:: Found disk usage as 94G / 155G (60%)
 ██████████████████  ████████     ben@electron
 ██████████████████  ████████     OS: Manjaro
 ██████████████████  ████████     Kernel: Linux 3.17.0-1-MANJARO
 ██████████████████  ████████     Arch: x86_64
 ████████            ████████     CPU: Intel(R) Core(TM) i3-2100 CPU
 ████████  ████████  ████████     GPU: Unknown
 ████████  ████████  ████████     Shell: zsh 5.0.7
           ████████  ████████     Packages: 1407
 ████████  ████████  ████████     Disk: 94G / 155G (60%)
 ████████  ████████  ████████     Memory: 7672MB / 7870MB
 ████████  ████████  ████████     Uptime: 3d 5h 9m 38s
 ████████  ████████  ████████     Resolution: 1600x900
 ████████  ████████  ████████     DE: Unknown
 ████████  ████████  ████████     WM: Unknown
 ████████  ████████  ████████     WM Theme: Unknown
 ████████  ████████  ████████     GTK: Unknown (GTK2), Unknown (Icons)
 ████████  ████████  ████████    

1e12420 should now detect the GPU's renderer string through OpenGL.

Please note that this changes screenfetch-c's dependencies; may now need to install libgl-dev from your package manager.

yep, tested on nvidia & intel
how about manjaro version?

$ lsb_release -a
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:    0.8.10
Codename:   Ascella

I don't have any current plants to add version detection to Linux distributions, as there's no one uniform method for collecting (or formatting) release information. LSB comes close, but it isn't present by default or even available on some systems.
If you know of a reliable way to detect release information across (virtually) all distros, I'd love to hear about it.