-
-
Notifications
You must be signed in to change notification settings - Fork 442
Added: Auto launch fullscreen on external display (Android 10+) #158
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
Conversation
|
Looks interesting. Did you override navbar appearing on external display? Or navbar appears every time you try to use taskbar in GUI? |
|
Ya the nav bar consumed ~100px of vertical height on external display and is basically dead space. (No part of the Activity can show in that blank area, it's just grey) So for external displays, it will be hidden. |
|
Unfortunatelly does not change anything in samsung DEX mode. Im not good in android programming, but can i provide any log or debug information? |
|
It is intended to work with Android Desktop mode, not Dex. |
|
Is there any way to recognise Dex as an external display also? |
|
As far as I know it is not external display, or at least not in traditional meaning. |
|
@5A52 It might be possible... I don't have a Samsung DEX capable device to test... Currently it is checking for the Experimental Desktop mode flag. Since DEX is a much more polished implementation, I highly doubt that flag exists on Samsung devices, but if you have If If you have Android Studio, you can just comment out that check: Change this line to: and see if it works... I'm not sure how/if Samsung handles mapping keyboard + mouse input on external displays if it wasn't launched from DEX. |
|
@v8karlo Thanks, works, but at least with 3 disadvantages
|
We can not disable this behaviour. It happens in normal Android, desktop mode and DEX. I can try to write a tool which can work with adb or root rights and intercept mouse and keyboard events, but it will not happen soon. |
xsdl Xserver does somehow. Not sure if it intercepts mouse. Also most full screen app does, m$ RDP, any full screen game. Anyway intercepting mouse\keyboard is a GREAT idea, alt+f4 will be intercepted in this case!! And not in a far future, is it possible to add a full screen chekbox in preferencies screen? It is much better than auto launch full screen by detecting screen modes. |
|
As far as I know no app can app can avoid navbar appearing. It is a part of security mechanisms of Android... |
|
Regular application can hide navbar but can not disable it completely. Anyway it appears when you move mouse to area of navbar or do swipe up bottom edge of screen... |
|
I have a strange issue using the hdmi output. It goes indeed fullscreen, but the colors are all lighter/brighter, and it's very noticiable. For example, black turn into grey... I'm also having the issue of it starting minimized, but not so annoying as the color issue. The DEX bar pops out moving the mouse to the bottom, but this does not annoy me, it's actually good, so then I can close termux-x11 from the notifications shortcut, or change to other apps from there. I'm still able to use the phone as a touchpad, so this issue I do not have. PS: my device is a Z Fold 4 with proot-distro with xfce4 |
The Clipboard Android Linux is last step which I need . I hope you understand what I am trying to accomplish . |
I am already on it, but it will take some time. |
|
Thx Twaik , the Clipboard Android Liinux is essencial . Anyway thx for all the huge effort you did till now ! |
|
Zman from Ubuntu on Android already have some success on Clipboard , and is almost done . Maybe will be good idea to invite him on this matter ? |
|
I proposed same to Zman . |
|
I already know what exactly I must do to make clipboard support, but first I need to write wayland protocol parser and get rid of JNI in core code. It is pretty simple, but requires a lot of time for writing and debugging code. |
|
I understand how much time and effort it needs . Thx again on your excelent work !!! |
Yes this will be very good feature, but "full screen" chek box in preferencies is also very usefull. I prefere to have full screen even on phone screen. |
|
It is already in TODO list. |
|
For some reason it was disabled by @suhan-paradkar . a7f4111 |
I am preparing a big update so it will be a bit outdated.
Me too. |
|
Enabled Force Desktop Mode [ Experimental Desktop mode on secondary displays ] messed up my phone display ( DEX worked fine ) , when I disable it everything went back to normal . So I can not use it for full screen . Maybe full screen check box is a good idea at the end . |
|
Build is expired, how can I download to test it? |
This is only applicable for Android 10+ devices that support HDMI output over USB and have enabled the Experimental desktop mode developer option. (Oreo technically supports external displays, but keyboard + mouse input isn't mapped properly, so wouldn't be very useful.)
If there is an external display connected, the
MainActivitywill be launched on that external display. It will also be displayed in fullscreen w/o any navigation / floating window controls, allowing to use entire display surface area.My Setup
On my personal device, I have a tasker termux shortcut accessible from home screen that runs the commands from the README
Now, when I tap the shortcut the
MainActivitywill be launched on my external display if it is connected.