Passing parameters to modules in Ubuntu

December 18th, 2008 Alex Posted in linux | Comments Off

In this example, I pass the parameter “card=42″ to the module “saa7134″ when the module loads at boot time.

  1. Add your module to /etc/modules


    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules
    # that should be loaded at boot time, one per line.
    # Lines beginning with "#" are ignored.
    saa7134

  2. Add options saa7134 card=42 to the end of /etc/modprobe.d/options

    # Enable double-buffering so gstreamer et. al. work
    options quickcam compatible=2

    # Default hostap to managed mode
    options hostap_pci iw_mode=2
    options hostap_cs iw_mode=2

    # Stop auto-association.
    # LP: #264104
    options ipw2200 associate=0

    # XXX: Ignore HPA by default. Needs to be revisted in jaunty
    options libata ignore_hpa=1

    options saa7134 card=42

Now reboot and you should be all set.

AddThis Social Bookmark Button

Passing parameters to modules in Ubuntu when they first load

December 18th, 2008 Alex Posted in Uncategorized | Comments Off

  1. Add your module to /etc/modules

    # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. saa7134

  2. Add options saa7134 card=42 to the end of /etc/modprobe.d/options

    # Enable double-buffering so gstreamer et. al. work options quickcam compatible=2
    # Default hostap to managed mode options hostap_pci iw_mode=2 options hostap_cs iw_mode=2
    # Stop auto-association. # LP: #264104 options ipw2200 associate=0
    # XXX: Ignore HPA by default. Needs to be revisted in jaunty options libata ignore_hpa=1
    options saa7134 card=42

AddThis Social Bookmark Button

Really cheap and well rated GPS USB adaptors for laptop/netbook

December 6th, 2008 Alex Posted in electronics, hardware, linux, windows | Comments Off

GLOBALSAT BU353 Waterproof USB GPS Receiver

  • GARMIN 010-00321-00 GPS 18 Deluxe USB Sensor
  • The Globalsat BU-353 would be my first choice, it has very good reviews and it is waterproof.

    AddThis Social Bookmark Button

    Backup your Firefox Passwords

    December 5th, 2008 Alex Posted in linux, web, windows | Comments Off

    There are only 3 files you need to backup:

    • signons.txt
    • signons2.txt
    • key3.db

    You can find those in your Firefox profile:

    Linux

    ~/.mozilla/firefox/xxxxxxxx.default/

    Windows

    1. Click the Windows Start button, and select Run….
    2. Type in %APPDATA%\Mozilla\Firefox\Profiles\ then click OK.

    You can then copy those file to another computer in your Firefox profile to use them.

    AddThis Social Bookmark Button

    Build Your Own Danse Pad using a keyboard circuit

    December 3rd, 2008 Alex Posted in diy | No Comments »

    The instructions for this project are incomplete, but you basically step on the circuit on each tile with a conductive sole shoe (you could use aluminum tape glued under your shoe) to close the circuits. I hope to be able to add more detailed instructions and pictures soon. For now, you can check out http://royconejo.host.sk/, it was heavily inspired from it.

    WARNING: Before anybody attempts to build this dance pad, please note that after a while I suddenly started having intermittent problems (it stops working). If I unplug it and plug it back, it starts working fine again for a while. I think the problem is caused by the wires connected to the circuit board being too long. It might change the inductance and/or capacitance too much and the circuit board can’t handle it. I don’t know much about electronics so If anyone know how to fix this, please let me know. I tried with a USB circuit board and a USB board with a PS/2 adapter without any luck.

    Finished Dance Pad

    Finished Dance Pad

    Tools and Supplies List

    tools

    • Tacker
    • Wire Strippers
    • Screw Driver & Screws
    • Circular Saw
    • Jigsaw
    • Utility Knife
    • Drill
    • Drill bit (from 1/16″ to 1/8″ (1.5mm to 3mm) should do)
    • Plyers
    • Soldering Iron & Solder
    • Sand Paper
    • Pen
    • Framing Square
    • Hammer
    • Punch
    • Plywood
    • Copper Wire (I stripped Cat5 network cable and phone cable)
    • Measuring Tape
    • Paint
    • Cardboard
    • 8×11 Paper
    • Aluminum Tape
    • Level (4ft)
    • Large Tape
    • Clamps
    • Shoes with aluminum tape taped underneath (to create the shorts when you dance)
    • USB Keyboard (or PS/2 if you current keyboard is not PS/2)
    • Note: A few tools and supplies are optional but they either make the job easier or the dance pad prettier.

    Get keyboard circuits (find out how we will use them at http://www.instructables.com/id/S9XKHQXFDIY309O/)

    keyboard opened

    keyboard opened

    keyboard electronic board

    keyboard's circuit board

    dance pad painted no wires

    dance pad painted w/o wires

    • Cut plywood

      Mine is 37″ x 37″ not including the header (where the circuit board is going to be installed

    • Paint the hole plywood sheet black
    • Stick strips of aluminum paper on edges and to create a grid with 9 even squares
    • Paint symbols using red spray paint and stencils
      spray paint stencil

      spray paint stencil


      spray paint stencil 1

      spray paint stencil 1

    wires_underneath_1

    wires_underneath_1


    wires_underneath_2

    wires_underneath_2


    wires_underneath_3

    wires_underneath_3


    wires_underneath_4

    wires_underneath_4

    finished_dance_pad_1

    finished_dance_pad_1


    finished_dance_pad_2

    finished_dance_pad_2

    AddThis Social Bookmark Button