⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.evdev

📁 gpm-1.20.0.tar.gz
💻 EVDEV
字号:
	GPM SUPPORT FOR LINUX EVENT INTERFACE MICE	Usage:	------Simply run $ gpm -t evdev -m /dev/input/event##Just as it if were a serial or PS/2 mouse.  The hard bit is working outwhich event device your mouse is plugged into.  The way I do this is torun$ xxd /dev/input/event##For all the event devices (in numerical order), and see which oneproduces output when I wave the mouse.Note that you may need to pass a `-r #' flag to gpm -- I find that it isa tad too sensitive by default.	FAQ:	----Actually, these aren't FAQs at all since this is the first time I haveshown the world this code...1: I get no output from any of the /dev/input/event## devices, what'swrong?Execute the following commands as root:$ modprobe input$ modprobe hid$ modprobe evdevThese will load the driver if it is available.  If it isn't (i.e. ifeither of these commands fail), you'll need a newer kernel or a backport- I would advise getting a newer kernel.  It may also be worth checkingif you are also sufferring from the problem solved in Question 2...2: The mouse moves randomly all over the place, or does nothing at all,yet I get output from /dev/input/event##, what's with that?There are two possibilities here - you may have other event devices suchas USB joysticks or keyboards attached, and the device node you'relooking at is one of them, or the major and minor numbers of your devicenodes are incorrect.  It is worth noting that, as shipped, SuSE Linux7.1 has the wrong minor numbers on it's event nodes.If you suffer from the first problem, just try the other event devicesuntil you find the mouse.  If you suffer from the second problem executethe following commands as root in a bourne-compatible shell e.g. bash:$ cd /dev/input$ umask 22$ rm event*$ for i in `seq 0 63`;do mknod event${i} c 13 `echo ${i} 64 + p|dc`;done3: I don't have a /dev/input directory, or the directory is empty.If you use devfs, then (as root):$ modprobe evdevshould fix it.Otherwise, you can run the following commands as root:$ mkdir -p /dev/input$ cd /dev/input$ umask 22$ rm event*$ for i in `seq 0 63`;do mknod event${i} c 13 `echo ${i} 64 + p|dc`;done(c) 2001 Philip Willoughby <pgw99@doc.ic.ac.uk>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -