Need to get my internal smart card reader working

Hello everybody!

I have a Dell Latitude e5470 laptop with an internal smart card reader. I managed to get an external smart card reader to work via USB using that wiki page:
https://wiki.archlinux.org/title/Electronic_identification

Since there is an internal card reader present, I want to get it working (it worked in Win10, before I removed from this laptop).

Probably some kind of driver is missing. In need of some guidance!!

My system info:

System:
  Kernel: 5.10.41-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=57bccc67-b3a9-429d-94d7-c0c8d74e8c1d rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.21.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 
  dm: SDDM Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: Dell product: Latitude E5470 v: N/A serial: <filter> 
  Chassis: type: 9 serial: <filter> 
  Mobo: Dell model: 0VHKV0 v: A00 serial: <filter> UEFI: Dell v: 1.25.3 
  date: 03/19/2021 
Battery:
  ID-1: BAT0 charge: 47.2 Wh (100.0%) condition: 47.2/57.1 Wh (82.6%) 
  volts: 8.4 min: 7.6 model: Panasonic DELL 79VRK6A type: Li-poly 
  serial: <filter> status: Full 
Memory:
  RAM: total: 7.67 GiB used: 2.83 GiB (36.9%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Dual Core model: Intel Core i5-6300U bits: 64 type: MT MCP 
  arch: Skylake family: 6 model-id: 4E (78) stepping: 3 microcode: E2 cache: 
  L2: 3 MiB bogomips: 20004 
  Speed: 500 MHz min/max: 400/3000 MHz Core speeds (MHz): 1: 500 2: 500 3: 500 
  4: 500 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr hle ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good rtm sdbg sep smap smep smx ss ssbd sse sse2 
  sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Dell driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:1916 class-ID: 0300 
  Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo 
  bus-ID: 1-2:2 chip-ID: 0bda:57c3 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: intel unloaded: modesetting alternate: fbdev,vesa display-ID: :0 
  screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP1 res: 1920x1080 hz: 60 dpi: 157 size: 310x170mm (12.2x6.7") 
  diag: 354mm (13.9") 
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 21.1.2 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell driver: snd_hda_intel 
  v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d70 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.41-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.28 running: yes 
Network:
  Device-1: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: kernel 
  port: f040 bus-ID: 00:1f.6 chip-ID: 8086:156f class-ID: 0200 
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel port: f040 
  bus-ID: 01:00.0 chip-ID: 8086:24f3 class-ID: 0280 
  IF: wlp1s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 
  bus-ID: 1-8:5 chip-ID: 8087:0a2b class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 port: f060 bus-ID: 00:17.0 chip-ID: 8086.282a rev: 21 class-ID: 0104 
Drives:
  Local Storage: total: 238.47 GiB used: 47.82 GiB (20.1%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Intel model: SSDSCKKF256H6 SATA 256GB 
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: D16N scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 31.25 GiB size: 30.59 GiB (97.88%) used: 14 GiB (45.8%) 
  fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: 57bccc67-b3a9-429d-94d7-c0c8d74e8c1d 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 8.8 MiB (2.9%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: FC70-35FA 
  ID-3: /home raw-size: 118.54 GiB size: 116.18 GiB (98.01%) 
  used: 33.81 GiB (29.1%) fs: ext4 dev: /dev/sda3 maj-min: 8:3 label: N/A 
  uuid: 5c8a4c84-ff33-4300-8276-be73e90da708 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 17.58 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda5 maj-min: 8:5 label: N/A 
  uuid: 680bd736-5a89-4b19-9ed5-373c5af9ff18 
Unmounted:
  ID-1: /dev/sda4 maj-min: 8:4 size: 49.33 GiB fs: ext4 label: N/A 
  uuid: f91dead5-9430-44e9-aaaa-9b0791c234b6 
  ID-2: /dev/sda6 maj-min: 8:6 size: 21.48 GiB fs: ext4 label: N/A 
  uuid: 5974260c-bd51-4344-a18f-6828616d10e9 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-2:2 info: Realtek Integrated_Webcam_HD type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 0bda:57c3 class-ID: 0e02 serial: <filter> 
  Device-2: 1-4:3 info: Logitech G102 LIGHTSYNC Gaming Mouse type: Mouse,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 300mA chip-ID: 046d:c092 class-ID: 0300 serial: <filter> 
  Device-3: 1-7:4 info: Broadcom 5880 type: Smart Card driver: N/A 
  interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 0a5c:5832 
  class-ID: 0b00 serial: <filter> 
  Device-4: 1-8:5 info: Intel Bluetooth wireless interface type: Bluetooth 
  driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA 
  chip-ID: 8087:0a2b class-ID: e001 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 48.5 C mobo: N/A 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 202 Uptime: 29m wakeups: 1 Init: systemd v: 247 tool: systemctl 
  Compilers: gcc: 11.1.0 Packages: pacman: 1415 lib: 375 flatpak: 0 
  Shell: Bash v: 5.1.8 running-in: konsole inxi: 3.3.04 

Hello,

You will need to install the linux-headers for your running kernel and then install this AUR package
https://aur.archlinux.org/packages/rts5139-dkms/

1 Like

Did install linux-headers and the rts aur package.

The internal smartcard still doesn’t work.Journalctl gives the following output

journalctl -b -f -u pcscd
-- Journal begins at Wed 2021-05-26 19:10:39 EEST. --
juuni 14 23:54:36 latitux systemd[1]: Started PC/SC Smart Card Daemon.
juuni 14 23:54:36 latitux pcscd[1131]: 00000000 ccid_usb.c:598:OpenUSBByName() Can't get config descriptor on 1/4: LIBUSB_ERROR_NOT_FOUND
juuni 14 23:54:36 latitux pcscd[1131]: 00031427 ccid_usb.c:598:OpenUSBByName() Can't get config descriptor on 1/4: LIBUSB_ERROR_NOT_FOUND

These logs are in the time gap I tested it using tools from here Smartcards - ArchWiki

National ID-card software also doesn’t recognize it. (aur/qdigidoc4)

Thank you for the help!!

Hello!

Returning back to that issue. My internal Smart Card reader still is not working
Tried to install rts5227-dkms AUR driver. Didn’t help.

It is RTS525A PCI Express Card Reader (Realtek Semiconductor Co…)
There is no precise driver for that particular card reader on AUR.

Probably relevant, read from here on
https://bugzilla.kernel.org/show_bug.cgi?id=202473#c8

I’ll read it to see what and how, but the predominant issue in me explaining what I need seems that I mean a smartcard as in national ID card not as in SD memory card.

So basically it is a device which reads IDs - cards like like banking cards.

I am curious maybe the aren’t different from the driver side of things just the size of the slot is different?

But is that reader as one single device for both Smart Card and SD reader? Because the RTS525A PCI Express Card Reader matches to what i pointed out, and the drivers are there, clearly it can have multiple slot sizes but now i wonder if:

  • requires some particular udev rules
  • special software to actually read the national ID card and such …

Looking at this Reading ID Card Data in Ubuntu with EZ100PU Smart Card Reader (Thai ID Edition) - CNX Software

Bogdan. You know, it might be that Manjaro doesn’t detect my ID card reader. The one it displays is my SD card slot which I use rarely - thus didn’t think about it.

Yes It is like that kind of device but internal for which I want to get working. I don’t have my USB ID card reader with me, but ID card software worked well on Manjaro with the packages marked here:
https://wiki.archlinux.org/title/Electronic_identification#Estonia

With USB ID Card reader, but not the internal one. Basically as if it doesn’t exist.

Maybe worth to share:
lsusb
and
lspci -nn

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 004: ID 0a5c:5832 Broadcom Corp. 5880
Bus 001 Device 003: ID 046d:c092 Logitech, Inc. G203 LIGHTSYNC Gaming Mouse
Bus 001 Device 002: ID 0bda:57c3 Realtek Semiconductor Corp. Integrated_Webcam_HD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers [8086:1904] (rev 08)
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07)
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903] (rev 08)
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21)
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21)
00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-LP CSME HECI #1 [8086:9d3a] (rev 21)
00:16.3 Serial controller [0700]: Intel Corporation Sunrise Point-LP Active Management Technology - SOL [8086:9d3d] (rev 21)
00:17.0 RAID bus controller [0104]: Intel Corporation 82801 Mobile SATA Controller [RAID mode] [8086:282a] (rev 21)
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 [8086:9d14] (rev f1)
00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #11 [8086:9d1a] (rev f1)
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-LP LPC Controller [8086:9d48] (rev 21)
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21)
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d70] (rev 21)
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21)
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection I219-LM [8086:156f] (rev 21)
01:00.0 Network controller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader [10ec:525a] (rev 01)

That is the card, on PCI … and should work with the built in rtsx_pci driver, at least according to this old comment in the archived forum Laptop not recognizing Realtek RTS525A PCI Express Card Reader - Hardware - Manjaro Linux Forum
and is also working on this model Dell Latitude E7470 - ArchWiki
So, the question that remains is what software is suitable for it?

Software is qdigidoc available on AUR.

How do I get that driver? :smiley:

Actually seems it is in the kernel starting with 5.3.

Runing 5.14.

Once you build it with this command:
pamac build qdigidoc

and then run it, what errors you get?

Tried digidoc on Fedora 34 Cinnamon. It installed as the part of open-eid from their standard repo. The internal SC reader works out of the box.
The kernel Fedora runs on is 5.11.12-300.fc34.x86_64. I don’t know if it is of any help.

Replying to what you wrote:

I built it either with yay or via the Pamac GUI. cannot run qdigidoc via terminal. It is the national ID management and and creation of signed containers.

Anybody out there? :slight_smile:

You have to give more information about that.

I meant. It is a GUI application. It is just an national ID and signing client

1 Like

Similar problem, I don’t use it often, but with some update it seems card reader it self is not working

Now its working again after some updates :slight_smile: . Nice