Slashdot Mirror


Matchbox -- a Small Footprint Window Manager

An anonymous reader writes "In this technical article at LinuxDevices.com, Matchbox project leader Matthew Allum introduces his creation Matchbox: a small footprint window manager for PDAs and other resource-constrained embedded devices. Allum recalls why he decided to embark on the project, outlines its key objectives, describes its architecture and unique characteristics, and ponders its future. Cool piece of software; good read."

14 of 114 comments (clear)

  1. Nice look by B3ryllium · · Score: 2, Insightful

    I think that's actually one of the nicer WMs I've seen ...

  2. Pretty by Anonymous Coward · · Score: 3, Insightful

    This is actually sleek and efficient. The gaps between interface widgets aren't TOTALLY consistent, but they're better than in most WMs. And all three of the themes look pretty nice, which is three more good themes than most window managers have. I will seriously consider using this for my window manager on NORMAL, non-pda unix when i get back up to college and am using Solaris regularly again.

    Would someone (i.e., a company) consider doing some serious, professional usability testing on this thing, or something like it? A lot of people who used the newton still swear by it because apple did everything they could to engineer the thing such that the interface lived up to every single bit of potential it had.. so it just felt incredibly natural.

    Of course, my thought would be that building a resource-light, minimalist UI on top of xlib is like designing an energy-efficient, space-conserving, environmentally friendly steering column, dashboard and built-in radio into an SUV.. but that's just me. :)

  3. Re:If it's resource constrained, why run X? by MonMotha · · Score: 3, Insightful

    The people running Linux on the iPaq aren't your average PDA users. Many of them run it exactly because they can get semi-standard networking and can run standard apps. Have you ever played (well, played is an understatement sicne I could only see the top left corner) starcraft on your PDA? You can only do it via a remote display unless you've found a way to efficeiently emulate an 80386 on a StrongARM (and make it fast enough to run the game and still have time left over for the display and such).

    Most people don't need X. There's OPIE/QTopia for people who wanta PDA. But for people who want to tinker or do rather odd thigns, X works pretty nicely, especially with this specially designed WM.

    --MonMotha

  4. Re:Hm by pediddle · · Score: 3, Insightful

    Although Matchbox "wastes" real estate with titlebars, it uses them very smartly. As you can see from the screenshot in the article, the titlebars double as taskbars. If I ran KDE's kicker on my iPaq, I'd have no room left for anything. So, since everyone needs a taskbar in order to switch windows, and since I don't want to have to press a hard-button to do that, I think Matchbox does it very logically, in an interface with which everyone is already familiar.

    What you say makes sense, but it gives me no aversions to Matchbox; it looks damn slick!

  5. Re:If it's resource constrained, why run X? by JordoCrouse · · Score: 4, Insightful

    like using the framebuffer device, or Qt/embedded

    First of all, QT/embedded is just as bloated as X (maybe even more).

    The framebuffer is a good idea, but by the time you end up implementing all the stuff you need to actually run a decent program, you have implemented most of the XLib anyway. Trust me, I have gone that route before.

    X has its advantages when used on networks, like the client/server model, but it's overkill for personal devices.

    Ok - first of all - if you want to run multiple apps in a window manager environment, you *need* to run it as a client/server setup - Thats exactly what you are looking at on a window manager - multiple clients running on a single server. IMHO, its much better to have a client and server than a monolithic application - less resources to be used.

    Secondly, X uses this same client/server configuration on the desktop - and though some take advantage of the networkability of the protocol, most don't. Yet, nobody ever attacks RedHat or SuSE for using X in a client/server configuration.

    --
    Do you have Linux and a DotPal? Click here now!
  6. No X for my pda by Billly+Gates · · Score: 2, Insightful

    Is it just me or does resource-constrained and X sound like they do not belong in the same sentence. I for one would like a slimmed down desktop environment then just a simple window manager on a bloated X. X was designed for server/terminal archicture and is not needed for pda's. I know a slimmed down programmable desktop environment is possible because of the original mac. With a 6mhz processor and 128k of ram it could run with a desktop environment, networking, and its own apps! Of course 256k or 500k was more optimal back then but I look at old 80's computers as todays pda's. Infact today's pda's are more powerfull with 4 megs of ram and 16 mhz processors which are as fast as 286's and some of the early 386's. If it could be done like the original mac and Windows 2.0 then it can be done with pda's.

    If I had better coding skills I would like to play around with gtk or qt-embedded and actually create one for the hell of it. I would even create some of the functionality of kparts and call it kparts-lite. This would be a programmers haeven. Hmmm maybe I just found a perfect project for myself. :-)

    1. Re:No X for my pda by gerardrj · · Score: 3, Insightful

      And the Tandy Color Computer threw in multi-user on a 2Mhz processor and 128K of RAM.

      The only reason this article is considered newsworthy today is that programmers have gotten to where they don't care about performance or resource requirements. Programmers today don't consider what library call will be fastest, never mind trying to store toggle flags in a bit instead of and INT.
      If you want good programs to run at decent speeds and look good on a PDA, then go and hire the people that where writing all those games on the CoCo, Commodore 64, TI -99/4a, Amiga and all those other mid 80s systems. These people made magic with almost nothing for resources. Let them work their assembly language magic for a few months. Then watch jaws drop and listen to people ask "How did you get a 16Mhz CPU to do THAT?!?!"

      --
      Article X: The powers not delegated... by the Constitution...are reserved...to the people
    2. Re:No X for my pda by kevin+lyda · · Score: 4, Insightful

      wait, pda's are low power, low mem devices and you say they have no need for the remote display ability of x? really?

      assume that a low memory foot print version of an x-server exists (and you should assume this since it actually does exist). assume your pda has a wireless card and a color screen (because many do). and let's say you're a web designer and you're in a meeting with just your pda and for some reason you need to do up a quick logo. so you fire off the gimp from your high powered desktop box and hae it display on your pda. you do up a quick logo using some gimp scripts and effects and then pass it around.

      there, that's one use for remote display. now use you imagination and fill in the other 1 million cases where gui requirements are small and the stuff behind the gui are highly cpu and/or memory intensive. wait, i forgot java, make that 10 million cases...

      --
      US Citizen living abroad? Register to vote!
  7. Actually, X is big because of memory map by edyu · · Score: 2, Insightful

    The reason a lot of people say that X is a memory hog is because when they run top, all they see is X. In fact, X is a hog because X mmap the graphics memory and pixmaps to be more efficient. If you take away these, X is quite efficient. Of course, for the ultimately efficiency, Matchbox is GREAT! I just want to point out some of the misunderstanding out there.

  8. Re:Hm by yasth · · Score: 3, Insightful

    because it was designed for mobile applications using styli?

    Concepts like pointer, cursor, etc. don't make sense in that environment. "Dragging" to the edge of the screen won't work because it adds another action, and interfers with useage (i.e. auto scrolling when at the top or bottom of the screen if dragging), not to mention the fact that it adds annother action to be done.

    --
    I'd do something interesting, but my server can't handle a slashdotting.
  9. Re:If it's resource constrained, why run X? by dmiller · · Score: 4, Insightful

    X is a resource hog

    Prove it!

    My X is currently using 21M of my RAM (RSS). That is with 6 1600x1200 virtual desktops and a whole lot of windows open.

    Seeing as how 21 * 2^20 * (6*1600*1200*4*2). It seems to be doing a very good job of managing resources. Much better than Mozilla (55M RSS) or Evolution (45M RSS).

    Are you going to back up your assertion with numbers, your are you just going to recite the tired ./ mantra that "X is bloated"?

  10. Re:You want a small footprint... by hazyshadeofwinter · · Score: 2, Insightful

    FVWM is snazzy and all, but it tends to lose a little of that leanness if you try to implement too much of a fancy config (ie by running fvwm-themes). Still, I got a kick outta using PipeRead + awk + cda to implement a point & click, CDDB aware CD player in my wm menus.

    Sawfish (without Gnome) and Ouroborus are nice for low-footprint desktop WMs, too...

    Or if you're a true hairshirt, there's always twm.

    --
    Click here if you just like to click on shit.
  11. Re:small and efficient by JPriest · · Score: 4, Insightful

    It also uses Tiny-X server instead of the standard Xfree86, which I'm sure has quite a bit to do with the reason it's not huge and doesn't suck.

    --
    Saying Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
  12. Re:What's the point? by gregorio · · Score: 2, Insightful

    Who would run a lean, small-footprint second window manager ON TOP OF the first window manager that already takes 75% of their CPU resources? What is the world coming to? We already have window manager managers. I suppose someone might want to use Matchbox for their window manager manager window manager.

    For testing purposes, "Weasel"... :D If you can run the WM on Windows, programmers inclined to develop systems using your Window Manager, because this way they can test the solutions wherever they want to.