Opened 7 years ago

Last modified 3 months 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:
Has a Patch: no 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 7 years ago.
debug build of PS/2 bus manager with TRACE enabled
syslog (205.8 KB) - added by anevilyak 7 years ago.

Download all attachments as: .zip

Change History (23)

comment:1 Changed 7 years ago by Norihaiku

Platform: Allx86

comment:2 Changed 7 years ago by Norihaiku

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 Changed 7 years ago by siarzhuk

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 Changed 7 years ago by Norihaiku

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.

comment:5 in reply to:  4 Changed 7 years ago by siarzhuk

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 Changed 7 years ago by x-ist

Could you please attach the syslog here?

comment:7 in reply to:  6 Changed 7 years ago by siarzhuk

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. ;-)

Changed 7 years ago by x-ist

Attachment: ps2 added

debug build of PS/2 bus manager with TRACE enabled

comment:8 Changed 7 years ago by x-ist

No we should get decent ps2 information from the syslog.

comment:9 Changed 7 years ago by Norihaiku

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?

comment:10 in reply to:  9 Changed 7 years ago by x-ist

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:11 Changed 7 years ago by Norihaiku

comment:12 Changed 7 years ago by Norihaiku

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

comment:13 Changed 7 years ago by Norihaiku

http://filesmelt.com/dl/syslog

Got it. Hope I did everything right.

Changed 7 years ago by anevilyak

Attachment: syslog added

comment:14 Changed 7 years ago by diver

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

comment:15 Changed 7 years ago by Norihaiku

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

comment:16 Changed 5 years ago by MichaelPeppers

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 Changed 5 years ago by MichaelPeppers

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

comment:18 Changed 5 years ago by MichaelPeppers

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.

PS: I'm starting to think this bug is not related to the one reported in this ticket. Should I open a new one?

Last edited 5 years ago by MichaelPeppers (previous) (diff)

comment:19 Changed 4 years ago by siarzhuk

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 Changed 11 months ago by cocobean

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 Changed 3 months ago by waddlesplash

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