<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>Getting the fingerprint reader of a Thinkpad x240 to work under Ubuntu 14.04</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/176 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="176"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="markdown"&gt;&lt;p&gt;&lt;code&gt;lsusb&lt;/code&gt; lists the fingerprint reader in the x240 as follows:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Bus 002 Device 003: ID 138a:0017 Validity Sensors, Inc.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;There exists experimental driver support for this in a &lt;a href="https://github.com/abbradar/fprint_vfs5011"&gt;fork&lt;/a&gt; of &lt;a href="https://github.com/ars3niy/fprint_vfs5011"&gt;libfprint for vfs5011 sensors&lt;/a&gt;, however you'll need to compile the driver yourself. To get the fingerprint sensor to work for lightdm login, su etc, follow these steps.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Install &lt;a href="https://launchpad.net/~fingerprint/+archive/ubuntu/fingerprint-gui"&gt;fingerprint-gui&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo add-apt-repository ppa:fingerprint/fingerprint-gui
sudo apt-get update
sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Get your compilation tools and library dependencies:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt-get install build-essential automake checkinstall shtool libtool libxv-dev libmagick++-dev&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Get the sources, compile and install them:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git clone https://github.com/abbradar/fprint_vfs5011
cd fprint_vfs5011
./autogen.sh
make
sudo make install&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Make sure your user has permissions for accessing the fingerprint sensor device. Create a file &lt;code&gt;/lib/udev/rules.d/40-libfprint0-custom.rules&lt;/code&gt; with the following contents:&lt;/p&gt;

&lt;p&gt;```&lt;/p&gt;

&lt;h1&gt;Device Validity VFS5011&lt;/h1&gt;

&lt;p&gt;ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0017", MODE="0664", GROUP="plugdev"
```&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add your user to the &lt;code&gt;plugdev&lt;/code&gt; group:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo usermod -a -G plugdev &amp;lt;username&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Restart udev:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo service udev restart&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Log out of your session and log back in.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enroll your fingerprints with &lt;code&gt;fingerprint-gui&lt;/code&gt;, verify them, then see if a &lt;code&gt;sudo -s&lt;/code&gt; now suddenly asks you for your fingerprint.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/176/rev-raw/3355811cb7ae08f1b247765bbe78fff729f70d43/README.md" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/176#README.md"&gt;README.md&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
