Opened 11 years ago

Last modified 5 years ago

#9069 assigned bug

PS/2 mouse will not work

Reported by: Norihaiku Owned by: nobody
Priority: normal Milestone: R1
Component: Drivers/Input/PS2/Mouse Version: R1/alpha3
Keywords: ps/2 ps2 mouse laptop Cc:
Blocked By: Blocking:
Platform: x86

Description

Okay, so I installed Haiku on an IBM ThinkPad 600, it works perfectly, for mice.

The hardware itself is fine - Logitech mouse that I connected to the PS/2 port has the LED lit up, however, in Haiku it won't respond.

I tried downloading kb_mouse replacement from http://haikuware.com/directory/start-download/drivers/input-device/kb_mouse-replacement and putting that in system/add-ons/kernel/drivers/dev/input (all possible combinations of the files, also renamed ps2_hid and renamed kb_mouse-mouse to ps2_hid). All that it did was that on two re-boots the trackpoint and mouse buttons of the laptop worked.

The trackpoint is broken in my laptop, so I can't use it (makes cursor move chaotically), so it would be great if PS/2 mice worked.

The mouse itself is one of them cheap basic Logitech mice, with PS/2 and a scroller.

Attachments (2)

ps2 (650.6 KB ) - added by x-ist 11 years ago.
debug build of PS/2 bus manager with TRACE enabled
syslog (205.8 KB ) - added by anevilyak 11 years ago.

Download all attachments as: .zip

Change History (23)

comment:1 by Norihaiku, 11 years ago

Platform: Allx86

comment:2 by Norihaiku, 11 years ago

Hello, I solved it by doing this: http://www.kawakami-ca.com/ibm_600x/disable_trackpoint/ And having kb_mouse-mouse of kb_mouse replace installed in Haiku.

comment:3 by siarzhuk, 11 years ago

Thank you for the info about trackpoint side-effect. Mentioned kb_mouse replacement is BeOS stuff and, should not be used by Haiku so I think you can safely deinstall it.

If you want to investigate the problem a bit more I can build a special version of ps2 bus manager for you and we can acquire detailed log of ps2 boot. Which revision and flavor (gcc2/gcc4) of Haiku do you use then?

comment:4 by Norihaiku, 11 years ago

I don't think the PS/2 mouse will work without kb_mouse, but I'll try it anyway... Why, yes. Yes it does work without kb_mouse.

So I suppose all that had to be done was the trackpoint to be disabled.

I am using which ever version this is: https://www.haiku-os.org/get-haiku Downloaded yesterday and anyboot.

in reply to:  4 comment:5 by siarzhuk, 11 years ago

Replying to Norihaiku:

I am using which ever version this is: https://www.haiku-os.org/get-haiku Downloaded yesterday and anyboot.

I see there alph3 that is a bit outdated. AFAIR I have fixed some bugs in ps2 bus manager right after alpha3 was released. Which revision is shown in the AboutSystem application of your current system? Could you try latest nigtly images (http://haiku-files.org/haiku/development/)

comment:6 by x-ist, 11 years ago

Could you please attach the syslog here?

in reply to:  6 comment:7 by siarzhuk, 11 years ago

Replying to x-ist:

Could you please attach the syslog here?

Note that stock version of ps2 bus manager produce few information about initialization commands flow - the version with uncommented TRACE define should be used for detailed diagnostics. As far as I remember you have recently build one - could you attach it here? Thanks. ;-)

by x-ist, 11 years ago

Attachment: ps2 added

debug build of PS/2 bus manager with TRACE enabled

comment:8 by x-ist, 11 years ago

No we should get decent ps2 information from the syslog.

comment:9 by Norihaiku, 11 years ago

Okay, so I turn the nub back on, connect the ps/2 mouse and boot, right? How do I get the syslog with only keyboard commands?

in reply to:  9 comment:10 by x-ist, 11 years ago

Replying to Norihaiku:

Okay, so I turn the nub back on, connect the ps/2 mouse and boot, right?

First, please replace the original ps2 bus manager in /boot/system/add-ons/kernel/bus_managers/ps2 by the attached one (be sure to make a backup) ). Then delete all files in /boot/common/var/log and reboot.

Enable the trackpoint.

How do I get the syslog with only keyboard commands?

Assuming your system uses the default keyboard layout by pressing [WIN+ALT+T] you launch the Terminal. Otherwise try CTRL+WIN+T or CTRL+ALT+T.

Then type

cp /boot/common/var/log/* ~/Desktop

to save the fresh syslog(s) to your Desktop.

Afterwards restart your system and disable the trackpoint again to have your mouse back. Then post the file(s) here.

comment:12 by Norihaiku, 11 years ago

Okay, I have the syslog, will post in a few

comment:13 by Norihaiku, 11 years ago

http://filesmelt.com/dl/syslog

Got it. Hope I did everything right.

by anevilyak, 11 years ago

Attachment: syslog added

comment:14 by diver, 11 years ago

You are still using stock alpha 3, please try again using a nightly image http://haiku-files.org/haiku/development

comment:15 by Norihaiku, 11 years ago

oh. I'll get around to it soon then.

comment:16 by MichaelPeppers, 10 years ago

Bug still present in hrev47617, a ps/2 keyboard works out of the box but a ps/2 optical mouse needs the workaround described above to work (the only difference is putting the "new" ps2_hid in "/boot/system/non-packaged/add-ons/kernel/drivers/bin")

comment:17 by MichaelPeppers, 10 years ago

Correction: the workaround doesn't work anymore after a reboot.

comment:18 by MichaelPeppers, 10 years ago

Update: (hrev47704) I got some more insight into this bug, the stock Ps/2 mouse driver *does* work, but it's not loaded at startup. I can't figure out why but the driver is loaded after some time (may be 1h, may be less) and it gets shown in the ProcessController as the thread "input_server -> Extended Ps/2 Mouse 1 watcher". After that the mouse just works perfectly. (And before that it doesn't work ofc)

And yes, the other driver I tried behaves the same exact way.

Version 0, edited 10 years ago by MichaelPeppers (next)

comment:19 by siarzhuk, 9 years ago

Owner: changed from siarzhuk to nobody
Status: newassigned

For years I was default assignee for this PS2 stuff. Neither fixes nor improvements - I should be fired away. ;-)

comment:20 by cocobean, 6 years ago

hrev52017 reviewed. I use a Thinkpad T-series and haven;t had an issue with recent nightly revisions.

I think we can close this ticket unless it is a major issue on specific laptop hardware reported elsewhere.

comment:21 by waddlesplash, 5 years ago

Component: Drivers/Mouse/PS2Drivers/Input/PS2/Mouse
Note: See TracTickets for help on using tickets.