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 get smart dock running properly (virtual display) #5726

Open
bobblkabb opened this issue Jan 2, 2025 · 5 comments
Open

can get smart dock running properly (virtual display) #5726

bobblkabb opened this issue Jan 2, 2025 · 5 comments

Comments

@bobblkabb
Copy link

Please read the prerequisites to run scrcpy.

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

Environment

  • OS: openSUSE Tumbleweed
  • Scrcpy version: 3.1
  • Installation method: repository
  • Device model: Pixel 9
  • Android version: 15

Describe the bug

Can't get smart dock running on the virtual display
scrcpy --tcpip=: --new-display=1920x1080 --no-vd-system-decorations --start-app=cu.axel.smartdock
It opens up the settings:
screenshot
When I exit the settings (right click) I wind up on a black screen.

/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 116.0 MB/s (90640 bytes in 0.001s)
[server] INFO: Device: [Google] google Pixel 9 (Android 15)
[server] INFO: New display: 1920x1080/332 (id=19)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.3.1
INFO: Trilinear filtering enabled
INFO: Texture: 1920x1080
[server] INFO: Starting app "Smart Dock" [cu.axel.smartdock] on display 19...

I can run it properly on the phone itself.

@rom1v
Copy link
Collaborator

rom1v commented Jan 3, 2025

With --no-vd-system-decorations, when you exit the app, there is nothing left.

You probably need to start a launcher, and start your app from there: https://github.com/Genymobile/scrcpy/blob/master/doc/virtual_display.md#start-app

@yume-chan
Copy link
Contributor

I have tested Smart Dock before, it doesn't work on secondary display:

@MetalGearSolidNerd
Copy link

Kind of workaround, if you disable and enable the accessibility service from this screen the dock will show up. Alternatively you can assign swipe up gesture and when you start scrcpy with virtual display just swipe up with 2 fingers on the phone and dock will show up.

@dkannegi
Copy link

dkannegi commented Jan 22, 2025

Jumping in here also, I have done the accessibility trick to get SmartDock to move over to the virtual display created by SCRCPY, and yes it works, however apps still launch on the device's primary display at least on my device (running Android 12). Hyperdroid worked when started by SCRCPY, loaded properly in desktop mode on the virtual display, and launched apps correctly on the virtual display (although full screen, getting freeform on top of Hyperdroid's desktop on my Android 12 device is quite hacky and not worth it). I think feature requests posted to SmartDock and Taskbar GITs are in order, SCRCPY's virtual display end seems to be working as intended.

@MetalGearSolidNerd
Copy link

Jumping in here also, I have done the accessibility trick to get SmartDock to move over to the virtual display created by SCRCPY, and yes it works, however apps still launch on the device's primary display at least on my device (running Android 12). Hyperdroid worked when started by SCRCPY, loaded properly in desktop mode on the virtual display, and launched apps correctly on the virtual display (although full screen, getting freeform on top of Hyperdroid's desktop on my Android 12 device is quite hacky and not worth it). I think feature requests posted to SmartDock and Taskbar GITs are in order, SCRCPY's virtual display end seems to be working as intended.

Have you found any other solution to this? Currently I have settled with Samsung "New Dex" launcher which launches automatically if no app is opened on virtual display. It has a app menu and bottom bar but opens apps maximized without the toolbar. Also can't add/edit the desktop/bar. With HyperDroid the biggest problem is apps opening in fullscreen. I have tried Taskbar/SmartDock/HyperDroid/Win (X) Launcher.

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

5 participants