OpenPGP card +Lock screen -- possible???

Rudolf Deilmann rudolf.deilmann at gmail.com
Mon May 19 16:39:41 CEST 2008


Am Mon, 19 May 2008 12:52:29 +0100
schrieb Edward Robinson <eddrobinson at gmail.com>:

Hi Edward,

> Does anyone know if it is possible to use my openpgp smart card as a
> way of locking my screen on my gnome / debian lenny distro?  I was
> thinking it would be nice if on removal of my smart card the
> gnome-screensaver kicked in.  I am not fussed about using it to
> unlock again (I have a fingerprint reader for that).
> 
> I guess really the simplest way would be if it was possible to run
> scripts on removal of the card, that way I could just write a script
> to launch the screensaver.

It should be possible with ivman.
Just compare the output of 'lshal' before and after you plugged in
your smart card; and then add according entries to IvmConfigActions.xml:
<ivm:Match name="hal.XXX" value="TTTT">
  <ivm:Match name="hal.YYY" value="ZZZZ">
   <ivm:Option name="execun" value="xscreensaver-command -lock" />
  </ivm:Match>
</ivm:Match>


Btw, there is http://www.pamusb.org/ - but it works with usb sticks. 
And it's a little bit offtopic here.



More information about the Gnupg-users mailing list