card_eventmgr(1)
π card_eventmgr β the PCSC-Lite Event Manager, bestie edition π
okay so before we even get into it: this is card_eventmgr(1), a page from the PAM-PKCS#11 manual. yes, the whole thing. buckle up π
β¨ NAME β¨
card_eventmgr β literally the PCSC-Lite Event Manager. she watches your smart card reader and does stuff when things happen. main character energy, no cap π
πΈ SYNTAX πΈ
card_eventmgr [debug] [[no]daemon] [timeout=<msecs>]
[config_file=<filename>] [kill] [pidfile=<pidfile>]
that's it. that's the whole vibe check π¦
π DESCRIPTION π
okay so card_eventmgr is a smart card monitoring tool. she listens to the status of the card reader and dispatches actions on several events. it's giving attentive. it's giving aware.
she can be used for several actions, like locking your screen when the card gets removed. so basically she's your bodyguard but for a plastic rectangle π«Ά
there are three events supported, periodt:
- card insertion
- card removal
- timeout on removed card
and the actions? those are specified in a configuration file. she doesn't improvise, she follows the script π
β OPTIONS β
debugβ turns on debugging output. she will tell you everything and honestly we love a transparent queen π[no]daemonβ runs in the background if you saydaemon, or in the foreground if you saynodaemon(which is the default, btw). heads up though: ifdebugis unset, the program detaches itself from the tty. so like. she leaves the group chat. πtimeout=<msecs>β sets the polling timeout in milliseconds. defaults to1000, which is 1 second, for the people who don't do math β¨config_file=<configuration file>β sets the configuration file. default value is/etc/pam_pkcs11/card_eventmgr.conf. she has a home and she's very loyal to it πpidfile=<pidfile>β stores thecard_eventmgrprocess ID (pid) in the file pidfile. keeping receipts, always πkillβ reads a process id from pidfile and kills that process. you MUST use the argumentpidfile=<pidfile>to usekill. no pidfile, no murder. those are the rules π
π FILES π
/etc/pam_pkcs11/card_eventmgr.conf
that's the one. the sacred text. the config π
π EXAMPLES π
to run this program the standard way, you literally just type:
card_eventmgr
alternatively, you can specify options, because sometimes you want β¨rangeβ¨:
card_eventmgr debug nodaemon timeout=500
config_file=$HOME/.card_eventmgr.conf
and if you want to start and stop card_eventmgr automatically inside an X11 session, you can create a ~/.xsession file containing:
# start the card autolock
card_eventmgr pidfile=$HOME/.card_eventmgr.pid
# start Gnome or something else
/usr/bin/x-session-manager
# kill the card autolock
card_eventmgr kill pidfile=$HOME/.card_eventmgr.pid
start her, let her live her life, then gently take her out. iconic behavior, honestly π
π BUGS π
okay so not everything is slay. some applications like xscreensaver-command may fail due to external events β for example, if they try to unlock an already-unlocked session. in this case, the command incorrectly returns an error code.
so yeah. it's wrong. it's a known thing. it's not you, it's her π
π AUTHORS π
- Juan Antonio Martinez
<jonsito@teleline.es> - Ludovic Rousseau
<ludovic.rousseau@free.fr>
the legends themselves. show some respect π«‘
π¦ SEE ALSO π¦
pam_pkcs11(8)pkcs11_eventmgr(1)README.eventmgr- PAM-PKCS11 User Manual
go read those too, bestie. iykyk π
and that's the whole page!! written by Juan Antonio Martinez, dated Aug 2005, and yeah it's the card_eventmgr(1) page from the PAM-PKCS#11 manual. thank you for coming to my ted talk, go lock your screen on card removal or whatever πβ¨π
π¦ where this page comes from
- debian trixie: libpam-pkcs11 0.6.13-1
- opensuse-leap 16.0: pam_pkcs11 0.6.13-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: pam_pkcs11 0.6.13-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: pam_pkcs11 0.6.13-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: pam_pkcs11 0.6.13-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu questing: libpam-pkcs11 0.6.13-1
- ubuntu resolute: libpam-pkcs11 0.6.13-1build1
- ubuntu stonking: libpam-pkcs11 0.6.13-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms