le-multiterminal: Don't change resolution by default

Signed-off-by: 's avatarDiego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
parent fb6b81b6
Package: le-multiterminal
Priority: important
Section: main
Version: 0.0.22
Version: 0.0.23
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Description: Userful multiplier for Linux Educacional 5
Architecture: all
......
......@@ -23,32 +23,33 @@
# It is supposed to run only once, so the user might choose to set a different
# resolution manually.
RESOLUTION='1024x768'
defaultResolution() {
MOBONAME="$(dmidecode | grep -A12 "^Base" |
resolution=""
mobo_name="$(dmidecode | grep -A12 "^Base" |
grep "Product Name: " | cut -d':' -f2 | sed -e 's/^ //g')"
if [[ $MOBONAME == POS-MIG31AG ]] && lspci | egrep -q \
if [[ "$mobo_name" == "POS-MIG31AG" ]] && lspci | egrep -q \
'Display controller:.+TN-502|Display
controller:.+SM501'; then
# Hardware is 832008
RESOLUTION='1360x768'
resolution='1360x768'
elif [[ $MOBONAME == G41M* ]] && lspci | grep -q \
elif [[ "$mobo_name" == G41M* ]] && lspci | grep -q \
'VGA compatible controller: Intel Corporation
4 Series Chipset Integrated Graphics Controller
(rev 03)' ; then
# Hardware is 712010 $MOBONAME == 'G41M-S'
RESOLUTION='1360x768'
else
# 1024x768 works on all screens
RESOLUTION='1024x768'
# Hardware is 712010 $mobo_name == 'G41M-S'
resolution='1360x768'
fi
echo $resolution
}
defaultResolution
userful display -r all $RESOLUTION 60
resolution=$(defaultResolution)
if [[ -n "$resolution" ]]; then
#userful display -r all $resolution 60
echo $resolution
fi
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment