View previous topic :: View next topic |
Author |
Message |
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Sat May 07, 2005 7:44 pm Post subject: Mouse dosn't work. [solved] |
|
|
Ok, so far tha biggest pain has been geting the mouse to work. It dosn't work in text mode/terminal like it did in the installation CD. It dosn't glow or anything. Its an USB optical, and I've got the USB selected in in the kernel, the HID support, and the HID level support, or whatever it is. Also, how do you copy text in terminal?
Last edited by St3mpy on Wed May 11, 2005 9:52 pm; edited 1 time in total |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Sat May 07, 2005 7:49 pm Post subject: |
|
|
'emerge gpm' and follow the config instructions. |
|
Back to top |
|
|
96140 Retired Dev
Joined: 23 Jan 2005 Posts: 1324
|
Posted: Sat May 07, 2005 9:08 pm Post subject: |
|
|
Right. Follow plato's advice. And then, once you've emerged gpm and edited its config file, you'll want to do this as root: Code: | rc-update add gpm default |
That way you'll have your mouse when you boot your system. When your mouse is working, just highlight text by clicking and dragging with the left mouse button as usual. Then, leaving that text selected, you can switch to a different virtual terminal, position the cursor where you'd like the text to appear, and press the middle mouse button. It will copy it from the other screen. Simple as that. |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Sun May 08, 2005 2:51 am Post subject: |
|
|
I emerged GPM, but I never got config instructions or anyting. I looked for a config file, and there's 3, but none of it makes sence to me. Was there supposed to be something to aid me in setting up my mouse, kinda like with Xorg? I searched for documentation, but didn't find any. You would think somehting like this would be covered in the manual... |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Sun May 08, 2005 4:21 am Post subject: |
|
|
Just edit /etc/conf.d/gpm so that the MOUSE and MOUSEDEV lines are correct for your mouse type (the same setting you used in your xorg.conf should work). Uncomment the first APPEND line as well though, it adds some useful features. Then run /etc/init.d/gmp start && rc-update add gpm default, and your set my man. To copy/paste, either use your middle mouse button (a mouse wheel counts as a middle mouse button), or press the left and right buttons at the same time. BTW, the same trick works in xorg for copying and pasting. It comes in real handy with xterms. Here is my /etc/conf.d/gpm file. I have also have an optical USB mouse, so my settings will probably work for you. I use devfs instead of udev though, so your mouse device node may be different. Code: | # Config file for /etc/init.d/gpm
# Please uncomment the type of mouse you have and the appropriate MOUSEDEV entry
#MOUSE=ps2
MOUSE=imps2
#MOUSEDEV=/dev/psaux
MOUSEDEV=/dev/input/mice
# Extra settings
#RESPONSIVENESS=
#REPEAT_TYPE=raw
# Please uncomment this line if you want gpm to understand charsets used
# in URLs and names with ~ or : in them, etc. This is a good idea to turn on!
APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\""
# Various other options
#APPEND="-g 1 -A 60"
#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\" -g 1 -A 60"
|
_________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Sun May 08, 2005 1:44 pm Post subject: |
|
|
Ok, I did that, I'm on udev, so I set my mouse to mouse0.All it says is something like "Opps, can't access /dev/input/mouse0; something around that nature. Should my mouse be atleast glowing? |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Sun May 08, 2005 1:54 pm Post subject: |
|
|
Update: Ok, I changed it to MOUSEDEV=/dev/input/mice, and it didn't give an error this time, but is still dosn't glow or move. Is this a USB error instead? I know it windows it dosn't glow untill you get to the Welcome screen, if that helps. |
|
Back to top |
|
|
Filip* n00b
Joined: 01 Sep 2004 Posts: 60 Location: Utrecht, The Netherlands
|
Posted: Sun May 08, 2005 2:37 pm Post subject: |
|
|
Does your mouse work in Xorg? |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Sun May 08, 2005 2:40 pm Post subject: |
|
|
Make sure gpm is actually running. Type the command:
to verify this. If it is, then verify that your mouse device is the right one. Easy way to see if the mouse device is doing anything is to type:
Code: |
cat /dev/input/mice
|
Move your mouse around and some junk should appear on your console in response to your mouse movements. If both of those things check out, then issue:
Code: |
/etc/init.d/gpm restart
|
Things should be working at that point. If not, post some specifics and we'll try to find the deeper problem. |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Sun May 08, 2005 9:21 pm Post subject: |
|
|
Ok, I entered the command ps -el | grep gpm, and it put out some numbers and a ? and then 00:00:00 gpm. No clue what that means.When I entered cat /dev/input/mice, all it did was blink the cursor until I hit crtl+c. Mouse didnt' do anything. the restart commnad didnt' do anyting either. |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Sun May 08, 2005 10:23 pm Post subject: |
|
|
Quote: |
Ok, I entered the command ps -el | grep gpm, and it put out some numbers and a ? and then 00:00:00 gpm. No clue what that means.
|
Ok, that means GPM is running, so that's not the culprit.
Quote: |
When I entered cat /dev/input/mice, all it did was blink the cursor until I hit crtl+c. Mouse didnt' do anything. the restart commnad didnt' do anyting either.
|
Ok, that means the /dev/input/mice device isn't the right one or isn't working. That is the culprit. The last time this happened to me it was because the required usb modules weren't loaded. Do you remember if you compiled your usbhid as a module or directly into the kernel?
Try the following command:
Quote: |
dmesg | grep usbhci
|
It should give you a line back like:
Code: |
usbcore: registered new driver usbhid
|
If not, then you don't have the usbhid driver loaded. To load it, do:
Let us know what happens. |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Mon May 09, 2005 2:10 am Post subject: |
|
|
I entered usbhid directly into the kernel. |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Mon May 09, 2005 2:17 am Post subject: |
|
|
Did the dmesg command give you any results? |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Mon May 09, 2005 3:05 am Post subject: |
|
|
usb | grep usbhci didn't do anyting, but I'm assuming that a typo for usb | grep usbhid, which did outpu usb:core: registered new driver usbhid. |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Mon May 09, 2005 9:41 pm Post subject: |
|
|
bump |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Mon May 09, 2005 11:09 pm Post subject: |
|
|
Why don't I get the easy ones
Go ahead and post your /usr/src/linux/.config file so we can have a look at it. Before you do that, also look in dev for any devices that might look like mouse or mice. I'm stumped at this point. |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Mon May 09, 2005 11:20 pm Post subject: |
|
|
platojones wrote: | Why don't I get the easy ones
Go ahead and post your /usr/src/linux/.config file so we can have a look at it. Before you do that, also look in dev for any devices that might look like mouse or mice. I'm stumped at this point. | No, don't post your /usr/src/linux/.config file, its freakin huge, and 90% of it is of no use to us. Grep it, post the output of cat /usr/src/linux/.config | grep USB_HID. Also, if the mouse is working in xorg, we can find the proper device node from your xorg.conf, so post the input device section of /etc/X11/xorg.conf. Also post /etc/conf.d/gpm so I can make sure you didn't misconfigure gpm itself. _________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
baerun n00b
Joined: 06 May 2005 Posts: 32
|
Posted: Tue May 10, 2005 1:18 am Post subject: |
|
|
While we are on the topic of mice.....My mouse doesnt work either. I am using a laptop and have a touchpad. When I startx or anything I cannot move my mouse. Is there anything special I have to do to use a touchpad? |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Tue May 10, 2005 1:38 am Post subject: |
|
|
baerun wrote: | While we are on the topic of mice.....My mouse doesnt work either. I am using a laptop and have a touchpad. When I startx or anything I cannot move my mouse. Is there anything special I have to do to use a touchpad? | Do you have a working mouse with the livecd? If so, boot from it and post the output of lsmod and lets see what kind of mouse driver the livecd uses. Check out this site as well, it's not strictly Gentoo but it does have some useful information. _________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Tue May 10, 2005 2:43 am Post subject: |
|
|
Mouse dosn't work in Xorg. H/o, and I'll try the grep command. Just hope the output isn't to big for me to sopy down...
EDIT: Ok, grep command output:
Code: | CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set |
|
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Tue May 10, 2005 2:53 am Post subject: |
|
|
Whats the output of ls /dev/input look like? _________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
St3mpy n00b
Joined: 06 Apr 2005 Posts: 33
|
Posted: Tue May 10, 2005 3:06 am Post subject: |
|
|
ls /dev/input:
event0 event2 js0 js2 mice mouse1 mouse3
event1 event3 js1 js3 mouse0 mouse2 |
|
Back to top |
|
|
baerun n00b
Joined: 06 May 2005 Posts: 32
|
Posted: Tue May 10, 2005 3:49 am Post subject: |
|
|
Sith_Happens wrote: | baerun wrote: | While we are on the topic of mice.....My mouse doesnt work either. I am using a laptop and have a touchpad. When I startx or anything I cannot move my mouse. Is there anything special I have to do to use a touchpad? | Do you have a working mouse with the livecd? If so, boot from it and post the output of lsmod and lets see what kind of mouse driver the livecd uses. Check out this site as well, it's not strictly Gentoo but it does have some useful information. |
Ahhh...when I load up the live cd and do Code: | cat /dev/input/mouse0 | i get nothing but when I do Code: | cat /dev/input/mice | I do get stuff. I don't know if that has any significance but when i type lsmod i get Code: |
Module Size Used by
ipv6 282604 10
sungem 36768 0
sungem_phy 10304 1 sungem
nls_utf8 2272 0
nls_iso8859_15 4864 0
nls_iso8859_1 4256 1
isofs 40408 1
binfmt_misc 12968 0
ide_scsi 18596 0
sr_mod 21088 0
zlib_inflate 23616 1 isofs
compressloop 8992 1
cryptoloop 5408 0
loop 20840 4 compressloop,cryptoloop
|
err...how can i tell which one is for my mouse?
Edit: I did search that website you told me about and came upon a user of a apple ibook g4 (same comp I have) and he said his mouse driver was uinput and it did not come up with lsmod on mine |
|
Back to top |
|
|
baerun n00b
Joined: 06 May 2005 Posts: 32
|
Posted: Tue May 10, 2005 6:06 am Post subject: |
|
|
If I were to add new modules would I just Configure it.. then Code: | make all && make modules_install | or just Code: | make modules_install | by itself and then re-copy the kernel? |
|
Back to top |
|
|
96140 Retired Dev
Joined: 23 Jan 2005 Posts: 1324
|
Posted: Tue May 10, 2005 6:18 am Post subject: |
|
|
The best way to compile a kernel, add and install modules and the kernel is to use this string:
Code: | make && make modules && make modules_install && make install |
It only takes a little bit more time, but you're much more likely to have a working kernel with proper modules installation. These commands take care of all installation for you. It doesn't hurt to run this set of commands every time you add a module; it's just extra insurance. |
|
Back to top |
|
|
|