DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th September 2008
renej renej is offline
Real Name: Rene
Port Guard
 
Join Date: Sep 2008
Location: Belgium
Posts: 11
Unhappy help with usb mouse??

I have been trying to get a logitech mouse (cordless mouse receiver) to work after installation of FreeBSD 7.0 ... but just cannot get it to work. I have been reading a lot of things that I tried out, but all in vain.
The mouse is working without problems in Windows, Suse and Sidux. So it is quite frustrating .. without mouse there is nothing much i can do to start using FreeBSD.

In rc.conf i have :
usbd_enable="YES"
moused_enable="YES"

My xorg.conf (based upon the one i use in Sidux) is like this :
Section "InputDevice"
Identifier "Logitech USB RECEIVER 0"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "Auto"
Option "Emulate3Buttons" "true"
Option "CorePointer"
EndSection

Anybody any guidance??? If you need more info, tell me. I really hope to solve this asap.
Reply With Quote
  #2   (View Single Post)  
Old 9th September 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Copying xorg.conf sections between systems will typically cause problems, my advice is to run the following as root:
% X -configure
Study the generated xorg.conf.new file.. and see how it detects your mouse, I don't use FreeBSD, but I suspect the Device section above may be incorrect.

Good luck.
Reply With Quote
  #3   (View Single Post)  
Old 9th September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Quote:
Option "Device" "/dev/input/mice"
Um, no. I am suprised that xorg even starts with this in there. At the very least, it will be screaming about it. When things don't work, first check the logs, and the console output. (/var/log/xorg.0.log)

/dev/input/ is a linuxisim. As you are using moused, the correct device is /dev/sysmouse.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #4   (View Single Post)  
Old 10th September 2008
renej renej is offline
Real Name: Rene
Port Guard
 
Join Date: Sep 2008
Location: Belgium
Posts: 11
Default

thanks for the replies ... as soon as i have time i will try the X-configure again ...
i already used /dev/sysmouse (and other options) ... that did not help me.
Reply With Quote
  #5   (View Single Post)  
Old 10th September 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Remove both entries from rc.conf. You don't need them. devd will automatically start moused when the kernel detects a USB mouse.

And change your xorg.conf to use /dev/sysmouse as the device. If that doesn't work, you can use the USB mouse driver, /dev/ums0.

Be sure you have USB mouse support enabled in the kernel, or the ums driver loaded via /boot/loader.conf.

What output do you get in dmesg when you connect the mouse after booting?
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #6   (View Single Post)  
Old 10th September 2008
renej renej is offline
Real Name: Rene
Port Guard
 
Join Date: Sep 2008
Location: Belgium
Posts: 11
Default

Thanks A LOT for pointing me in the right direction robbak and phoenix!!!
Unplugging and replugging the mouse in console showed that the mouse was detected.
So I removed the entries from rc.conf ... made a new xorg.conf.new file and fiddled with that one till testing showed me that the mouse was working ... that happened after using /dev/ums0 as device.
Very glad i finally got it to work!! Thanx guys.
Sure though i will be back with other questions very soon ... sound traditionally gives me problems.
Reply With Quote
  #7   (View Single Post)  
Old 14th September 2008
anemos's Avatar
anemos anemos is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ελλάδα
Posts: 53
Default

Up...
Hi All,
I have the very same problem with my mouse.
Sometimes (not always though), when i boot the machine, the mouse doesn't work.
If I unplug it and put it back it works.
Last two lines of dmesg show:
Quote:
ums0: <vendor 0x04f3 PS/2+USB Mouse, class 0/0, rev 1.10/23.24, addr 3> on uhub1
ums0: 5 buttons and Z dir.
I too had the lines
Quote:
usbd_enable="YES"
moused_enable="YES"
into rc.conf - added by sysinstall - but I deleted them.

I also added
Quote:
ums_load="YES"
into /boot/loader.conf.
Still, mouse doesn't work without "helping" it.

Does anyone have any recommendation?
Thanks in advance

Last edited by anemos; 14th September 2008 at 03:29 PM.
Reply With Quote
  #8   (View Single Post)  
Old 15th September 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Which version of FreeBSD are you using? 6 needs usbd_enable in rc.conf, 7 doesn't (or it might have been 5 needed it and 6 didn't?).

What's the output of usbdevs when the mouse doesn't work? And what do you have in your /etc/X11/xorg.conf for the mouse device?
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #9   (View Single Post)  
Old 15th September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Also, check the boot messages (use the dmesg command) for any errors and postings about the usb systems. You should see the mouse recognised during startup.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 16th September 2008
anemos's Avatar
anemos anemos is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ελλάδα
Posts: 53
Default

First off, thanks both of you guys for the replies.

Quote:
Originally Posted by phoenix View Post
Which version of FreeBSD are you using? 6 needs usbd_enable in rc.conf, 7 doesn't (or it might have been 5 needed it and 6 didn't?).

What's the output of usbdevs when the mouse doesn't work? And what do you have in your /etc/X11/xorg.conf for the mouse device?
uname -a
Quote:
FreeBSD Freeba 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
I booted the machine with and without usbd_enable into /etc/rc.conf but either way the mouse didn't work (most of the times).

usbdevs
Quote:
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 2: USB Keyboard, NOVATEK
addr 1: UHCI root hub, Intel
addr 1: EHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: EHCI root hub, Intel
In /etc/X11/xorg.conf I have
Quote:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
...but shouldn't it work before X is launched?

Quote:
Also, check the boot messages (use the dmesg command) for any errors and postings about the usb systems. You should see the mouse recognised during startup.
No, there is no mouse recognition while booting.
However, when I unplug the mouse and put it back again it shows:
Quote:
ums0: <vendor 0x04f3 PS/2+USB Mouse, class 0/0, rev 1.10/23.24, addr 3> on uhub1
ums0: 5 buttons and Z dir.
Also, I noticed 2 strange lines at the beginning of dmesg
Quote:
module_register: module uhub/ums already exists!
Module uhub/ums failed to register: 17
One thing I forgot to mention is that sometimes even the keyboard doesn't work.

Thanks
Reply With Quote
Old 16th September 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

If you're having USB keyboard/mouse troubles, perhaps you should look at your BIOS configuration.

Some allow you to enable "Legacy USB", which emulates PS/2 mice/keyboards.. try toggling that functionality.

Personally, I hate that many newer systems are dropping PS/2 ports... USB keyboards and mice aren't worth the compatibility issues. (For one thing, they're unavailable in real mode without BIOS emulation...).
Reply With Quote
Old 17th September 2008
anemos's Avatar
anemos anemos is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ελλάδα
Posts: 53
Default

Actually, there is such a functionality in BIOS.
However, I switched it on and off a couple of times but still it didn't work.
Reply With Quote
Old 18th September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

forget X for the time being. if the mouse is not being found at boot, then you need to fix that problem first.

My home system has an issue where the usb hubs fail to start if there is anything connected to them at boot. Annoying, to say the least. (One port works - the front panel one, connected with old usb-1 style unshielded wires. My mouse is plugged in there)
The error message came from uhub, but I cannot tell you exactly what it is at this moment.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 18th September 2008
anemos's Avatar
anemos anemos is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ελλάδα
Posts: 53
Default

Remember this article?
http://www.softwareinreview.com/bsd/....0_review.html

As far as I remember it has been already dispraised in this forum.
However, the guy seems to having almost the same problem.
Also, a search on the internet revealed a couple of similar situations but without any resolution.
I read somewhere that it might be possible to at least make the unplug from within software.
But I have no idea how such a thing could be done.
Reply With Quote
Old 18th September 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Hmm, try usb2 from here: http://www.selasky.org/hans_petter/usb4bsd/index.html

Maybe it is usb bug.

It fixed few SMP panics on my side .....
Reply With Quote
Reply

Tags
mouse, usb, xorg

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB mouse, ums and wsmouse useche OpenBSD General 5 27th July 2009 01:08 AM
mouse freezes in X spiderpig OpenBSD Installation and Upgrading 0 20th April 2009 09:05 AM
patch application for usb mouse? aesop FreeBSD Installation and Upgrading 1 17th January 2009 11:15 PM
Not nice PS/2 mouse :/ latorion FreeBSD General 21 11th October 2008 06:02 PM
Mouse problems dctr FreeBSD General 3 16th May 2008 02:52 PM


All times are GMT. The time now is 04:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick