最近换了开发本, 带了指纹和手触+笔触, 以及摄像头的功能. 于是打算利用起来.
查看下usb设备.
#lsusb Bus 001 Device 004: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
摄像头很简单.因为摄像头就那几款.所以安装一个公版的UVC(USB video class)驱动就好.而debian8的内核已经内置了
#dmesg | grep uvc [ 3.779156] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b217) [ 3.781585] usbcore: registered new interface driver uvcvideo
# dmesg | grep video [ 3.640583] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver [ 3.768512] Linux video capture interface: v2.00 [ 3.779156] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b217) [ 3.781585] usbcore: registered new interface driver uvcvideo
一些视频软件,在多媒体下面有视频的相关软件.可以截取或者录制
#apt-get install guvcview cheese
指纹可替换掉桌面登录的密码.
#apt-get install fprintd fprint-demo
如果源里没有
add-apt-repository ppa:fingerprint/fingerprint-guisudo添加一次然后重新update再去安装. 然后桌面打开附件里面的fprint-demo来录取指纹信息
接下来输入
#pam-auth-update来选择第一密码顺序
把Fingerprint authentication列到第一就可以了. 如果无效, 加一个参数 --force
#pam-auth-update --force来强制生效, 这样就可以刷指纹来登录系统了
至于触摸屏.2.6以上的内核早已经支持.只需要一些软件即可.
比较出名的是xournal手写板. 另外可以安装国内开发的识字程序,ibus-handwrite,地址在这里https://code.google.com/p/ibus-handwrite/
如果要禁止掉触摸板只保留小红点.
root@debian:/# xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Logitech Unifying Device. Wireless PID:4028 id=10 [slave pointer (2)] ⎜ ↳ Logitech Unifying Device. Wireless PID:101b id=11 [slave pointer (2)] ⎜ ↳ Wacom ISDv4 E6 Pen stylus id=12 [slave pointer (2)] ⎜ ↳ Wacom ISDv4 E6 Finger touch id=13 [slave pointer (2)] ⎜ ↳ SynPS/2 Synaptics TouchPad id=15 [slave pointer (2)] ⎜ ↳ Wacom ISDv4 E6 Pen eraser id=17 [slave pointer (2)] ⎜ ↳ TPPS/2 IBM TrackPoint id=18 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Integrated Camera id=9 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=14 [slave keyboard (3)] ↳ ThinkPad Extra Buttons id=16 [slave keyboard (3)]找到TouchPad 的id数, 比如我的id=15
#xinput set-prop 15 "Device Enabled" 0
如果要查看电池的相关信息, 可以去
/sys/class/power_supply/BAT* 下看电池的详细信息, 或者直接ACPI看简单的电池信息
如果要节能控制电源等, 可以看看TLP, 德国人开发的一个优化.
地址在:http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html