Wednesday, March 01, 2006
Xorg auto configuration in Debian/Ubuntu land.
This script does auto configuration and writes a new xorg.conf make sure you backup your existing xorg.conf before running this. I used this to update xorg.conf when putting a system image on different hardware, so far it always chooses reasonable resolution and color depth.
#!/bin/sh
# Based on the script found in http://ftp.linux.org.uk/~dan/livecd
# which is referenced from http://www.linuxjournal.com/article/7246
# Changes made so that the script works with xorg as opposed to xfree
# Mods by Pete Cain
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
debconf-communicate << EOF
SET xserver-xorg/autodetect_mouse true
SET xserver-xorg/autodetect_monitor true
SET xserver-xorg/autodetect_video_card true
FSET xserver-xorg/autodetect_mouse seen true
FSET xserver-xorg/autodetect_monitor seen true
FSET xserver-xorg/autodetect_video_card seen true
EOF
sh /var/lib/dpkg/info/xserver-xorg.config configure
dexconf -o /etc/X11/xorg.conf
Comments:
<< Home
donde va este codigo ya lo puse en el Xorg.conf y nada me sale un error.
estoy buscando algo asi para mi discoportable
Post a Comment
estoy buscando algo asi para mi discoportable
<< Home