Opened 8 years ago

Last modified 3 months ago

#7958 assigned bug

[ps2] keyboard doesn't work if plugged in before boot

Reported by: diver Owned by: nobody
Priority: normal Milestone: R1
Component: Drivers/Input/PS2/Keyboard Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

This is hrev42706.

My ps2 keyboard doesn't work if plugged in before boot, but if I plug it after boot it works just fine.

The keyboard works ok in Ubuntu, BIOS and GRUB as well as in KDL, so I assume that both ps2 port and the keyboard itself in a working state.

Attached two syslogs with enabled TRACE_PS2 define.

Attachments (2)

syslog_keyboard_plugged_before_boot (137.9 KB) - added by diver 8 years ago.
syslog_keyboard_plugged_after_boot (114.0 KB) - added by diver 8 years ago.

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by diver

Changed 8 years ago by diver

comment:1 Changed 7 years ago by diver

Still here in hrev44588.

comment:2 Changed 7 years ago by x-ist

Is it possible that you try out the ohci bus driver (mod) I attached to #8987 and post the syslog here? Your system seems to have the same OHCI handover problem, with similar ps2 symptoms.

comment:3 Changed 7 years ago by diver

I've already tried to delete /system/add-ons/kernel/busses/* a few days ago and that didn't help.
I'll try your ohci bus driver in the next few days, but the chances are slim :-(

comment:4 in reply to:  3 Changed 7 years ago by x-ist

Replying to diver:

I've already tried to delete /system/add-ons/kernel/busses/* a few days ago and that didn't help.
I'll try your ohci bus driver in the next few days, but the chances are slim :-(

Very slim, indeed. Thanks anyway.

comment:5 Changed 7 years ago by diver

commenting out ps2_service_notify_device_added in ps2_common.cpp:

index 37f902e..b97347f 100644
--- a/src/add-ons/kernel/bus_managers/ps2/ps2_common.cpp
+++ b/src/add-ons/kernel/bus_managers/ps2/ps2_common.cpp
@@ -402,7 +402,7 @@ ps2_init(void)
                ps2_service_notify_device_added(&ps2_device[PS2_DEVICE_MOUSE + 3]);
                ps2_service_notify_device_added(&ps2_device[PS2_DEVICE_KEYB]);
        } else {
-               ps2_service_notify_device_added(&ps2_device[PS2_DEVICE_MOUSE]);
+//             ps2_service_notify_device_added(&ps2_device[PS2_DEVICE_MOUSE]);
                ps2_service_notify_device_added(&ps2_device[PS2_DEVICE_KEYB]);
        }

gets the keyboard working, but breaks ps2 mouse in qemu and most likely on real hw too.

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

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