Opened 13 years ago

Closed 22 months ago

#7958 closed bug (not reproducible)

[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:
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 13 years ago.
syslog_keyboard_plugged_after_boot (114.0 KB ) - added by diver 13 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by diver, 12 years ago

Still here in hrev44588.

comment:2 by x-ist, 12 years ago

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 by diver, 12 years ago

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 :-(

in reply to:  3 comment:4 by x-ist, 12 years ago

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 by diver, 11 years ago

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 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:7 by waddlesplash, 5 years ago

Component: Drivers/Keyboard/PS2Drivers/Input/PS2/Keyboard

comment:8 by waddlesplash, 22 months ago

Please retest after hrev56268.

comment:9 by diver, 22 months ago

Resolution: not reproducible
Status: assignedclosed

I don't even remember which pc I had when I filed this issue. I certainly don't have it since long.

Note: See TracTickets for help on using tickets.