[问题]我的ubuntu无法使用图形模式登录,只能从文本模式启动x-window,诚望解答

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
rending
帖子: 19
注册时间: 2007-06-16 17:38

[问题]我的ubuntu无法使用图形模式登录,只能从文本模式启动x-window,诚望解答

#1

帖子 rending » 2007-06-16 23:57

我的配置:
cpu: amd64 3600+
显卡:ati RX800

安装ubuntu7.04时,只要选择使用图形模式安装,则显示器,键盘全部失去响应,但是可以从文本模式安装。
安装结束后仍然不能从图形模式登录,只要选择正常登录,显示器就会停止工作,键盘也失去响应。情况和安装时一样。可以从文本模式登录,然后startx才能够进入图形界面。从ati官方网站下载了驱动,也安装成功。在命令行下使用 telinit 5,可以正常登录图形界面,一切正常。现在的问题就是不能直接从图形模式启动,要进入图像界面就必须通过文本模式。

本人刚刚开始使用linux,应该是ati显卡的问题,网上也找不到有帮助的信息,望各位大虾指点。
冰封尘
帖子: 162
注册时间: 2005-04-09 7:23
来自: 云南
联系:

#2

帖子 冰封尘 » 2007-06-17 1:24

编辑/etc/inittab 文件

代码: 全选

id:3:initdefault:

代码: 全选

id:5:initdefault:
rending
帖子: 19
注册时间: 2007-06-16 17:38

#3

帖子 rending » 2007-06-17 3:35

在/etc下找不到inittab,好像在ubuntu中已经没有这个文件了。

如果要改这个东西,是不是还有其他办法。
rending
帖子: 19
注册时间: 2007-06-16 17:38

#4

帖子 rending » 2007-06-17 3:50

在终端who -r查询,我的启动运行级别是S single-user模式

在/etc/event.d下有rcS,rc-default,rcS-sulogin三个文件
rcS:

代码: 全选

# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.

start on startup

stop on runlevel

# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance).
console output
script
	runlevel --set S >/dev/null || true

	PREVLEVEL=N
	RUNLEVEL=S
	export PREVLEVEL RUNLEVEL

	exec /etc/init.d/rcS
end script
rc-default:

代码: 全选

# rc - runlevel compatibility
#
# This task guesses what the "default runlevel" should be and starts the
# appropriate script.

start on stopped rcS

script
	runlevel --reboot || true

	if grep -q -w -- "-s\|single\|S" /proc/cmdline; then
	    telinit S
	elif [ -r /etc/inittab ]; then
	    RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
	    if [ -n "$RL" ]; then
		telinit $RL
	    else
		telinit 2
	    fi
	else
	    telinit 2
	fi
end script
rcS-sulogin:

代码: 全选

# rcS-sulogin - "single-user" runlevel compatibility
#
# This task runs the sulogin binary during "single-user" mode.

start on runlevel S

stop on runlevel

console owner
script
	runlevel --set S >/dev/null || true
	/sbin/sulogin

	if [ -r /etc/inittab ]; then
	    RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
	    if [ -n "$RL" ]; then
		telinit $RL
	    else
		telinit 2
	    fi
	else
	    telinit 2
	fi
end script
难道把这三个文件中的S改为5,就可以了吗?新手不敢乱动,急等指教~~~~~~~~~
rending
帖子: 19
注册时间: 2007-06-16 17:38

#5

帖子 rending » 2007-06-17 13:24

这里似乎是正解,可恶的ati

viewtopic.php?t=40830
回复