Closed dkramer95 closed 2 years ago
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 adb
installed you can check with:
adb shell settings get global "force_desktop_mode_on_external_displays"
If null
is returned then it doesn't exist.
If you have Android Studio, you can just comment out that check:
Change this line to:
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O || /*!hasEnabledAndroidDesktopModeSetting()*/ || externalDisplay == null) {
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.
#
Samsung S20 DEX
Full screen without upper Nav Bar and down Bar
#
#
Enabled Force Desktop Mode [ Experimental Desktop mode on secondary displays ] Restart DEX [ Build#196 installed ] and start X11
#
#
@v8karlo Thanks, works, but at least with 3 disadvantages
When hitting bottom edge with cursor DEX bar pops out I think the better option will be to have "full screen" chekbox in preferencies. Because even on phone screen full screen is useful sometime.
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.
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... But we can intercept Alt+F4 and other key combinations on Samsungdevices suporting DEX. See https://github.com/termux/termux-x11/issues/47#issuecomment-1202070823
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... This is super annoying. Could it be some android setting that affects full screen apps? If I disable Force Desktop Mode in developer settings, the colors are normal again, but no fullscreen in this case...
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
#
@v8karlo Thanks, works, but at least with 3 disadvantages
- starts minimised
- With force desktop mode enabled, touchpad icon disapiers from phone NAV bar
- When hitting bottom edge with cursor DEX bar pops out I think the better option will be to have "full screen" chekbox in preferencies. Because even on phone screen full screen is useful sometime.
#
The Clipboard Android Linux is last step which I need .
I hope you understand what I am trying to accomplish .
#
the only thing which is missing is Clipboard beetween Android and Linux in order to use both as one OS .
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 !!!
3. the only thing which is missing is Clipboard beetween Android and Linux
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 . https://github.com/termux/termux-x11/commit/a7f4111b10c30900aed75341d0257a0cf9ac8c9d
a detailed knowledge of your lorie implementation
I am preparing a big update so it will be a bit outdated.
I still find the idea (common ExtraKeys) very interesting.
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
MainActivity
will 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
MainActivity
will be launched on my external display if it is connected.