LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1163|回复: 8

求助!! startx 以后,屏幕中间出现白色方块,死机。。。。。。。。。

[复制链接]
发表于 2005-9-5 21:21:03 | 显示全部楼层 |阅读模式
我的安装步骤

# hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda
# /etc/init.d/sshd start
# net-setup eth0
----------------------------------------------------------------
ssh 喽
----------------------------------------------------------------
# mke2fs -j /dev/hda7
# mkswap /dev/hda8
# swapon /dev/hda8
# mount /dev/hda7 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# cd /mnt/gentoo
# tar -xvjpf /mnt/cdrom/stages/stage3-x86-2005.1.tar.bz2
# tar -xvjf /mnt/cdrom/snapshot/portage-2005.1.tar.bz2 -C /mnt/gentoo/usr
# mkdir /mnt/gentoo/usr/portage/distfiles
# cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/
# mount -t proc none /mnt/gentoo/proc
# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# emerge gentoo-sources
# cd /usr/src/linux
# make menuconfig
# make && make modules_install
# cp arch/i386/boot/bzImage /boot/bzImage
# nano -w /etc/fstab
# nano -w /etc/conf.d/hostname
# nano -w /etc/conf.d/net
config_eth0=( "192.168.1.210 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.1.1" )
# rc-update add net.eth0 default
# passwd
# nano -w /etc/conf.d/clock
# emerge syslog-ng
# rc-update add syslog-ng default
# emerge vixie-cron
# rc-update add vixie-cron default
# emerge slocate
# nano -w /etc/conf.d/local.start
hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda
/etc/init.d/sshd start
# emerge grub
# cp /boot/grub/grub.conf.sample /boot/grub/grub.conf
# nano -w /boot/grub/grub.conf
# cp /proc/mounts /etc/mtab
# grub
grub> root (hd0,6)          (Specify where your /boot partition resides)
grub> setup (hd0)           (Install GRUB in the MBR)
grub> quit                  (Exit the GRUB shell)
# exit
cdimage ~# cd
cdimage ~# umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
cdimage ~# reboot
-------------------------
Login: root
Password: (Your root password)
# useradd -m -G users,wheel,audio -s /bin/bash john
# passwd john
Password: (Enter the password for john)
Re-enter password: (Re-enter the password to verify)
$ su -
Password: (Enter your root password)
# mount /mnt/cdrom
# export PKGDIR="/mnt/cdrom"
# emerge --usepkgonly xorg-x11
# emerge --usepkgonly gnome
# Xorg -configure
# nano -w /root/xorg.conf.new
# echo "exec gnome-session" > ~/.xinitrc


问题: X -config /root/xorg.conf.new   通过
startx 以后,屏幕中间出现白色方块,死机。。。。。。。。。


我的配置文件:

tux ~ # cat xorg.conf.new
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/lib/X11/rgb"
        ModulePath   "/usr/lib/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/CID/"
        FontPath     "/usr/share/fonts/75dpi/"
        FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
        Load  "extmod"
        Load  "dbe"
        Load  "dri"
        Load  "record"
        Load  "xtrap"
        Load  "glx"
        Load  "type1"
        Load  "freetype"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "auto"
        Option      "Device" "/dev/psaux"
EndSection

Section "Monitor"
        #DisplaySize      320   240     # mm
        Identifier   "Monitor0"
        VendorName   "GSM"
        ModelName    ""
        HorizSync    30.0 - 71.0
        VertRefresh  50.0 - 160.0
        Option      "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "ageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "i810"
        VendorName  "Intel Corp."
        BoardName   "82845G/GL [Brookdale-G] Chipset Integrated Graphics Device"
        BusID       "CI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
-------------------------------------------------------
我的硬件信息:


tux / # lspci            
0000:00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
0000:00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
0000:00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
0000:00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
0000:01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)


问题出在哪里??请教高人指点!!
发表于 2005-9-5 22:24:07 | 显示全部楼层
lspci
dmesg
回复 支持 反对

使用道具 举报

发表于 2005-9-5 23:34:56 | 显示全部楼层
把Load glx和Load dri注释掉试一下,最好把/var/log/Xorg.0.log贴出来看一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-6 09:58:17 | 显示全部楼层
晕~~~果然是3D硬件驱动问题!!!编译X11-drm ,竟然告诉我,2.6内核还不支持drm,需要2.4内核
我  @!#$%^^&&&^**##!@#!@
回复 支持 反对

使用道具 举报

发表于 2005-9-6 10:22:28 | 显示全部楼层
从你的操作步骤来看,好象没有把xorg.conf.new 复制到/etc/X11/xorg.conf
???
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-6 10:48:44 | 显示全部楼层
Post by tiancongxin
从你的操作步骤来看,好象没有把xorg.conf.new 复制到/etc/X11/xorg.conf
???

嘿嘿,这个错误比较低级哦~~~

一某我生命中关键的本版人物,曾教导我“这样的低级错误就表跟我说啦”!

所以,我只不过没有写哦!不代表俺没cp啊!呵呵
回复 支持 反对

使用道具 举报

发表于 2005-9-6 11:25:13 | 显示全部楼层
在2.6的内核中已包含了DRM的支持,不需再安装x11-drm了,只是在编译内核的时候要把它选上
Device Drivers  --->
     Character devices  --->
            <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)   
                <*>   Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)  --->
一定要用i915的驱动
回复 支持 反对

使用道具 举报

发表于 2005-9-6 20:12:46 | 显示全部楼层
你 的配置和我的差不多,我用Package里编好的x11和 gnome装才会出现白色方块,然后死机,太菜,后然自己索性编译了X11和gnome,不会死机了 ,怪。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-6 21:43:02 | 显示全部楼层
Post by wqksnl
你 的配置和我的差不多,我用Package里编好的x11和 gnome装才会出现白色方块,然后死机,太菜,后然自己索性编译了X11和gnome,不会死机了 ,怪。。。



看3楼,注释一下,就可以了!解释,在你楼上!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表