# Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD) and openSUSE 11.4

*2011-05-05*

> Enable the Texas Instruments 5-in-1 card reader on openSUSE 11.4 with a setpci workaround and apply it automatically at startup.

**Update:** There’s some strange lag when copying files to or from an SD card!

I recently reinstalled my Acer Extensa 5620Z laptop with [openSUSE](https://www.opensuse.org/) 11.4. Almost everything worked out of the box, which impressed me. The exception was the card reader.

If you check `/var/log/messages` after inserting a card, you may see a message like this:

```text
tifm_core: MMC/SD card detected in socket 0:1
```

This confirms that the kernel detected a card. If the reader still doesn’t work, try the following workaround using `setpci`.

**Note:** Run the following steps as root.

1. List your PCI devices with [`lspci`](https://man7.org/linux/man-pages/man8/lspci.8.html) and find the card reader’s entry:

    ```text
    0f:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
    ```

    The first column, `0f:06.2` in this example, is the reader’s PCI address. You’ll need it in the next step.

2. Run the following command, replacing `0f:06.2` with your card reader’s PCI address:

    ```sh
    setpci -s 0f:06.2 4c.b=0x02
    ```

Your card reader should now work. To apply the setting automatically at startup on openSUSE 11.4, add the command from step 2, with the appropriate PCI address, to `/etc/rc.d/after.local`.

