Mageia Bugzilla – Attachment 5095 Details for
Bug 12991
always ask permission to write a new xorg.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
script I call "xfetch"
xfetch11.sh (text/plain), 2.45 KB, created by
Felix Miata
on 2014-04-05 16:23:54 CEST
(
hide
)
Description:
script I call "xfetch"
Filename:
MIME Type:
Creator:
Felix Miata
Created:
2014-04-05 16:23:54 CEST
Size:
2.45 KB
patch
obsolete
># run this in X terminal >echo "`hostname -s`:~ $ grep 'using VT' /var/log/Xorg.`echo ${DISPLAY##*:}`.log" >grep 'using VT' /var/log/Xorg.`echo ${DISPLAY##*:}`.log >echo "`hostname -s`:~ $ lspci | grep VGA" >lspci | grep VGA >if [ -f /etc/os-release ] >then >echo `hostname -s`:~ $ grep PRETTY /etc/os-release >grep PRETTY /etc/os-release >elif [ -f /etc/SuSE-release ] >then >echo `hostname -s`:~ $ head -n1 /etc/SuSE-release >head -n1 /etc/SuSE-release >elif [ -f /etc/fedora-release ] >then >echo `hostname -s`:~ $ head -n1 /etc/fedora-release >head -n1 /etc/fedora-release >elif [ -f /etc/mageia-release ] >then >echo `hostname -s`:~ $ head -n1 /etc/mageia-release >head -n1 /etc/mageia-release >else >exit >fi >echo "`hostname -s`:~ $ grep 'X.Org X Server' /var/log/Xorg.`echo ${DISPLAY##*:}`.log" >grep 'X.Org X Server' /var/log/Xorg.`echo ${DISPLAY##*:}`.log >echo "`hostname -s`:~ $ grep 'Current Operating System' /var/log/Xorg.`echo ${DISPLAY##*:}`.log" >grep 'Current Operating System' /var/log/Xorg.`echo ${DISPLAY##*:}`.log >echo "`hostname -s`:~ $ grep 'Kernel Command Line' /var/log/Xorg.`echo ${DISPLAY##*:}`.log" >grep 'Kernel command line' /var/log/Xorg.`echo ${DISPLAY##*:}`.log >echo "`hostname -s`:~ $ grep Output /var/log/Xorg.`echo ${DISPLAY##*:}`.log | egrep -v 'disconnec|no monit' | grep -v 'nitor sect'" >grep Output /var/log/Xorg.`echo ${DISPLAY##*:}`.log | egrep -v 'disconnec|no monit' | grep -v 'nitor sect' >#grep Output /var/log/Xorg.`echo $DISPLAY|cut -d: -f2`.log | egrep -v 'disconnec|no monit' | grep -v 'nitor sect' >echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep DisplaySize' >grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep DisplaySize >echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xorg.conf | grep DisplaySize' >grep -v ^\# /etc/X11/xorg.conf | grep DisplaySize >echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep PreferredMode' >grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep PreferredMode >echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xorg.conf | grep PreferredMode' >grep -v ^\# /etc/X11/xorg.conf | grep PreferredMode >if [ -f /etc/X11/xinit/xinitrc.d/setup ] >then >echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xinit/xinitrd.d/setup | grep xrandr' >grep -v ^\# /etc/X11/xinit/xinitrc.d/setup | grep xrandr >fi >echo "`hostname -s`:~ $ xrdb -query | grep dpi" >xrdb -query | grep dpi >echo "`hostname -s`:~ $ xdpyinfo | egrep 'dime|ution'" >xdpyinfo | egrep 'dime|ution' >echo "`hostname -s`:~ $ xrandr | head -n6" >xrandr | head -n6
# run this in X terminal echo "`hostname -s`:~ $ grep 'using VT' /var/log/Xorg.`echo ${DISPLAY##*:}`.log" grep 'using VT' /var/log/Xorg.`echo ${DISPLAY##*:}`.log echo "`hostname -s`:~ $ lspci | grep VGA" lspci | grep VGA if [ -f /etc/os-release ] then echo `hostname -s`:~ $ grep PRETTY /etc/os-release grep PRETTY /etc/os-release elif [ -f /etc/SuSE-release ] then echo `hostname -s`:~ $ head -n1 /etc/SuSE-release head -n1 /etc/SuSE-release elif [ -f /etc/fedora-release ] then echo `hostname -s`:~ $ head -n1 /etc/fedora-release head -n1 /etc/fedora-release elif [ -f /etc/mageia-release ] then echo `hostname -s`:~ $ head -n1 /etc/mageia-release head -n1 /etc/mageia-release else exit fi echo "`hostname -s`:~ $ grep 'X.Org X Server' /var/log/Xorg.`echo ${DISPLAY##*:}`.log" grep 'X.Org X Server' /var/log/Xorg.`echo ${DISPLAY##*:}`.log echo "`hostname -s`:~ $ grep 'Current Operating System' /var/log/Xorg.`echo ${DISPLAY##*:}`.log" grep 'Current Operating System' /var/log/Xorg.`echo ${DISPLAY##*:}`.log echo "`hostname -s`:~ $ grep 'Kernel Command Line' /var/log/Xorg.`echo ${DISPLAY##*:}`.log" grep 'Kernel command line' /var/log/Xorg.`echo ${DISPLAY##*:}`.log echo "`hostname -s`:~ $ grep Output /var/log/Xorg.`echo ${DISPLAY##*:}`.log | egrep -v 'disconnec|no monit' | grep -v 'nitor sect'" grep Output /var/log/Xorg.`echo ${DISPLAY##*:}`.log | egrep -v 'disconnec|no monit' | grep -v 'nitor sect' #grep Output /var/log/Xorg.`echo $DISPLAY|cut -d: -f2`.log | egrep -v 'disconnec|no monit' | grep -v 'nitor sect' echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep DisplaySize' grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep DisplaySize echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xorg.conf | grep DisplaySize' grep -v ^\# /etc/X11/xorg.conf | grep DisplaySize echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep PreferredMode' grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep PreferredMode echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xorg.conf | grep PreferredMode' grep -v ^\# /etc/X11/xorg.conf | grep PreferredMode if [ -f /etc/X11/xinit/xinitrc.d/setup ] then echo `hostname -s`:~ $ 'grep -v ^\# /etc/X11/xinit/xinitrd.d/setup | grep xrandr' grep -v ^\# /etc/X11/xinit/xinitrc.d/setup | grep xrandr fi echo "`hostname -s`:~ $ xrdb -query | grep dpi" xrdb -query | grep dpi echo "`hostname -s`:~ $ xdpyinfo | egrep 'dime|ution'" xdpyinfo | egrep 'dime|ution' echo "`hostname -s`:~ $ xrandr | head -n6" xrandr | head -n6
View Attachment As Raw
Actions:
View
Attachments on
bug 12991
: 5095 |
5096
|
5097
|
5098
|
5099