24 |
config_display_manager |
config_display_manager |
25 |
|
|
26 |
# got we vnc support ? |
# got we vnc support ? |
27 |
if [ -f /usr/X11R6/lib/xorg/modules/extensions/libvnc.so ] |
if [ -f /usr/lib/xorg/modules/extensions/libvnc.so ] |
28 |
then |
then |
29 |
has_tigervnc="yes" |
has_tigervnc="yes" |
30 |
else |
else |
125 |
fi |
fi |
126 |
addconfig 'EndSection' |
addconfig 'EndSection' |
127 |
|
|
128 |
|
# disable screen blanks, use xscreensaver for it |
129 |
|
CONFIG="/etc/X11/xorg.conf.d/25-server.conf" |
130 |
|
clearconfig |
131 |
|
addconfig 'Section "ServerFlags"' |
132 |
|
addconfig ' Option "BlankTime" "0"' |
133 |
|
addconfig ' Option "StandbyTime" "0"' |
134 |
|
addconfig ' Option "SuspendTime" "0"' |
135 |
|
addconfig ' Option "OffTime" "0"' |
136 |
|
addconfig 'EndSection' |
137 |
|
|
138 |
# fixes |
# fixes |
139 |
# disable LVDS-1 on zotacs |
# disable LVDS-1 on zotacs or enable it if hdmi was requested |
140 |
if [[ ! -z $(hwinfo --bios --storage | grep -i zotac) ]] |
if [[ $(alx-hwdetection system) = zotac ]] |
141 |
then |
then |
142 |
CONFIG="/etc/X11/xorg.conf.d/30-fix-zotac.conf" |
CONFIG="/etc/X11/xorg.conf.d/30-fix-zotac.conf" |
143 |
clearconfig |
clearconfig |
144 |
addconfig 'Section "Monitor"' |
addconfig 'Section "Monitor"' |
145 |
addconfig ' Identifier "LVDS1"' |
addconfig ' Identifier "LVDS1"' |
146 |
addconfig ' Option "Ignore" "True"' |
if [[ ${cfg_graphic_hdmi} = enable ]] |
147 |
|
then |
148 |
|
# add cvt modelines |
149 |
|
addconfig |
150 |
|
local cvt="/usr/bin/cvt" |
151 |
|
local modeline |
152 |
|
modeline=$("${cvt}" "${cfg_graphic_resolution%x*}" "${cfg_graphic_resolution#*x}" "${cfg_graphic_refresh_rate}" | sed -e 's:^:\t:g' -e 's:_.*\":\":') |
153 |
|
addconfig "${modeline}" |
154 |
|
else |
155 |
|
addconfig ' Option "Ignore" "True"' |
156 |
|
fi |
157 |
addconfig 'EndSection' |
addconfig 'EndSection' |
158 |
else |
else |
159 |
# clear this file |
# clear this file |