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

MOD + up/down shortcut not working for Galaxy S20 #2503

Open
VivekIly opened this issue Jul 20, 2021 · 11 comments
Open

MOD + up/down shortcut not working for Galaxy S20 #2503

VivekIly opened this issue Jul 20, 2021 · 11 comments

Comments

@VivekIly
Copy link

When I connect my Samsung Galaxy S20, I cannot control the volume of the phone using the MOD + up/down shortcut. I was able to do it with my previous phones (which were the S7 and Moto G7 Power), but can't seem to work it with the S20. I am able to use other shortcuts, such as MOD + R to rotate screen and MOD + O to turn off device screen.

Is anyone else having this problem with an S20? Am I doing something wrong?

Please let me know.

Thanks.

@hafizidev
Copy link

This happens to me as well, but I am on Xiaomi Redmi K40, Android 12

@rom1v
Copy link
Collaborator

rom1v commented Apr 26, 2022

Did you test with either Super or Alt? Or with other supported --shortcut-mod?

Some of them might be intercepted by the computer system.

@hafizidev
Copy link

I tried with the --shortcut-mod=rctrl, the other shortcuts keys that I use, like home, back, notification panel and app switcher work as intended, only volume up and down doesn't work.

By the way I am on windows, so for the first question I am using the left Alt key, I hope I answer the question

@rom1v
Copy link
Collaborator

rom1v commented Apr 26, 2022

Does this work:

adb shell input keyevent VOLUME_UP

?

@hafizidev
Copy link

hafizidev commented Apr 26, 2022

adb shell input keyevent VOLUME_UP

Yes, the adb shell command works, tested with volume down as well, both change the volume

@rom1v
Copy link
Collaborator

rom1v commented Apr 26, 2022

Please run scrcpy in verbose mode (scrcpy -Vverbose), focus the window then press MOD+up once, then close.

Please post the whole console output (as text).

@hafizidev
Copy link

C:\Users\User>scrcpy -Vverbose
scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG:     -->   (usb)              9211c321            device  M2012K11AC
DEBUG: Device serial: 9211c321
DEBUG: Using server (portable): C:\Users\User\scrcpy\scrcpy-server
C:\Users\User\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 42.8 MB/s (41123 bytes in 0.001s)
[server] INFO: Device: Xiaomi M2012K11AC (Android 12)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Using encoder: 'OMX.qcom.video.encoder.avc'
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Using icon (portable): C:\Users\User\scrcpy\icon.png
INFO: Initial texture: 1080x2400
DEBUG: Starting demuxer thread
VERBOSE: input: key down code=24 repeat=0 meta=000000
VERBOSE: input: key   up code=24 repeat=0 meta=000000

@rom1v
Copy link
Collaborator

rom1v commented Apr 26, 2022

OK, so it looks lile it's correctly requested from the client to the server.

According to your previous test, I guess that this also works:

adb shell input keyevent 24

?

Is there anyrhing relevant in adb logcat when you press this shortcut from scrcpy?

@rom1v
Copy link
Collaborator

rom1v commented Apr 26, 2022

Could you please try with this version: #3190 (comment)

@hafizidev
Copy link

adb shell input keyevent 24

This does work the same, it raised the volume

#3190 doesn't solve it, still can't raise volume using shortcut key

@hafizidev
Copy link

@rom1v for me this issue happens when the music application in the background, while still opens the application, i can change the volume using shortcut keys just fine.

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

3 participants