Xorg server on video-less NAS

Random notes while trying to compile Xorg (X-Windows) on a ARM NAS. Following recipe at:

Beyond Linux From Scratch (Version 2014-11-19)

The NAS box has no video harware; so I want a software rasterizer (swrast).

Step MesaLib-10.3.3 :

No video hardware won’t allow the default configure to work. Tried:

./autogen.sh CFLAGS="-O2" CXXFLAGS="-O2" --prefix=$XORG_PREFIX \
--sysconfdir=/etc --enable-texture-float --enable-gbm \
--enable-glx-tls --with-egl-platforms="x11" \
--with-gallium-drivers="swrast,svga" --enable-sysfs \
--with-dri-drivers=swrast --enable-osmesa --enable-xa \

I think I also had to go in a remove all i815, i865 referenced in configure.ac. This was done to avoid dependency on intel_drm which wouldn’t compile or be installed on my box.

Step Xorg-Server-1.16.2 :

Default configure options wouldn’t allow the server to compile. Complained about package ‘gl’ and ‘dri’ missing… likely because of the Mesa lib hoops I had to jump thru. The following allows ./configure to pass… make is in progress:

./configure $XORG_CONFIG --with-xkb-output=/var/lib/xkb \
--enable-dmx --enable-suid-wrapper --enable-install-setuid \
--disable-glx  --enable-xvfb --disable-dri

Had to patch os/log.c as my NAS’ GCC was too old.

End goal is to boot a minimal windows manager so I can run google Chrome browser and Google Cloudprint. Also as a learning for doing this on an Intel Edison board which also lacks video.


Posted in DIY, Gadgets, Linux, N2B1, NAS | Leave a comment

Custom Buttons & Housings (Early Bally, Gottlieb, Stern, Chicago Coin)

My Shapeway’s store should be open to purchase early SS or late EM buttons and housings. You can visit the store at:


You can buy in single button / housing configurations or in pairs allowing you to configure the colors as you want. The buttons work interchangeably with the original housings and vice-versa. At the moment; I have 13 color and/or materials available:

Blue nylon
Purple Nylon
Pink Nylon
Yellow Nylon
Green Nylon
Orange Nylon
Matte Black Nylon
Smooth Black
Polished Metallic Plastic
Grey Nylon /w metallic sparkle
Translucent clear
Matte Translucent clear
Matte Frosted Translucent Clear

I do not offer White or Red Opaque buttons in the store as they come much cheaper from PBR or Marco. I understand the prices are high; it’s what Shapeways’ charges for the material. I guess it’s the cost of customization.

At this point; I offer the following part numbers at the shop:

  • Buttons:
    • Bally C-905 button
    • Gottlieb B-16680 button
    • Stern / Chicago Coin Machine 4B-200 button
  • Housings:
    • Bally C-904 housing
    • Gottlieb C-13900 bushing
    • Stern / Chicago Coin Machine 4B-199 housing

Here’s some pictures I took of the housing in polished metallic plastic and the button in frosted detail:

Posted in Arcade, Design, DIY, Pinball | Tagged , , , , , , , , , , , , , , | Leave a comment

Chicago Dynamic Industries Sound Card (EM Gun Games)

A fellow Arcade collector sent me this Private Message a few months ago on the KLOV forums:

I’ve got an old EM Chicago Coin “Shoot Out” gun game. Works great, but came without the sound PCB that generates the gunshot sound. They also made a “Coney Island” game that used the same sound PCB, but I’ve been searching for ~5 to 6 years for a used board with no success.

The problem with the soundcard is it used older End-Of-Lifed (EOL) transistors that can’t be easily found. I offered to help him design a PCB and BOM which would duplicate the sound and provide a “modernized” BOM which could be ordered off Digikey.com. He reported back that after some rework to the pinout; the card worked as expected. As a result; I’ve incorporated the rework (ie corrected the design)… and have provided the materials here for the public to duplicate and use for any older machines which are missing (or has a non-functional board) the EM Gun Soundcard used in these games.

The major changes to this board vs the original are as follows:

  1. The PCB is double sided with large ground plans to aid in noise reduction.
  2. Additional caps are placed on IC1 (LM380) and the Zener diode regulators to help improve the immunity of the circuit to noise. CIC1, C22, C23 – all .01uf.
  3. PCB’s has both a top and bottom silk screen:
    1. Top has values and reference designators to aid in assembly and debug.
    2. Bottom has used edge fingers labeled as well as the legs of the transistors; again for debug.
  4. All transistors were replaced with 2N3904 NPN transistors which are very much still in use today. The single PNP was replaced with the 2N3906.
  5. Test points for the 18V, 12V, 9.1V, and ground rails are provided for easily troubleshooting the voltages on the sound board.
  6. LEDs provided for the 12VAC and 30VAC lines coming into the sound card. Again quick glance that there is at least some voltage going into the sound board.
  7. Although not needed in a real game; two mounting screw holes are needed if you have a non-standard installation.

I’ve decided release this design to the public under the TAPR Non-Commercial Open Hardware License which indicates:

You may make products based upon this design, provided you do not make more than ten units in any twelve month period for your personal use.

If you agree with the license terms; Schematics and BOM lists are posted here under TAPR/NCL license:
Rifle 444-310 Soundboard Package

Ordering should be easy: https://oshpark.com/shared_projects/6GKvZu4s
The boards are $67-ish for a set of 3 PCBs… and they are high quality. Gold plated fingers, two layer, silkscreen on both sides. It’s the cost of doing prototypes. OSHPark usually get the PCBs back to you in about 2 weeks.

BOM Cost from Digikey came to a WHOPPING $17 for one board. My advice is to take the BOM and multiply it by 3 in Excel or some other spreadsheet app. It’s usually cheaper to by 50 or so of the resistors. IE in one qty; they are 8cents… in 50s they are > 3cents. I usually buy 50-100 of each; just so I have them around when I prototype on breadboards and such.

The PCB is very compact; it was done this way to save on the prototype PCB sq inches cost. If you find some of your components are tight; you might try laying them similar to this:

Here’s a picture of the assembled board:

Rifle Ricochet sounds w/ AMP Fab B assembled

Rifle Ricochet sounds w/ AMP Fab B assembled

Hope this helps the EM Gun collectors out there. If it does… please drop me a comment letting me know it’s done some good!

Posted in Arcade, audio amp, Design, DIY, NCL, PCB, TAPR | Tagged , , , , , , , , , | Leave a comment

Stern Star Trek: Vengeance Nacelle Mod

I really enjoy my Stern Star Trek LE Pinball machine… But one of the things which has bothered me on the machine was the way the USS Vengeance shines it’s bright blue Nacelle LEDs right in the eye of the player.

This simple mod aims to correct that. I knew I wanted laser cut some blue acrylic pieces to help defuse the LEDs; so I consulted google images to give me some ideas what the Nacelles were suppose to look like:

USS Vengeance c/o TrekCollective.com

Without redesigning the whole Stern Nacelle; I decided a piece set about 1/4″in into the nacelle would be closer to film accurate. Also; in a couple of the google images; the Bussard collector looked more cylinder shaped; so I figured a deep etch in the back side of the plastic would be ideal. Here’s what my first prototype looked like in CorelDraw:

USS Vengeance Nacelle Prototype

USS Vengeance Nacelle Prototype Peices

I then proceeded to Techshop.ws and laser etched/cut these pieces out on some 1/8″ Blue acrylic.

To remove the Nacelle; simply remove the top two philps screws holding the Nacelle to the ship assembly. Then remove it… On my ship; Stern was rather liberal with the hot glue; so I had to work the nacelle off by pulling the sides of the nacelle from the hot glue. The Blue LED is attached to the ship assembly; so you shouldn’t have to work about it.

When I got home; I used some plastic epoxy to glue the piece into the left nacelle. This piece is to be position just past the flat ridge in the nacelle:

USS Vengeance Nacelle

Here’s the Bussard collector installed with a little epoxy:

USS Vengeance Broussard collector

USS Vengeance Bussard collector

NOTE: the curved etch faces the rear of the Nacelle (etch toward LED)

In my case I found it a little easier to bevel the sides of the pieces with a file so the sides of the plastic pieces would make better contact with the sides of the warp nacelles. I put some epoxy on the sides of the piece and on the little round nub at the top of the nacelle so the piece can’t be shaken loose during the Vengeance battles.

So; How’d it turn out? I only modded the left side (right in the picture) and took this picture:

USS Vengeance Mod

USS Vengeance Mod

A close-up Before and After:


USS Vengeance Mod Before & After

Want to do this yourself? Have access to Acrylic and a Laser Cutter? Great; I’ve decided release this design to the public under the TAPR Non-Commercial Open Hardware License which indicates:

You may make products based upon this design, provided you do not make more than ten units in any twelve month period for your personal use.

If you agree with the license terms a PDF  is posted here under TAPR/NCL license: Vengeance Nacelle Mod Package

Posted in Arcade, CAD, Design, DIY, NCL, Pinball, TAPR | Tagged , , , , | Leave a comment

Star Trek: The Next Generation Klingon Bird of Prey Mod

I recently purchased a
1994 Hallmark Star Trek Klingon Bird of Prey
from a fellow Pinsider. This Ornament came ready to install into my 1996 Williams Star Trek: The Next Generation Pinball machine. However before I installed it in the machine; I wanted to make further modifications to the item. My previous installation had installed a die-cast

2005 Corgi Klingon Bird of Prey

for which I’d followed the recommended installation of putting the incandescent light bulbs under the ship:

Before – incandescent light bulb sockets- ICK!

Immediately upon this installation; I knew it wouldn’t do… but I waited several years until I got one of the hallmark ship mods. I decided back then that I was going to put some Electroluminescent panels under the wings… but then came to my senses that the EL panels loose their brightness rather quickly. So; after getting the Star Trek: Mirror Universe pinball machine to a Phase1 complete state; I returned my attention to this mod. I decided this time that I was going to use superbright surface mount LEDs to replace the light bulbs and their bulky sockets.

I started by researching the type of LEDs. A Digikey search came up with some super brights; relatively cheap but with a lot of light output. I figured I could fit about three of these LEDs under each wing; so I began the design phase of the project. I started by doing a pencil rub of the wing’s paint job. This gave me an approximate size of the PCB I needed under the wing. I scanned this pencil rub into the computer and vectorized it into a PCB using the technique posted here. With the PCB outline created; I proceeded to create the schematic of the LED board. I made a design choice to rectify the 6.3VAC GI power rail so that polarity wouldn’t matter during install. I also decided that I’d use a BJT current mirror to light the first LED and drive 20mA thru it. Then use the second leg of the current mirror to drive the remaining two LEDs. To ensure stable voltages/currents; I put a 3.3V LDO regulator and some caps on the first leg to try and keep the brightness from flickering with the 120Hz FWB power rail.

I have decided to release the schematics to the public under the TAPR Non-Commercial Open Hardware License which indicates:

You may make products based upon this design, provided you do not make more than ten units in any twelve month period for your personal use.

If you agree with the license terms the resultant schematic is posted here under TAPR/NCL license:

STNG KBOP LED schematic

STNG KBOP LED schematic

You can buy the bare PCBs from OSHPark from here. Total cost to build this board in single unit quantities as of 6/15/2014 was $14.55 / a pair of boards.

The entire project package is here: STNG_KBOP TAPR Package
It contains the schematic, NCL license, Bill of Materials.

This project requires SMT soldering skills so be prepared. I used a syringe with solder paste to populate the PCBs then used a skillet to reflow the solder. Here’s the assembled PCBs:

Then I assembled tested the circuit first with my 5V bench supply; then with a 6.3VAC transformer from RadioShack:

With the boards tested; I began refitting the Hallmark KBOP mod which looked like this:

I removed the green heatshrink hiding the LED wing guns and cut the red & black wires as I had recreated the wires in the PCB and had embedded the resistors hidden under the black heatshrink near the guns:

Originally and in the PCB file; I had decided that I wanted to use 2 qty #0 self taping screws to hold the PCBs in place. These were speced at McMaster Carr as #94209a005; but I didn’t want to pay for S&H for that single box of 50. Instead I drilled out the holes a little larger and used #2-56 @ 3/16 of a length. I carefully marked drilled the wings of the KBOP and taped them with my #2-56 tap set. You MUST be careful here not to drill through the wings. Here’s the PCBs mounted:

I then proceeded to solder the cut GI wires for the wing guns to the Jin connections on the PCB. I also connected the Guns to the JWing connection at the edge of the PCBs with a short piece of red rework wire after removing the inline resistors at the LEDs. I secured the electrical connections at the gun LEDs with some liquid black electrical tape:

I then proceeded to attach the GI connection from my machine along with the bracket. Reusing the older wireing harness as desoldered from the bulb socket assembly made sure the under wing LEDs lit in the same was as the bulbs:

With that the modification of this mod is complete. Here are some mandatory money shots to encourage you to do the same to your machine:

Overall I’m very happy with the results; the Red LEDs really light up the Playfield and I do not have to look at those light bulbs any more. The only thing I noticed with this mod is that my machine doesn’t seem to give me enough voltage at the GI connector to fully lite the two LEDs on the second leg of the current mirror. I think this is because the STNG controls GI; which means there is an extra silcon device between the 6.3VAC transformer and the GI lamps. This is evident when running the shuttle craft missions when all the PF lights are of in this video mode. In a future revision of this mod; I might try directly hooking the second leg of the current mirror straight to the GI input (not FWB rectified) to see if I could coach more voltage across these two LEDs in series.

This PCB obviously fits the 1994 Hallmark ornament seen here and it also seems to fit the Corgi 2005 Klingon Bird of Prey also used in modding these machines.

Enjoy Modding!

Posted in Arcade, Design, DIY, NCL, PCB, Pinball, TAPR | Tagged , , , , , , , , | Leave a comment

EagleCAD Tutorial: Custom shaped PCBs

As seen in the Worklogs for the Star Trek: Mirror Universe Pinball project; Making custom shaped PCBs in EagleCad isn’t all that difficult. With a CAD file; one can make some pretty unique shapes to fit the project you’re working on. This tutorial aims to show just how easy it to create the perfect shaped PCB. The Author used this technique to create custom LED boards in the Mirror Universe project which replaced all the Switched Illumination sockets on the underside of the Playfield.


  1. EagleCad 5.11 or higher (tutorial written for 5.11).
  2. DXF2SCR from micromagic systems. (It’s Free and Awesome)
  3. A DXF file to convert. Scroll down for a .ZIP file containing files used in this Tutorial.
  4. About 10 minutes to do your first PCB outline.

Making the PCB shape

Please click the pictures below to be taken to a higher rez screen capture/picture.

1) The toughest part of this tutorial is creating the CAD file (DXF) which will serve as an input to the DXF2SCR tool. The author uses the Free  GPLed version of QCAD to create DXF files. Teaching QCAD is beyond the scope of this document; but the basic principle is that you want to create the outline of the PCB in CAD via a series of curves or lines. Make sure you put in any mounting holes you want … and maybe even some documentation layers; like a center line or critical component locations. This allows your PCB to be “exact” without having to move holes, lines, or arcs in EagleCad.

Once you have the CAD (DXF) file; you can proceed to covert the file using the DXF2SCR tool. Start by opening the tool and selecting the input DXF file and the output .scr file. The SCR file is used later to “draw” on a blank PCB canvas. More on that in a bit. Make sure you match the units in which you created the DXF file. In my case; I almost always use inches. At this point I basically leave everything else at defaults of 1mil (0.001 inches) line widths and no offset. I leave the line with at 1mil because I can change the width in eaglecad based upon whatever I’m trying to accomplish. For much of the file; it’ll be an outline – and most people recommend you leave the outline as a “hairline” so the fab house doesn’t “charge” you for the additional 8mil width of the outline.  Once you have the setup complete; click the Convert button on the left.

PCB Tutorial: DXF2SCR screen shots

If the conversion is successful; you should see the number of lines, arcs, circles, converted along with a Complete message. If you get that, you can move on to the next step.

2) I start by opening EagleCad and Selecting File/New/Board… This gives me a blank canvas to create the outline on. I’m fairly sure I’ve done this on an already created board; you just have to be careful how you move the outlines and such with components are in the way. By far tho; it’s easiest that you either create the Schematic after the PCB outline, or at least make sure you don’t place parts “inside” the normal rectangle when creating the PCB from schematic.
You need to run the script created in step 1 above. This is done from the File / Script… dialog. Select the SCR you created in step 1 (or in our case rollover2k.scr) and hit open.

PCB Tutorial: Run Script

3)At this point EagleCad should begin executing the script drawing your arcs/lines/circles on the  Dimension layer (layer 20).

PCB Tutorial: Custom Shaped PCB

At this point you should begin to move the documentation shapes to either tDoc or bDoc and then later move them to tSilk / bSilk if necessary. You want to leave the outline and any mounting holes as 20 Dimension Layer… as that is what the gerber generator uses to generate the .oln file when you commit this design to the PCB Fab houses like OSHPark.

If you do transfer some of the lines to a silkscreen layer or even a copper layer; you should remember to change it’s width to the minimum tolerance allowed by your FAB house. In the case of a 2layer OSHPark file… it’s probably 8mils (0.008 inch).

With the steps outline above; you can basically use the CAD file as an input to even align LEDs on a evenly spaced spoke pattern or really any desirable orientation.

I’m providing the input files here for you to follow along with the steps above. Download it here:
Shaped PCB Tutorial Files

This PCB outline was used in the Star Trek: Mirror Universe as the GI lighting for the Star Rollovers. The star plunger fits inside the center hole and the two holes on the side provide mounting to the underside of the playfield.  These PCBs light the Rollover from the underside with Red LEDs.

Hope this tutorial helps!

Posted in CAD, Design, DIY, PCB, qcad, Star Trek: Mirror Universe Pinball | Tagged , , , , | Leave a comment

Star Trek: The Mirror Universe will be at Texas Pinball Fesitival

Phase 1 of the Star Trek Mirror Universe project is complete and will be on display at this year’s Texas Pinball Festival.

You can visit the details here on this blog… or visit the worklogs at KLOV forums or Pinside forums.

Give me a thumbs up Karma Point or Reputation point when visiting these forums.

Posted in Arcade, DIY, Pinball, Star Trek: Mirror Universe Pinball | Tagged , , , , , , | 1 Comment

Austin, TX: Star Trek Into The Darkness Charity Arcade

Alamo Drafthouse‘s Summer of 1983 and showings of Star Trek Into The Darkness hosted the Star Trek Charity Arcade during the month or so that STID was in theaters.

Each Austin Alamo hosted a Star Trek pinball machine
Alamo Drafthouse @Slaughter had the Star Trek: The Next Generation
@Village had the Star Trek: 25th Anniversary

@Lake Creek had the Bally Star Trek

In parallel, The Ritz hosted the Summer of 1983 Arcade with:
Pacman 25th (pacman, mrs pac, galaga)
Joust + Robotron
Defender / Defender 2 machine

It took me a while to count all those quarters. TBH; I gave up after rolling $400 in quarters. I talked with my bank and got them to feed it into their counter.

The Charity Arcade made $1092 for the <ahref=”

Dell Childrens’ Medical Center. I’m working with them to figure out where and how to deliver the money to them.

Thanks go out to the Alamo Drafthouse Team for making the Star Trek Charity Arcade an even better success – this wouldn’t have been possible without their support.

Posted in Arcade, Charity, Pinball, Video Game | Tagged , , , , , | Leave a comment

Star Trek: The Mirror Universe Pinball – Cabinet work (Part 3)

Previous work on this Cabinet: part 1 and 2

Now my attention turns to the stenciling of the side cabinet. First color… yellow:
Star Trek: Mirror Cabinet

Star Trek: Mirror Cabinet

Star Trek: Mirror Cabinet

Star Trek: Mirror Cabinet

Once the yellow dried overnight; I pulled the stencil up:
Star Trek: Mirror Cabinet

Yeap; that’s right… The use of the waterslide decal came back and bit me in the butt. The stencil pulled the toner right off label.
Star Trek: Mirror Cabinet


After many choice explicatives; I decided there wasn’t much I could do now… so I went ahead and continued stenciling the grey; opting to see what (if anything) the Enterprise would cover. Ofcourse; I designed the decal location to be where the Klingons were; so I knew it wouldn’t cover jack… but it made me feel better. I also figured if the next stencil pulled up more; I could fix it once and be done.

Down goes the Enterprise stencil..
Star Trek: Mirror Cabinet

This time I left the protective backing on the section which went over the waterslide decal.
I sprayed the grey primer and let it dry overnight. The backing protect the label; so I proceeded to cover the paper areas with the black stain to match the color of the cabinet. I then re-airbrushed to blend the new black with the background image. I then re-sprayed the holographic flake and clear coat as best I could with airbrush.
Star Trek: Mirror Cabinet

Star Trek: Mirror Cabinet
Good as new? no. but, not too bad I guess.

Now for the orange stencil.
Star Trek: Mirror Cabinet

The orange wasn’t Red enough for my Nacelles… so I sprayed them with cherry red.
Star Trek: Mirror Cabinet

And finally; the blue phasers:
Star Trek: Mirror Cabinet

Ofcourse; the blue phasers crossed over the nebula – I had to use some of the stencil to prevent paint bleed. At this point more toner came off; so I had to do some more repair.

The result:
Star Trek: Mirror Cabinet

I’m 100% happy with the blue phasers; they tend to not show up well on the black without a grey border. Not sure what if anything I’m going to do.

Posted in Arcade, DIY, Pinball, Star Trek: Mirror Universe Pinball | Tagged , , , , , , | Leave a comment

Star Trek: The Mirror Universe Pinball – Head work (Part 4)

Previous work on this Head: part 1, 2, and 3

A couple of days ago; my custom stencils came in from TwistedPins. I started with the head because it was still on the hydraulic table from the fan installation. I decided I wanted to use the same head stencils as the original bally; just change up the colors a bit.

I started by laying down the yellow stencil:

At this point; an improvement I’d suggest to these stencils is that for the first layer… the “red” covers should be removed. IE the planetoids shouldn’t have any masks “inside” the oval shapes. That way you lay down a solid color and the second color (red) goes over the yellow so there are no registration offsets. This is what I did; I went ahead and removed all the squiggly shapes from the planetoids.

With the stencil ready; I taped off the surround areas with newspaper and put down some grey primer. This was done mainly to get the “grey” which I had chosen for the enterprise. Yellow generally goes over light grey than black so I sprayed everything.

I waited overnight for the grey primer to cure then masked off the enterprise grey and sprayed down some “Gold yellow” spray paint. I decided to use spray paint as it is easier to clean up than trying to spray the sign lettering enamel I used for the Bally Star Trek playfield repair many years ago.

I let the yellow dry about an hour before carefully removing the masking. Here’s how the first stencil turned out:

Another night time cure to let the paint harden before I put down the red-orange stencil. I decided I wanted the planetoid to be the same colors as original. The difference was in the Enterprise as you’ll see in a moment. I sprayed the planets and then the Enterprise-shadows as “Driver blue”.

I let the orange/blue combo cure in the TX sun for a few hours; then removed the masking.
The Result:

There were some slight registration issues with the blue and grey; but really not that bad. Again; If it were me; I’d have created the stencils with the entire Enterprise in “yellow” and then have the “red” overlay cover the yellow to avoid the registration issues. I’m guessing TwistedPin did the stencils that way so someone could just do a single color… but really; the Red fades long before the yellow; so in my mind the yellow stencil should cover all the areas Red+yellow.

Anyway; I’m digging the custom Enterprise colors. Thoughts?

Posted in DIY, Pinball, Star Trek: Mirror Universe Pinball | Tagged , , , , | Leave a comment