Package Details: rts5227-dkms 1.07-8

Git Clone URL: (read-only, click to copy)
Package Base: rts5227-dkms
Description: Driver to support Realtek RTS5227/5229 SD Card Reader
Upstream URL:
Licenses: GPL2
Submitter: mober
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 8
Popularity: 0.070608
First Submitted: 2017-06-22 13:19
Last Updated: 2019-06-17 22:45

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

rellieberman commented on 2018-06-23 22:21

Have you got it to work?

I seems I have 2 issues:

  1. Before I installed this driver I got dmesg errors every time I inserted a card. Now nothing seems to happen at all even though the correct module (rts5227) is loaded.

  2. The module only loads automatically on the first reboot after installation, after that I have to load it manually like mentioned bellow. This still doesn't get the card reader to work. Moreover, even after manually loading rts5227 the card reader doesn't appear in lspci (it did the first time rts5227 was used).

njoyard commented on 2018-06-14 07:59

Quick followup: manually modprobing rtsx_pci solves the issue.

I'll have to find why the modules are no longer inserted at boot.

njoyard commented on 2018-06-14 07:56

Same here, the driver was working (with the same package version and PKGBUILD from @robertfoster below) with a previous kernel, but is no longer.

I have to manually modprobe rts5227 for it to load, which seems to succeed:

[   96.555652] SCSI subsystem initialized
[   96.559899] Initializing Realtek PCIE storage driver...

But then nothing happens when (un)plugging a sdcard.

ochurlaud commented on 2018-04-29 20:49

@robertfoster: my dmesg doesn't log anything concerning sd card when I plug/unplug it.

robertfoster commented on 2018-04-29 15:24

@otcho @ochurlaud please take a look at dmesg. lspci output is not representative of working drivers but, in this case, of assigning a correct identification to device. See for pciids

ochurlaud commented on 2018-04-29 14:22

Same as @otcho here...

I'll be please to see this working :)

otcho commented on 2018-02-15 19:38

Driver isn't loaded with current kernel - am I missing something? It installed fine, but lscpi gives me

00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)


robertfoster commented on 2018-01-17 14:51

Please use this in the meantime, astyonax will merge PR asap:

# Maintainer: mober <maxATmoberDOTat>
# Thanks to:
# * astyonax@github

pkgdesc="Driver to support Realtek RTS5227/5229 SD Card Reader"
arch=('i686' 'x86_64')


    # Copy dkms .conf
    install -Dm644 dkms.conf "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"
    # Set name and version
    sed -e "s/@_PKGBASE@/${_pkgbase}/" \
        -e "s/@PKGVER@/${pkgver}/" \
        -i "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"

    # Blacklist rtsx_pci
    install -Dm644 "blacklist-${pkgname}.conf" "${pkgdir}/etc/modprobe.d/blacklist-${pkgname}.conf"

    # Fix suspend
    install -Dm755 "${pkgname}" "${pkgdir}/usr/lib/systemd/system-sleep/${pkgname}"

    # Copy sources (including Makefile)
    cd "${sourceDir}"
    for d in `find . -type d`
        install -dm755  "${installDir}/$d"
    for f in `find . -type f ! -name '' ! -name '.gitignore'`
        install -m644 "${sourceDir}/$f" "${installDir}/$f"


Makefile.patch not needed, I've merged it in sources

turboencabulator commented on 2017-12-18 04:07

Thank you @robertfoster, I was able to dkms rebuild the driver after that change successfully and add the module to kernel. For those using Arch, once you finish with the yaourt process and get the error reported by @ldmdev and others, go to the directory with the source code for e.g. "/var/lib/dkms/rts5227/1.07/source", then edit the file "rtsx_scsi.c" as described by @robertfoster in his link and save the edits. Then do a <$ make clean> inside the "build" directory under "../1.07/" finally under the "/var/lib/dkms" directory, execute < $ dkms install rts5227/1.07 -k 4.XX.X-X-ARCH > where 4.XX.X-X-ARCH is your kernel version. This should complete all the remaining install steps and end automatically with depmod.

robertfoster commented on 2017-12-07 14:39

Please use this to fix dkms on latest kernel: