woodruffw / screenfetch-c

A rewrite of screenFetch in C.
MIT License
73 stars 17 forks source link

manjaro & integrated gpu #9

Closed benwaffle closed 9 years ago

benwaffle commented 9 years ago

Doesn't work:

woodruffw commented 9 years ago

Hello!

I need a few things to help you:

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.

woodruffw commented 9 years ago

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

benwaffle commented 9 years ago

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)
 ████████  ████████  ████████    
benwaffle commented 9 years ago

on the nvidia box: http://pastebin.com/VXmtMSCG

woodruffw commented 9 years ago

1e1242095d17ecbbabae998f044c1f782db8041a 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.

benwaffle commented 9 years ago

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
woodruffw commented 9 years ago

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.