[*]Device Drivers - HID Support - Special HID Drivers - Wacom Intuos/Graphire tablet support (USB)
[*]Device Drivers - Input device support - Tablets - Wacom protocol 4 serial tablet support
emerge -av xf86-input-wacom
xsetwacom --list devices
Wacom Bamboo Pen Pen stylus id: 10 type: STYLUS
Wacom Bamboo Pen Pen eraser id: 12 type: ERASER
[ 1686.785] (EE) BUG: triggered 'if (in_input_thread())'
[ 1686.785] (EE) BUG: /var/tmp/portage/x11-base/xorg-server-1.19.3/work/xorg-server-1.19.3/os/io.c:656 in WriteToClient()
[ 1686.785] (EE) ******** WriteToClient called from input thread *********
[ 1686.785] (EE)
[ 1686.785] (EE) Backtrace:
[ 1686.785] (EE) 0: /usr/bin/X (xorg_backtrace+0x4e) [0x59160e]
[ 1686.785] (EE) 1: /usr/bin/X (WriteToClient+0x17b) [0x594c6b]
[ 1686.785] (EE) 2: /usr/bin/X (WriteEventsToClient+0x202) [0x4416b2]
[ 1686.785] (EE) 3: /usr/bin/X (TryClientEvents+0x132) [0x4418b2]
[ 1686.785] (EE) 4: /usr/bin/X (0x400000+0x45295) [0x445295]
[ 1686.785] (EE) 5: /usr/bin/X (DeliverEventsToWindow+0x21e) [0x4455ce]
[ 1686.785] (EE) 6: /usr/bin/X (0x400000+0x120251) [0x520251]
[ 1686.785] (EE) 7: /usr/bin/X (0x400000+0x12accc) [0x52accc]
[ 1686.785] (EE) 8: /usr/bin/X (XIChangeDeviceProperty+0x2ad) [0x52b64d]
[ 1686.785] (EE) 9: /usr/lib64/xorg/modules/input/wacom_drv.so (0x7f4c320b1000+0xe592) [0x7f4c320bf592]
[ 1686.785] (EE) 10: /usr/lib64/xorg/modules/input/wacom_drv.so (0x7f4c320b1000+0x6c6f) [0x7f4c320b7c6f]
[ 1686.785] (EE) 11: /usr/lib64/xorg/modules/input/wacom_drv.so (0x7f4c320b1000+0x74c4) [0x7f4c320b84c4]
[ 1686.785] (EE) 12: /usr/lib64/xorg/modules/input/wacom_drv.so (0x7f4c320b1000+0xbd97) [0x7f4c320bcd97]
[ 1686.785] (EE) 13: /usr/lib64/xorg/modules/input/wacom_drv.so (0x7f4c320b1000+0x5e71) [0x7f4c320b6e71]
[ 1686.785] (EE) 14: /usr/lib64/xorg/modules/input/wacom_drv.so (0x7f4c320b1000+0x5f0a) [0x7f4c320b6f0a]
[ 1686.785] (EE) 15: /usr/bin/X (0x400000+0x1937dc) [0x5937dc]
[ 1686.785] (EE) 16: /usr/bin/X (0x400000+0x195e49) [0x595e49]
[ 1686.785] (EE) 17: /usr/bin/X (0x400000+0x193626) [0x593626]
[ 1686.785] (EE) 18: /lib64/libpthread.so.0 (0x7f4c3eceb000+0x7466) [0x7f4c3ecf2466]
[ 1686.785] (EE) 19: /lib64/libc.so.6 (clone+0x6d) [0x7f4c3ea3b71d]
sudo apt-get install mingw-w64
i686-w64-mingw32-gcc -o ii2d32-64bit.exe ii2d.c
x86_64-w64-mingw32-gcc -o ii2d64bit.exe ii2d.c
pi@raspberrypi:~/button_test $ sudo python PanicButton.py
Traceback (most recent call last):
File "PanicButton.py", line 10, in <module>
import usb.core
ImportError: No module named core
pi@raspberrypi:~/button_test $ sudo pip install pyusb
Requirement already satisfied (use --upgrade to upgrade): pyusb in /usr/lib/python2.7/dist-packages
pi@raspberrypi:~/button_test $ sudo pip uninstall pyusb
Not uninstalling pyusb at /usr/lib/python2.7/dist-packages, owned by OS
tar xzvf pyusb-1.0.0-a1.tar.gz
cd pyusb-1.0.0-a1/
sudo python setup.py install
sudo python3 setup.py install
pi@raspberrypi:~/button_test $ sudo python3 PanicButton.py
File "PanicButton.py", line 21
except Exception, e:
^
SyntaxError: invalid syntax
pi@raspberrypi:~/button_test $ sudo python PanicButton.py
Traceback (most recent call last):
File "PanicButton.py", line 33, in <module>
button = PanicButton()
File "PanicButton.py", line 17, in __init__
raise ValueError("Panic Button not found")
ValueError: Panic Button not found
pi@raspberrypi:~/button_test $ sudo python PanicButton.py
Pressed
Pressed
Pressed
pi@raspberrypi:~/button_test $ sudo python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import usb.core
>>> dev = usb.core.find(idVendor=0x1130, idProduct=0x0202)
>>> dev
<usb.core.Device object at 0xb67c5b70>
>>> dev.detach_kernel_driver(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/dist-packages/usb/core.py", line 695, in detach_kernel_driver
self._ctx.backend.detach_kernel_driver(self._ctx.handle, interface)
File "/usr/local/lib/python3.4/dist-packages/usb/_debug.py", line 52, in do_trace
return f(*args, **named_args)
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb10.py", line 565, in detach_kernel_driver
_check(_lib.libusb_detach_kernel_driver(dev_handle, intf))
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb10.py", line 357, in _check
raise USBError(_str_error[retval.value])
usb.core.USBError: Entity not found
>>> dev.ctrl_transfer(bmRequestType=0xA1, bRequest=1, wValue=0x300, data_or_wLength=8, timeout=500)[0]
0
>>> dev.ctrl_transfer(bmRequestType=0xA1, bRequest=1, wValue=0x300, data_or_wLength=8, timeout=500)[0]
1
>>>
// NodeJS console app using the bcrypt module
const bcrypt = require('bcrypt');
console.log('Bcrypt node module example');
console.log('==========================');
var password='default';
var hash;
var workload=12;
if (process.argv.length>=4) {
password=process.argv[2];
workload=parseInt(process.argv[3], 10);
console.log('Input parameters');
console.log('================');
console.log('Password:'+password);
console.log('Workload:'+workload);
if (process.argv.length==5) {
hash=process.argv[4];
console.log('Hash:'+hash);
}
} else {
console.log('Usage');
console.log('[password] [workload] (hash)' + process.argv.length);
return;
}
bcrypt.hash(password, workload, function(err, hash) {
console.log('================');
console.log('New hash:' + hash);
if (err) console.log('Hash generation error:' + err);
});
if (hash) {
bcrypt.compare(password, hash, function(err, res) {
if(res) {
console.log('Password matched');
} else {
console.log('No match');
}
if (err) console.log('Compare error:' + err);
});
}
email
root
flog archives
Disclaimer:
This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk
I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk
In fact I'm not responsible for anything ever, so there!