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

Can't open Physical Keyboard Settinngs on Google TV (Mi TV Box S 2nd Gen) #5713

Open
qwer1304 opened this issue Dec 29, 2024 · 6 comments
Open

Comments

@qwer1304
Copy link

Please read the prerequisites to run scrcpy.

Also read the FAQ and check if your issue already exists.

Environment

  • OS: [e.g. Debian, Windows, macOS...] Windows
  • Scrcpy version: [e.g. 2.5] 3.1
  • Installation method: [e.g. manual build, apt, snap, brew, Windows release...] Windows release
  • Device model: Mi TV Box S 2nd Gen (MiTV-AFKR0)
  • Android version: [e.g. 14] 11

Describe the bug

Cannot open Physical Keyboard Settings using Mod+k shortcut - nothing happens. No error in log (even at verbose level) even with a physical keyboard connected and functioning.
It could be the case that this setting isn't available at the device since I cannot open it at the device itself or with adb.
But! Different layouts are available with External Keyboard Helper Pro app (there're other issues though) and the keyboard functions properly with Gboard as the active keyboard (just not the right layout).

Please do not post screenshots of your terminal, just post the content as text instead.

@rom1v
Copy link
Collaborator

rom1v commented Dec 29, 2024

And with:

adb shell am start -a android.settings.HARD_KEYBOARD_SETTINGS

(while your physical keyboard is connected)?

https://github.com/Genymobile/scrcpy/blob/master/doc/keyboard.md#physical-keyboard-simulation

EDIT:

or with adb

OK, so apparently not. Search in Settings > System > Languages…

@qwer1304
Copy link
Author

qwer1304 commented Dec 29, 2024

@rom1v Search in Settings > System > Languages…
Nope.

@rom1v
Copy link
Collaborator

rom1v commented Dec 29, 2024

So they modified the system ROM to remove this setting page 😕

@qwer1304
Copy link
Author

@rom1v So they modified the system ROM to remove this setting page
The External Keyboard Helper app does support different layouts. Do you think they do it programmatically in the app?

@rom1v
Copy link
Collaborator

rom1v commented Dec 29, 2024

I have no idea.

I just know that by default in AOSP, there is an activity for physical keyboard settings, which can be started by:

adb shell am start -a android.settings.HARD_KEYBOARD_SETTINGS

@qwer1304
Copy link
Author

qwer1304 commented Dec 29, 2024

@rom1v

adb shell am start -a android.settings.HARD_KEYBOARD_SETTINGS
Starting: Intent { act=android.settings.HARD_KEYBOARD_SETTINGS }
Error: Activity not started, unable to resolve Intent { act=android.settings.HARD_KEYBOARD_SETTINGS flg=0x10000000 }

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