Slashdot Mirror


OpenGL Becoming a Requirement For the Linux Desktop

An anonymous reader writes "Modern Linux desktops like Ubuntu's Unity and the GNOME Shell have placed a requirement on OpenGL 2.0+ support for handling their compositing window managers and desktop effects. Wayland's Weston also needs OpenGL ES 2.0 support. Now with modern Linux distributions like Ubuntu 12.10, rather than falling back to a 2D unaccelerated desktop if you don't have a sufficient GPU or graphics driver, users are being forced to run LLVMpipe as a CPU-based software rasterizer. LLVMpipe works fine if you are on a new PC with a fast x86-64 CPU, but the OpenGL-based Linux desktops are causing growing pains for ARM hardware, virtual machines, servers, multi-seat computers, and of course all older hardware. LLVMpipe is a Mesa Gallium3D driver that uses LLVM for run-time code generation as an attempt at accelerating graphics faster on the CPU. So much for Linux being good for old computers?" The KMS based graphics stack is already effectively unusable on AGP systems (if you have SMP + AGP, there are race conditions somewhere leading to really hard crashes that appeared a couple of years ago and dozens of years old open bugs with no resolution other than "use PCI mode" which cuts bus bandwidth by 4 or 8 times, and still doesn't work with SMP), but for those with older PCIe/IGP systems you could always runs Window Maker, Sawfish, Enlightenment, Open Box, or one of many other window managers without a compositor. Of course then you lose compositing, and there aren't any usable external compositors for some reason. The flipside to this is that moving to OpenGL as the primary interface to the GPU means one fewer driver that has to be written, and will probably lead to an overall improved experience for those with supported hardware given the limited resources Free Software drivers authors have.

19 of 229 comments (clear)

  1. Fluxbox by Hatta · · Score: 5, Informative

    Still no OpenGL required for Fluxbox. Still snappy on old hardware too.

    --
    Give me Classic Slashdot or give me death!
    1. Re:Fluxbox by Windwraith · · Score: 5, Informative

      Let's keep people educated. KDE 4.x (Kwin) doesn't require GL either, it's completely optional and can be disabled, "live", via a keyboard shortcut or setting an automatic window property (like launching a game > disable compositing".

      It's important that people knows KDE doesn't require GL to run, so they:
      A) Keep maintaining it.
      B) Others see it as an example of how to do things right.

  2. Re:Windows Server by hxnwix · · Score: 4, Insightful

    There's a simple solution - install Windows Server 2003/2008. It doesn't need fancy graphics card to operate. That is, if you are looking for server/virtual server OS. Otherwise you can just go with Windows XP or Windows 7.

    A headless windows server doesn't need a fancy graphics card... but neither does a headless linux server.

  3. Re:Dear OP by Anonymous Coward · · Score: 5, Informative

    you are out of date. Unity 2d is now dropped.

  4. alt+shift+F12 by Anonymous Coward · · Score: 5, Informative

    KDE (Kwin) has one of the most advanced compositing window managers around. You can toggle compositive off with alt+shift+F12 and go back to a 2D desktop. If it detects that it cannot run with compositing due to hardware limitations, it will do that by default, or you can configure it not to if you just don't like that.

    There is no requirement for OpenGL in any reasonable window manager.

    1. Re:alt+shift+F12 by Windwraith · · Score: 4, Informative

      And remember you can add window rules to disable compositing dynamically, for example when launching a game or other GL-intensive tool. It's the only (linux) desktop that allows that.

  5. Mesa? by gr8_phk · · Score: 4, Interesting

    Why does Mesa even exist? It was supposed to be a software implementation of OpenGL, but it never had good enough performance for much of anything. Instead it became some sort of wrapper for OpenGL drivers. They said it could be used as a fallback for any features not implemented in the hardware drivers (but with terrible performance). And now with the LLVM pipe driver it's not even used for software rendering any more. Somehow it just keeps sticking around. What's up with that?

    1. Re:Mesa? by pavon · · Score: 4, Informative

      From what I understand, there hasn't been a single piece of graphics hardware ever that implemented every single OpenGL call in hardware. The point of Mesa was to provide reference code that driver implementers could build on, replacing calls that their hardware did support with the appropriate driver hooks, and leaving the rest as is, while providing a consistent ABI (at least per-distro) to applications that need to link against libGL. It serves the same purpose today as when it was first written.

  6. KDE? by devent · · Score: 4, Interesting

    Does KDE requires OpenGL support now as well?

    you could always runs Window Maker, Sawfish, Enlightenment, Open Box, or one of many other window managers without a compositor.

    I think I can just disable the compositor on KDE and re-enable it if I wish. Or does the author have a bias against KDE that he/she is not mentioned one of the most used Linux desktops?

    --
    http://www.mueller-public.de - My site http://www.anr-institute.com/ - Advanced Natural Research Institute
    1. Re:KDE? by brennanw · · Score: 5, Informative

      KDE doesn't require a compositor, and you can toggle compositing on and off pretty easily if you want.

      --
      Eviscerati.Org: All Hail the Eviscerati
  7. Re:And? by troon · · Score: 5, Insightful

    You'd be surprised how many people run older hardware. I don't give a damn about gaming; so all three desktops and one of the two laptops in my house are old 32-bit machines (Athlons, Pentium 4 3.06GHz HT, Celeron in the lappy). They run apps just as fast as when they were new state-of-the-art machines - it seems daft that it's the window management that's forcing me to look for leaner distros. I'm certainly not going to spend money upgrading hardware to have prettier window decorations and physics.

    --
    Ydco co ,df C erb-y go. a Ekrpat t.fxrapev
  8. Re:And? by Unknown+Lamer · · Score: 4, Informative

    I can assure you that my nine year old (but basically eleven year old tech, I got it for a steal when they EOLed everything after the Athlon64 FX was released) AthlonMP is still alive and kicking. With two 2.13GHz processors, 4G of RAM, and a Radeon X1650 it wouldn't be too shabby. Except for the part where I have to keep CPU1 disabled to use OpenGL (initially, I blamed having a Radeon 9100 so I got the new one, no dice). My only option at this point is to drop back to something like Debian lenny, but then I can't run xbmc (really, xbmc + zsnes + mame + {supertuxkart, armagetron} + a few xbox controllers = really sweet HTPC... and the box is great as a fileserver and build server all in one). For power, the thing idles at around 120W, so it's not even that much worse than a modern AMD based system on the power bill (we've got that nukular power round these parts, so I'm still paying a dime a kwh and can feel 1/3 fewer pangs of guilt about burning coal). With the second CPU disabled, however, it's just an underpowered old machine instead of something competetive with a more modern low end desktop.

    I gave up on debugging it (the lock up is so hard, even kgdb doesn't work... and trying to do the remote tracing thing also doesn't work because the last traces before the crash don't make it to the serial port). It's turned perfectly usable hardware into ... well, I'm getting an FX-whatever rig next week. Probably better for the economy, not so great for my account balance.

    --

    HAL 7000, fewer features than the HAL 9000, but just as homicidal!
  9. Re:Windows Server by websitebroke · · Score: 4, Funny

    Oh come on, are Slashdotters getting to be _that_ humorless. I need a Windows server like I need a hole in the head, but I laughed at the comment.

  10. Really? by aglider · · Score: 4, Funny

    Do you think GNOME (and Co.) is the Linux desktop?
    Ah! Have you ever heard about KDE, LXDE, XFCE etc. etc.? They seems not to require OpenGL at all! You insensitive Gtk-clod!

    --
    Sent as ripples into the electromagnetic field. No single photon has been harmed in the process.
  11. Re:And? by DrXym · · Score: 4, Insightful

    If you run older hardware, what's the big rush to upgrade to a dist offering shiny new desktop any way? Install Debian, stick a light WM on it, or stick with an older dist which the hardware is capable of running.

  12. Re:Dear OP by Windwraith · · Score: 5, Informative

    Too many comments forget Kwin. Which kind of shows nobody really uses KDE4, apparently, because it's a killer feature nobody knows about: It doesn't require GL and can enable and disable it on the fly without losing anything you are doing at the time. Even with automated rules!

  13. Re:And THIS, Ladies and Gentlemen... by Microlith · · Score: 4, Insightful

    Seriously, though, OpenGL? WTF? Fluxbox is good enough for me. XFCE, not far behind.

    I know! How dare they take advantage of graphics hardware of newer systems! X11 primitives should be enough for everyone!

    Ubuntu is fine if you are an absolute Linux beginner.

    It's also great if you want to work with Linux and the software available to it, but don't quite want to spend as much time screwing around with the platform.

    For the rest of us, frankly, this is just one more nail in its coffin, as far as I am concerned, Ubuntu is fast becoming the Mandrake of the 20xx.

    Fortunately it's not.

    there is always Slackware 14 and NetBSD 6.0, who both just came out and promise tons of (non-OpenGL) goodness.

    Hey, look at that. Options for the technology-averse technologist. Can people stop bitching about the fact that the GUI subsystem is being modernized and go take advantage of all the old, inefficient, software-powered solutions that you prefer?

  14. Re:openbox+xcompmgr by Narishma · · Score: 5, Insightful

    Don't lump KDE in with the others. It's just Gnome and Unity doing this.

    --
    Mada mada dane.
  15. Re:Dear OP by Windwraith · · Score: 4, Interesting

    But precisely its strong point is what invalidates TFA. I don't love KDE for failures like akonadi or nepomuk, but because it has the best mainstream window manager out of the niche alternatives like Ratpoison or Awesome. It's compliant with modern standards, has automatic window rules set from a nice, handy GUI, has per-window keybindings, and is very fast on mediocre hardware like mine. It allows to maintain complex layouts without effort and without being limited by a tiled system (although that ALSO exists in Kwin, if that's your thing!).
    If I need the compositing features I turn them on, if I need speed I turn compositing off, it's as simple as that, all your windows remain the same, you don't need to log out. You can even automate it with windows rules (3 clicks, literally). All your settings are kept, from theming to effects to thumbnailing or whatever.
    So, because of that, I think kwin is pretty much worth mentioning in this news story. Sorry if you don't like, but it IS relevant to this discussion.