Opened 16 years ago

Closed 15 years ago

#1726 closed bug (fixed)

PS/2 mouse doesn't work

Reported by: ekdahl Owned by: marcusoverhagen
Priority: normal Milestone: R1
Component: Drivers/Mouse/PS2 Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

It worked before Begeistert. The mouse actually has USB interface, but I'm using a converter (you know the small green thing Microsoft encloses with their mice) to PS/2. I recall there were some changes to the input drivers during Begeistert. That might have something to do with it.

Additionally my USB keyboard connected to OHCI has stopped working. It worked before, but only when I had a PS/2 keyboard connected also (I'm not 100% certain of this, but I think that was the case).

Change History (10)

comment:1 by marcusoverhagen, 16 years ago

Cc: mmlr added
Status: newassigned

What is your configuration?

USB mouse connected to PS2 port with green converter, and USB keyboard connected to USB port?

Technically, there exist some USB mouse and keyboards that also work as PS/2 and those provice the green mouse or pink keyboard converter (from USB to PS2 connector). I have those, too. Be aware that you can't use these converters with all devices, just with those that support both PS2 and USB mode (they are sold with converter then).

This might be a conflict of USB legacy emulation and PS/2.

Or in other words: The ohci driver might now disable legacy emulation, and the bios shuts off PS2-mouse and keyboard input as a result. But the ohci driver isn't finished, and doesn't fully work.

Please do a first test and remove the ohci driver from Haiku and reboot. Does the mouse and keyboard work after that?

If it doesn't, do a second test: Remove the ohci, ehci and uhci driver from Haiku reboot.

Does the mouse and keyboard work after that?

in reply to:  1 comment:2 by ekdahl, 16 years ago

Replying to marcusoverhagen:

What is your configuration?

USB mouse connected to PS2 port with green converter, and USB keyboard connected to USB port?

Yes, exactly.

Technically, there exist some USB mouse and keyboards that also work as PS/2 and those provice the green mouse or pink keyboard converter (from USB to PS2 connector). I have those, too. Be aware that you can't use these converters with all devices, just with those that support both PS2 and USB mode (they are sold with converter then).

Not sure if the converter came with this mouse, but I think so. Anyway it's a IntelliMouse Explorer 3.0.

This might be a conflict of USB legacy emulation and PS/2.

Or in other words: The ohci driver might now disable legacy emulation, and the bios shuts off PS2-mouse and keyboard input as a result. But the ohci driver isn't finished, and doesn't fully work.

I noticed that the ohci driver isn't included in the image, didn't know that.

Please do a first test and remove the ohci driver from Haiku and reboot. Does the mouse and keyboard work after that?

If it doesn't, do a second test: Remove the ohci, ehci and uhci driver from Haiku reboot.

Does the mouse and keyboard work after that?

Removed ehci and uhci and then both worked, ie. USB keyboard and PS/2 mouse.

comment:3 by marcusoverhagen, 16 years ago

If the ohci driver isn't included, then it is probably the ehci driver that disables legacy emulation. Do you have a USB2.0 hub that you can connect inbetween keyboard and PC, and test again with ehci driver included? (you may also try to connect the mouse in USB mode to the USB2.0 hub)

Does you current configuration work with any other OS? If yes, which ones?

Can you please provide a syslog file?

mmlr do you have any idea?

comment:4 by marcusoverhagen, 16 years ago

mmlr is it possible to add some (unconditional) debug output to the USB handoff code? It looks like we are not the only OS having problems.

http://linux.derkeiler.com/Mailing-Lists/Kernel/2006-01/msg01522.html http://lkml.org/lkml/2006/1/5/137 http://lists.freebsd.org/pipermail/freebsd-usb/2004-November/000190.html

I also found this file that describes some interaction details: http://www.usb.org/developers/devclass_docs/usb_le9.pdf

comment:5 by mmlr, 16 years ago

Well, if you have OHCI and EHCI then EHCI will disable legacy support and hand of control to the companion host controller (OHCI) which disables your keyboard in this case as there is no OHCI driver. All host controllers have their own legacy support handling, but it is possible that disabling it through EHCI is enough to let the BIOS give up the control completely. Thanks for the links Marcus, I will read up in the legacy support document and see if we do something wrong. Also enabling debug output to the handoff code makes sense.

comment:6 by marcusoverhagen, 16 years ago

I think we have to wait for the ohci driver beeing finished until we can debug this further.

Possibly the keyboard is not working because the ohci driver is missing, and as you said the ehci controller has disabled legacy support for the port.

On the other hand, the Bios might still keep the PS/2 port of the mouse disabled until all USB controllers are set to non-legacy mode, but we don't do that for ohci yet.

comment:7 by mmlr, 16 years ago

Cc: mmlr removed

Going through bugs related to OHCI... Since OHCI is now implemented and included by default, this could be further investigated if it is still an issue.

comment:8 by ekdahl, 16 years ago

I'll check again as soon as I get Haiku booting on this computer again.

comment:9 by ekdahl, 15 years ago

I don't have any issues with my mice/keyboards anymore, though the configuration isn't exactly the same as when I reported this.

I now have:

  • PS/2 keyboard
  • USB mouse
  • Wireless USB-connected mouse/keyboard combo

All work fine now.

This can be closed.

comment:10 by stippi, 15 years ago

Resolution: fixed
Status: assignedclosed

Thanks for the feedback!

Note: See TracTickets for help on using tickets.