LinuxSir.cn,穿越时空的Linuxsir!

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

slackware10 系统装上了,但是问题多多,请求帮助

[复制链接]
发表于 2005-1-26 21:53:17 | 显示全部楼层 |阅读模式
1。hotplug不行:如果启动时执行hotplug就会死机。single模式登陆将rc.hotplug移去则ok,正常启动
2。启动不了X:启动时显示启动/dev/mouse失败,将usb鼠标换成PS/2的,然后在xorgconfig里面从新配置鼠标,重启,还是显示启动/dev/mouse失败。从而在startx时显示/dev/mouse不存在而启动失败。

不知道上述两则有没有必然联系,请高手帮忙出主意。多谢!!!
发表于 2005-1-26 23:02:23 | 显示全部楼层
chmod -x /etc/rc.d/rc.udev
然后重新安装一下dev
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-27 07:46:00 | 显示全部楼层
谢谢!我在rc.module.conf里面将usb鼠标钱的#去掉后鼠标出现了,可惜进入X以后鼠标不动。是哪里可以还需要设置一下涅?
回复 支持 反对

使用道具 举报

发表于 2005-1-27 12:11:24 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-27 20:20:33 | 显示全部楼层
我几乎用遍了gpm -t help列出的所有选项,有的能在X下出现鼠标指针,可惜它就是一动不动

我用gpm -m /dev/input/mice imps2 何 gpm -m /dev/input/mice exps2 可以出现指针。
在/etc/X11/xorg.conf里面也进行了相应的设置。就是不行啊

救命啊。

呵呵,偶然间发现了一篇好文章:
http://vanguard.submoron.org/docs/USBMOUSE-HOWTO.html

Setting up a USB mouse in Slackware
Setting up your shiny usb mouse in Slackware isn't tough.



Reason for existance
Basically, I got really tired of repeating this over and over in the #slackware IRC channel. So, to make it short and simple, and in case I'm not in the channel when I am, I've written up these instructions to quickly set up your usb mouse in X and in gpm. To contact me, hit the #slackware IRC channel on irc.oftc.net, I'm Pungent in that room, or fire me an email at cbacot@runbox.com

Loading the modules
First things first, loading the kernel modules. Note, this is for the stock kernel, if you are compiling a custom kernel, make sure that the appropriate modules are compiled or made part of the kernel. I'd recommend modules.

mousedev 3864 1
hid 19300 0 (unused)
input 3360 0 [mousedev hid]
usb-uhci 21516 0 (unused)
usbcore 56288 0 [hid usb-uhci]

Substitute usb-ohci for usb-uhci if you have a usb controller that uses it. For example, my old Compaq used ohci, my new Via based motherboard uses uhci. Most Intel motherboards are also uhci. If you can't figure out which one to load, try each one and see if it works. Now, you should have modprobe'd those modules in, if you haven't, hurry up, I don't have all day. The command is:

modprobe [modulename]

And make sure you modprobe those starting from the bottom up.

Now, if you have an optical mouse, the light should be on right now. If you have a regular ball mouse, then you'll have to wait until the next section to test it with gpm. If those modules worked for you, then lets stick that in /etc/rc.d/rc.modules so they start up every time you boot. There should be an entry for the relevant ones, just uncomment them out (remove the '#' at the beginning of the line containing the modprobe command)

Setting up and testing with gpm
Now that the modules are running, lets test it out using gpm on the console. If gpm is already running, (the Slackware install offers to set it up) then kill it using:

gpm -k

as root. Now, lets try to fire it back up again. As root, run

gpm -m /dev/input/mice -t imps2

Note the options here. -m refers to the device that the mouse is accessed on. Now, I know that there is an option in the default setup for a usb mouse, but sometimes it doesn't work, as it uses /dev/input/mouse0, which doesn't always work. Using /dev/input/mice WILL work, as that is straight from the kernel documentation. The -t option is the protocol the mouse should use, which most usb mice are the scroll wheel type, so imps2 is the right one. If the cursor doesn't follow the mouse using that protocol, try a few others. Kill the current gpm if it's running, and run

gpm -t help

for a list of protocols. Now, lets assume all went well, the cursor is following your mouse. If you have an /etc/rc.d/rc.gpm, then open that up in your favorite text editor, such as vim or pico, as root. If you don't have this file, create it, and paste the following into it:

#!/bin/sh
# Start/stop the GPM mouse server:

if [ "$1" = "stop" ]; then
echo "Stopping gpm..."
gpm -k
else # assume $1 = start:
echo "Starting gpm..."
gpm -m /dev/mouse -t imps2
fi


Then make sure this file is executable, by running:

chmod +x /etc/rc.d/rc.gpm

and gpm will be set up every time you boot.
One last thing. Note that this script uses /dev/mouse as its device. Since we used /dev/input/mice to test earlier, we need to set this up. Run the command:

ls -l /dev/mouse

If /dev/mouse points to something other than /dev/input/mice, then execute the following commands:

rm /dev/mouse
ln -s /dev/input/mice /dev/mouse

And thats all there is to it! Now you can use your usb mouse in the console, just highlight some text by holding down the left mouse button while dragging, then paste it to the cursor location with the right mouse button.

Now, lets move on to setting up X to use it.
Setting up XF86Config
Ok, time to get X up using the usb mouse. Open up /etc/X11/XF86Config in your favorite text editor (Note: this howto does NOT explain how to configure X. Maybe in a future howto, but for now, if this file doesn't exist, go read the manpage for XF86Config). Locate the section that says:

Section "InputDevice"
Identifier "Mouse0"

Under this should be something like:

Driver "mouse"
Option "rotocol" "imps/2"
Option "Device" "/dev/mouse"

If the device isn't /dev/mouse, then make it /dev/mouse, and you may change "imps/2" to whatever protocol you set in the gpm setup earlier. Now, if this next part isn't present, add it if you have a wheel mouse:

Option "ZAxisMapping" "4 5"

And thats all there is too it. Fire up X and you should be set.
回复 支持 反对

使用道具 举报

发表于 2005-1-27 22:57:56 | 显示全部楼层
gpm是文本界面下的鼠标,和X Window的鼠标没有关系。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-29 16:57:29 | 显示全部楼层
Post by windrose
gpm是文本界面下的鼠标,和X Window的鼠标没有关系。


谢谢斑竹指点,现在问题变成这样了:看来我的usb鼠标能够探测到,但是gpm不能用;能进X,但是在里面鼠标不动。我在/etc/X11/xorg.conf里面的鼠标也是进行相应设置了,不知道哪里有设错啊。

各位指点,小弟鞠躬了//bow
回复 支持 反对

使用道具 举报

发表于 2005-1-29 17:16:50 | 显示全部楼层
Post by failsafe
谢谢斑竹指点,现在问题变成这样了:看来我的usb鼠标能够探测到,但是gpm不能用;能进X,但是在里面鼠标不动。我在/etc/X11/xorg.conf里面的鼠标也是进行相应设置了,不知道哪里有设错啊。

各位指点,小弟鞠躬了//bow


兄弟说的能探测到是指什么?lsmod什么结果?gpm不能用是指什么?运行了没反应还是出错了?在xorg里面怎么设置的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-29 19:10:03 | 显示全部楼层
Post by laxi1982
兄弟说的能探测到是指什么?lsmod什么结果?gpm不能用是指什么?运行了没反应还是出错了?在xorg里面怎么设置的?

lsmod如下:
  1. module      size     used by   Tainted : P
  2. ide-scsi      9328      0
  3. tulip         37064     1     #这边有个问题:这个模块是网卡驱动,但是我装上之后一用ifconfig就死机,估计没有装好
  4. Crc32       2880       1 (unused)
  5. keybdev   2052       0 (unused)
  6. mousedev 4212      1     #这里第一次出现跟鼠标有关的module
  7. hid           21220     0 (unused)
  8. usbmouse 2040       0 (unused)   #又出现跟鼠标有关的了
  9. input        3200       0 [keybdev mousedev hid usbmouse]   #这边也有鼠标
  10. usbcore    59308     0 [hid usbmouse]  #天哪那么多跟鼠标有关的module,居然鼠标还是不能用
  11. agpgart    43940     0
复制代码


以上是我的lsmod的结果,我不知道 used by的10 有什么不同?但是好像出现1的module都有问题:(

启动时的gpm如下:
  1. gpm -m /dev/mouse -t imps2
复制代码

启动这项时会在屏幕中心出现光标,接着就消失了。

/etc/X11/xorg.conf的关于鼠标的项目如下:
  1. Identifier "Mouse1"
  2. Driver      "mouse"
  3. option     "Protocol"   "imps/2"
  4. option     "Device"     "/dev/mouse"
复制代码


各位帮我看看,那里有问题???
回复 支持 反对

使用道具 举报

发表于 2005-1-29 19:36:53 | 显示全部楼层
你用的是usb鼠标,去掉hotplug就检测不出来了。执行hotplug是很长时间,不一定是死机。
回复 支持 反对

使用道具 举报

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

本版积分规则

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