Magellan Linux

Diff of /alx-src/branches/alxconf-060/functions/config_x11.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2165 by niro, Wed May 18 14:45:00 2011 UTC revision 2612 by niro, Wed Jul 6 21:35:22 2011 UTC
# Line 92  config_x11() Line 92  config_x11()
92    
93   # add cvt modelines   # add cvt modelines
94   addconfig   addconfig
95   local cvt="/usr/X11R6/bin/cvt"   local cvt="/usr/bin/cvt"
96   local modeline   local modeline
97   modeline=$("${cvt}" "${cfg_graphic_resolution%x*}" "${cfg_graphic_resolution#*x}" "${cfg_graphic_refresh_rate}" | sed -e 's:^:\t:g' -e 's:_.*\":\":')   modeline=$("${cvt}" "${cfg_graphic_resolution%x*}" "${cfg_graphic_resolution#*x}" "${cfg_graphic_refresh_rate}" | sed -e 's:^:\t:g' -e 's:_.*\":\":')
98   addconfig "${modeline}"   addconfig "${modeline}"
# Line 124  config_x11() Line 124  config_x11()
124   addconfig ' Option "PasswordFile" "/root/.vnc/passwd"'   addconfig ' Option "PasswordFile" "/root/.vnc/passwd"'
125   fi   fi
126   addconfig 'EndSection'   addconfig 'EndSection'
127    
128     # fixes
129     # disable LVDS-1 on zotacs
130     if [[ ! -z $(hwinfo --bios --storage | grep -i zotac) ]]
131     then
132     CONFIG="/etc/X11/xorg.conf.d/30-fix-zotac.conf"
133     clearconfig
134     addconfig 'Section "Monitor"'
135     addconfig ' Identifier "LVDS1"'
136     addconfig ' Option "Ignore" "True"'
137     addconfig 'EndSection'
138     else
139     # clear this file
140     if [ -f /etc/X11/xorg.conf.d/30-fix-zotac.conf ]
141     then
142     rm /etc/X11/xorg.conf.d/30-fix-zotac.conf
143     fi
144     fi
145  }  }

Legend:
Removed from v.2165  
changed lines
  Added in v.2612