yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 Guides, News, & Discussion] Nupatchara:
It's posible to use click event on touch screen monitor without mouse.

Hi, I use dex with touch screen monitor. But on home screen i can't use click event with touch screen monitor. It's posible to use click event on touch screen monitor without mouse.
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
Well, I never tried Dex with a touchscreen monitor, but this problem is outside the scope of this topic.

Note that Dex is a proprietary, closed-source technology, so we can't do much to improve it. And origimally it was only intended to work with the official dock, so don't expect much help from Samsung either...
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
I've been using the S8 with a HDMI adaptor in Dex mode for a few days now, here are my first impressions:

It's fluid. I've been using it for browsing, mail, youtube, photo browsing and text processing. The phone didn't become warm. The desktop was fast, much smoother than a basic Windows 10 laptop. It starts instantaneously.

For home usage it can really replace your computer. It also has the great advantage that the phone is well integrated (you get immediately the notifications for email, you can answer the text messages...)

The desktop experience isn't perfect yet, but it has potential. The mouse usage is inconsistent (sometimes you have to use the scroll wheel, sometimes click-drag to scroll a page); drag-drop beween apps isn't working. I heard that some apps don't work. And games don't work with kyboard, so you'll need a game controller. Let's hope Samsung will ameliorate ome of these points.

I think that using a simple HDMI adaptor is better than the original dock: it's smaller (for traveling) and doesn't cover the speaker.

Some tips:

- In Chrome I set to display the desktop version of the pages; now it looks really like a desktop chrome.

- I also enabled window resizing for every app (Settings -> Samsung Dex -> About -> Click 5 times on the Dex logo).

- The Dex hub app adds some great functionnality.

- I think that the Multiport adapter (USB+HDMI+USB-C) is the best compromise. You can get one of those on ebay from around 10$. I urrently use a simple adaptor with bluetooth mouse&keyboard: it doesn't allow charging and the bluetooth peripherals don't work well if they are used in the same time.

My conclusion is that Dex isn't mature yet, but it can be used to replace your desktop at home or while traveling for simple tasks. I wouldn't buy an S8 for this feature, I find even the 200$ Dex hub expensive (I would prefer to buy a 200$ chromebook instead). However if you already have a rooted S8 and you are wiling to flash the modified kernel, this is a really cool feature! (you'll only need a simple HDMI adaptor for a few bucks)

Desktop-on-phone is a great idea, it's the best solution for mobility in computing. No surprise that everybody wants to win this race (Microsoft, Canonical, RemixOS...), but nobody managed to break through yet. Samsung has a very good potential with Dex: they got a good market share, Dex supports lots of apps... but they must realize that they'll only make money if everybody will use this technology, not from selling the docks. They should put Dex on every mid-level and high-end phone and allow it to work with any adapter - or even better, wirelessly.

Unfortunately seeing Samsung's stupid business plans, I won't hold my breath for this to happen.I hope that more and more developers will include this kernel in their ROM to spread this feature.
[Samsung Galaxy S8 Guides, News, & Discussion] diehard2013:
wow.

i´m in if you don´t mind.
[Samsung Galaxy S8 Guides, News, & Discussion] karatekid430:
FINALLY I got a breakthrough with stock kernel compile. Turns out you have to disable the single RKP config - it fixes the section mismatch when disabled.

If Samsung compile it with RKP, then I wonder how it works officially. Perhaps it is checking signatures and rudely rebooting without telling the user.

This might allow me to get it running happily with dm-verity and encryption allowed. Hopefully. But the Jesse kernel has a few benefits - it is faking SELinux enforcing, faking locked bootloader.

I cannot get Samsung pay to work, even on Jesse kernel - despite Magisk faking KNOX 0x0 and passing safety check, etc, faking bootloader locked. I really hope there can be a way to emulate the KNOX keystore which is disabled with KNOX 0x1 to allow to use KNOX apps, albeit somewhat insecurely.

Just an update. I will soon give out the instructions on how to patch for DeX.

---------- Post added at 06:39 AM ---------- Previous post was at 06:22 AM ----------

Yerp, turns out of all the modifications I needed to do, it was the CONFIG_DISPLAYPORT_ENG and the CONFIG for RKP, and edit the drivers/ccic/ccic_alternate.c - nothing more. I will let you know shortly.
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
[MENTION=8306329]karatekid430[/MENTION] If the KNOX is tripped, you won't be able to use Samsung Pay and encrypted folder even with faked Knox status. Neither on stock ROM, nor on custom ROM.

Thanks for the kernel compilation instructions too!

---------- Post added at 07:16 PM ---------- Previous post was at 07:10 PM ----------

I have another issue on DEX: I'm currently using a bluetooth keyboard and mouse. In normal mode and screen mirroring mode, they work well together. But when I switch to DEX, the phone cannot handle them together. While the mouse is active, the keyboard is blocked (either not writing, or the last letter is stuckkkkkkkkkkkkkk like this). I have to wait a few seconds so the mouse goes in sleep mode to be able to type. Back to screen mirroring mode and everything's fine again. In Dex mode I don't have lots of apps running, so no processor or memory problem.

Can somebody confirm this behaviour either with the official dock, or with a HDMI adaptor?
[Samsung Galaxy S8 Guides, News, & Discussion] karatekid430:
Nope, been using Logitech K810 with MX Anywhere 2S, both Bluetooth, no issues. Except for once, where the keystrokes kept registering multiple times and lagging. Rebooted the phone and it was fine.
[Samsung Galaxy S8 Guides, News, & Discussion] karatekid430:
Begging somebody with kernel knowledge for help here. Have tried asking Jesec for help but no response.

The same stock Samsung kernel I compiled yesterday that worked, no longer works after restoring /system to stock. You'd think it would work, coming from standard source. Yet, it only works after I flash the Jesse zip and then flash the boot.img (meaning it also prefers the modified /system).

Does anybody know if encryption with a custom kernel is even a thing? Even if I did not flash Magisk, if I encrypt and then change the kernel, I type the password and it says verification failed, need to factory reset.

If I get good enough I will try to take the Samsung ROM and resign all of the apps and components with my own certificates, and replace the DRK, etc with my own, so hopefully I can make it think that all is official (minus KNOX 0x1).

This is just sad, though. This is a stunning device, with a processor that is as fast as my Ultrabook. Yet its operating system is a complete mess under the hood, and we have almost no control over our own device. Samsung can still force updates (as demonstrated with Note 7). To take it back, we need to root, and this is the s*** we are met with.

Personally I want to see Linux dominate everything - I wonder just how difficult it would be to model a phone OS around Linux, but not like Android - just like another distro that is designed for mobile. I know Ubuntu made Ubuntu Touch, but it does not look like that has taken off. And you do need some proprietary software from large companies like Samsung to make the experience pleasant. I have no idea why Android updates are so difficult, also. You'd think vendor customisations could just be applied to a universal stock image as a package. Rant over.

But please, any information would be appreciated. I am frustrated right now.
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
Sorry, I don't have any idea what's the problem with the kernel. Anyway, I think while you are flashing things to your phone, it's better not to encrypt it.You might have to reset everything after flashing something.

Otherwise you spoke from my heart :)

About the bluetooth keyboard problem, I have the same problem you described. Rebooting the device solves the problem, but it restarts after a while. It might be a hardware problem, as I use a cheap chinese keyboard.
[Samsung Galaxy S8 Guides, News, & Discussion] DeejayBaca:
:cyclops:
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
As you might have observed, Dex doesn't work with the Samsung covers (LED cover or Clear view cover). It would be interesting if we could enable this, as third party adapters shouldn't block the usage of the covers.

I was wondering if this check is performed in kernel, or the Dex app. I looked in the kernel sources, but I couldn't find any trace of this check. Can somebody confirm it?

Unfortunately the Dex app might be more difficult to hack. I'm afraid the check is done there, as I get the "switch to Dex mode" notification even with the cover on, and I get the error message only when I want to start Dex.

In the meantime I found something that might be interesting: somebody asked if the phone could be used in Dex mode as a touchpad? In the Samsung touchscreen driver (drivers/input/touchscreen/sec_ts/sec_ts_fn), there is a function called dex_enable (line 4122), which has the following code:

if (ts->dex_mode) {
input_err(true, &ts->client->dev, "%s: set DeX touch_pad mode%s\n",
__func__, sec->cmd_param[1] ? " & Iris mode" : "");
ts->input_dev = ts->input_dev_pad;
...

I wonder if it enables some kind of touchpad functionnality on the phone screen? If it does, then why isn't it working by default?
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
Kernel patch for enabling Dex

Here is the patch to enable Dex for any S8/S8+ kernel.

You can send this file to other developers to integrate it in their kernels/roms!

P.S. here are the commands to do it - in case you want to reproduce or make another patch. First modify the files (in this case the config files and the ccic_alternate.c, than:

git diff > Enable-Dex.patch
---- or ----
git commit -a -m 'Dex support for any HDMI adapter'
git show [branch name] > Enable-Dex.patch
[Samsung Galaxy S8 Guides, News, & Discussion] domsch1988:
Maybe a dumb question, but would it be possible to enable dex on device only? With using the internal screen?
[Samsung Galaxy S8 Guides, News, & Discussion] Gilg@mesh:
[MENTION=3194398]kbarni[/MENTION]

can you link (ebay) to the adaptor that works, thanks
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
[MENTION=1493741]Gilg@mesh[/MENTION] I bought this adapter on the french ebay for only 7€, and it works just fine: http://www.ebay.fr/itm/Type-c-a-HDM...295117?hash=item41c9f7330d:g:~C8AAOSwEUVZX1Vv

There are lots of similar devices on ebay or amazon for less than 25€, and they probably all work with the modified kernel (keyword: usb c multiport).

You can find other variants with ethernet port, more usb ports, and even DVI or VGA outputs (NOTE: we didn't test it with other kind of video output, but it should work...).
[Samsung Galaxy S8 Guides, News, & Discussion] raider2k9:
will this work on stock Rom or do I need to have a custom Rom with the patch already integrated?

Cause I won´t root my S8 with the Exynos-CPU
[Samsung Galaxy S8 Guides, News, & Discussion] zanderawcl:
I would watch out as I bought one from ebay similar to this - USB Type-C Charging Dock to HDMI TV Video Converter for Nintendo Switch Console.

It even stated it would enable Dex, I have been back and forwards with the seller and they have now confirmed you have to but a special model to enable DEX.

I have now just bought this one which states that it works with DEX and has been confirmed by users. 'USB 3.1 Type C Adapter with HDMI for Nintendo Switch Samsung S8 DEX PC Mode Dock Dongle Combo thunderbolt 3 USB-C Charging'

I used Aliexpress and with the discount it will delivered for £20.

I am not going to root my S8 just yet either. Maybe in a year :)
[Samsung Galaxy S8 Guides, News, & Discussion] Gilg@mesh:
thank you, what about the max resolution, is it still 1080p? or possible with higher?
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
[MENTION=1493741]Gilg@mesh[/MENTION] In the description it says it can handle 4K@60Hz or UHD@30Hz, but my screen is only HD, so I can't test it.

I'm not sure that the Dex app can handle more resolution than 1080p. Even on the box of the official Dex dock it says it can handle UHD, but it still displays the desktop in 1080p - so it's probably not a hardware limitation. I suppose that there will be an update of the Dex app to support higher resolutions.

Probably the Samsung Dex topic is better place for this question.

[MENTION=3660384]zanderawcl[/MENTION] The Dex dock is identified only by its vendor and product ID. It's easy to build some converters that spoof the ID of the Dex hub. You just have to be sure to buy the "Dex compatible" adapter; that's a good solution for unrooted phones. The custom kernel disables the product ID check, so it will work with any adapter - but it needs root.
[Samsung Galaxy S8 Guides, News, & Discussion] erk69:
kernel issue with stock rom

Hi guys,

Thank you karatekid430 for all your work :cool:

I confirm, I tried it by recompiling boot.img.

I will have a look but I am not experienced in kernel development either.
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
Good news: Notorious Kernel (version NK202) already integrates this functionnality. It's an excellent kernel for our devices, very stable and fluid, it supports both the S8 and S8+ and it's easy to flash from TWRP.

Big thanks to [MENTION=4032833]farovitus[/MENTION] for his reactivity. :highfive:

I made a pull request on Github to integrate this function in the next Renovate Ice rom.

If you have another favourite kernel, I can try to contact their developer to integrate this patch.
[Samsung Galaxy S8 Guides, News, & Discussion] pax2011:
I am using this kernel. Dex app starts, phone's screen go Black, on monitor dex starts but It says every second setting app is crashing, than monitor screen goes Black and you Can see only the pointer. I am using kodlix USB type c hub. [MENTION=3194398]kbarni[/MENTION] [MENTION=8306329]karatekid430[/MENTION]
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
What ROM are you using? Unfortunately most custom ROMs don't work well with DEX (see for example Project Alice 2.3 or Batman Rom)!

Check the thread of your ROM to see if it supports DEX.

I'm currently on Renovate Ice 5.0, it works well (previous Renovate roms were also crashing with Dex).

Stock ROM also works well.

For now we don't have much feedback for other roms.

I would like to ask everybody to give us feedback (send me a private message) if you got Dex working (or not) without the official dock: what kernel, rom and adaptor are you using?
[Samsung Galaxy S8 Guides, News, & Discussion] pax2011:
I Just read that system UI tweaks could cause this problems. I am on Minotaurus rom, with Notorious kernel, kodlix USB type c Hub.

Later i will try to disable UI tweaks and give feedback.
[Samsung Galaxy S8 Guides, News, & Discussion] sumondhk1:
Is it possible to describe the way to enable it , some screenshot / video :D
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
Flash the NK202 kernel, connect an external screen with a HDMI adapter and voila! Dex launches. It asks if you want to use Dex or screen mirroring, choose Dex.

As it works exactly like the official dock, you can check the videos presenting it.

Make sure to have a mouse connected, otherwise you won't be able to use Dex.
[Samsung Galaxy S8 Guides, News, & Discussion] marcomperez:
Hi, sorry for my stupid question, it´s possible using this solution (using original samsung hdmi adapter) with the original kernel and Samsung Touchwiz? Only recompile the original kernel?
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
It's possible, [MENTION=8306329]karatekid430[/MENTION] tried to do it but he didn't manage to make it boot. Anyway, the custom kernels are based on stock kernel with a few optimizations, so you can flash them without worry.
[Samsung Galaxy S8 Guides, News, & Discussion] marcomperez:
And all interfaces are the same? With touchwiz?

---------- Post added at 07:19 PM ---------- Previous post was at 07:13 PM ----------

And about Samsung pay and android pay? Works? Secure folder too? All original features works?
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
The kernel is just the "engine" of Linux. It's the thing under the hood that makes your phone tick; it contains for example the drivers, cpu and gpu management and so on. If you change it, the rest (android, touchwiz, interface, apps) will stay the same.
[Samsung Galaxy S8 Guides, News, & Discussion] marcomperez:
Thanks for explanation! I will study about that and then flash this kernel and enable DEX without the dock, because, for me, its a genious solution for work travellers!
[Samsung Galaxy S8 Guides, News, & Discussion] Philipp_94:
So it is possible to flash a modified kernel without tripping Knox?
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
No. You need to unlock the bootloader to flash a new kernel that automatically trips Knox.
[Samsung Galaxy S8 Guides, News, & Discussion] smogtdi:
Quick question about your lapdock. How can you get full resolution when the vast majority of lapdock owners have to fight with a very sh1tty 576p resolution with black bars ?
[Samsung Galaxy S8 Guides, News, & Discussion] karatekid430:
Not sure whether this was before or after I posted my compilation guide - I finally got a stock kernel to compile with the DeX patch, and booted. But for some reason, it turns out it only booted after /system was modified by flashing Jesse S8 kernel. I restored to stock, re-flashed TWRP, and the same boot.img no longer worked. It is so frustrating - it seems very locked down compared to actual Linux.

---------- Post added at 07:36 AM ---------- Previous post was at 07:24 AM ----------

There are some conspiracy theories for the Exynos variants that KNOX is not an eFuse - turns out it was possible to reset KNOX to 0x0 on Exynos Note 3. They reckon the bit is stored in a protected area of the eMMC.

I do not know if JTAGs are a thing any more, but that might be the only way to do it - write directly to the flash.

If there is another major Linux vulnerability, we might get a repeat of Ping Pong Root which worked for the Galaxy S6 without tripping KNOX.

An engineering boot loader might surface.

But in normal circumstances, no.

If you ask my opinion, I think they should provide a way to make KNOX resettable with some official method that ensures that the phone is reset to a secure state, so that we could at least experiment with it and then revert it.

I would buy a variant of their flagships that was a Developer edition - but not AOSP. Exactly the same device and firmware, but without KNOX software support.

If they did this for laptops, people would riot. But for some reason, they think it is okay for phones.
[Samsung Galaxy S8 Guides, News, & Discussion] erclalle:
Just successfully flashed your mod thanks to the last NOTORIOUS kernel on renovate Ice, and DeX works flawlessly on a cheap usb-c hub, that's incredible work you did here! Thanks [MENTION=8306329]karatekid430[/MENTION] & [MENTION=3194398]kbarni[/MENTION] !
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
Glad you sorted it out and enjoying Dex :)

Renovate Ice and Notorious Kernel make a great system for the S8! Dex is the icing on the cake!
[Samsung Galaxy S8 Guides, News, & Discussion] erclalle:
Actually now that a world of adapters has opened itself to us, it would be great to see if someone has been able to get 4K 30/60fps with an adapter!
[Samsung Galaxy S8 Guides, News, & Discussion] Orphee:
Hello,

Do you think this will work ? :

https://www.amazon.fr/Gigabit-Ethernet-alimentation-chargement-adaptateur/dp/B06XZHQ7K4

Thank you
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
[MENTION=813614]Orphee[/MENTION] It seems a good adapter for Dex. It's a good choice especially if you want ethernet.

[MENTION=1870968]erclalle[/MENTION] I'm afraid the HD resolution is a software limitation. The official dock is advertised as UHD capable, but even with that you can get a maximum resolution of 1080p.
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
I have a question, maybe [MENTION=8306329]karatekid430[/MENTION] can help me find an answer: I just saw in this review that the phone's touchscreen works as a mouse in stock Dex mode (official dock+stock rom): https://youtu.be/9wruDqpcBgI?t=10m36s

However in my setup (Renovate Ice, NK202 kernel and HDMI adapter) it doesn't work. If I disconnect the mouse I get a warning (Please connect a mouse to use Dex) and the phone's touchscreen doesn't work.

As I know that you have the Dex station and an unrooted phone, can you confirm that this works? Can you help me triangulate what can be wrong with the unofficial setup?
[Samsung Galaxy S8 Guides, News, & Discussion] karatekid430:
Hello. I can tell you that this is the first I knew about the feature. I just tried it with the unrooted phone and it does not appear to exist. So I have no idea how they managed to get it to work.
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
Me neither, and this was the first time that I heard about this, too. No mention in other reviews or tips&tricks articles (neither with the Note8 which got a newer Dex version).

Maybe he got a preproduction sample with some beta firmware? I left a comment under the video.

Enabling this would be a really cool feature! If I wouldn't need a mouse, the size of the "traveling Dex kit" (multiport adapter and foldable keyboard) would be reduced by half.
[Samsung Galaxy S8 Guides, News, & Discussion] marcomperez:
Anyone knows if this multi-port adapter works with Original S8 Phone (without kernel modification, like dex hub)

https://pt.aliexpress.com/item/USB-...onverter-Hub-DeX-4K-HD-TV-PD/32827172345.html

Because in this advertising, they inform is Dex compatible.
[Samsung Galaxy S8 Guides, News, & Discussion] kbarni:
It might work. It only has to spoof the vendor ID and product ID of the DEX station.

---------- Post added at 04:24 PM ---------- Previous post was at 03:53 PM ----------

Here is the answer of Brett to my question (concerning that I can't make it work):

...then he checks again to see it removed:
[Samsung Galaxy S8 Guides, News, & Discussion] t12icky0:
Says video not found for the solution?