Linux Fu: The Wayland Submission

X11 was a brilliant design, though it certainly lacked in some areas that were less important when it was born. However, a funny thing happened. People, for the most part, seemed to forget that X11 was made for multiuser networked machines. So they started using X11 as a display driver for their single-user workstation. Of course, that works fine. But that’s like using a motorcycle to go from the living room to the kitchen. You can do it, but it may come with certain trade-offs.

I would have loved to see X11 fixed to have better security and performance, but that didn’t happen. Instead, we got Wayland. I resisted it as long as I could, but a recent update to my computer stopped me from logging into a GUI session. That’s when I found out that OpenSuse decided that I would really like to replace X11 with Wayland. So much so that they wouldn’t give me a choice. I spent a day trying to figure out a realistic way to roll back or graft X11 in, but finally decided it was too much and would lead to more and more work with each release. So I decided to just bite the bullet.

Why Not Wayland?

If you are like me, you probably don’t really care much about what software is driving your display as long as it works. And that was the problem. I have two workflow tasks I do quite often that Wayland seemed to have problems with. First, I use autokey to remap keys for certain applications, notably web browsers, so that I can use emacs keystrokes in them. Second, because I have multiple networked computers, I often run an ssh tunnel and forward X11 traffic to run remotely. Actually, I used to simply log into those machines remotely, but because of security concerns, most login greeters have had that capability turned off for a while, and getting it to work in modern times has been spotty, so I just tunnel the whole window.

The Solutions

There’s good news and bad news. First, there’s no universal answer that completely replaces the tools I’ve used in the past. The good news is there are some things that get you most of the way there. The bad news, again, though, is that not all of those things work with every application you might want to use, although, presumably, that will get better over time. After all, Wayland is only 13 years old.

Continue reading “Linux Fu: The Wayland Submission” →

Some Renaissance Men Were… Women

We live in an age of specialization. Mechanics work only on Brand X cars. One doctor deals exclusively with joint problems. Programmers write in one or two languages. But there was the ideal of the polymath, exemplified by Leonardo da Vinci and often known as the Renaissance man — someone skilled in many disciplines.

Hildegard lectures her nuns (public domain)

In theory, someone like that would be able to synthesize insights differently from us mere mortals, because they could draw inspiration from different areas. If you build robots, but also understand how animals move, that probably pays off. But the sheer depth and breadth of knowledge today make it harder and harder to be a true polymath.

Of course, not all Renaissance men lived during the actual Renaissance. Sure, there was Leonardo, but people like Thaddeus S. C. Lowe, Newton, Kelvin, Hooke, Goethe, Tesla, and others were certainly excelled in many different areas.

What you don’t hear very much about are the Renaissance women. But there have been many female polymaths, some of whom did live during the Renaissance itself. They just didn’t get as much press.

Hildegard of Bingen

While the 1100s are a bit early for the Renaissance, Hildegard of Bingen, a nun, was quite the versatile lady. She wrote about diseases and treatments, cataloged plants, and composed music. She produceded poetry and theological works. She even invented her own language, complete with its own alphabet, and also contributed to philosophy. Some of her music is still performed today. You can hear one in the video below. Continue reading “Some Renaissance Men Were… Women” →

Exploring The Nuts And Bolts Of Pinball Machines

If you predate the video game craze, you might remember annoying your parents by spending money on pinball machines. These days, you can play on a computer if you like. Or you could build one using a microcontroller. But those old machines certainly didn’t have computers in them. At least, not digital ones. Authentic pinball machines were full of relays, solenoids, motors, and leaf switches. [Matt Makai] has the rundown, in three parts, all available now.

Mechanics is the order of the day. The motive force moving the ball? Gravity, of course. Flippers you could control — now a staple — didn’t show up until 1947. How do you sense a ball impact on a bumper? A spoon switch. You can see animations explaining it all.

We worked on these old machines, along with their relatives like bowling machines, back in the day. They were both beautiful and terrible. The plastic drums that kept score had a ratchet pawl that let them turn exactly a tenth of a rotation on each score pulse.

These machines were as much art as they were technology. If you get a chance to visit a serious pinball museum (like the one in Las Vegas), it is amazing to walk through time from the very old machines to the more modern ones and see the differences in both electronics and artwork.

Of course, pinball predates even electronics, and if you look at the oldest machines, you’ll understand why it is called pinball. Of course, if they could build a good machine in the 1950s and 1960s, there’s no reason you can’t build one yourself today.

Hackaday Podcast Episode 396: Robot Hands, The Inner Life Of Mechanical Watches, And The Truth About 3D Scanning

Hackaday Editors Elliot Williams and Al Williams met to review the week in Hackaday. It was a week for hands, in more ways than one, along with a voice assistant that ditches the cloud, a GPU for twenty cents, glasses that help the visually impaired see with LiDAR, and a virtual mechanical watch that shows you exactly how the real thing ticks.

Beyond watch hands, you might like an eighteen-degrees-of-freedom robot hand for under $300 in parts.  Or plant your own hands on a spinning wheel to make virtual honey feel sticky and virtual oil feel slippery in VR.

For the Can’t-Miss Articles, Elliot digs into the truth about hobbyist 3D scanning, photogrammetry versus structured light, and why the meshes you get are rarely the CAD models you wanted. Al, meanwhile, looks at how modern smartphones talk to satellites, bent pipes, flying cell towers, and all.

Check out the links below to follow along, and as always, tell us what you think about this episode in the comments! Or drop us a note at mailbag@hackaday.com.

Download in non-robotic MP3 format.

Continue reading “Hackaday Podcast Episode 396: Robot Hands, The Inner Life Of Mechanical Watches, And The Truth About 3D Scanning” →

First Smartphone? Think Blue

High-tech for the 90s. “IBM Simon Personal Communicator” by [Bcos47]
If you ask most people when the smartphone arrived, they will usually say 2007 with the first iPhone. Others might argue for a BlackBerry or a Nokia Communicator. But the IBM Simon Personal Communicator beats them all. It wasn’t even close. This early smartphone went on sale on August 16, 1994, more than twelve years before the iPhone, and it already had the defining features we now take for granted: a touch screen, applications, electronic mail, and a single device that was both a telephone and a small computer.

Simon started as a prototype code-named Sweetspot, at COMDEX two years earlier. It was the brainchild of IBM engineer [Frank Canova]. The prototype could make calls, send faxes, electronic mail, and cellular pages, and it had services such as maps, stocks, and news that would not be ordinary phone apps for years.

Refined

IBM refined the design as Angler, and the finished product got its final name from BellSouth, which would sell it. Simon was reportedly a nod to Simon Says, because the device was supposed to do what you told it to do. IBM didn’t build the phone, however. That was left to Mitsubishi Electric. Informally, many people called it a “ThinkPhone” in a nod to the famous IBM Think sign that was always somewhere around an IBM mainframe.

Inside, Simon was an 8086 computer. It used an NEC V30HL processor running at 16 MHz. It sported a whopping one megabyte of RAM, one megabyte of flash storage, a PCMCIA slot for expansion, and it ran Datalight ROM-DOS under a touch interface called Navigator. No DOS prompt in sight. The display was a monochrome, backlit LCD at 160 by 293 pixels, operated with a stylus, and the whole thing weighed eighteen ounces and measured eight inches tall. Pocketable? Maybe if you had very large pockets. Continue reading “First Smartphone? Think Blue” →

Watch This (Virtual) Mechanical Watch Do Its Thing

Normally, when we write about watches, they are the electronic kind. But we’re also fascinated by mechanical watches. It is amazing that these mechanisms have existed for centuries. [Martin C. Martin] is fascinated too, and he produced a page that explains how they work simply and also includes wonderful 3D animations that make it all clear. If you are just skimming the page, be sure to drag the animations to spin them around.

He was inspired by another page that has even more detailed information and different animations. It turns out the hairspring was invented by [Christiaan Huygens], who is also known for many other scientific advances in optics, astronomy, mathematics, and more. The main idea is that if you fix the far end of the spring and let the center rotate, the spring will wind and unwind at a constant rate. Combined with a balance wheel to slow the hairspring, you have a wheel that oscillates back and forth at a fairly constant rate. According to the post, a well-calibrated mechanical watch should lose about nine seconds a day. Given that there are 86,400 seconds in a day, that’s not bad (just a hair over 0.01%).

Continue reading “Watch This (Virtual) Mechanical Watch Do Its Thing” →

Ask Hackaday: Putting The C In CPU

I was once in a meeting where the facilitator asked us to introduce ourselves with the usual information, but also wanted us to share our favorite hobby. I spent a second trying to think of which hobby I could say to not sound like a total nerd. Then I realized it didn’t matter. All my hobbies are nerdy, including designing CPUs and their instruction sets.

I actually started sketching out an instruction set when I was a kid, back when no one had home computers. I am glad I lost that notebook: it would be painful to see today. The first CPU I put on an FPGA wasn’t of my own design, though. I implemented BLUE from Caxton Foster’s Computer Architecture book. I also extended it and modernized it a lot. I really wanted a C compiler for it.

C Compilation

That’s really the problem. C was once a simple language, but modern C is far from simple, and compilers are huge projects. I have looked before at porting GCC to a different architecture, and it looks daunting. There’s LLVM, which is a bit more modern, but also non-trivial to port. There are a few older compilers that ought to be easier, but they often aren’t quite modern enough. Plus, if your CPU were big enough, which BLUE isn’t, GCC or a similar modern compiler would be attractive because you could use it to get Linux going.

Keep in mind, though, I’m not talking about a C compiler that runs on BLUE. Just a cross-compiler. My OneDer CPU is 32-bit and could host a C compiler, though. That’s another reason to bite the bullet and do a “big” compiler port. Because even if BLUE isn’t that big, other CPUs are, and I’d love to have a GCC port under my belt.

Continue reading “Ask Hackaday: Putting The C In CPU” →