You are not logged in.
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
Last edited by fluffy-bunny (2024-12-12 08:24:05)
Offline
Offline
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
then you can use the pcsc_scan command to read the card informations
No?
Offline
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
Card state: Card removed,
And if you insert a card?
Offline
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 ....
Offline
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/
Offline
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" ....
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.
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/
I've installed 'ccid' as it's discribed here: https://wiki.archlinux.org/title/Lenovo … ard_reader
Offline
:\
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)
Offline
:\
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 ...
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
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?
Offline
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 .
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
At least the HW isn't broken
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"
Offline
At least the HW isn't broken
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
Last edited by fluffy-bunny (2024-12-05 22:00:33)
Offline
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)
Offline
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 ....
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
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.
Offline