Click to See Complete Forum and Search --> : USB mouse in CLI


Ripley
01-14-2001, 04:17 PM
This pissed me off for a long time. I have a usb mouse and know how to set it up in X windows but could never get it to work in the CLI with gpm ie... no X running.

Start gpm with the following (assumes you have created the device correctly and have usb support compiled).

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

I assumed the I had to use imps2 (as I do in X with imps/2), and not ps2.

Just goes to show what reading TFM can do :-)

amiculus
01-22-2001, 10:49 PM
How did you (flame me) get your USB to work again? Mail me, www.linux-usb.org (http://www.linux-usb.org) is very thorough about what is and isn't going to work, but havent' had any success yet. http://www.linuxnewbie.org/ubb/frown.gif heh, oh well.
point me to a good howto, or I'll find it first http://www.linuxnewbie.org/ubb/smile.gif

------------------
One day I booted windows
to have it crash before
it's GUI loaded. THat day
I became a penguin.

Ripley
01-25-2001, 11:39 AM
USB in linux. This is what I did.

You need one of the following. It means you will have to compile a kernel.

1. The latest Linux kernel 2.4.0

2. Linux 2.2.17 with the USB patch applied (links below)
http://www.kernel.org/pub/linux/kernel/v2.2/linux-2.2.17.tar.bz2
http://www.suse.cz/development/usb-backport/usb-2.4.0-test2-pre2-for-2.2.16-v3.diff.gz

The patch will work with kernel versions 2.2.15, 2.2.16, and 2.2.17. I would recommend 2.2.17.

Unzip the kernel source into /usr/src (make sure you rename or remove the linux file/symbolic link first). Move the patch to the Linux file and apply as follows.

gzip -dc usb-2.4.0-test2-pre2-for2.2.16-v3.diff.gz | patch -p1

Compile your kernel. www.linuxnewbie.org (http://www.linuxnewbie.org) has a good NHF on this. Make sure you turn on all the USB stuff. I compiles it into the kernel rather than as a module since I use a USB mouse

Add the following to the end of your /etc/fstab file.

none /proc/bus/usb usbdevfs defaults 0 0

Then use the following link to learn about setting up various usb devices.
http://www.linux-usb.org/USB-guide/book1.html

Or use this one to get a good idea of the device numbers. The same can be found in the /usr/src/linux/Documentation/Devices.txt file in the Linux 2.4.0 source.
http://www.linux-usb.org/usb.devices.txt

For my Netcomm Roadster II USB 56k Modem I used...

mknod /dev/usb/ttyACM0 c 166 0

and for the USB Intellimouse (optical) I used...

mknod /dev/input/mice c 13 63