When using [hid] and friends on GNU/Linux, you generally need to setup things so you have permission to read the device directly:

http://puredata.info/docs/tutorials/HowToReadHIDDevicesInLinuxWithoutBeingRoot/?searchterm=hid%20ubuntu

.hc

On Jun 19, 2010, at 11:20 AM, James Dunn wrote:

Hi dmotd,

that's perfect! thanks a lot

James

Quoth dmotd, on 19/06/10 16:02:
hi james,

the synaptics driver generally steals the focus of the device
so that userspace programs can't directly access it, see if
the Xorg option 'Option "GrabEventDevice" "false"' helps,
see 'man synaptics' for more info.

cheers,
dmotd

James Dunn wrote:

I've tried using [hid] and [linuxmouse] and both objects can open the device but no data is output from either object. [MouseState] and [cursor] both work but I was hoping to get relative values. Is this a driver issue? I'm using Ubuntu 8.04 and Pd version 0.42.5-extended-rc3. Here's the console output:

[hid] 0.7, written by Hans-Christoph Steiner<h...@eds.org>
    compiled on Jun 13 2010 at 11:45:43

Device 0: 'Macintosh mouse button emulation' on '/dev/input/event0'
Device 1: 'AT Translated Set 2 keyboard' on '/dev/input/event1'
Device 2: 'PC Speaker' on '/dev/input/event2'
Device 3: 'Power Button (FF)' on '/dev/input/event3'
Device 4: 'Sleep Button (CM)' on '/dev/input/event4'
Device 5: 'Lid Switch' on '/dev/input/event5'
Device 6: 'SynPS/2 Synaptics TouchPad' on '/dev/input/event6'
Device 7: 'Video Bus' on '/dev/input/event7'
Device 8: 'PS/2 Generic Mouse' on '/dev/input/event8'


Supported events:

Detected:
[hid] opened device 6 (/dev/input/event6): SynPS/2 Synaptics TouchPad
print: open 1
print: device 6


Also my xorg.conf has this info:

Section "InputDevice"
    Identifier  "Synaptics Touchpad"
    Driver      "synaptics"
    Option        "SendCoreEvents" "true"
    Option        "Device" "/dev/psaux"
    Option        "Protocol" "auto-dev"
    Option        "HorizEdgeScroll" "FALSE"
    Option        "VertEdgeScroll" "FALSE"
    Option        "SHMconfig" "on"
    Option        "VertTwoFingerScroll" "TRUE"
    Option        "HorizTwoFingerScroll" "TRUE"
EndSection


Any ideas?

thanks,

James


_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management ->  
http://lists.puredata.info/listinfo/pd-list





_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list



----------------------------------------------------------------------------

Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies. - Amy Smith



_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to