{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"Getting the fingerprint reader of a Thinkpad x240 to work under Ubuntu 14.04","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/176 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"176\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"markdown\"><p><code>lsusb<\/code> lists the fingerprint reader in the x240 as follows:<\/p>\n\n<pre><code>Bus 002 Device 003: ID 138a:0017 Validity Sensors, Inc.\n<\/code><\/pre>\n\n<p>There exists experimental driver support for this in a <a href=\"https:\/\/github.com\/abbradar\/fprint_vfs5011\">fork<\/a> of <a href=\"https:\/\/github.com\/ars3niy\/fprint_vfs5011\">libfprint for vfs5011 sensors<\/a>, however you'll need to compile the driver yourself. To get the fingerprint sensor to work for lightdm login, su etc, follow these steps.<\/p>\n\n<ol>\n<li><p>Install <a href=\"https:\/\/launchpad.net\/~fingerprint\/+archive\/ubuntu\/fingerprint-gui\">fingerprint-gui<\/a>:<\/p>\n\n<p><code>sudo add-apt-repository ppa:fingerprint\/fingerprint-gui\nsudo apt-get update\nsudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui<\/code><\/p><\/li>\n<li><p>Get your compilation tools and library dependencies:<\/p>\n\n<p><code>sudo apt-get install build-essential automake checkinstall shtool libtool libxv-dev libmagick++-dev<\/code><\/p><\/li>\n<li><p>Get the sources, compile and install them:<\/p>\n\n<p><code>git clone https:\/\/github.com\/abbradar\/fprint_vfs5011\ncd fprint_vfs5011\n.\/autogen.sh\nmake\nsudo make install<\/code><\/p><\/li>\n<li><p>Make sure your user has permissions for accessing the fingerprint sensor device. Create a file <code>\/lib\/udev\/rules.d\/40-libfprint0-custom.rules<\/code> with the following contents:<\/p>\n\n<p>```<\/p>\n\n<h1>Device Validity VFS5011<\/h1>\n\n<p>ATTRS{idVendor}==\"138a\", ATTRS{idProduct}==\"0017\", MODE=\"0664\", GROUP=\"plugdev\"\n```<\/p><\/li>\n<li><p>Add your user to the <code>plugdev<\/code> group:<\/p>\n\n<p><code>sudo usermod -a -G plugdev &lt;username&gt;<\/code><\/p><\/li>\n<li><p>Restart udev:<\/p>\n\n<p><code>sudo service udev restart<\/code><\/p><\/li>\n<li><p>Log out of your session and log back in.<\/p><\/li>\n<li><p>Enroll your fingerprints with <code>fingerprint-gui<\/code>, verify them, then see if a <code>sudo -s<\/code> now suddenly asks you for your fingerprint.<\/p><\/li>\n<\/ol>\n<\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/176\/rev-raw\/3355811cb7ae08f1b247765bbe78fff729f70d43\/README.md\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/176#README.md\">README.md<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
