LinuxSir.Org  
| 网站首页 | 注册账号 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
 
主题工具
旧 09-07-08, 21:43 第 16 帖
nonplus
 
nonplus 的头像
 
 
注册会员  
  注册日期: Jan 2009
  帖子: 626
  精华: 0
 

无语了.....
既然挖坟了为何不看下去....

http://www.linuxsir.org/bbs/post2004373-15.html

老大,给信息时顺便给上emerge --info
  nonplus 当前离线   回复时引用此帖
旧 09-07-08, 21:44 第 17 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

昨晚的鼠标、键盘没有反应问题算是没有解决好
看来得先修改/usr/make.conf中的INPUT_DEVICES了,然后
#emerge -av xorg-server了

现在以root登陆
#X
鼠标、键盘是没有反应的
#X -config /root/xorg.conf
鼠标、键盘就可以了,但是*出来的是个黑糊糊的界面,什么都没有


#startx
界面如下,但是鼠标、键盘没有反应(这是没有修改XSESSION时的图,修改后启动时KDE的桌面)


现在通过在ssh中
#killall X
来推出鼠标、键盘没有反应的界面的
不用重启了
上传的图像
文件类型: png QQ截图未命名26.png (1.9 KB, 42 次查看)
文件类型: png QQ截图未命名27.png (6.0 KB, 43 次查看)

此帖于 09-07-08 22:06 被 lofeng 编辑.
  lofeng 当前离线   回复时引用此帖
旧 09-07-08, 21:47 第 18 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

引用:
无语了.....
既然挖坟了为何不看下去....

http://www.linuxsir.org/bbs/post2004373-15.html

老大,给信息时顺便给上emerge --info
我已经在/root/xorg.conf中禁用自动加载了

#emerge --info输出如下
引用:
emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Pentium-R-_Dual_CPU_E2160_@_1.80GHz-with-glibc2.0
Timestamp of tree: Mon, 06 Jul 2009 14:15:03 +0000
app-shells/bash: 3.2_p39
dev-lang/python: 2.5.4-r3
dev-util/cmake: 2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63
sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.iij.ad.jp/pub/linux/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mikmod mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis webkit win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vmware"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

此帖于 09-07-08 22:00 被 lofeng 编辑.
  lofeng 当前离线   回复时引用此帖
旧 09-07-08, 22:18 第 19 帖
亞利艾爾
 
 
 
注册会员  
  注册日期: Feb 2008
  帖子: 1,858
  精华: 1
 

引用:
作者: nonplus
好像是它本身的驱动,看Xorg.0.log可以看到采用了evdev驱动,如果是kernel驱动的话直接lspci -vv/-k 应该可以看到调用的驱动

很抱歉,我不用hal,所以没法给具体数据,自己试试
  想不到你这么干净。连HAL都不要了……
  我是觉得吧,如果我知道那个东西是干什么的,一般还是会根据需要把那个设置一下;如果不知道,就看大部分发行版怎么做了,或者Gentoo文档怎么说。这样出问题好解决。
  说来FreeDesktop.org在搞DeviceKit吧。现在又什么都Kit了……







__________________
藥用高分子也考試……
  亞利艾爾 当前离线   回复时引用此帖
旧 09-07-08, 22:21 第 20 帖
亞利艾爾
 
 
 
注册会员  
  注册日期: Feb 2008
  帖子: 1,858
  精华: 1
 

引用:
作者: lofeng
昨晚的鼠标、键盘没有反应问题算是没有解决好
看来得先修改/usr/make.conf中的INPUT_DEVICES了,然后
#emerge -av xorg-server了

现在以root登陆
#X
鼠标、键盘是没有反应的
#X -config /root/xorg.conf
鼠标、键盘就可以了,但是*出来的是个黑糊糊的界面,什么都没有


#startx
界面如下,但是鼠标、键盘没有反应(这是没有修改XSESSION时的图,修改后启动时KDE的桌面)


现在通过在ssh中
#killall X
来推出鼠标、键盘没有反应的界面的
不用重启了
给你个我个人认为稳当的做法。USE="hal" 打开,INPUT_DEVICES就设置个evdev。把/etc/X11/xorg.conf删除了,也不要再用X -configure创建了。这样之后 emerge -DNu xorg-server就没有事了。
  亞利艾爾 当前离线   回复时引用此帖
旧 09-07-08, 22:25 第 21 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

# emerge -av xorg-server
后的输出如下:
引用:
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] x11-base/xorg-server-1.5.3-r6 USE="hal ipv6 nptl sdl xorg -3dfx -debug -dmx -kdrive -minimal -tslib" INPUT_DEVICES="evdev* keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -tslib -ur98 -virtualbox -vmmouse -void -wacom" VIDEO_CARDS="vmware -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx -geode -glint -i128 -i740 (-impact) -imstt -intel -mach64 -mga -neomagic (-newport) -nv -nvidia -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vermilion -vesa -via -virtualbox -voodoo -xgi" 0 kB
[ebuild N ] x11-drivers/xf86-input-evdev-2.1.3 USE="hal -debug" 272 kB
偷懒,直接
# emerge -av /usr/portage/x11-drivers/xf86-input-evdev/xf86-input-evdev-2.1.3.ebuild

然后
#startx

顺利进入KDE,鼠标、键盘均有反应,效果也很炫
  lofeng 当前离线   回复时引用此帖
旧 09-07-08, 22:26 第 22 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

引用:
作者: 亞利艾爾
给你个我个人认为稳当的做法。USE="hal" 打开,INPUT_DEVICES就设置个evdev。把/etc/X11/xorg.conf删除了,也不要再用X -configure创建了。这样之后 emerge -DNu xorg-server就没有事了。
多谢 只是刚开始装xorg-server时不懂hal的作用,没有将INPUT_DEVICES就设置为evdev 所以导致后来的很多问题
  lofeng 当前离线   回复时引用此帖
旧 09-07-08, 22:30 第 23 帖
nonplus
 
nonplus 的头像
 
 
注册会员  
  注册日期: Jan 2009
  帖子: 626
  精华: 0
 

引用:
作者: 亞利艾爾
  想不到你这么干净。连HAL都不要了……
  我是觉得吧,如果我知道那个东西是干什么的,一般还是会根据需要把那个设置一下;如果不知道,就看大部分发行版怎么做了,或者Gentoo文档怎么说。这样出问题好解决。
  说来FreeDesktop.org在搞DeviceKit吧。现在又什么都Kit了……
呵呵,本子性能太弱,高端东西用不起...
曾经试过开hal dbus用wicd
结果进系统时总要卡上几秒,怒,清了,自己写脚本了事

hal对我来说仅仅只能用于挂载而已,当udev rules可以实现相同功能时hal已然无用
dbus原先的libnotify还要用到,如今,发现dzen,于是dbus也将在我机上走入历史

其实kde4很好,可惜目前好像没法对特效进行单独处理(不编译),后端也还在xine,据说mplayer还在研发,等其完善尝试一下
  nonplus 当前离线   回复时引用此帖
旧 09-07-08, 22:47 第 24 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

#vim /etc/conf.d/xdm
修改:
DISPLAYMANAGER="kdm"

#rc-update add xdm default


#rc-update add hald default(添加这个是因为前面都是在ssh中手动开启hald服务的)

然后重启,出现kdm登陆界面
但是每次输入用户名及密码后回车,仍回到KDM登陆界面
而在命令行中同样的用户、同样的密码是可以登录的
  lofeng 当前离线   回复时引用此帖
旧 09-07-09, 12:08 第 25 帖
亞利艾爾
 
 
 
注册会员  
  注册日期: Feb 2008
  帖子: 1,858
  精华: 1
 

你确定你安装了kdebase-startkde了吗?就是desktop那些。一般出这种情况可能有些包没有安装。
  亞利艾爾 当前离线   回复时引用此帖
旧 09-07-09, 12:57 第 26 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

我装的是kdebase-meta:4.2,最基本的包应该都装上去了

引用:
然后重启,出现kdm登陆界面
但是每次输入用户名及密码后回车,仍回到KDM登陆界面
而在命令行中同样的用户、同样的密码是可以登录的
#vim /usr/portage/kde-base/kdm/kdm-4.2.4.ebuild
引用:
if use consolekit; then
echo
elog "You have compiled 'kdm' with consolekit support. If you want to use kdm,"
elog "make sure consolekit daemon is running and started at login time"
elog
elog "rc-update add consolekit default && /etc/init.d/consolekit start"
echo
fi
#/etc/init.d/consolekit status
输出时shopped
然后我
#rc-update add consolekit default

即解决问题

此帖于 09-07-09 13:05 被 lofeng 编辑.
  lofeng 当前离线   回复时引用此帖
旧 09-07-09, 13:44 第 27 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

KDE起来了
下面去解决/var/log/Xorg.0.log和/var/kdm.log中提到的EE和WW
  lofeng 当前离线   回复时引用此帖
旧 09-07-09, 14:23 第 28 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

引用:
localhost_lofeng ~ # cd /var/log/
localhost_lofeng log # grep EE Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(EE) Unable to locate/open config file
(II) Loading extension MIT-SCREEN-SAVER
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)
不是说是用hal,就不需要xorg.conf文件了么?那怎么还会有“Unable to locate/open config file”这个提示?

以下摘自http://www.x.org/wiki/FAQErrorMessages
引用:
This means that the Xserver cannot find a configuration file because it has not been properly configured. Please check FAQMiscellaneous for information how to configure your Xserver.

Another reason for this error may be that you have created a configuration file but it is not in the correct location. The Xserver checks for configuration files at different locations. The usual locations are: /etc/X11/xorg.conf or /etc/X11/XF86Config-4.
Another reason for this message may be that your Xserver cannot read the file because the server binary has the wrong permission. On UN*X like systems the server is usually owned by root and runs with the SUID bit set so that it runs with root privileges even if started by an ordinary user. Therefore it should be able to open the configuration file regardless of who owns it or of its permissions. Please check "How do I check if my server bianry has the correct permissions?" on the FAQMiscellaneous page for futher information
以下摘自:http://www.x.org/wiki/FAQMiscellaneous
引用:
You may want to use the graphical tool xorgcfg to do your Xserver configuration or you may let the server generate it's own configuration file by running: X -configure as root. It will create the configuration file xorg.conf.new in the home directory of the user who ran it (usually root). You should then copy this file to the default location /etc/X11/xorg.conf.
Please note: Xorg can only autodetect PCI and AGP video chipsets. If you still use an ISA/EISA/VL chipset you need to at least know the chipset vendor to specify the correct driver. Most drivers can then autodetect the chipset model.
引用:
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)
这两个问题应该是默认的内核配置中没有包含这两个模块,看来要通过重新编译内核来解决了

此帖于 09-07-09 14:28 被 lofeng 编辑.
  lofeng 当前离线   回复时引用此帖
旧 09-07-09, 14:38 第 29 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

引用:
localhost_lofeng log # grep WW Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) `fonts.dir' not found (or not valid) in /usr/share/fonts/misc/".
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".

(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(WW) Warning, couldn't open module fbdev
(WW) Warning, couldn't open module vesa
(WW) VMWARE(0): Unable to estimate virtual size
那几个font目录找不到应该是因为我安装的是xorg-server而不是xorg-x11,所以有很多字体就没有安装上,这个应该没有问题,可以考虑emerge 相应的字体包。如果有配置文件,应该在配置文件xorg.conf没有问题了,但是用了hal,貌似不用配置文件xorg.conf了。所以那几个包得安装上了。

以下摘自:http://www.nabble.com/About-%22Xfce-...d23920203.html
引用:
First, I changed the xorg guide to recommend installing xorg-server rather than xorg-x11. Functionally the two are identical, though the later versions of xorg-x11 (~arch will soon go stable) add in dozens of unnecessary font packages in many different languages. It's all just bloat, so that warning is now in the guide.
引用:
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
http://acpid.sourceforge.net/
/var/run/acpid.socket 要运行acpid 才有
沒有 /var/run/acpid.socket 并不影响X-widows 的工作

此帖于 09-07-09 14:43 被 lofeng 编辑.
  lofeng 当前离线   回复时引用此帖
旧 09-07-09, 14:56 第 30 帖
lofeng
 
 
 
注册会员  
  注册日期: Oct 2008
  帖子: 157
  精华: 0
 

引用:
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jul 9 14:43:01 2009
/var/log/kdm.log中的错误应该源自Xorg.0.log
引用:
localhost_lofeng log # grep EE kdm.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(EE) Unable to locate/open config file
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)
localhost_lofeng log # grep WW kdm.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.

此帖于 09-07-09 14:58 被 lofeng 编辑.
  lofeng 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 22:09


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2010, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2009, LinuxSir.Org