94 points · by mtgx · 13y ago · 90 comments
Ubuntu phone will support the "Android kernel" (as one Canonical guy called it on a recent podcast), since only Android builds of the Linux kernel works with the binary-only drivers that the manufacturers supply. This is just another form of Tivoization. You have the source, but you can't really change anything.
It seems to me that the infamous "Linux in a binary world" doomsday scenario is becoming more of a reality every day https://lwn.net/Articles/162686/ - but instead of servers vs consumer PCs, it is being played out on phones, tablets and laptops.
On the other hand, Linux is a disaster. The kernel devs are so determined to break binary compatibility, I haven't been able to run with ATI's proprietary binary drivers for years. AMD was a good open source citizen and released the specs. And yet the open source drivers for my card are useless for anything but 2D.
I am thankful that Google came along and is forcing a standard in the kernel. I welcome this "binary world".
I've heard it argued that it's for this reason that Linux is more successful than other more liberally licensed open source kernels like the BSDs.
Regarding your Radeon card. I Hold Linux support very highly in my requirements for buying new hardware. For this reason I've always bought Nvidia cards over ATI. You can't just buy anything and expect it to work flawlessly. Saving $30 on the purchase of a graphics card has hidden costs. ATI can't even make a decent windows driver let alone a Linux one.
The problem you raise is exactly why I'm so picky for graphics accelerators: they are most often what is stopping me from upgrading the kernel on a system, and I want to upgrade the kernel/distribution.
I'm not sure about the state of open-source AMD drivers, so if anyone can testify about their graphics drivers, I would appreciate it.
I think there's also the Mali400 chip in the "detect reverse engineered" department, if we're talking about tablets.
As for supported chips, everything up to "Northern Islands", the last generation, works really well. The latest "Southern Islands" chips also work well but don't have all the features implemented yet.
I use a HD7970 in my workstation. 2D works great and is very fast. 3D is pretty slow, b/c many things aren't accelerated yet. So, for example, minecraft runs about 20fps.
The next generation of AMD gpus "Sea Islands" will use the same drivers as "Southern islands" so the former will be supported as soon as the latter.
Probably the biggest issue is power management. dynpm dynamically changes the clock but doesn't work with multiple heads. The "profile" power management flickers when changing the clock speed.
The reasons for the lack of support for "Southern islands" is that support required many changes that couldn't be release incrementally. Better support is expected when the "Sea islands" chips come out. Check out this post by an AMD developer for a little more detail: http://phoronix.com/forums/showthread.php?73824-Bridgman-Is-...
Check out http://www.x.org/wiki/RadeonFeature for a table of chips and features and information about mapping engineering names to board marketing names.
If you have never experienced kernel mode setting(KMS) and in-kernel drivers I would _highly_ recommend it. It is such a better experience. It's so smooth, switching from xorg to a VT doesn't flicker. And having to upgrade proprietary drivers is a huge pain. I could never go back to UMS and proprietary drivers.
As for my recommendations, if the intel HD3000 or HD4000 meet your 3D needs, they work extremely well and have great in-kernel drivers.
If you need faster OS 3D or a discrete card, go for a "northern islands" Radeon. bridgman recommends a mid-range card for the biggest band-for-the-buck with OS drivers. The high-end cards won't be slower but the drivers aren't as optimized to get the highest performance.
If you are patient and like submitting bug reports you should get a HD7970 ;)
EDIT:
Oh and if you need OpenCL on gpu, intel doesn't support it yet. I believe its works on AMD "northern islands" and earlier.
For more info check out: http://software.intel.com/en-us/articles/opencl-sdk-frequent...
HD3000 - very common IGP, yet whenever I enable it there are GPU lockups every few days. This goes on for years, on two motherboards.
AGP Radeon 9600 - occasional crashes with bad kernel/X combinations.
The 9600 works fine on "good" driver versions. HD3000 boxes are unusable without some old 8-series GeForces running under nouveau.
And now, Intel. I've been using a laptop with GMA950 IGP for almost five years. Never a single crash, except for one time when I enabled KMS long before it was cool and everybody's dog was using it. And nowadays this driver runs some Wind0ze games faster than genuine XP on the same hardware.
EDIT: I've just checked that this Intel KMS bug was happening only on some -rc release.
Do you remember which Podcast that was on? Sounds interesting.
SurfaceFlinger does handle some things like allowing windows to draw directly to the framebuffer when they're unoccluded, but the Linux guys don't care about that (or they would unredirect frontmost windows in their X compositors, which still nobody does, ugh!).
SurfaceFlinger is also pretty immature and featureless for a desktop surface compositor: 1. Only handles 2x2 transforms (+translation) which it expands internally to 4x4 GL matrices. 2. Written entirely around GLESv1 -- no shaders, no complex geometry: no "genie effect" or anything like that. 3. Immature multi-display support. It was literally just added in Android 4.2. Try taking a screenshot of anything that's not display 0. 4. No IPC system, unless you count Binder which has it's own set of problems ("lets make every message be synchronous").
I haven't kept up with Wayland, but I imagine it has a lot of these problems addressed (except for allowing unoccluded windows direct framebuffer access -- almost nobody bothers with that one, even though it's a big win).
Also, someone at Canonical wrote a library, "libhybris" which supposedly could load GL implementations compiled against bionic on a glibc system -- this seems a much more sensible approach to me...
I wouldn't recommend this approach for the desktop but the reason I like this approach for mobile ubuntu initially is that you will get a more mature GPU integration with SurfaceFlinger/ANativeWindow than generic Linux.
Edit: we also know the limitation of glesv1 is because of the problems for glesv2 support in some is emulator environments. So it s a trade off. Agree that the multiple display support is a big problem too
The article doesn't present itself as anything else. But appearing in the context of HN, the title is not appropriate.
http://www.phoronix.com/scan.php?page=news_item&px=MTMwO...
It's a very pragmatic choice in the short term. Most if not all ARM SoC GPU stacks are very much Android first with proprietary implementations. There's not a lot of ARM based manufacturer backing for generic Linux implementations (DRM/GEM/TTM etc) .
Maybe if Google sway towards something which works better in the generic Linux world the manufacturers might move.
(Alternately wayland/X working on SurfaceFlinger).
They could port Unity to SF if they wanted, but what apps are you actually going to launch then, ones for android ?
I doubt they'll port all the apps they have to SF.
Both Gtk+ and Qt already run on non-X11 platforms like Win32. Canonical would simply need to add a SurfaceFlinger backend to the frameworks, and then the apps would just work.
The number of modern Linux apps that use X11 directly is small. Anything that makes substantial use of raw X11 is not going to feel "native" anyway by modern standards, so I doubt that Canonical would feel bad about abandoning compatibility there.
Read: "simple need to write thousands of lines of code". Writing a GTK and Qt backend is no minor task.
What apps do people actually use on Ubuntu today? All the Ubuntu users I know just use it to run a web browser, and maybe a few other things that can be trivially moved into the browser (IRC, text editing, ssh). Native software is dead. Move to Open Web Standards and you won't have to worry about platforms changing core libraries and breaking all your apps ever again.
That's just from recent apps.
Apart from Hacker news and reddit, I need nothing online, and in fact I hate to use the browser when a more suitable native option is available.
May be it is different for the million social apps in phones, but I don't need them nor care about them.
That's quite a leap considering that the big movement of late has been towards native apps (in the context of tablets/phones), and considering that everyone hates it when someone releases an iOS or Android app that's simply a web app in a wrapper. Also considering that much effort is being spent on things like PNacl to get native apps to run over the web.
Web apps still suck compared to their native counterparts. And as long as that's the case, native apps aren't going anywhere.
That was a few years ago, the industry has moved on since the iPhone. I can't think of any exciting new native apps in the last few years. Were there even any native apps at all created by the last batch of YC companies?
>Also considering that much effort is being spent on things like PNacl to get native apps to run over the web.
PNacl is not going to take off, and rightly so: it's Google's attempt to lock the web into their own proprietary platform.
>Web apps still suck compared to their native counterparts
I disagree. I don't have to worry about saving, I can use them from any computer anywhere in the world and continue what I was doing. I don't have to worry about updates. My system won't get compromised because I forgot to install a vital security upgrade for app X Y or Z. My app won't suddenly get deleted from my computer because the OS vendor decided to censor it. I don't have to worry if it will run on my system, or work out what dependencies I need to install. It will always just work.
About breaking cross-platform apps... there is simply a better solution -- open, solid protocols. If a protocol solves some problem, it will get great apps on all platforms and will be supported for years, outliving dozens of closed solutions (think of e-mail, jpeg, ssh, pdf, ftp, csv or BibTeX).
>security issues
web apps run in a secure sandbox. Native code is insecure by comparison. Users don't trust native apps.
>browser overhead
irrelevant in the age of multi GHz CPUs in your phone
> bugs
native platforms have bugs too
>file systems
most people don't need a file system at all when they have the cloud, but it's there if you need it http://www.html5rocks.com/en/tutorials/file/filesystem/
>cross-process communication
http://dev.w3.org/html5/websockets/
>i18n
libraries for that will come
>networking
Websockets, WebRTC etc
>device access
anything common or mainstream is already available (cameras, microphones, gps, accelerometers etc)
> compositing
https://www.khronos.org/webgl/
>UI look&feel
The freedom to create your own UI without being constrained by platform conventions is going to open up many new and exciting UI paradigms now that we finally get a true open and free market in interface ideas.
>About breaking cross-platform apps... there is simply a better solution -- open, solid protocols
protocols and file standards won't save your app from breaking when the OS vendor kills the framework you are using
Sure, I don't have cool things like Evernote or Writeroom or Text Wrangler. But when I need to hunker down and get the job done, I do have my Eclipse, Emacs, vim, Firefox, Chrome, Thunderbird, LibreOffice, Gimp, Gedit, VLC, etc.
For every app in my Mac OS X dock, there's at least one native substitute on my Ubuntu boot. And it's just more fun to work on sometimes. There are errors you sometimes encounter which are simply easier to debug on a linux terminal than a Mac terminal in my experience.
Instead the user has to worry about whether or not the many libraries bundled by the webapp are all kept up to date by each and every app developer. Gone will be the days of shared libraries and centrally managed security updates for those. And don't suggest that webapps are secure because they run in a sandbox. Just wait, as more and more people move their work to webapps, more and more flexibility will be demanded. Soon you'll have to pierce sandboxes because AppA needs to throw data to AppB with a little Python script you wrote inbetween. Then the security issues will come, as will the library incompatibilities, and we'll be back where we are now, except the heterogeneous world of today will be replace by a JS monstrosity with browsers playing OSs.
Obviously, this doesn't cover particular applications that directly access X11 libraries, but porting the toolkit and recompiling the more 'simple' applications would probably be a decent start.
Canonical will not migrate to SurfaceFlinger.
Speaking on behalf of myself here, and making an individual decision to prevent the spreading of FUD.
EDIT: And here is the public announcement of what we are working on that I've been waiting for:
https://wiki.ubuntu.com/MirSpec
http://www.olli-ries.com/mir-unity-qml-unity-apis-unity/
https://lists.ubuntu.com/archives/ubuntu-devel/2013-March/03...
This is obviously purely theoretical, but would bring the ubiquity of Android to a whole host of new machines if used in a desktop context. That would make the whole experience quite interesting and exciting.
Both in terms of improving hardware support and adding an existing large app ecosystem if Dalvik gets ported too.
But, as Canonical wisely reminds us time and again, we have some pretty amazing computing devices in our pockets by 2013.
Now a second question is whether Ubuntu Phone's default terminal will also use Busybox. If so, why? The user not interested in this won't launch it and hence not take up RAM, right? OK, it will mean a few extra MB of flash memory...
Please somebody tell me that Ubuntu Phone will make the solution as simple as simple as apt-get install bash.
Looking at this today, what with the MIR planing (detailed here: https://wiki.ubuntu.com/MirSpec and here: https://lists.ubuntu.com/archives/ubuntu-devel/2013-March/03...), didn't Canonical just rebuff this analysis. I see that today they are using SurfaceFlinger, but it isn't listed after May 2013.
I am also looking forward to seeing how it would affect my life as a web application developer. Mainly I keep thinking if the phone hardware (which are mostly ARM processors and limited RAM) will be able to run a number of servers and services we web developers usually have running on our desktops.
The *Phone* and *Tablet* will be *Ubuntu*.
The *Desktop* will be *Android*.
That's a very risky prediction.This doesn't make sense to me, a PC or laptop doesn't have a mobile phone GPU. Or am I missing something here?
> acceleration sensor, camera and GPS services would > also become easy accessible for traditional Linux applications
What good does it do if the hardware isn't available to a PC ? An accelerometer isn't very useful for a tower PC, is it ?
Too much assumptions in this speculative article. Not that any of it is impossible to achieve but some would require a lot more work than it seem and some wouldn't make much sense for the PC.
Integration between the different flavor of Ubuntu doesn't have to be so low level.
It is. You could use the tower in a wheel table like the Valve guys are doing, or inside any machine like cars or trucks or robots(btw I do so every single day), and they become useful for protecting hard drives, or rough sensing the movement of the car, or someone trying to steal the thing in the laboratory and activating a sound alarm.'
We use lots of accelerometers in the lab today connected to computers. I'd love to use a common API integrated in the OS for accessing them.
I would be able to rotate the screens of my arm mounted imac without having to press complex key bindings like today.
But I was talking standard PC, not appliance and in that sense, that reusability of drivers _today_ isn't very high. Makers don't put accelerometer on mobo. So to me the argument is kind of moot, IMHO.
It could help to detect if the kids thought it was a toy horse
I'm not positing this as a huge win for Linux, but it's not useless either. Built-in GPS would be fairly cool for a laptop, even if it's just for wardriving or something.
Many of these users who have been forced out of the Ubuntu camp have moved to Linux Mint, because it tends to offer what were the benefits of Ubuntu, but without the painful points. The fact that they're better off now than if they had still been using Ubuntu shows that these types of changes aren't really helping the Ubuntu experience.
As far as I know, lots of new users got to use Linux precisely because of the switch to Unity. Also, another set of users got back to using Linux as the primary machine because of Unity, like me.
So, some old guys leave Ubuntu, while another set of new users join Ubuntu. It is probable that the end result is a net gain, even with all the complaints.
I would love to see real numbers (different to the old geezers complaints) to clarify this issue.
From my perspective, the move to Unity made zero sense at the time. It was a clear case of NIH (Not Invented Here). "It works better on small screens" was translated in my head to "Netbooks are the future!" so I went out and bought an Asus eeePC. IT wasn't bad, but it got old after a while and I sold it.
Fast forward 2.5 years, and we're seeing the convergence of mobile devices. I personally carry a 7" Samsung tablet as a phone. Others around me carry an iPad or iPad Mini in addition to an iPhone or Android device. Now "It works better on a small screen" translates to "We're building a single experience across phones, tablets, laptops and desktops."
Apple has been trending that way for about a year with the introduction of the App Store for Mac, and Microsoft is jumping on the bandwagon too with Metro and its touch-based UI features.
Suddenly, the much-maligned move to Unity as a desktop shell makes Shuttleworth look like a freakin' genius, as Ubuntu sits here with a unified experience for both users and developers, while Microsoft tries to push its heavyweight OS onto tablets and Apple tries to close the gap between iOS and OSX.
Add in that Ubuntu's primary development language seems to be Python, while your other options are Java (Android), Objective-C (iOS) or .NET (Win8)... I'm seriously considering dropping my side projects and going headlong into app development for Ubuntu Phone. It's a gamble, but if anyone can threaten the status quo right now, I think it's going to be Ubuntu.
To be surprised at evolutionary changes which shed the aesthetic of competing distributions and introduce simpler, more consumer-oriented user experiences is to fundamentally misunderstand what Ubuntu Desktop has always been aiming for - Ubuntu hasn't stopped delivering on promises in recent days, it's started delivering on them.