LED vs CCFL backlighting

I was looking for information about LED vs CCFL backlighting for an LCD, and am amazed at how much misinformation there is.

  • LED has a wider gamut – True for RGB LED, which are expensive, but not for WLED, which are in most of the LED-backlit displays. The former has separate red, green, and blue LEDs, and gives an excellent gamut. WLEDs are blue and have a phosphor to give a yellow color that combines to give bluish white. Apparently the spectrum is worse than current CCFL bulbs, thus this claim is generally false. Yet people still think LED looks better, maybe imagined because they misinterpret differences in the display as due to the LED backlight, as opposed to all the other possible causes.
  • LED flickers less – false, though there’s no need for them to flicker. LED and CCFL elements are best operated either fully on or fully off, rather than part-way on. To achieve adjustable brightness, the backlights are flashed on and off quickly, so that it appears to be on constantly but at a lesser brightness. If the flicker rate is too low, humans can perceive the flicker. For some reason, current LED drivers flicker at a rate far too low, make them easily detectable; CCFLs flicker at significantly higher rates, so that they appear to be on constantly. This is the opposite of what you’d expect, since LEDs have virtually no constraints on how quickly they can be flickered, unlike CCFLs. It’s easy to test this too, just set the brightness low on an LCD monitor, then wave your finger back and forth in front of it. If you see a smooth blur, there’s no significant flicker; if you see lots of distinct after-images, it flickers.
  • LED uses less power – apparently there’s not much difference, but this should be more and more the case as LED backlighting is improved. People apparently just parrot the manufacturers with their eco-marketing garbage.

As far as I can tell, LED backlighting, as of mid-2011, is still in its early stages, at least for desktop monitors. CCFL is more mature, and I’m still glad I got a CCFL rather than LED-backlit monitor a year ago. That said, I like where LED is going, and even now it offers some significant advantages:

  • LED backlights suffer virtually no stress when being turned on (“cold started”). Thus, having your monitor go to sleep after say 5 minutes of inactivity won’t affect its life much, even if it cycles on and off 50 times a day. Try that with a CCFL and you’ll shorten its life.
  • LEDs take virtually no time to warm up and reach full brightness. This further favors having monitors sleep more often.
  • Monitors with LED backlighting can easily have an external power brick, and most do. This gets heat away from the LCD and video electronics, making them last longer. Further, if the power supply fails, it’s much easier to simply replace the power brick, and not have to open the delicate monitor. The power brick itself is a very standard item, usually outputting 12V, so the replacement can be from almost anywhere. The monitor can also be thinner and lighter, making the stand simpler and possibly more capable.
  • The driver for LEDs is much simpler and doesn’t involve nearly as high a voltage, so it’s more reliable.
  • LED backlights are much less affected by physical shock or running in really cold environments.

At some point, LED backlighting can be made to optionally flash only once per frame, producing an image similar to a CRT, and thus eliminating sample-and-hold blur. Of course, they should have a way to keep the backlight on continuously as well, for when blur isn’t a problem (like when viewing text) and flicker is. Best of both worlds!


CPU/HDD temperature graph in Linux

I’m loving Linux. I wanted a graph of the various temperatures the computer monitors. I wasn’t able to find anything pre-packaged that seemed useful, so I found the tools to make my own. Turned out very simple. First, a shell script to log the temperature values as reported by sensors and smartctl, every ten minutes:

#!/bin/sh -e
while true
do
    sensors > temp
    echo -n "\t" `grep CPU temp | cut -c 16-19` >> log
    smartctl -A /dev/sda > temp
    echo -n "\t" `grep Temperature_Celsius temp | cut -c 88-` >> log
    echo -n "\n" >> log
    sleep 600
done

I used a temp file to allow extraction of multiple fields from a command without running it more than once. I couldn’t get cut’s field mode to work, so I resorted to character counts, which is brittle in that any change in the commands’ columns might break this. Run script with sudo, as smartctl needs it.

Next, use gnuplot to generate a graph. We feed command via stdin, rather than interactively or as a separate file:

echo 'plot "log" using 1 with line title "CPU", "" using 2 with line title "HDD"' | gnuplot -persist -

I’m surprised how simple this roll-your-own solution turned out. Totally flexible, and not some bloated program I have to keep running all the time (just the script’s sleep command).


Tedious save game interfaces

The user interface for saving/loading games often has lots of unnecessary steps. Since saving/loading is done often, especially in games where one only gets one opportunity to complete some task, its interface should be as streamlined as possible.

Minimally, a game would have no user-interface for saving; it would keep track of one game, and never need to ask the player anything. This doesn’t accommodate multiple players, so it might require selection of player one time when the console is powered up, with the most recently used player already selected. Thus, on average, this would only require one button press. Players often want multiple save slots so they can keep older saves. Here is a user interface that allows all this, with minimal button presses:

  • At title screen, game shows list of save slots, with the last used slot selected. Along with this is an option to begin a new game. Loading requires only one button press; no “are you sure you want to load?” nonsense, or confirmations that it’s loaded.
  • To save, the player walks into the save device, the game presents a list of save slots, with the last used selected, and the player presses confirm. The game saves, and when done, resumes the game. There are no “are you sure you want to save?” confirmations, nor any extra button presses afterwards. Thus, on average, this takes only one button press, two if saving to a different slot.
  • Reloading is common in some games where opportunities can be missed. These games should have a Reload option in the in-game menu. It doesn’t need any confirmation, since it’s a two-step operation already (reload->select slot). So, this requires perhaps 5 button presses to reload the last saved game: menu, select reload, load from last used slot.

I’ve been playing lots of games on the Playstation 2 lately, so I’ve studied them. At the end is a summary of several games’ interfaces.

Bully is probably the most streamlined. It automatically loads the last saved game, potentially eliminating all button presses at power, except it has an intro that requires skipping. It also has a reload option in its menu. Klonoa 2 comes close, with auto save after each stage. It has a weird two-tier save system, though, adding a few extra button presses. God of War, being a flagship game, has a pretty streamlined interface as well. It’s interesting to note the one-press improvement in the sequel, due to automatically selecting the last used save slot.

I love the Fatal Frame series, but boy does it have a “verbose” save interface. It gets just about everything wrong for loading:

  • Fatal Frame II requires confirmation that it loaded the system configuration when powering up. Argh!
  • Title menu defaults to “new game”, rather than load.
  • The first save slot is selected by default, rather than the last used.
  • Loading requires confirmation, and Fatal Frame II and III default to No.
  • After loading, it requires another button press to confirm that it has loaded.
  • When replaying the game to get 100% completion, they add even more menus when reloading, requiring three more button presses (Fatal Frame III reduces this to one button press).

…and saving:

  • You get a message that you’re at a save lantern, which requires confirmation.
  • Then, you get a menu that includes Save as an option.
  • Fatal Frame II even requires that you confirm that you really want to select the Save menu option.
  • Again, selects first save slot by default rather than last used.
  • After saving, you have to back out of the slot selection, then the save menu. The first game even requires confirmation that you’ll resume playing.

Many of these games have confirmation when loading a game even though there is no potential data loss as loading is done from the title screen not in-game. Even worse some of these default to answering no so that this confirmation adds two extra button presses instead of one. Several also require backing out of the save menu after saving even though virtually all the time the player will not need to do anything else before resuming game play. Tokobot Plus is especially bad; after saving it re-reads the memory card and requires several steps to resume game play.

I’ve documented several games’ save/load interfaces below. I cover the three scenarios above: loading the last saved game after powering the console on, saving, and reloading. Each task has the number of button presses in parenthesis. Button presses are in bold, with game responses listed between them. “Slot?” is when the game is asking which save slot to use. For games which do not select the last used slot automatically, I assume that the slot you want to use requires one extra directional press to select. Menus are listed as options with slashes between, with the first listed the one selected initially.

Bully
Power (1): Intro X
Save (5): Stand by book A Slot? (last used selected) X Overwrite? Up X Saved X
Reload (10): Start Inventory/Stats/Upgrades/Controls/Options/Load Down Down Down Down Down X Slot? (last used selected) X Really load? Up X

Klonoa 2
Power (4):Intro Start Continue/New X Name? X Slot? (last used selected) X
Save (5): Save now? X Slot? X Overwrite? Up X Saved X
Reload (6): Start Continue/Save/Options/Quit Up X Continue/New X Name? X Slot? (last used selected) X

God of War
Power (4): New/Load Down X Slot? Right X
Save (7): Enter light column R2 Save? X Slot? Right X Overwrite? Up X Saved X
Reload (9): Select Continue/Options/Restart/Quit Up X Quit? Up X New/Load Down X Slot? Right X

God of War II
Power (3): New/Load Down X Slot? X
Save (6): Enter light column R1 Save? X Slot? X Overwrite? Up X Saved X
Reload (7): Select Continue/Options/Restart/Quit Up X Quit? Up X New/Load Down X Slot? X

Metal Gear Solid 2
Power (7): Intro Start Press start Start Load/Options/Special/New O Memory card? O Slot? (last used selected) O Really load? Left OBully is probably the most streamlined. It automatically loads the last saved game, potentially eliminating all button presses at power, except it has an intro that requires skipping. It also has a reload option in its menu.
Save (10): Select Transceiver Down Right O Save/Cancel O Memory card? O Slot? (last used selected) O Overwrite? Left O Transceiver Select
Reload (6): L1+L2+R1+R2+Select+Start to reset game

Tokobot Plus: Mysteries of the Karakuri
Power (8): Intro Start Press button X New/Load Right X Slot? (last used selected) X Really load? Left X Loaded X
Save (10):Walk into save aura L1 Save/Continue X Slot? (last used selected) X Overwrite? Left X Saved X Slot? A Really continue? Left X Save/Continue A
Reload (12): Start …/Options/Quit Up X Really quit? Left X Press button X New/Load Right X Slot? (last used selected) X Really load? Left X Loaded X

Fatal Frame
Power (7): Press Button X Load/… X Memory Card? X Slot? Down X Load? X Loaded X
Save (15): By Save Lantern X You can save here X Save/Album/Film/Continue X Really save? Left X Memory Card? X Slot? Down X Overwrite? Left X Saved X Save/Album/Film/Continue Left X Really continue playing? Left X
Reload (12): Start Continue/Option/Quit Up X Quit? Left X Press Button X Load/… X Memory card? X Slot? Down X Load? X Loaded X
After completing game loading has extra steps (3): Story/Mission X Costume/Continue Down X

Fatal Frame II
Power (9): Settings loaded X Press button X New/Load Right X Slot? Right X Really load? Left X Loaded X
Save (12): By save lantern X You can save here X Save/Options/Continue X Really save? Left X Slot? Right X Overwrite? Left X Saved X Save/Options/Continue Up X
Reload (13): Start Continue/Exit Down X Really exit? Left X Press button X New/Load Right X Slot? Right X Really load? Left X Loaded X
After completing game loading has extra steps (3): Story/Mission X Costume/Accessories/Continue Up X

Fatal Frame III
Power (8): Press button X New/Load Right X Slot? Right X Really load? Left X Loaded X
Save (10): By save lantern X You can save here X Save/Album/Continue X Slot? Right X Overwrite? Left X Saved X Save/Album/Continue Up X
Reload (13): Select Continue/Options/Quit Up X Really quit? Left X Press button X New/Load/… Right X Slot? Right X Really load? Left X Loaded X
After completing game loading has extra step (1): Continue/… X


Misleading error messages

I spent a while re-downloading a large archive that a popular command-line extraction tool said had a data error. Before re-downloading, I tried extraction several times, and each time it stopped and left a similar-sized output file, so its claimed error seemed plausible. After determining that the re-downloaded file matched the original, I eventually found that the real error was that the destination disk was full. Programmers often can hardly deal with checking for errors at all, let alone differentiating between data corruption, a full disk, and insufficient memory, three conditions that require three very different actions on the part of the user to correct. I’ve used plenty of programs which totally ignore errors, acting like everything was fine even though it wasn’t. In this case, the programmer apparently was only able to deal with checking for errors during extraction, assuming that any errors must be due to a corrupt archive, hence the misleading explanation it gave; it would have been better for it to just say that some kind of error occurred, and quit. It’s pathetic, especially when the standard C library offers perror(), which handles printing a useful error message for you.


Excessive controller vibration in games

I’ve been playing some Playstation 2 games recently and been annoyed by the overuse of vibration in some games that I otherwise really like (Fatal Frame series for example). Goldeneye for N64 always sticks in my mind as a good use. I remember that it would make just a slight shake when you fired a weapon, and of course more when you were hit. Metal Gear Solid’s anti-personnel detector was another good use, where it would vibrate when you were near enemies, like a heartbeat racing due to tension. This had me thinking about games that use it well, and what makes up good use.

The point of vibration is to communicate when something physical happens to the player’s body. Some games use it as a sub-sub-woofer, vibrating the controller whenever there is a large machine on screen, like a helicopter. The point of vibration isn’t to be a low-frequency sound device; use low-frequency audio for that. In general, vibration that lasts more than a second or so, or on average is on more than a few seconds during the last ten seconds, becomes tiresome. The more it’s on, the less information it communicates to the player, and the less impact it has. Sparing use means that its occurrence gets the player’s attention, and he can determine why it occurred. That games have an option to disable vibration might just make it worse, with the game designers excusing bad vibration schemes since they can be turned off if the player doesn’t like them. One game (Outrun 2006) had a vibration intensity control, which was great, and I wish more games had that.

I finally got fed up and modified my PS2 console to dynamically adjust the vibration power to the controller, so that if there hadn’t been any recently, it would run at full power, otherwise it would gradually reduce. This way a game running it literally constantly (which none do, thankfully) would cause an initial burst that quickly tapered off to a mild vibration. This scheme allowed the occasional heartbeat-style vibrations to be felt, unlike with an earlier scheme that reduced all vibration all the time (it sometimes even prevented mild pulses from even rotating the motor).


Finally warmed up to Linux GUI

For the past month or so, I’ve been using my Linux machine full-time, and I love it. Before that, I used Macs, mostly a really old one. Now that I see that Linux has a perfectly usable GUI, there’s no way I’ll ever go back to proprietary operating systems where I have to keep paying if I want something up-to-date. Surprisingly, even though I’ve been running this on small old 15″ 1024×768 LCD, I’ve enjoyed it (it’s great that so many things use tabs nowadays). There have been many problems, for sure. It helped that from the start that I expected lots of problems. It took many months of occasional use and problem-solving before I got the machine to a point that it didn’t annoy me like crazy (mouse acceleration was a big issue, until I figured out how to tweak several lower-level parameters). I love that almost every program has source code, in case I ever really want to fix some issue or make an improvement (I’ve already slightly improved gPlanarity, for example).


The Time Traveler’s Wife: Wow!

I watched The Time Traveler’s Wife yesterday and was blown away. Even though it involves time travel, it uses it in a fresh way that keeps the focus off it, being more a human story than a science fiction one. Near the beginning, we find that when going back in time, no changes can be made, so we don’t have to deal with the common paradox plot lines. The characters accept this inability to change things, so they’re left with merely being able to observe what happens. One usual aspect of influence was still kept though, that of things done while in the past being essential to bringing about the future that happens. This is used very well in the story, allowing characters to visit themselves in the past and future; some scenes were really touching in this regard. The time travel itself isn’t brought about by the usual machine, rather a medical condition, much like a seizure, further allowing the human story to take focus, rather than time travel. The movie uses the new things possible with time travel to explore relationships in some interesting ways. I was impressed with how they used this to take hypothetical situations, like cheating on your husband with a younger version of himself, in a concrete way. This movie really surprised me and showed me how time travel is not at all something that’s been milked of all its possibility.


Place to write things in my mind

I had several streams-of-consciousness in my mind about minor things, like a movie I liked, an annoyance at the grocery store, how I like Linux, etc. and figured it’d be useful to write them somewhere. Since from time to time I come across similar things written by other people on the web, I figured I’d post them publicly, for whatever it’s worth.


Create your own website, free on WordPress.com.Create your own website.
Start free