LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-21-2003, 07:06 AM   #1
peradino
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
Need to config USB mouse


Hi, this might be silly but I accidentally reconfig the mouse (hope it would work with the touchpad) but I realized that it didn't work.

So I give up and continue using my USB mouse but I forgot to change mousr config back (all done in Xwindow). Then I restarted and my mouse doesn't move anymore.

I can't enter config menus without mouse and it happen to be that I set Linux to boot to Xwindow automatically. I still be able to enter the shell but I don't know how to config mouse from there. I try "SETUP" but it won't work in mandrake 9.1 could anyone help me?

PS. I also try to re-install. my mouse work in that mode but dosen't move after I finished reinstalledT_T
 
Old 10-21-2003, 07:11 AM   #2
strangehart
LQ Newbie
 
Registered: Oct 2003
Location: kuwait
Distribution: SUSE
Posts: 3

Rep: Reputation: 0
Thumbs up Hello peradino, having problems with the USB mouse.

USB devices are accessed via special files under /dev. We'll be using the following special files for our three USB devices:

Device
Special File

mouse
/dev/input/mouse0 or /dev/input/mice

Zip drive
/dev/sda4

printer
/dev/usblp0


Let's begin with the USB mouse. In general, using a USB mouse in the system console does not require configuration. However, using it under X does. We'll look at the configuration for X version 4 here, which involves editing the XFree86Config file (usually found in the /etc/X11 directory).

First, we must add an InputDevice section to the file. Here is an example:

Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
EndSection

The special file mentioned in this example, /dev/input/mice, refers to any and all USB mice present on the system. If you wanted to specify just the first USB mouse, you would use /dev/input/mouse0 instead.

Secondly, we must tell the X server about the mouse device via an InputDevice directive in the ServerLayout section. For example, these entries specify both a normal mouse and a USB mouse:

Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Mouse[1]" "CorePointer"
InputDevice "USB Mouse" "SendCoreEvents"
...
EndSection

The first field in the InputDevice directive is the Identifier from the corresponding InputDevice section defined previously. The second field is a keyword that specifies how to treat that mouse device. If you want to use only a USB mouse, remove the entry for the usual mouse, and set the second parameter of the USB mouse's entry to CorePointer.

That's all there is to it. The next time you start X, the mouse should be working.

Next, we'll move on to the USB printer. In general, configuring a USB printer is no different than setting up any other printer under Linux: attach the device, set up /etc/printcap entries, and so on. Once the USB device is recognized, no other special handling is necessary.

Using the provided administrative tools is often a quick and convenient method of adding a new printer. Alternatively, you can set up a printer manually, using the same device file, /dev/usblp0. Once the corresponding printer queue is configured, printing to the new device is ready to go.

As our final example, we'll add an external USB Zip 250 drive to the system. Zip drive support is provided by the USB mass storage driver. Via a sleight of hand, this driver tricks the standard SCSI driver into servicing the USB disk. Accordingly, the kernel must also provide SCSI support to use such USB devices, specifically: SCSI support, SCSI generic support and SCSI disk support. For the same reasons, SCSI disk special files are used to refer to Zip drives.

Once the device is recognized by the USB subsystem, you can mount it in the normal way. For example, the following command could be used to mount a Zip disk at /zip250:

# mount -t vfat /dev/sda4 /zip250

Note that the Zip disk's DOS partition is interpreted as partition 4 on the disk. You can also build other file system types on Zip disks if you like. One final, important point: be sure to unmount the /zip file system before ejecting the disk or you may lose data in unflushed disk buffers.

Many people have been slow to use USB devices on Linux systems. Hopefully, this column has shown you just how easy it really is.

however there is this website to check ..its good enough.....
www.linux-usb.org
 
Old 10-21-2003, 08:23 AM   #3
peradino
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Wow....it's work (there is some surprising message, though )
Thank you very much for your help and your kindness for teaching me additional lesson. Your knowledge help me a lot. ^_^
 
Old 10-21-2003, 12:05 PM   #4
Campitor
Member
 
Registered: Mar 2003
Distribution: Fedora Core 1
Posts: 34

Rep: Reputation: 15
Sorry to reply here, but I don want to start a new thread, cause I dont know if it merits. I just installed a USB2.0 PCI card on my box (Pentium II, 128MB RAM) and want to use the usb ports with portable memory or portable drives (Key-chain drives...I dont know th ereal name of them). Is linux configured to do this or do I need to update my system. Im running RH8 with kernel 2.4.20. When I installed the card and rebooted my machine, linux recognized the new hardware and (apparently) installed the drivers. But to test if I plugged the card correctly (its the first PCI card I install) i plugged in a USB mouse and nothing happend, the light on the mouse didnt even go on. So I'm affraid I did something wrong...maybe I didnt plug the card in correctly? Or maybe since the mouse is not setup in X, no power should be given to it? or maybe I need to connect something to the card? I dont know. If you have any suggestions, please post them. Thank you.

Camp
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB wireless Mouse/Keyboard combo config?? AckeyOnYou Linux - Hardware 3 08-14-2005 09:44 AM
Logitech usb/ps2 mouse config for Xfree86 richikiki Slackware 10 05-06-2005 05:28 PM
Where is USB mouse listed on, can't find it? (config for x) Erik Plaggenmar Linux - Hardware 1 06-11-2004 02:57 PM
USB mouse not found (slackware, _not_ an X config issue I think) ruahm Linux - Hardware 9 01-24-2004 02:53 PM
USB mouse config Goatdemon Slackware 4 08-17-2002 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration