Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase PS/2 timeouts for reset #1079

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

YtvwlD
Copy link
Contributor

@YtvwlD YtvwlD commented Dec 4, 2023

The chosen arbitrary timeout value works in qemu, but causes a panic on boot on a Dell Optiplex 9020. I've tried a few values and with these, it boots with a Cherry and a HP keyboard and two Logitech mice.


I also had to change the ScancodeSet to Set2 for the Cherry keyboard, but that's not in this PR. With these changes, Theseus boots on the Optiplex. I still can't input text or move the mouse.
Also, I think it would be nice if booting didn't require a mouse.

The chosen arbitrary timeout value works in qemu, but causes a panic on
boot on a Dell Optiplex 9020. I've tried a few values and with these,
it boots with a Cherry and a HP keyboard and two Logitech mice.
Copy link
Member

@kevinaboos kevinaboos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much! Appreciate the report of experiences on real hardware.

Theseus "shouldn't" require a mouse to exist in order to boot, at least it didn't used to. We should also be able to select the correct scan code set by querying the PS2 controller, but I suppose were not actually doing that correctly. We'd happily accept that change too, if you're so inclined. 😊

@kevinaboos kevinaboos merged commit f2fe78a into theseus-os:theseus_main Dec 5, 2023
3 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 5, 2023
The previous arbitrary timeout value works in QEMU,
but does not work on a Dell Optiplex 9020.

With the new higher timeout values, Theseus successfully boots
with a Cherry and a HP keyboard and two Logitech mice,
though the devices still do not seem to function correctly. f2fe78a
@YtvwlD YtvwlD deleted the ps2-timeout branch December 5, 2023 19:58
@hecatia-elegua
Copy link
Contributor

@YtvwlD you could try to go through several ScancodeSet iterations, this notes at least one problem:

// TODO: figure out what we should do, for now using set 1

iirc another problem was that rn we only have keycodes defined for set 1:
pub enum Keycode {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants