219 points · by todsacerdoti · 2y ago · 145 comments
It's because X's config files were asking you questions that there was no good way of knowing the answers to other than trial-and-error. (After all, if there was some OS API already available at the time to fetch an objectively-correct answer, the X server would just use that API, and not ask you the question!)
An example of what I personally remember:
I had a PS2 mouse with three mouse-buttons and a two-axis scroll wheel ("scroll nub.") How do I make this mouse work under X? Well, X has to be told what each signal the mouse can send corresponds to. And there's no way to "just check what happens", because any mouse calibration program is relying on the X server to talk directly to the mouse driver — there wasn't yet any raw input-events API separate from X — so in the default X configuration that assumes a two-button mouse, none of the other buttons on the mouse get mapped to an X input event, so the mouse calibration program won't report anything when you try the other parts of the mose.
So instead, you have to make a random guess; start X; see if the mouse works; figure out by the particular way it's wrong what you should be telling X instead; quit X; edit the config file; restart X; ...etc.
(And now imagine this same workflow, but instead of something "forgiving" like your mouse not working, it's your display; and if you set a resolution + bit-depth + refresh rate that add up to more VRAM than you have, X just locks up the computer so hard that you can't switch back to a text console and have to reboot the whole machine.)
I've lost count of the number of Linux machines I've seen that won't offer the correct resolution for a particular monitor (typically locked to 1024x768 on a widescreen monitor).
I don't know whether the problem's with Linux, Xorg, crappy BIOSes or crappy monitors - but even now I occasionally resort to an xorg.conf file to solve such issues.
Another machine - which is mine - used to have a 19" VGA monitor attached which worked happily at 1280x1024 for months, then one day something got updated and it wouldn't do anything beyond 1024x768 after that until I resorted to an xorg.conf file.
If you are dealing with consumer grade stuff that is sold a million times sure. I stopped keeping track of how often some special purpose/overpriced piece of display hardware had bad EDID information that made it glitch out.
Nope. I had to reinstall and the option to add the proprietary repository was not as obvious nor as emphasized as it should have been. It almost seemed like an intentional snub at Nvidia. I bailed for other desktop-related issues and ran back home to another distro.
But maybe Debian doesn't want to focus on desktop users and that's fine - they can continue to rule their kingdom of hypervisor cities filled with docker containers. The world needs that too.
I've been using linux for over 20 years, Xorg for most of that time, and I've never had any issues with screen resolution.
Unfortunately that doesn't make the problem I'm having go away! (On two of the machines I have in mind the issue is with a second monitor - that may well have something to do with it.)
Honestly I thought it was hard to configure because until I used Linux, my X terminals didn’t need to be configured at all!
I may be misremembering but I think my NCD terminal used bootp and probably a little tftp, then off it went. The hardest part was probably finding an Ethernet drop to plug it into.
Now - get off my lawn!
Eventually I figured out how to launch that xconfig utility and found some sane defaults, and was thrilled when I finally saw the stippling pattern or even a window manager.
You didn't have to guess, you just had to read the specs in the manual that came with your equipment.
Examples:
http://www.neilvandyke.org/linux-thinkpad-560e/XF86Config-tp...
For a trip down memory lane, read through the XFree86 Video Timings HOWTO (https://tldp.org/HOWTO/XFree86-Video-Timings-HOWTO/index.htm...). Getting stuff to work in the Good Old Days was _not_ easy.
I still remember that.
And xf86cfg, and how much Debian was improved when Sarge arrived.
I think this started around the 90ies that devices turned into magic black box consumables that are expected to "just work" while being undiagnosable when they don't.
To a degree. At least from my experience, something like a monitor and video card manual would provide you with enough information to filter through a list of example modelines to figure out which ones may work. Yet they did not provide enough information to create your own modelines.
> devices turned into magic black box consumables that are expected to "just work" while being undiagnosable when they don't.
"Just work" and being diagnosable are not mutually exclusive concepts. For the most part, the Linux ecosystem reflected that and still reflects that. I suspect the shift in behavior actually came from end users. They were less willing to look through the diagnostic messages and far less willing to jump through hurdles for things that they thought should just work.
I would say that it's more that the architectures where a manual created by the integrator could tell you anything useful, became irrelevant/obviated by architectures where it wouldn't.
Including a manual with a printed wiring block diagram of the hardware, made sense in the 1970s, when you (or the repair guy you called) needed something to guide your multimeter-probe-points for repair of a board consisting of a bunch of analogue parts.
And such a manual still made sense in the 1980s, now for guiding your oscilloscope signal-probing of jellybean digital-logic parts ("three NOT gates in a DIP package" kind of things) to figure out which ones have blown their magic smoke.
But once you get to the 90s, you get complex ICs that merge (integrate!) 90% of the stuff that was previously sitting out as separate components on the board; and what's remaining on the board at that point, besides those few ICs, just becomes about supporting those complex ICs.
At that point, all of the breakage modes that matter, start to happen inside the ICs. And if it's the ICs that are broken, then you none of the information from a wiring block diagram is going to be helpful; no problem you encounter is likely to be solved by probing across the board. Rather, you'll only ever be probing the pins of an individual IC.
Which means that what really helps, in the 90s and still today, are pin-out diagrams for each individual IC.
Providing that information isn't really the responsibility of the board manufacturer, though; they didn't make the ICs they're using. Rather, it's the responsibility of the IC company — who you don't have any direct relationship with, and therefore who don't have cause to be sending you you data-sheets.
Thankfully, these IC companies do sell these parts; and so they mostly have their IC data-sheets online. (No idea how you would have figured any of this out in the 90s, though. Maybe the 90s equivalent of Digikey kept phonebook-thick binders containing all the datasheets they receive along with the parts they order, and maybe repair people could order [photo]copies of that binder from them?)
Here's a more modern incarnation and more background (the non-stippled kind):
https://www.mythtv.org/wiki/Modeline_Database
https://tldp.org/HOWTO/XFree86-Video-Timings-HOWTO/
https://nyanpasu64.gitlab.io/blog/crt-modeline-cvt-interlaci...
I think, for at least the first 30 years of my life, every Linux system I've ever built was with "hand-me-down" hardware. First hardware from my parents, then from various friends, then finally from my own expired projects.
When I was young (eleven!), this meant that we'd get a new computer, and now the very old computer it replaced could be repurposed as a "playground" for me to try various things — like installing Linux on — rather than throwing it out. (My first Linux install was Slackware 3.4 on a Pentium 166 machine. Not the best hardware for 1998!) Nary a manual in sight; of course my parents didn't keep those, especially for something like a monitor.
When I was a teenager, this meant getting hand-me-down hardware from friends who had taken the parts out of their own machines as they upgraded them. Never thought to ask for manuals, of course. (Also, sometimes I just found things like monitors laying on the side of the road — and my existing stuff was so old that this "junk" was an upgrade!)
And during my early adulthood, my "main rig" was almost always a Windows or (Hackintoshed) macOS machine. So it was still the "residue" of parts that left that rig as it got upgraded, that came together to form a weird little secondary Linux system. (So I could have kept the manuals at this point; but by then, the manuals weren't needed any more, as everything did become more PnP.)
It's only very recently that I bought a machine just to throw Linux on it. (Mostly because I wanted to replace my loud, power-sucking Frankenstein box, with one of those silent little NUC-like boxes you can find on Amazon that have an AMD APU in them, so I could just throw it into my entertainment center.) And funny enough... this thing didn't come with a manual, or even a (good) data-sheet! (Which is okay for HDMI these days, but meant that it was pretty hard to determine e.g. how many PCIe lanes the two M.2 slots on the board are collectively allocated.)
Hey you missed a word so I added it in for you. Most consumer PC equipment definitely did not come with any documentation covering the sort of stuff X's config file was asking about.
When that documentation was available it was something you could only get by contacting the manufacturer about. But you couldn't mention the word "Linux" because the CS rep would give a blanket "we don't support Linux" and you'd get nothing.
Ahh Linux people. Some things will never change.
()
/ Oh wait you're \ JL
| serious. Let me | ||
\laugh even harder./ LJ
. _,--"""""""---.
. ,' `.
. / \
. J L
. F L
J J
| J
___L______________ J
/,---------------. "". J
JJ / \/ | J J
LL J J | L J
JJ J # J # | L |
\\__`.___,_`.____,' F |
""-.---------....___/ |
|_T--+---+--.,._ |
|--|----\---\-`. |
|__|____J___J_ F F
_|__|____|___|_/ L
| L
|____________________M-K
LMFAOIt was winter and suddenly his screen was a fuzzy grey, with funny looking windows, instead of the comforting (to me) windows teal.
At the time, it represented to me, a change into the unkonwn. As it was (assume) the start of a new contract (my dad worked at home alot) it was also a time of financial pressure.
So to me, I hated X, and how it looked. It was to me, the equivalent of a brutalist housing block. Well built sure, but foreboding to look at.
Later when I was I was using Linux my self (around redhat 5/6) If you suddenly saw that you were dropping into a "natural" X, It was a sign that you'd fucked up the window manager, or that the switch between gnome and E (or which ever one you were trying) had gone wrong.
I kinda like it now though.
Yes
Taste, it is a subjective thing
That's why I loved it
Has anyone tested this hypothesis? It could also be that the horizontal sync itself burns out, although that seems less likely.
(In even more detail: Like any other switching power supply, the HV supply in a CRT runs on a two-phase cycle: first, a coil, which creates electrical inertia, is connected to the power source, allowing current to build up. Then the current is suddenly shut off, and the force of the coil attempting to keep it flowing creates a very high voltage, which is harvested. If the circuit gets stuck in phase one, the current never stops increasing, until it's limited by the circuit's resistance, much higher than it's supposed to be. The excessively high current overheats and burns out the switching component. Anyone working on switching power supplies will have encountered this failure mode many times.)
- saving the drive circuitry for the flyback, which is usually combined with horizontal deflection amplifier. Also such a design probably simplifies the output filter for horizontal deflection as the flyback primary is part of that filter.
- synchronizing the main PSU of the display to the horizontal sync as to make various interference artifacts in the image stay in place instead of slowly vandering around, which will make them more distracting and noticable.
It is not that hard to see the whole CRT monitor as essentially being one giant SMPS that produces bunch of really weird voltages with weird waveforms. And in fact is you take apart mid-90's CRT display (without OSD), the actual video circuitry is one IC, few passives and lot of overvoltage protection, rest of the thing is powersupply and the deflection drivers (which are kind of also an power supply, as the required currents are significant).
I am not sure why it was the default, I suspect it was to give you a chance to see how your monitor was behaving on a fresh install and you were expected to set the background to something else.. I still run the root weave on my desktop, it is obsd with their xenocera where it is still the default. but I also run a tiling window manager so only actually see the root window once in a blue moon.
Inventor / founder Steve Kirsch used some of the proceeds to fund Frame Technology, which then went on to be sold to Adobe. And then Infoseek (a search-engine also-ran), sold to Disney; and then Abaca (anti-spam), sold to Proofpoint.
Man does it make me feel old that the /etc/X11/XF86Config days don't feel like the 'old days' to me. That stipple takes me back to using TWM on Sun3 workstations because OpenWindows was too slow.
Also modern devs: Show HN: My proposal for a modern terminal that supports 24bit color, inline graphics, and video
(That little Linux box was the star of many shows. It also delivered our mail, routed our WAN, was our primary place to run IRC clients and news readers, and it served files.)
It looked broken, and I assumed it was broken, so I gave up. It took me a long time to get the concept of window managers, but eventually I understood and realized that I had actually gotten X working that time years ago. Gosh.
I used to scrounge around at work to find the highest bandwidth monitors, and then I'd program my own modes with oddball non-VESA resolutions beyond the 1024x768 'standard' of the day.
All this could be figured out by reading the specifications section of the monitors operating manual.
IIRC I used an 90s version of this document to figure it out: X.org/XFree86 Video Timings HOWTO (https://tldp.org/HOWTO/XFree86-Video-Timings-HOWTO/index.htm...)
"At the too low horizontal frequency, the period the switch is open becomes too long, that causes the following" [various bad things explained]
I think the interesting thing about the X background is that it's not a simple stipple, it's actually a pattern that looks very much like woven fabric.
https://upload.wikimedia.org/wikipedia/en/a/aa/MacpaintWP.pn...
And you could set desktop patterns but I can't find any list of what the defaults were:
http://applepc.org/assets/system-6-pattern-2.png
I think if you clicked there like arrow buttons it cycled through the defaults. I don't remember them having any pattern that wasn't in MacPaint, though.
[1]: https://developer.apple.com/library/archive/documentation/ma...
Later, small tiled bitmaps (pix maps) were used for the same reasons to fill the screen. They were compact enough to fit somewhere in discardable free memory, and also to read from the disk with a single operation, which meant there was no benefit in keeping them in memory backed by swap file.
Some modern distributions use programmatic gradient generation for desktop background, though I am not sure whether it still works directly, or simply creates a temporary full screen image in memory, which is no different from using a regular photo.
Well, that would kind of spoil the Prince reference
Mine did." HOLY **!
My blood pressure rose, my hands started shaking, and my feet went cold. After someone let out the happy smoke out of a monitor, I would always triple check everything... everything... and then adjust... then change the monitor with the fiberglass screwdriver... you are SCARING ME! but ... the GDM-1907 really did work at 1280x1025, with a front porch in phase.
I remember hacking away at the X Config files for a long time installing slackware on my 486 laptop and some external displays in 1995-1996 and being super worried about breaking stuff.
That was kind of before you could look stuff up easily on the internet, plus you might not have had the modem or ethernet card working in linux yet either.
[1] https://lunduke.substack.com/p/desqviewx-the-forgotten-mid-1...
Then the monitor would freak out and start buzzing on the high resolution modeline that didn't quite work so you would switch away and go back to tweaking it.
It took me a while to get my first monitor to run at 1280x1024 @72Hz
I later had some Mitsubishi 21" monitors and got them to run at 2048x1536 @75Hz
My old desk still has a permanent bend to it from those two because they were so heavy.
They still had XF86 available but I believe defaulted to the proprietary servers. Seeing the XF86Setup screenshot evoked bad memories of inscrutable setup sessions that I was always worried would burn out my monitor.
> Oh, my old friend. How it’s been a long time.
Heh, basically the opposite for me.
I switched to linux in 2008, Ubuntu on an HP laptop. For the most part it "just worked" and I never really needed to edit the X configs, but I do remember fiddling with them occasionally for some reason. I think it was for some peripheral or other (like a mouse, when I usually used the touchpad).
Generally at the time I'd only see this backround if I was experimenting with my window manager and it crashed. Ubuntu was using Metacity at the time, and I'd switched to Beryl and was going wild with customizations. And when the window manager crashed and all I had was that and windows I couldn't move, I had no idea how to recover and had to hard boot.
I'm fairly sure Ubuntu was hiding this on startup already at that time, if not very shortly afterwards.
The Alto certainly had this, from screenshots i've seen of Smalltalk demos running on it.
The very first version of MacOS had a pattern editor in 1984. Mac System 3.0 (1986) improved this with a number of pre-made patterns. One of the patterns is pixel for pixel identical to "wide-weave".
On the topic of X nostalgia, the monospace font used in TFA appears to be Go Mono, developed for golang. To me, it is heavily evocative of the console font on Sun Microsystems SPARC gear. Brings back another flood of memories.
Oh man good times.
I always assumed that the reason was that it was time when cheap (and low-quality) LCD displays with VGA-only inputs started to appear en-masse. And on most such monitors the stipple pattern often either was displayed incorrectly (smeared) or even prevented the monitor from reliably synchronizing to the signal.
Yes, but only on consumer hardware/OS (linux, *BSD). I remember that Solaris, HP-UX had no such issues on Sun or HP hardware.
but i guess matt t proud is a youngster, or maybe had enough money to have his own linux-capable computer when xfree86 was hard to configure
what's the best 1-bit-deep stipple pattern for this kind of thing? the zorzpad display (same as the playdate one) is 175 dpi and has a lovely deep black but no grays. the x-windows weave pattern cited here seems like a pretty nice option if you're constrained to 4×4:
# # # .
# . # #
# # . #
. # # #
but i'm not# # # .
# # . .
# . . .
# . # .
it's slightly more ornamental than pure black or white, or just vertical lines or something, but it doesn't really seem aesthetically preferable to the old x boot stipple
[[Citation needed]]
I find older-fashioned ones easier to use. I actively favour Xfce over GNOME, KDE, Budgie, etc.
I am wondering what this research was, who paid for it, the age group of the people they tested, and so on.
Too bad it doesn't exists. /s
if tightvncserver is to be trusted, the new default is a solid gray, which i have to admit looks nicer. that doesn't seem optimal from the point of view of testability (for example, it'll look the same if your gamma is wrong, or if you've confused bgr with rgb, or used a tiled memory layout instead of the correct raster order or vice versa, though maybe not if you have a bit-plane layout or the wrong number of bits per pixel) which suggests that there was a different objective
On my monitor, pattern 2(a) flickers "strongly" (compared to any others) and pattern 4(a) less so.