You are not logged in.

#1 2024-11-17 19:59:58

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

[SOLVED] Smartcard Reader is not working

Hi!

I've an 'Thinkpad T14 Gen 1 (20UES00L00 ThinkPad T14 Gen 1) and I've the Problem, that my Smardcard-Reader is not working properly.

When I insert an Smartcard I can't see this Smardcard with 'sudo dmesg', 'sudo lsblk -f' or 'sudo fdisk -l'.

An 'sudo lsusb' tells me, that I've this Smardcard-Reader:

<SNIP>
Bus 004 Device 002: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
</SNIP>

I also had a look at the Arch Linux WIki regarding the Smartcard-Configuration: https://wiki.archlinux.org/title/Smartcards

Do you have any ideas what I can do to get my Smarcard working correctly?

Thanks for your help smile

Last edited by fluffy-bunny (2024-12-12 08:24:05)

Offline

#2 2024-11-17 20:57:33

seth
Member
Registered: 2012-09-03
Posts: 59,885

Online

#3 2024-11-30 22:44:58

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

Re: [SOLVED] Smartcard Reader is not working

Thanks for the Link!

I've tried this and installed 'pcsclite and ccid'. But when I do an 'sudo systemctl start pcscd' followed by an 'sudo systemctl status pcscd' I get the following message:

● pcscd.service - PC/SC Smart Card Daemon
     Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect; preset: disabled)
     Active: active (running) since Sat 2024-11-30 23:43:44 CET; 3s ago
Invocation: da97ce191e7543ccbcd664bf135b46e5
TriggeredBy: ● pcscd.socket
       Docs: man:pcscd(8)
   Main PID: 114205 (pcscd)
      Tasks: 5 (limit: 37455)
     Memory: 1.3M (peak: 1.7M)
        CPU: 57ms
     CGroup: /system.slice/pcscd.service
             └─114205 /usr/bin/pcscd --foreground --auto-exit

Nov 30 23:43:44 thinkpad-t14 systemd[1]: Started PC/SC Smart Card Daemon.
Nov 30 23:43:44 thinkpad-t14 (pcscd)[114205]: pcscd.service: Referenced but unset environment variable evaluates to an empty string: PCSCD_ARGS

Offline

#4 2024-12-01 06:41:30

seth
Member
Registered: 2012-09-03
Posts: 59,885

Re: [SOLVED] Smartcard Reader is not working

The wiki wrote:

then you can use the pcsc_scan command to read the card informations

No?

Online

#5 2024-12-01 20:57:08

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

Re: [SOLVED] Smartcard Reader is not working

seth wrote:
The wiki wrote:

then you can use the pcsc_scan command to read the card informations

No?

I tried  to start 'pcsc_scan' as normal User and with 'sudo <my_user>' but I have in both cases an rotating pipe:

[matze@thinkpad-t14 ~]$ pcsc_scan
PC/SC device scanner
V 1.7.1 (c) 2001-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
Using reader plug'n play mechanism
Scanning present readers...
0: Alcor Micro AU9540 00 00

Sun Dec  1 21:41:18 2024
Reader 0: Alcor Micro AU9540 00 00
  Event number: 0
  Card state: Card removed,

[matze@thinkpad-t14 ~]$ sudo pcsc_scan
[sudo] Passwort für matze:
PC/SC device scanner
V 1.7.1 (c) 2001-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
Using reader plug'n play mechanism
Scanning present readers...
0: Alcor Micro AU9540 00 00

Sun Dec  1 21:47:21 2024
Reader 0: Alcor Micro AU9540 00 00
  Event number: 0
  Card state: Card removed,
|

Offline

#6 2024-12-01 21:39:48

seth
Member
Registered: 2012-09-03
Posts: 59,885

Re: [SOLVED] Smartcard Reader is not working

Card state: Card removed,

And if you insert a card?

Online

#7 2024-12-01 21:46:31

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

Re: [SOLVED] Smartcard Reader is not working

seth wrote:
Card state: Card removed,

And if you insert a card?

It's the same. I started 'pcsc_scan' and 'sudo pcsc_scan' and after that I inserted the card.
It ran the hole time but it doesn't happen anything sad....

Offline

#8 2024-12-01 22:35:28

seth
Member
Registered: 2012-09-03
Posts: 59,885

Re: [SOLVED] Smartcard Reader is not working

It never switches to "Card state: Card inserted"?
Is the card fully slotted in? " Smart card must be inserted with the chip facing upwards."

Same device shows up in https://wiki.archlinux.org/title/HP_Pro … ard_Reader which suggests you need https://archlinux.org/packages/extra/x86_64/ccid/

Online

#9 2024-12-02 22:10:04

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

Re: [SOLVED] Smartcard Reader is not working

seth wrote:

It never switches to "Card state: Card inserted"?

Exactly, when I run 'pcsc_scan' as normal user or when I do an 'sudo pcsc_scan' it never switches to "Card state: Card inserted" sad....

seth wrote:

Is the card fully slotted in? " Smart card must be inserted with the chip facing upwards."

I've slotted it in and it 'klicks' inside the Slot but the chip of the smart card shows downwards and not upwards. It's not possible to put the card in the other way round.

I've installed 'ccid' as it's discribed here: https://wiki.archlinux.org/title/Lenovo … ard_reader

Offline

#10 2024-12-03 05:27:03

seth
Member
Registered: 2012-09-03
Posts: 59,885

Re: [SOLVED] Smartcard Reader is not working

:\

Does the reader work on a different software stack?
Eg. is there a parallel windows installation? You could also try https://grml.org

(Ie. can we rule out defective hardware)

Online

#11 2024-12-04 14:07:30

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

Re: [SOLVED] Smartcard Reader is not working

seth wrote:

:\

Does the reader work on a different software stack?
Eg. is there a parallel windows installation? You could also try https://grml.org

(Ie. can we rule out defective hardware)

Hey, I've an parallel installation from Windows 10 on my Thinkpad T14 and under Windows I also can't use the card sad...

What I don't understand is that it worked last week and the Smardcard Reader is also recognised under linux as well as under windows.

Do you have any other idea?

Offline

#12 2024-12-04 14:27:10

seth
Member
Registered: 2012-09-03
Posts: 59,885

Re: [SOLVED] Smartcard Reader is not working

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.
Some people had to reset the cmos to sanitize the firmware state.

If that's not it, it stands to reason that either the card or the reader have left us.
Do you have a second smartcard or reader for a cross-test?

Online

#13 2024-12-04 22:00:18

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

Re: [SOLVED] Smartcard Reader is not working

seth wrote:

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.
Some people had to reset the cmos to sanitize the firmware state.

If that's not it, it stands to reason that either the card or the reader have left us.
Do you have a second smartcard or reader for a cross-test?

DAFUQ!

I've tried what was in your link below your last post (https://wiki.archlinux.org/title/Dual_b … ibernation) and my Smartcard Reader is now working under Windows 10.
I've rebootet the notebook twice but I can't get it working under Linux sad.
I got anymore this messages when I do an 'pcsc_scan' and 'sudo pcsc_scan' :

[matze@thinkpad-t14 ~]$ pcsc_scan
PC/SC device scanner
V 1.7.1 (c) 2001-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
Using reader plug'n play mechanism
Scanning present readers...
0: Alcor Micro AU9540 00 00

Sun Dec  1 21:41:18 2024
Reader 0: Alcor Micro AU9540 00 00
  Event number: 0
  Card state: Card removed,

[matze@thinkpad-t14 ~]$ sudo pcsc_scan
[sudo] Passwort für matze:
PC/SC device scanner
V 1.7.1 (c) 2001-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
Using reader plug'n play mechanism
Scanning present readers...
0: Alcor Micro AU9540 00 00

Sun Dec  1 21:47:21 2024
Reader 0: Alcor Micro AU9540 00 00
  Event number: 0
  Card state: Card removed,

Last edited by fluffy-bunny (2024-12-04 22:00:41)

Offline

#14 2024-12-05 06:34:36

seth
Member
Registered: 2012-09-03
Posts: 59,885

Re: [SOLVED] Smartcard Reader is not working

At least the HW isn't broken smile


https://linux-hardware.org/?id=usb:058f-9540

Run BIOS Setup (F2) goto Advanced > Miscellaneous Configurations and enable "eLux Mode. Now the AU9540 works witout any problems

?
https://bugs.launchpad.net/ubuntu/+sour … comments/6

The dmesg corresponding to device removal and power on was related to a BIOS option that does "Power on if card is present" vs "Always powered on". If the BIOS option is switched to "Always powered on" these messages are not present.

?


https://github.com/LudovicRousseau/CCID/issues/84 but there at least the card gets "inserted" hmm

Online

#15 2024-12-05 22:00:06

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

Re: [SOLVED] Smartcard Reader is not working

seth wrote:

At least the HW isn't broken smile


https://linux-hardware.org/?id=usb:058f-9540

Run BIOS Setup (F2) goto Advanced > Miscellaneous Configurations and enable "eLux Mode. Now the AU9540 works witout any problems

?

Hm, I don't know where to find the setting 'enable "eLux Mode' in the UEFI of my Thinkpad T14. Do you have an idea?

https://bugs.launchpad.net/ubuntu/+sour … comments/6
The dmesg corresponding to device removal and power on was related to a BIOS option that does "Power on if card is present" vs "Always powered on". If the BIOS option is switched to "Always powered on" these messages are not present.

This option I also can't find in the UEFI sad

Last edited by fluffy-bunny (2024-12-05 22:00:33)

Offline

#16 2024-12-06 06:21:47

seth
Member
Registered: 2012-09-03
Posts: 59,885

Re: [SOLVED] Smartcard Reader is not working

The overall idea was that the reader apparently offers some alternatives to the firmware - instead of looking for a specific setting, check your BIOS for anything remotely related to the smartcard reader.

There's also https://wiki.archlinux.org/title/Lenovo … eader_hang (it's not listed there, but gen 1, 2 & 3 have all the same reader)

Online

#17 2024-12-11 22:53:34

fluffy-bunny
Member
Registered: 2016-04-17
Posts: 20

Re: [SOLVED] Smartcard Reader is not working

Sorry for my late reply but I have realized that I think there has been a misunderstanding.

I thought I try to mount my Micro-SD Card in the Smartcard Reader but it's the SD-Card Reader smile....

It seems to be that the SD-Card Reader gets into sleepmode after a period of time. The solution for this is to do an

sudo modprobe rtsx_pci

or to do an

lspci -knn

That wakes the SD-Card Reader up

Offline

#18 2024-12-12 04:57:39

seth
Member
Registered: 2012-09-03
Posts: 59,885

Re: [SOLVED] Smartcard Reader is not working

lol
https://en.wikipedia.org/wiki/SD_card

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB