card_eventmgr(1)

card_eventmgr1

Pcsc-lite event manager

Usage

card_eventmgr [debug] [[no] daemon] [timeout=<msecs>] [config_file=<filename>] [kill] [pidfile=<pidfile>]

Overview

card_eventmgr is a smart card monitoring tool that listen to the status of the card reader and dispatch actions on several events. card_eventmgr can be used for several actions: like screen lock on card removal.

Three events are supported: card insertion, card removal and timeout on removed card. Actions are specified in a configuration file.

Options

debug

Enable debugging output.

[no]daemon

Runs in background if daemon or in foreground if nodaemon (default). If debug is unset, the program detaches itself from the tty.

timeout=<msecs>

Set polling timeout in milliseconds. Defaults to 1000 (1 second).

config_file=<configuration file>

Sets de configuration file. Default value is /etc/pam_pkcs11/card_eventmgr.conf.

pidfile=<pidfile>

Store the card_eventmgr process ID (pid) in the file pidfile.

kill

Read a process id from pidfile and kill that process. You must use the argument pidfile=<pidfile> to use kill.

Files

/etc/pam_pkcs11/card_eventmgr.conf

Examples

To run this program the standard way type:

card_eventmgr

Alternatively you can specify options:

card_eventmgr debug nodaemon timeout=500 config_file=$HOME/.card_eventmgr.conf

If you want to start and stop card_eventmgr automatically in 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

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–12
  2. 13

Bugs

Some applications like xscreensaver-command may fail due to external events (eg: try to unlock an unlocked session). In this case, the command incorrectly returns error code.

Authors

Juan Antonio Martinez <[email protected]>
Ludovic Rousseau <[email protected]>

From libpam-pkcs11 0.6.13-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.