Skip to content

Instantly share code, notes, and snippets.

@drichert
Created June 14, 2011 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drichert/1025458 to your computer and use it in GitHub Desktop.
Save drichert/1025458 to your computer and use it in GitHub Desktop.
Wacom Bamboo Pen / SuperCollider GeneralHID
d = GeneralHID.buildDeviceList // Output below
/*
[ GeneralHID forwarding to scheme:, deviceList, [ ] ]
[ [ /dev/input/event0, a GeneralHIDInfo(Lid Switch, 0x0019, 0x0000, 0x0005, 0x0000, PNP0C0D/button/input0, ) ], [ /dev/input/event1, a GeneralHIDInfo(Sleep Button, 0x0019, 0x0000, 0x0003, 0x0000, PNP0C0E/button/input0, ) ], [ /dev/input/event10, a GeneralHIDInfo(TPPS/2 IBM TrackPoint, 0x0011, 0x0002, 0x000A, 0x0000, synaptics-pt/serio0/input0, ) ], [ /dev/input/event2, a GeneralHIDInfo(Power Button, 0x0019, 0x0000, 0x0001, 0x0000, LNXPWRBN/button/input0, ) ], [ /dev/input/event3, a GeneralHIDInfo(AT Transla...etc...
*/
GeneralHID.postDevices // Output below
/*
[ GeneralHID forwarding to scheme:, postDevices, [ ] ]
[ 0, "/dev/input/event0", "a GeneralHIDInfo(Lid Switch, 0x0019, 0x0000, 0x0005, 0x0000, PNP0C0D/button/input0, )" ]
[ 1, "/dev/input/event1", "a GeneralHIDInfo(Sleep Button, 0x0019, 0x0000, 0x0003, 0x0000, PNP0C0E/button/input0, )" ]
[ 2, "/dev/input/event10", "a GeneralHIDInfo(TPPS/2 IBM TrackPoint, 0x0011, 0x0002, 0x000A, 0x0000, synaptics-pt/serio0/input0, )" ]
[ 3, "/dev/input/event2", "a GeneralHIDInfo(Power Button, 0x0019, 0x0000, 0x0001, 0x0000, LNXPWRBN/button/input0, )" ]
[ 4, "/dev/input/event3", "a GeneralHIDInfo(AT Translated Set 2 keyboard, 0x0011, 0x0001, 0x0001, 0xAB54, isa0060/serio0/input0, )" ]
[ 5, "/dev/input/event4", "a GeneralHIDInfo(Wacom Bamboo Pen Pen, 0x0003, 0x056A, 0x00D4, 0x0106, , )" ]
[ 6, "/dev/input/event5", "a GeneralHIDInfo(Wacom Bamboo Pen Finger, 0x0003, 0x056A, 0x00D4, 0x0106, , )" ]
[ 7, "/dev/input/event6", "a GeneralHIDInfo(Integrated Camera, 0x0003, 0x17EF, 0x480F, 0x2345, usb-0000:00:1a.0-1.6/button, )" ]
[ 8, "/dev/input/event7", "a GeneralHIDInfo(ThinkPad Extra Buttons, 0x0019, 0x17AA, 0x5054, 0x4101, thinkpad_acpi/input0, )" ]
[ 9, "/dev/input/event8", "a GeneralHIDInfo(Video Bus, 0x0019, 0x0000, 0x0006, 0x0000, LNXVIDEO/video/input0, )" ]
[ 10, "/dev/input/event9", "a GeneralHIDInfo(SynPS/2 Synaptics TouchPad, 0x0011, 0x0002, 0x0007, 0x01B1, isa0060/serio1/input0, )" ]
GLID
*/
// Opening Wacom Bamboo Pen device
a = GeneralHID.open(d[5]) // Output below
/*
LID: added device 0x237af60
LID could not retrieve physical location (error: No such file or directory)
LID could not get unique identifier (error: No such file or directory)
a GeneralHIDDevice
*/
a.debug_(true) // <-- produces no output when pushing buttons, etc
// Opening Wacom Bamboo Finger device
a.close
a = GeneralHID.open(d[6]) // Output below
/*
LID: added device 0x237af60
LID could not retrieve physical location (error: No such file or directory)
LID could not get unique identifier (error: No such file or directory)
a GeneralHIDDevice
*/
a.debug_(true) // <-- produces no output when using pen on tablet
/*
I was thinking the LID errors re: physical location / unique identifier may have
been the issue, but I get those errors when opening device ID 2 (TrackPoint)
which *does* produces debug output
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment