Skip to content

kmsdrm: VT switching doesn't work #13145

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

Open
stsp opened this issue May 29, 2025 · 5 comments
Open

kmsdrm: VT switching doesn't work #13145

stsp opened this issue May 29, 2025 · 5 comments
Milestone

Comments

@stsp
Copy link

stsp commented May 29, 2025

It seems VT switching was
implemented per #8509
It doesn't work here though.

Steps to reproduce:

  • Ctrl-Alt-f5 to console
  • cd <sdl_build_dir>/test
  • ./testdraw
  • Press Ctrl-Alt-f3 or Alt-f3 or whatever

Result:

  • nothing happens

Expected result:

  • VT switch
@slouken
Copy link
Collaborator

slouken commented May 29, 2025

What platform are you running on?

@slouken slouken added this to the 3.4.0 milestone May 29, 2025
@stsp
Copy link
Author

stsp commented May 29, 2025

Ubuntu 25.04/x86_64

@slouken
Copy link
Collaborator

slouken commented May 29, 2025

Ironically if you don't have access to the keyboard, console switching works. Something about how we initialize the keyboard disables console switching.

@slouken
Copy link
Collaborator

slouken commented May 29, 2025

Also, using sudo runs the application under a psuedo-tty, so it doesn't have access to the console.

@stsp
Copy link
Author

stsp commented May 30, 2025

I already filled sudo-project/sudo#447
and I think sudo will add
SUDO_TTY var in the future.
Then you can at least re-open
the console.
Maybe sdl can add some fn
for the user to pass the console
fd to it.

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

No branches or pull requests

2 participants