112 |
addconfig ' EndSubSection' |
addconfig ' EndSubSection' |
113 |
done |
done |
114 |
|
|
115 |
if pidof X |
x11runas "xrandr --size ${resolution}" |
|
then |
|
|
x11runas "xrandr --size ${resolution}" |
|
|
fi |
|
116 |
|
|
117 |
helper_graphic_rebuild_xorg_conf_d |
helper_graphic_rebuild_xorg_conf_d |
118 |
} |
} |
134 |
*) help_graphic_depth && return 1 ;; |
*) help_graphic_depth && return 1 ;; |
135 |
esac |
esac |
136 |
|
|
|
# if pidof X |
|
|
# then |
|
|
# x11runas "xrandr --size ${value}" |
|
|
# fi |
|
|
|
|
137 |
helper_graphic_rebuild_xorg_conf_d |
helper_graphic_rebuild_xorg_conf_d |
138 |
mecho "X11 restart required!" |
mecho "X11 restart required!" |
139 |
} |
} |
146 |
|
|
147 |
#echo "${value}" > ${SETTINGSPATH}/xorg/refresh |
#echo "${value}" > ${SETTINGSPATH}/xorg/refresh |
148 |
|
|
149 |
if pidof X |
x11runas "xrandr --refresh ${value}" |
|
then |
|
|
x11runas "xrandr --refresh ${value}" |
|
|
fi |
|
150 |
|
|
151 |
helper_graphic_rebuild_xorg_conf_d |
helper_graphic_rebuild_xorg_conf_d |
152 |
} |
} |
185 |
if [[ -f ${config} ]] |
if [[ -f ${config} ]] |
186 |
then |
then |
187 |
driver=$(grep Driver "${config}" | sed 's:.*Driver.*\"\(.*\)\":\1:') |
driver=$(grep Driver "${config}" | sed 's:.*Driver.*\"\(.*\)\":\1:') |
188 |
mecho "${driver}" |
rvecho "${driver}" |
189 |
else |
else |
190 |
mecho "none" |
rvecho "none" |
191 |
fi |
fi |
192 |
;; |
;; |
193 |
system) |
system) |
195 |
do |
do |
196 |
driver="${driver} $(basename ${i} _drv.so)" |
driver="${driver} $(basename ${i} _drv.so)" |
197 |
done |
done |
198 |
mecho "${driver}" |
rvecho "${driver}" |
199 |
;; |
;; |
200 |
*) |
*) |
201 |
help_graphic_driver |
help_graphic_driver |