227 comments

[ 2.8 ms ] story [ 280 ms ] thread
I'm curious as to how well ARM64 Chrome/VS Code/Node.js will perform on this
This (and the internet in general) is pretty anemic on details.

Is this a VM on top of dalvik? I assumed DEX was deprecated in favour of ART https://source.android.com/devices/tech/dalvik/gc-debug.html I mean it is still compatible bytecode (i think) but who knows anything about android roadmap anymore?

DeX is Samsung's brand for connecting their phones to a monitor and having a desktop mode.

It's not related to dex/art of Dalvik.

(comment deleted)
And also dex is the bytecode format, which is still be used by ART(for compatibility reason I guess)
Apparently it has no connection, even though they're both technologies for running things on Android.

Presumably someone in branding at Samsung thinks this makes sense. They might not even be wrong considering this is end user focused whereas .dex files are something only developers see.

(comment deleted)
that's cool, but no way I'm giving up the projector on my indestructible Moto Force for this particular phone.
I'm pretty sure that 90% of computer usage could be handled by the computers in our pockets.
...Except for the tiny screen and barely-usable keyboard.

Desktops and even laptops make sense exactly where phones don't: large screens, large keyboards, a lot of CPU and battery. This can't fit in a pocket.

This is why Samsung created the DeX docks. You connect your phone to the DeX device and then connect all the peripherals to the DeX pad: monitor (via HDMI), and mouse + kb.
it means you need to have your monitor and keyboard ready in several locations. at some point if you work on the go it does not make sense anymore.
You could connect to a TV, as well. Honestly, for actual IT/programming persons, such a set up is unlikely to be be exceptionally useful, but I could see using Ubuntu Linux on the phone in more modest ways. You could play a native Linux game (perhaps one you coded yourself), while using a Bluetooth controller. I'm kind of grasping for straws here, actually, but I'd say that the dex pad is pretty cool more broadly speaking. For example, you could use your phone's unlimited data to play back netflix or YouTube videos while connected to a TV. You could use the Samsung dex mode (which predates this Ubuntu mode by several years), while relying on only the touch screen to launch the playback of said video. For me this seems uniquely useful because my mobile carrier, T-mobile, limits tethering to several GBs (and bypassing it hasn't worked in the last few years) and it would be unwise to spend them quickly just to provide a data connection to the smart TV or another intermediary device.
I expect corporate HR departments to love this, actually. Give everyone identical cubicles with docking station and accessories. People can be shuffled around, and they can easily take their devices with their work with them. Send someone to headquarters for training or whatever, and they just have to bring along a pocket device and find a station to plug into when they arrive.
If you have an android phone try installing an X server with support for relative mouse mode. I’ve personally found most desktop apps are more usable on android this way than their native android versions (even when the android version has all the features I want which is rare.)

The battery life like this is horrible though. I’m not sure if it’s X11 or if it’s that using android’s graphics from C wastes a lot of cpu time or what.

I wonder what container technology they use.

Also whether there'll be GPU acceleration or just framebuffer.

Can we play a 4k YouTube video out of the box in Firefox?

Also there's two SoCs. In most of the world there's a Samsung Exynos and in USA there's a Snapdragon.

There's surely going to be differences here. Especially GPU-wise.

Since the partner is Canonical, I would speculate it's LXC based. Also since they are looking to put a whole OS experience in a container it probably wouldn't be a good fit for Docker which really wants to push single process containers with no init systems.
What is the reason this works on the note 9, and not the S9/S9+? The S9 seems to have Dex support as well, can anyone explain?
So does the S8/S8+.
But that's a different generation of hardware, I can understand why the project currently focuses on current gen hardware. The S9+ and note9 share the same processor and amount of RAM, so that's why I asked.
Might be that S9s just have older version of Dex right now - they still need the special Dex dock while Note 9 works with any USB-C dongle.

I'm guessing they'll get the support with Android Pie where Samsung also promises that Dex will be usable without their special dock.

I just want a tab like the S4 with that keyboard and mouse to ship with a proper linux distro, customized and optimized to it. Would buy it in a flash
Something like the Google Pixel Slate, which can run Linux apps?
As someone who's been looking for a first-class Linux experience on a mobile tablet for a while and been very underwhelmed by everything on offer, I'm pretty excited about this and am very curious how it compares with running Linux on the upcoming Slate. That said, the S4 is quite a bit smaller and lighter than the Slate and more what I'm in the market for though I expect the Snapdragon to be quite a bit slower than the x86 in Google's product.
That's a Chrome OS device.

So what is preventing OEMs from releasing a Chrome OS phone which runs both Android apps and desktop Linux apps out of the box without this Dex/Canonical vendor-specific solution?

As far as I know, the compatibility layer for running Android apps on Chrome OS is closed-source, which means that any OEM wanting to do this would need Google’s blessing and access to their source code. However, if there were a phone that did this, I’d buy it for sure.
This is really cool.

I've been looking for such thing for a long time now.

If you have a corporate Job like consulting or something equivalent it's very likely you are packing an awful laptop with you everywhere you go, a DELL or a Lenovo or something like that.

DEX opens a door for next generation Mobile Desktop , where you SmartPhone is also your Desktop Computer.

I really hope Apple does something similar in this area , the new iPad can be connected to a screen, but the real deal would be using the iPhone with as a laptop...

oh yeah, I'd hate to be stuck on a Thinkpad or and XPS machine, the 2 best laptops on the market.
> oh yeah, I'd hate to be stuck on a Thinkpad or and XPS machine, the 2 best laptops on the market.

Even when Excel , Chrome , Gmail take 30-50 seconds to open up ? And your laptop freezes when you are dealing with more than 10000 rows ?

That's your opinion i guess.

I won't hope that a phone would handle 10000 rows much better.

But that "Excel" thing might be an answer: the laptop must be running Windows, and Windows users often run an antivirus, and some Windows antivirus software is known to be terrible. (The MS-provided basic antivirus was always fine in this regard, though.)

Cortana (well, search indexing) also really hurts performance. They're both disk I/O heavy services and make the whole machine sluggish imo
Turn Cortana off.
I've tried disabling the Search Index Service a few times only to find that it's restarted itself.
>I won't hope that a phone would handle 10000 rows much better.

Galaxy S9 has 2 X 4 Core @ 2GHZ , my corporate laptop has an i5 from 2015 with 2 @ 2GHZ.

I'll go with the Galaxy.

x86 GHz != ARM GHz
Well, GHz is GigaHerzs or 10^9 cycles/second.

So Ghz is Ghz regardless of x86 or ARM as thisvis just the clock speed.

Another discussion is how much work is done each cycle. For that you might use GigaFLOPS or TeraFLOPS (10^9 or 10^12 dloating operations per second) or another absolute measure of performance.

Yet that i5 will be way faster than whatever ARM is in Galaxy. It will also have much faster SSD than the eMMC in phones, and will be paired with faster RAM to boot.

All these things take way more energy, so your laptop will also have much bigger battery.

The phone with 4G will not be subjected to stupid corporate firewall rules preventing access to, say, StackOverflow.
I guess they like hiring more devs to do less work.
Some exception cases: the phone needs to run a Mobile device management agent that installs and launches an antivirus, or the mobile happens to connect to a corporate VPN that routes all traffic and then inspects it via some appliance.
I'd just activate the hotspot on the phone to use the laptop.
Unless your phone was issued by your employer, is managed by MDM and runs all the traffic through your employers firewall anyway.

On the other hand, there are laptops, that have cellular radios. My old Thinkpad surely does.

Frankly, 10k rows is something that an IBM PC from 1985 should have handled adequately, using SuperCalc.

Depends on what you're doing with these 10k rows, though.

FYI GHZ isn't a good indicator of performance difference between 2 different types, models, and architecture;

it's like comparing the revs of your cars, it's just the cycle rate, not the Instruction rate

Indeed one of the biggest drains on corporate productivity are unaccountable bully IT departments. I recently quit a job because I wasn't allowed to escape aggressive antivirus software that made compilation insufferable.
> I recently quit a job because I wasn't allowed to escape aggressive antivirus software that made compilation insufferable.

This seems a drastic response.

Why would running these things on your phone be faster?
If Chrome takes 30-50 seconds to open and your computer was made in the past ten years, you should probably reformat
What did they do to that poor computer? On my 3 year old Thinkpad Chrome/Firefox take < 1sec to start and Gmail takes a couple seconds to load. Can't talk Excel as I don't use it.
The recipe is quite simple:

1. Take a nice shiny new laptop

2. Install Windows onto it.

3. Throw a large bucket of badly written monitoring apps, security apps, encryption apps, in-house apps, and pointless business notification apps.

4. Lock down the OS so the end-user can't remove or stop any of the added chaff.

5. Watch the nice shiny new laptop slow to crawl under the weight of all that crapware.

This is speaking from experience - I have 10+ years of designing and deploying corporate Windows based Desktop/Laptop builds. It all starts fine, until some clueless internal committee decide that they want to install everything and the kitchen sink onto your nicely designed platform...

The whole point on Dex is that you can connect a phone to a big screen and a big keyboard. Well, maybe your clients will provide you with a decent screen and a decent keyboard. (If I were a consultant, I'd pack my own. At this point lugging a laptop starts to make sense.)
Bluetooth keyboard/mouse plus a USB-C to HDMI dongle would enable you to work in any conference room with a display available.
Also consider Chromebooks. You get the desktop version of Chrome (ie whatever extensions you want), windowed interface, runs Android apps, and via the rapidly maturing Crostini project you can also run Linux apps. Heck on Intel based Chromebooks you can run Steam and use Proton/SteamPlay to run Windows games (and other Windows apps).

The nicest thing about the Chromebooks is that the software is identical, but the hardware varies from $200 cheapo devices all the way up to almost $2,000. This means you are far more likely to find your own sweet spot of price, size, memory & cpu, storage etc.

Some also have LTE so can be used as an alternative to a phone.

> Also consider Chromebooks.

Because of their dependence on Google servers, Chromebooks (or using any cloud-based service) make it very hard to satisfy confidentiality requirements that are imposed by clients for consulting jobs.

> DEX opens a door for next generation Mobile Desktop , where you SmartPhone is also your Desktop Computer.

Remember, Microsoft tried this with Continuum for Windows 8/10 and Windows Mobile, it failed. No-one actually wanted the core of their desktop inside their phones. People have partitioned off different use-cases for their PC and smartphones, and the overlap is smaller than designers think.

we still need the pc revolution on mobile devices.

we are still in the mainframe/timeshare stage.

(comment deleted)
> we still need the pc revolution on mobile devices.

The PC revolution happened because of very open hardware specifications and a non-monopoly on the firmware (the IBM BIOS was reverse-engineered by Compaq).

That revolution was due to a mistake on IBM's part.
It wasn't that no one wanted them - they just weren't powerful or portable enough.

Snapdragon's 835 changed that. So will the A12X from Apple.

I think you’re underestimating Apple’s chip performance. Going by https://browser.geekbench.com/ the best performing Android devices(Samsung’s special thing for single-core, Snapdragon 845 in a OnePlus for multi-core) appear around even with an A10 for single-core and an A10X with multi-core. If this/last year’s Android chips were enough to make Dex viable, you’d expect last generation’s iPad Pro and the iPhone 7 to be capable of running Apple’s solution.
Oh not at all. Apple chips are beasts and surpass anything out there.

But it's likely a greater chance to see a snapdragon head into a convertible desktop format than an iPhone or iPad, neither even allow a mouse. Still have hope for an A12X powering a MacBook tho.

The Snapdragon 835 is not the enabler here. A mid-range 5-year-old phone has 4 cores at 2+ GHz, more powerful than a 10-year-old computer. Even back then this was powerful enough to run plenty of desktop workloads. The thing that's enabling usage of phones as desktops is USB Type-C which is fast enough and versatile enough to carry video output and a USB singal while powering the phone.
Absolutely. The power of the 835 was not the processing power alone, but pairing the 835 with greater than 3 gb of RAM. This helps push it into a desktop capable experience.

I bought a Sentio Superbook, and my pixel is the only non-apple device I have so I can try to use it in this manner.

The Lumia 950/XL were the last hurrah for the platform, so one can hardly blame Continuum for the demise of Windows on phones.
"Microsoft tried this with Continuum for Windows 8/10 and Windows Mobile, it failed."

There are plenty of reasons for that, chief among them being the staggeringly-uphill battle of Windows regaining any significant marketshare in the mobile space and (presumably) the lack of software compatible with Windows on ARM.

Meanwhile, Android (and Samsung's phones in particular) are quite popular, and the vast majority (to my knowledge) of Linux desktop programs work on ARM just as well as they do on x86(-64).

You can't discount the confused product strategy re: old software in this failure.

People want desktops to run desktop software. Not WinRT/universal/modern/UWP. They did not understand this. So for multiple iterations, they shipped tablets, phones, etc., under the "Windows" brand that could not do what people think of when they hear "Windows".

They should have shipped a device circa 2012 that let you recompile desktop Windows apps for arm. They had the technology.

Just like with the Ubuntu Phone: we just wanted a regular X11 on the phone, not a copy of Android app space on Android base.
Nokia N900 had regular X and a forked Gtk+. I liked that thing. They didn't really support it well. Then Elop came.
We should not forget the weight of the board on his decisions.
It's not that Continuum failed. It's that Windows Mobile failed as a platform (for other unrelated reasons), so we didn't even get to the point where Continuum was even a realistic consideration.
I've been waiting for this for over a year. I got a note 8, a dex dock and everything...

And it requires a note 9. Sunnuva.

DeX open the (back)door to (a big cucumber, sorry for being vulgar) port free software to proprietary jail and let users think they are free.

A jail's a jail, no matter how big, decorated and comfortable seems to be.

Depending on how well this works it could single handedly convince me to buy a Note 9. I've been wanting something like this for years.
Be sure to look up Purism's Librem 5 phone, coming out next year.
As this project (then called Linux on Galaxy) was first shown on Note 8, but now turns out Note 8 is not supported, I'd wait for them to officially release it and then get a device that explicitly supports it.
I was about to get rid of my superbook by sentio and this may have changed my mind.

Having owned the note 1, 2, 4 and now a pixel 2, I left because of the poor history of timely and current updates by Samsung.

If Samsung could provide the option of running native Android like LG is, this would be a compelling option.

I was hoping this would allow me to ssh into my phone to make/take calls and send/receive texts. Does anyone knows if that's possible?
"I was hoping this would allow me to ssh into my phone to make/take calls and send/receive texts. Does anyone knows if that's possible?"

I send SMS from the command line by curl'ing twilio ...

  curl -X POST -d "Body=Hi" -d "From=3032221111" -d "To=4151112222" "https://api.twilio.com/2010-04-01/Accounts/${account_sid}/Messages" -u "${account_sid}:${auth_token}"
I do at least half of my testing this way, from inside my terminal that I am already working in (I wrote a little sms script in /bin/sh).

Of course this means that your phone number has to be at twilio (either source the number from them or port it to them).

Yeah I'm aware of this, but my use case is different. I'm often abroad, but I also often need to contact numbers from my home country, so I wanted to have a phone I could ssh into from abroad and serve as a gateway
You used to be able to do this with chan_bluetooth on Asterisk, but I would not recommend it.
Google voice does this perfectly. No use in doing something like ssh that may or may not work.
On Android, Termux lets you read and write texts using the Termux API, and set up an SSH server.
Kdeconnect comes to mind. It is more aimed at working on wifi, but you can probably make it work with ssh tunnels or vpn.
Texts are probably possible. (I use Pushbullet, but Android Messages would also work).

Only Apple seems to have got the control over the stack to get calls through iPad/macOS. I was hoping that Dell Connect would be an option but it's not clear that voice is pushed through there.

> Only Apple seems to have got the control over the stack to get calls through iPad/macOS.

If you're on Google Fi, you can make (and take) phone calls on your desktop via Hangouts.

I suspect that the VM gets suspended when you undock the phone. I wouldn't count on being able to use it for persistent background services.
I want a laptop with a hole where the mouse pad should be.

I want to be able to put my phone into that slot, dock it, and use the screen of my phone as the mouse pad for the laptop.

I want my phone to do all the processing and work. I want the laptop dock to be an extension of my phone, running something like DEX to make the laptop experience work. The only thing I want this laptop dock to do is give me a screen, a keyboard, and maybe extra battery and ports.

Please, someone make this happen. I could use my phone for all computing at that point.

Something like Project Linda then? https://www.razer.com/projectlinda

It is still a concept, but Razer's two phones have been the same size, so it remains a possibility.

That's very cool as a concept. I'd like to see Apple get all over something like this as well.

Is it just me or would something like that sell like wild?

I very much doubt it. It doesn't run Windows stuff, so it's more of a competitor to Chromebooks, and those haven't sold like wild (less than 5% of new sales in 2016). Coupled with the fact that it restricts you in the choice of phone, and I think it's basically DOA.
"less than 5% of new sales in 2016"

Given how saturated the laptop market is, that's actually not terrible.

How so? It's new sales, not marketshare.
I figure that’s a good opening for accessory sales (from a product design perspective). It wouldn’t have to lock you into a phone if the connector was universal (ie, the switch to USB C) and adapters to fit snugly into the slot—they could even be cases. Also has the advantage of modularizing the machine.

And most phones swing above chromebooks for price and power, no? This would be an improvement on the format if you ask me. Especially if it could eventually deliver a proper Linux distro or Mac OS.

> I want to be able to put my phone into that slot, dock it, and use the screen of my phone as the mouse pad for the laptop.

Minus the hole, that is one of the many features of kdeconnect: Use your android device as a wireless touchpad and keyboard.

An HP Elite Lapdock and a Note 9 will get you 90% of the setup you want. I have that setup, it doesn't dock into a slot, it hangs on the side with a USB C cable, but the rest is just as you describe.
$300AUD+ used! Ouch. I've also been looking at https://www.asus.com/au/Monitors/MB169C-plus/ but it's not clear if I can charge my phone at the same time.
I use this as an external monitor for my Chromebook Pixel which I use when I travel. Asus provides a USB A adapter for the USB C cable. I can plug the monitor's USB C cable into a USB C hub's A port, and do power passthrough and run a keyboard and mouse off the other A ports. Assuming your C hub does power passthrough it should charge fine.

USB C hubs with power passthrough, 3 USB A ports, and an HDMI port exist too, so you could run the USB display, HDMI, and a keyboard and mouse all from a single USB C port.

It will depend on their port configuration and display link integration though. The HDMI port might try to claim the USB display bus or whatever, and I'm not sure if you can put multiple USB displays on a single port like that. One will definitely work though.

Why would you want to delegate all your computing needs to the point of complete and utter dependency to the closed-source, restrictive hardware/software ecosystem that is the modern smartphone? You can't even disable the baseband on any flagship model, so just there you're enthusiastically advocating for 24/7 cellular tracking as a feature.
In a world where most people can do almost all of their computing activity on a tablet or ultrabook, not too many people are worried about that.
Same, although i'd rather the phone replaced the number pad than the touch pad.
(comment deleted)
For those of us who don't have a supported device, there's an android app called [Termux](https://termux.com/) which provides a surprisingly linux-y experience. I sometimes code on my 10" tablet with a small (60%) keyboard.
I do lots of work on my phone thanks to Termux and a 60% bluetooth mechanical keyboard. It's one of my most essential apps on Android. Either using it directly or using it to SSH into servers, raspberry pis, etc.
I'd really appreciate knowing which keyboard you're using!
He probably meant hardware keyboard. <strike>I don’t think anyone makes Bluetooth mechanical keyboards.</strike> Ok I’m apparently totally wrong about that last thing and possibly the first as well.
(comment deleted)
HHKB's supporting Bluetooth (and USB): PD-KB600B, PD-KB600BN, PD-KB620B. I own one of these. Expensive, but high quality.
I use an RK61 one from Amazon[0]. Haven't had any problems with it. I use it quite regularly for my phone and some RasPis. I made a little bracket to hold my phone at the top of the keyboard so I can sit with it on my lap or a table and type for extended periods quite happily.

I use my phone as my primary mobile computer (I don't own a laptop anymore) and am very happy with this setup.

[0] https://www.amazon.com/Wireless-Multi-Device-Mechanical-Rech...

Oh wow, that's a really good price as well.

And the buttons are in the right place (!)

Thank you.

I really envy this from the iOS side: the 2018 iPad is amazing with pencil but there is no way to get something like Termux without having to ssh.
This + emacs + org-mode + a heavily customized doom emacs means I can track money using ledger, generate workouts using a python script outputting org tables and a lot more. Even worked out how to sync my folder to Dropbox, called from an emacs shortcut.
I'll be curious to compare my flow with yours...

BTW: dropbox is lame until you can use encfs over it ;)

With a free/standard mobile device (that actually do not exists) you can do whatever you want without limit. Unfortunately OEMs do not want that. And "this" is another Trojan horse to let people think the can run free software hiding the details that their software run in a proprietary jail. With enough time and marketing we will have a new generation of people who find pretty natural download GNU/Linux from an OEM store, forgotten another piece of IT freedom we have till now.
Tasker can be combined with Termux, to allow scripts to be run in response to events like battery charging etc. The combo is very powerful.
I wish they partnered with Canonical to continue their work on Unity8. Would be great if they could adopt the project and build on top of it.
With all the ugliness of Android-first computing, I percieve it as a good thing that major brands are waking up for the public request of native GNU/Linux UX on mobile computing devices.
What is Dex? I've read a lot on that page but still don't get it.
When you plug a hdmi cable into a Samsung phone you can either use screen mirroring or go into a desktop mode thats designed for keyboard and mouse.
Specific samsung phones, with special docks (I tried it )
> Samsung DeX is supported on Galaxy S8/S8+, Note8, S9/S9+, Note9, and Tab S4.

> * Phones should be connected to an external display to use Samsung DeX.

> * Selected Samsung HDMI adapter/cable is recommended to use Samsung DeX.

> * Samsung DeX using a HDMI adapter or cable is only available on Note9 and Tab S4.

------ So really, DeX only works well (with HDMI cable) on Note9 and Tab S4?

Older phones require the Dex Dock or Pad (which adds HDMI and other ports). With the Note9, you can plug a USB-C to HDMI cable right into it.
Hm. I can already plug a USB-C to HDMI cable into my Note8.

Does it work if you do that + use Bluetooth peripherals?

There was/is a "C-Force" branded hub that was smaller and (slightly) cheaper than the DeX dock that put the S8/+ into DeX mode just fine.
It works well on the other devices too, you just need the dex station.
I love this idea. With insane mobile processors, terabyte storage on phones, external GPUs, and USB-C docking, we're tantalizingly close to "I do my computing on this device. It's in my pocket with a phone interface right now. But once I plug it in at my desk with the GPU dock, it's my computer. And later, I'll throw it in the tablet and use it on my couch."

Backups will need to be good and easy if your main computing device can fall out of your pocket on the subway, and an OS which is happy doing this will need to exist. But for many people, this could be a beautiful world.

they didn't even bother set up a GTK+2 theme for geany in their screenshot :p
Is it running on the hardware with upstream drivers, or it's libhybris based?
It's a container using the same non-upstream kernel and proprietary drivers from the Android OS.
Linux on DeX currently supports one customized Ubuntu image (Ubuntu 16.04 LTS version provided by Canonical) which only operates on selected Samsung devices. (Note9 and Tab S4). :(
It also says just before that:

"Only use authorized images provided directly through Linux on DeX. Other versions or unauthorized images may not operate properly."

Seems to imply, to me, that it is not impossible to run other images in this container.