Slashdot Mirror


Jolla Ports Wayland To Android GPU Drivers

An anonymous reader writes "A Jolla Sailfish OS engineer has ported Wayland to run on Android GPU drivers. The implementation uses libhybis with the Android driver so that the rest of the operating system can be a conventional glibc-based Linux operating system, such as Mer / Sailfish OS. The code is to be LGPL licensed. The reported reasoning for making Wayland support Android GPU drivers was difficulty in ODM vendors not wishing to offer driver support for platforms aside from Android."

26 of 90 comments (clear)

  1. Re:Eh? by jbolden · · Score: 5, Informative

    Jolla is a bunch of x-Nokia engineers continuing the work Nokia was doing on MeeGo. The name of their version of MeeGo is Sailfish. Wayland is a next generation display manager similar to Aqua on Mac that is currently looking to replace some of X11's functionality. Jolla ported the Android drivers over to Wayland so that Sailfish can run on GPUs designed for Android. This allows Jolla to buy off the shelf (cheap) GPUs and run Sailfish on it i.e. keep hardware parts costs down.

    The use of inexpensive hardware means that Jolla is not going to be only at higher price points. They are producing a mainstream phone and there had been debate about that. This is important because we now for sure that Sailfish is going with Wayland unlike MeeGo which used a more primitive direct system.

    In short
    a) Wayland is cool
    b) Sailfish is cool
    c) Jolla is cool

    So all around a classic /. news for nerds story.

  2. Re:Eh? by wierd_w · · Score: 4, Informative

    Wayland is an alternative windowing system for *nix OSes; a counterpart to Xorg, Xfree86, X11, and pals. While the others are all based on the original X windowing system, Wayland is simply different in that respect.

    The story is about successfully porting the Wayland windowing system to be able to work with android flavored GPU drivers, presumably because many SoC makers only target Android as a platform.

    Why?

    Suppose you want to build a custom *nix flavored tablet distro to run on these smexxy new atom and arm cpus hitting the market, and the SoC solutions look attractive. "Oh noez!" You shout in exasperation "they won't gives me duh sourcez codez! I cannuh compile native kernal driverz an shitz!"

    With this hybrid mashup, this port of Wayland can use the vendor created android drivers out of the box, making the tight fisted "no, our precious can't be shared! Bad Linuxesss.. Bad!" Behavior coming from nVidia and Broadcom in respect to this issue, much less of a showstopper, and more of just a petty annoyance.

  3. It's even simpler than that by Wesley+Felter · · Score: 4, Insightful

    The reported reasoning for making Wayland support Android GPU drivers was difficulty in ODM vendors not wishing to offer driver support for platforms aside from Android.

    ODMs don't know how to write software, so you're better off not asking them to; the result would just be garbage anyway. All the GPU drivers are actually written by the GPU IP vendors (Qualcomm, Imagination, ARM, etc.) and they only provide Android drivers. You could try to pay them to write KMS/DRM drivers, but they'd probably quote you a price in the millions which minority platform wannabes like Jolla could not afford anyway.

  4. Re:Eh? by Carewolf · · Score: 4, Interesting

    In short
    a) Wayland is cool
    b) Sailfish is cool
    c) Jolla is cool

    So all around a classic /. news for nerds story.

    And
    d) They just made Mir even more redundant.

    The only thing Mir had going to it was that it was Wayland with Android drivers.

  5. Mir by jbolden · · Score: 2

    Agreed. Jolla is way ahead of Canonical. And their people know a lot more about the phone business. I'd need really good odds to put money on Mir in that fight.

  6. Re:Eh? by girlintraining · · Score: 3, Funny

    a) Wayland is cool
    b) Sailfish is cool
    c) Jolla is cool
    So all around a classic /. news for nerds story.

    I really only have one question... why are all these open source projects named after ex-girlfriends?

    --
    #fuckbeta #iamslashdot #dicemustdie
  7. Sailfish by jbolden · · Score: 2

    Sailfish runs Android apps and has a better interface. I could see Jolla being bought by Motorola or HTC or Sony as a way to get back into the game against Samsung. I could also see Samsung buying them if Tizen doesn't work out for Samsung.

    If I had to guess 25% Sailfish is picked up by a mainstream brand by 2018.

    1. Re:Sailfish by preflex · · Score: 5, Informative

      No, Sailfish does run android apps.. IIRC, they licensed Alien Dalvik.

  8. Re:Eh? by AvitarX · · Score: 2

    Wayland is pretty heavily represented here, but Jolla and sailfish I remember only seeing once, and it was a while ago, and I didn't remember.

    but, I personally like this site because I don't need to wade through parenthetocals while reading summaries of tech stories, I would of benefited from context here, but It's the price I pay for all the countless times I benefit from lack of such.

    --
    Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
  9. Re:Eh? by wierd_w · · Score: 4, Funny

    While the last two clearly sound like stripper/porno names, like "candi", .....

    Seriously, you had an ex girlfriend named... Wayland?

    Did "she" have stubble too?

  10. Re:I've been whooshed! by Yebyen · · Score: 2

    You could read the article.

    I'm not gonna. Just sayin.

    --
    Restating the obvious since nineteen aught five.
  11. Re:I've been whooshed! by caseih · · Score: 4, Funny

    Been away from Slashdot for a while? Wayland has Benn in the Linux news a fair bit recently. And Jolla has been mentioned quite a few times.

    But if you really don't want to read the article then I can fill you in. Wayland is the planet where the emperor hid his cloning cylinders and other artifacts he accumulated during his reign.

  12. Re:Eh? by Anonymous Coward · · Score: 2, Insightful

    Well, just from the summary it says they ported Wayland to run on Android GPU drivers, so I assume that the point is not to run Wayland on Android but to use Android's GPU drivers for Sailfish OS. That would make sense because trying to persuade hardware vendors to make a whole new driver branch for a yet-unproven OS is not something most developers would look forward to. At least that's just my impression - I'm off now to go read the fine article.

  13. Re:Eh? by snadrus · · Score: 2

    To run a C++ (native) app on Android hardware (because that hardware is cheap to buy) supported by only closed drivers:
    - Using Android's SurfaceFlinger API means your apps use Dalvik, fail.
    - SurfaceFlinger is a bit basic to extend.
    - X11 isn't getting ported, Difficult?
    - Wayland shows more promise, (and sends fewer network packets with FreeRDP than X forwarding).
    - Ubuntu Mir is trying something similar.

    --
    Science & open-source build trust from peer review. Learn systems you can trust.
  14. Re:Eh? by girlintraining · · Score: 4, Informative

    Seriously, you had an ex girlfriend named... Wayland? Did "she" have stubble too?

    Google for "Susan Wayland" sometime, when you're not at work. When you're done wanking, come back and tell me about that 'stubble' she has.

    --
    #fuckbeta #iamslashdot #dicemustdie
  15. Re:Eh? by wierd_w · · Score: 2

    Sadly, as an asexual I don't wank off to anything..
    My first reaction? "Wow, she could take an eye out with those." Followed by "actually, it looks like she has a butt on her chest."

    Overall, she does pull off the skin tight latex fettish look quite nicely though.

    Still, in regards to "Wayland", the other names are all first names, while in this case, it's a last name. As a first name "Wayland" is usually used for males. Hence the reference.

    (Also, unlikely that anyone here that isn't really a CEO posting as AC could claim Ms. Wayland as an "ex girlfriend" anyway. ;) )

    So, in my mind, I saw this:

    Wayland (aka, "lola" from the song), with bleach blondes "Jolla" and "Sailfish" doing their original "dance stage sensation" on the stripper pole with dollar bills whirling around, as Wayland does his female impersonator gig as Whitney Houston, and the other two undulate provocatively on the two brass stripper poles on stage, doing backup vocals.

    I have a overactive imagination, and it wasn't a particularly attractive mental image.

    The latex queen is much better though, thank you.

  16. Re:Eh? by BrokenHalo · · Score: 4, Funny

    You had a girlfriend called Sailfish?

    Ummm... OK.

  17. Re:Eh? by akanouras · · Score: 2

    X11 supports touch, as does Wayland of course.

    The amazing GUI you saw in that video is built on Qt, and can be run on any platform supported by it with some minimal effort.

    "theme based icon recoloring" is implemented in the GUI toolkits.
    "1/4 sizing screens" is a job for the compositor, in either system.

    The biggest user-visible difference between Wayland and X11 will be tear-free display in all circumstances, provided the application's developer has half a clue.

    The biggest differences for developers will be the sane (for today's requirements) architecture and vastly simplified API (a big deal in itself).

  18. Re:Eh? by wierd_w · · Score: 2

    (Groucho marx voice)

    "Ain't nuttin wrong with that tuna, I'l say!"

    [Too easy. Sorry.]

  19. The most interesting thing is left out by SilenceBE · · Score: 4, Interesting

    From the authers blog

    Earlier this year however, I discovered that a well-known company had taken the code - disappeared underground with it for several months, improved upon it, utilized the capability in their advertisements and demos and in the end posted the code utilizing their own source control system, detached from any state of that of the upstream project's. Even to the extent some posters around the web thought libhybris was done by that company itself.

    That kind of behavior ruined the initial reason I open sourced libhybris in the first place and I was shocked to the point that I contemplated to by default not open source my hobby projects any more. It's not cool for companies to do things like this, no matter your commercial reasons. It ruins it for all of us who want to strengthen the open source ecosystem. We could have really used your improvements and patches earlier on instead of struggling with some of these issues.


    http://mer-project.blogspot.fi/2013/04/wayland-utilizing-android-gpu-drivers.html

    Canonical being Canonical

    1. Re:The most interesting thing is left out by Anonymous Coward · · Score: 3, Informative

      "But, I will say that their behavior has improved - they are now participating in the project, discussing, upstreaming patches that are useful. And I forgive them because they've changed their ways and are participating sanely now."

      You left out that bit of the blog post.
       

    2. Re:The most interesting thing is left out by drinkypoo · · Score: 2

      It doesn't sound like they actually did anything wrong. Most licenses in the wild today do not require source releases without distribution. If the developer wanted to prevent people from disappearing underground with his code, he should have put in an open repo clause. Then no one would use his software, and the problem would be solved.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  20. Let's try to explain the technology by Bostik · · Score: 5, Informative

    Phoronix article is quite low on information, and even the original post at http://mer-project.blogspot.fi/2013/04/wayland-utilizing-android-gpu-drivers.html assumes some technical knowledge of graphics stack. The basic idea is actually pretty simple. I'll try to break it down.

    1. The SoC vendors are willing to target only Android
    2. Android GPU drivers are built against Bionic libc
    3. The GPU drivers talk to hardware, and expose themselves via EGL and GLESv2
    4. EGL is basically a common API for GPU memory management, buffer (region of memory used for rendering) allocation and display updates
    5. GLESv2 stands in for the functionality we commonly associate with OpenGL
    6. GPU drivers form a combination of EGL and GLESv2 libraries, each GPU vendor providing their own

    This is where libhybris comes into play. The GPU driver libraries don't work without Bionic libc - so libhybris, while running on top of regular linux (and thus [e]glibc), keeps a private Bionic libc open for the GPU drivers' use, and redirects all the EGL/GLESv2 calls to the GPU driver libraries. These libraries run in their own Bionic universe, and tell the actual display hardware what to do.

    The new part about Wayland support is just a logical extension of the same behaviour. Wayland already depends on EGL for buffer management, so "all" it really needs is a native display handler. Now as it happens, the native Android display structure can be mapped to the Wayland-EGL display structure. It's not trivial, but it's certainly doable. Thanks to libhybris, the Wayland libraries see a correct native display type and operate on that, while the Android GPU libraries see their respective native display type and thus can drive the hardware as ever before. After all, it's still the SAME hardware regardless of what operating system we may be running. Registers are registers and memory is still memory. From the GPU drivers' point of view nothing has changed.

    So what has happened? In addition to just redirecting graphics stack calls to Android drivers, we are now also translating the display subsystem between two somewhat different systems.

    If all of the above sounds eerily familiar, you are correct. In networking this kind of design is called a proxy, or if we're talking about link layer, it would be a multi-protocol label switch. Logically there's not much difference.

    --
    There is no such thing as good luck. There is only misfortune and its occasional absence.
  21. Re:Eh? by jbolden · · Score: 2

    I think the graphics were handled by the Qt framebuffer driver. Obviously it could run X11, the way you can on an Mac, but that's different than saying X11 was the primary display system.

  22. Re:Eh? by serviscope_minor · · Score: 2

    While the last two clearly sound like stripper/porno names, like "candi", .....

    Wait what? Sailfish is now a stripper/porno name? I've clearly been out of the loop for too long. Out of interest does she work with Marlin?

    --
    SJW n. One who posts facts.
  23. Re:Eh? by jbolden · · Score: 2

    Exactly you are running X11 against a framebuffer. Which means X11 is writing to memory and someone else is handling putting that on the screen.