Comments (16)
Fails with integrated Intel graphics chip
GPU: No idea, Sorry :(
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary) (rev 0c)
Protip: it's far easier to get things tested and integrated if you include actual commits with the issue.
from screenfetch.
How is it even possible to get that fallback text if you have lspci installed? is it installed to /usr/sbin?
not that that make it better, still badly broken on intel
I know it would have a lot of issues, was hopeing it would be useful foe a starting point
as for making comits i can't even figure out how to update my repo without manually editing the code online via browser, and i have some code that really needs to be pushed to git
from screenfetch.
My lspci
resides in /usr/sbin/lspci
.
You can learn how to use git from the quite good git-scm book here: http://git-scm.com/book . The first couple of chapters should at least tell you how to push/pull/commit. Here are some GitHub specific instructions: https://help.github.com/articles/set-up-git .
Edit: changing the checks for glxinfo and lspci to something that doesn't have a hardcoded path, I get
from screenfetch.
Well, this is even more interesting.
I've been on the fence about GPU detection for quite some time. I've thought about doing it, but never really committed myself to putting it in.
I'll think about it a little harder and use this as a base for my code. Thanks for the contribution.
from screenfetch.
@KittyKatt Sorry for going offtopic, and sorry for my crappy code on this one, my cpu edit is much better
@ShanaTsunTsunLove
no idea how this works... it was much easier to just use the downloads page for holding .tar.gz archives...
chad@M4A79XTD-EVO:~/.git-php-scanner-server$ git add README
chad@M4A79XTD-EVO:~/.git-php-scanner-server$ git commit -m 'please let this update all the things'
[master (root-commit) fa246a7] please let this update all the things
1 file changed, 1 insertion(+)
create mode 120000 README
chad@M4A79XTD-EVO:~/.git-php-scanner-server$ git remote add origin https://github.com/GM-Script-Writer-62850/Hello-World.git
chad@M4A79XTD-EVO:~/.git-php-scanner-server$ git push origin master
Username for 'https://github.com': GM-Script-Writer-62850
Password for 'https://[email protected]':
fatal: https://github.com/GM-Script-Writer-62850/Hello-World.git/info/refs?service=git-receive-pack not found: did you run git update-server-info on the server?
chad@M4A79XTD-EVO:~/.git-php-scanner-server$ git update-server-info
chad@M4A79XTD-EVO:~/.git-php-scanner-server$ git push origin master
Username for 'https://github.com': GM-Script-Writer-62850
Password for 'https://[email protected]':
fatal: https://github.com/GM-Script-Writer-62850/Hello-World.git/info/refs?service=git-receive-pack not found: did you run git update-server-info on the server?
chad@M4A79XTD-EVO:~/.git-php-scanner-server$
from screenfetch.
Also, you can use test
instead of using -f in the if statements. Much more reliable than hardcoded paths.
from screenfetch.
If you are using proprietary nvidia drivers
~$ echo "NVidia$(nvidia-smi -q | grep -i 'product name' | cut -f 2 -d ':')"
NVidia GeForce GTX 550 Ti
from screenfetch.
Ah, very nice. I mispoke before about test. type -p command
is pretty reliable.
from screenfetch.
and yet another nvidia method, pretty sure is needs the proprietary nvidia driver
you could loop through all the folders in /proc/driver/nvidia/gpus/ and get every nvidia gpu's model
~$ cat /proc/driver/nvidia/gpus/0/information
Model: GeForce GTX 550 Ti
IRQ: 18
GPU UUID: GPU-cf9334b8-5fdc-293c-11b1-d88c44e3e490
Video BIOS: 70.26.20.00.00
Bus Type: PCI-E
DMA Size: 40 bits
DMA Mask: 0xffffffffff
Bus Location: 0000:01.00.0
and i did find this script, pretty slow but...
http://pastebin.com/KTpJZTrf author did say it was incomplete
from screenfetch.
...uh, dunno that that was related to this issue. But okay.
I've included the attempt code in screenfetch, but haven't included gpu by default in $display until I think it's ready for use by everyone.
from screenfetch.
Have added a couple more things to it and ironed out a few other things.
from screenfetch.
I made some changes to the update you made 3 hrs ago, it was not working right, i have something in virtualbox and my nvidia system
hopefully i did not break your improvements, on what ever you did your changes for
# GPU Detection - Begin (EXPERIMENTAL!)
detectgpu () {
if [ -n "$(type -p lspci)" ]; then
gpu_info=$(lspci | grep VGA)
gpu=$(echo "$gpu_info" | grep -oE '\[.*\]' | sed 's/\[//;s/\]//')
gpu=$(echo "${gpu}" | sed -n '1h;2,$H;${g;s/\n/, /g;p}')
fi
if [[ -n "$(type -p glxinfo)" && -z "$gpu" ]]; then
gpu_info=$(glxinfo 2>/dev/null)
gpu=$(echo "$gpu_info" | grep "OpenGL renderer string")
gpu=$(echo "$gpu" | cut -d ':' -f2)
gpu="${gpu:1}"
gpu_info=$(echo "$gpu_info" | grep "OpenGL vendor string")
fi
if [ -n "$gpu" ];then
if [ $(echo "$gpu_info" | grep -i nvidia | wc -l) -gt 0 ];then
gpu_info="NVidia"
elif [ $(echo "$gpu_info" | grep -i intel | wc -l) -gt 0 ];then
gpu_info="Intel"
elif [ $(echo "$gpu_info" | grep -i amd | wc -l) -gt 0 ];then
gpu_info="AMD"
elif [ $(echo "$gpu_info" | grep -i ati | wc -l) -gt 0 ];then
gpu_info="ATI"
else
gpu_info=$(echo "$gpu_info" | cut -d ':' -f2)
gpu_info=${gpu_info:1}
fi
gpu="$gpu_info $gpu"
else
gpu="Not Found"
fi
[[ "$verbosity" -eq "1" ]] && verboseOut "Finding current GPU...found as '$gpu'"
}
# GPU Detection - End
from screenfetch.
OS X-specific code to return the GPU is as follows
gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {print $2}')
I don't know how reliable that is, but it works consistently on my machine at least.
If you want to create your own parser for system_profiler's output instead of using that awk command, the output it gives (for me) is
Graphics/Displays:
NVIDIA GeForce 320M:
Chipset Model: NVIDIA GeForce 320M
Type: GPU
Bus: PCI
VRAM (Total): 256 MB
Vendor: NVIDIA (0x10de)
Device ID: 0x08a0
Revision ID: 0x00a2
ROM Revision: 3533
Displays:
Color LCD:
Display Type: LCD
Resolution: 1280 x 800
Pixel Depth: 32-Bit Color (ARGB8888)
Main Display: Yes
Mirror: Off
Online: Yes
Built-In: Yes
Most of which was entirely unnecessary for this comment, but hey.
from screenfetch.
This looks nice! Will give it a go.
See commit ea14d5b.
from screenfetch.
maybe we can go a step further and include the gpu driver and version
nvidia-smi -q | awk -F': ' '/^\ *Driver Version/ {print $2}'
given that command works nvidia's proprietary driver is installed its output is the version number
from screenfetch.
detectgpu is pretty far along at this point. Any feature requests to it or bugs for it should be submitted as new issues! Thank you!
from screenfetch.
Related Issues (20)
- Invocation causes a warning about stray \ before " in grep
- please support Xubuntu HOT 1
- Proxmox Ram issue/bug
- Bad name: Project does not do what name implies. It implies that it, itself, takes the screenshot. HOT 1
- os shows abnormal in mac osx HOT 2
- Apple Silicon Homebrew Packages location
- macOS 13.3.1 version number not shown
- extra line before RAM HOT 2
- Please create a new release HOT 4
- [Cosmetic] Missing space before the added Windows Subsystem for Linux
- NVIDIA GeForce 210 and Intel HD Graphics 2500 aren't detected
- Screen Resolution is not correct when I attach another screen via HDMI
- Linux Mint 21.2 Cinnamon DE HOT 4
- screenfetch remains locked after "Finding current CPU"
- xprop: unable to open display '172.27.16.69:0.0'
- grep error before screenfetch layout HOT 5
- realpath: /proc/xxxx/exec: permission denied
- screenfetch reports wrong desktop Ubuntu-Cinnamon 24.04 HOT 1
- Please add output for system's display manager as well
- Bash test nested incorrectly; leads to syntax error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenfetch.