Re: [PD] HID problem in Xubuntu.

2009-07-27 Thread Diego Azar
Hans, Daniel, 

Hi again,

I made a 90-puredata.rules  file in /lib/udev/rules.d/ containing the following 
line:

KERNEL==event[0-9]*, MODE=0660, GROUP=plugdev

The evdev EVIOCGABS ioctl: Invalid argument doesn't appear anymore but [hid] 
still can't recieve data from de /dev/input/event8 that is where my touchpad is 
located.

I tried copying the 90.puredata.rules file to the old ubuntu udev rules 
directory  (/etc/udev/rules.d/) but it didn't work either. I also tried both 
modes (0660 and 0666). 

Am I doing something wrong?

thanks again, 

Diego.


--- On Sat, 7/18/09, Hans-Christoph Steiner h...@at.or.at wrote:

From: Hans-Christoph Steiner h...@at.or.at
Subject: Re: [PD] HID problem in Xubuntu.
To: Daniel Wilcox danomat...@gmail.com
Cc: Diego Azar dazar...@yahoo.com, pd-list@iem.at
Date: Saturday, July 18, 2009, 10:31 PM


Hey Dan,

Making a 90-puredata.rules file and including it in the package sounds
like a good idea.  We will need to be careful with the permissions
stuff, I don't want to be responsible for lots of people getting their
machines pwned via pd ;)  I imagine MODE=0666 is not necessary, for
example, MODE=0660 with the plugdev group should work and be more
secure.

If you have something sketched out, how about committing it to the SVN,
or posting it to the patch tracker.  Or really whatever it takes to get
people to contribute work on this stuff.  I don't know the udev stuff
really, so I don't have much to contribute there.

I see no reason not to include the .rules file in the Pd-extended
package, we'll just have to work out the security details if its going
to be loaded by default.

.hc

On Fri, 2009-07-17 at 12:53 +0200, Daniel Wilcox wrote:
 
         Hi? Hans,
         
         I've been checking the archives and found only one issue that
         has to do with the ubuntu problem and sais to put this line:
         KERNEL==event[0-9]*,                  MODE=0666
         
         in /etc/udev/rules.d/40-
         permissions.rules file.
         
         The problem is that xubuntu 9.04 (jaunty) doesn't have this
         file
         any more and permissions.rules, i think, are given in other
         archives...
         i'm looking in ubuntu forums to see what can i do... If
         someone
         knows something about...
         
 
 If you are using  Ubuntu/Xubuntu Jaunty, the udev permissions files
 have been moved to /lib/udev/rules.d:
 https://lists.ubuntu.com/archives/jaunty-changes/2009-January/002619.html
 
 As for the above, you can try adding the group to plugdev, something
 like
 
 KERNEL==event[0-9]*,                   MODE=0666, GROUP=plugdev
 
 since all users should be in the plugdev group.
 
 I use this technique to open the mouse on my visual application which
 uses sdl and runs from a basic terminal without X:
 
 KERNEL==mouse*                      GROUP=plugdev
 
 There is also no need to modify the existing udev rule files since
 they are read sequentially and can overwrite each other.
 So, following the debian udev rule naming convention, if you make a
 file called 90-puredata.rules and put the event rule
 in there, it should override or modify the existing default rule.
 
 Hans, it should be totally possible to ship a pd Ubuntu .deb that can
 install this automatically as I've done this with my own
 tools.  I can help with this if needed, I just havent used [hid] much.
 
 Also, udev is really picky ... make sure each rule is on one line or
 it will fail.  You can also use the udev tools to test each script
 for parse errors, but I'm at work on a Hardy machine so I can't give
 you the command right now.  The udev admin script changed names
 between versions.
 
 
 -- 
 Dan Wilcox
 danomatika
 www.robotcowboy.com
 ___
 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


Re: [PD] HID problem in Xubuntu.

2009-07-19 Thread Hans-Christoph Steiner

Hey Dan,

Making a 90-puredata.rules file and including it in the package sounds
like a good idea.  We will need to be careful with the permissions
stuff, I don't want to be responsible for lots of people getting their
machines pwned via pd ;)  I imagine MODE=0666 is not necessary, for
example, MODE=0660 with the plugdev group should work and be more
secure.

If you have something sketched out, how about committing it to the SVN,
or posting it to the patch tracker.  Or really whatever it takes to get
people to contribute work on this stuff.  I don't know the udev stuff
really, so I don't have much to contribute there.

I see no reason not to include the .rules file in the Pd-extended
package, we'll just have to work out the security details if its going
to be loaded by default.

.hc

On Fri, 2009-07-17 at 12:53 +0200, Daniel Wilcox wrote:
 
 Hi? Hans,
 
 I've been checking the archives and found only one issue that
 has to do with the ubuntu problem and sais to put this line:
 KERNEL==event[0-9]*,  MODE=0666
 
 in /etc/udev/rules.d/40-
 permissions.rules file.
 
 The problem is that xubuntu 9.04 (jaunty) doesn't have this
 file
 any more and permissions.rules, i think, are given in other
 archives...
 i'm looking in ubuntu forums to see what can i do... If
 someone
 knows something about...
 
 
 If you are using  Ubuntu/Xubuntu Jaunty, the udev permissions files
 have been moved to /lib/udev/rules.d:
 https://lists.ubuntu.com/archives/jaunty-changes/2009-January/002619.html
 
 As for the above, you can try adding the group to plugdev, something
 like
 
 KERNEL==event[0-9]*,   MODE=0666, GROUP=plugdev
 
 since all users should be in the plugdev group.
 
 I use this technique to open the mouse on my visual application which
 uses sdl and runs from a basic terminal without X:
 
 KERNEL==mouse*  GROUP=plugdev
 
 There is also no need to modify the existing udev rule files since
 they are read sequentially and can overwrite each other.
 So, following the debian udev rule naming convention, if you make a
 file called 90-puredata.rules and put the event rule
 in there, it should override or modify the existing default rule.
 
 Hans, it should be totally possible to ship a pd Ubuntu .deb that can
 install this automatically as I've done this with my own
 tools.  I can help with this if needed, I just havent used [hid] much.
 
 Also, udev is really picky ... make sure each rule is on one line or
 it will fail.  You can also use the udev tools to test each script
 for parse errors, but I'm at work on a Hardy machine so I can't give
 you the command right now.  The udev admin script changed names
 between versions.
 
 
 -- 
 Dan Wilcox
 danomatika
 www.robotcowboy.com
 ___
 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


Re: [PD] HID problem in Xubuntu.

2009-07-17 Thread Daniel Wilcox
 Hi? Hans,

 I've been checking the archives and found only one issue that has to do
 with the ubuntu problem and sais to put this line:
 KERNEL==event[0-9]*,  MODE=0666

 in /etc/udev/rules.d/40-permissions.rules file.

 The problem is that xubuntu 9.04 (jaunty) doesn't have this file
 any more and permissions.rules, i think, are given in other archives...
 i'm looking in ubuntu forums to see what can i do... If someone
 knows something about...


If you are using  Ubuntu/Xubuntu Jaunty, the udev permissions files have
been moved to /lib/udev/rules.d:
https://lists.ubuntu.com/archives/jaunty-changes/2009-January/002619.html

As for the above, you can try adding the group to plugdev, something like

KERNEL==event[0-9]*,   MODE=0666, GROUP=plugdev

since all users should be in the plugdev group.

I use this technique to open the mouse on my visual application which uses
sdl and runs from a basic terminal without X:

KERNEL==mouse*  GROUP=plugdev

There is also no need to modify the existing udev rule files since they are
read sequentially and can overwrite each other.
So, following the debian udev rule naming convention, if you make a file
called 90-puredata.rules and put the event rule
in there, it should override or modify the existing default rule.

Hans, it should be totally possible to ship a pd Ubuntu .deb that can
install this automatically as I've done this with my own
tools.  I can help with this if needed, I just havent used [hid] much.

Also, udev is really picky ... make sure each rule is on one line or it will
fail.  You can also use the udev tools to test each script
for parse errors, but I'm at work on a Hardy machine so I can't give you the
command right now.  The udev admin script changed names
between versions.

-- 
Dan Wilcox
danomatika
www.robotcowboy.com
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] HID problem in Xubuntu.

2009-07-16 Thread Diego Azar
Hi  Hans,

I've been checking the archives and found only one issue that has to do with 
the ubuntu problem and sais to put this line:
KERNEL==event[0-9]*,  MODE=0666

in /etc/udev/rules.d/40-permissions.rules file.

The problem is that xubuntu 9.04 (jaunty) doesn't have this file 
any more and permissions.rules, i think, are given in other archives... 
i'm looking in ubuntu forums to see what can i do... If someone 
knows something about...

I have already tried to create the archive but it didn't work 
either.

thanks again,

Diego.

--- On Wed, 7/15/09, Hans-Christoph Steiner h...@at.or.at wrote:

From: Hans-Christoph Steiner h...@at.or.at
Subject: Re: [PD] HID problem in Xubuntu.
To: Diego Azar dazar...@yahoo.com
Cc: Simon Wise simonzw...@gmail.com, PD-List pd-list@iem.at
Date: Wednesday, July 15, 2009, 7:30 PM


Chances are that the trackpad is an USB device, but just internal.  But I don't 
think that's the issue.  I think in recent versions of Ubuntu, the X server or 
related process grabs the keyboard and mice using exclusive access.  You have 
to tell the X server to not use the mice that you want to use with [hid].  
Check the archives, there is quite a bit of discussion about it.  It would be 
great to have a wiki page about this...
.hc
On Jul 15, 2009, at 12:26 PM, Diego Azar wrote:
Hi Simon,

Thanks for the fast response. No, it isn't. It's the standard  synaptic 
touchpad that comes with many laptops. 

Diego.

--- On Wed, 7/15/09, Simon Wise simonzw...@gmail.com wrote:

From: Simon Wise simonzw...@gmail.com
Subject: Re: [PD] HID problem in Xubuntu.
To: Diego Azar dazar...@yahoo.com
Cc: PD-List pd-list@iem.at
Date: Wednesday, July 15, 2009, 11:14 AM

Diego Azar wrote:
 Hi,
 
 I'm trying to use de hid librari in Xubuntu.
 I installed pd-hid.deb package without trouble and everything works perfect 
 (usb mouse, keyboard, etc) except for the touchpad. It's not a permission 
 issue, i've already gave permission to /dev/input/event0-9 and 
 /dev/input/mouse0-2.

is your touchpad a USB HID device?

Simon

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

 




Free software means you control what your computer does. Non-free software 
means someone else controls that, and to some extent controls you. - Richard 
M. Stallman
 



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


[PD] HID problem in Xubuntu.

2009-07-15 Thread Diego Azar
Hi,

I'm trying to use de hid librari in Xubuntu.
I installed pd-hid.deb package without trouble and everything works perfect 
(usb mouse, keyboard, etc) except for the touchpad. It's not a permission 
issue, i've already gave permission to /dev/input/event0-9 and 
/dev/input/mouse0-2.

In my laptop the touchpad is located in /dev/input/event8, and when I give the 
[hid] object the message [open 8(, the console gives this result: evdev 
EVIOCGABS ioctl: Invalid argument and hid don't output any value.

I searched in the list archives but couldn't find any help. It was a message 
reporting a similar problem with a tablet but the replies didn't work for me.

thanks,

Diego.






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


Re: [PD] HID problem in Xubuntu.

2009-07-15 Thread Simon Wise

Diego Azar wrote:

Hi,

I'm trying to use de hid librari in Xubuntu.
I installed pd-hid.deb package without trouble and everything works 
perfect (usb mouse, keyboard, etc) except for the touchpad. It's not a 
permission issue, i've already gave permission to /dev/input/event0-9 
and /dev/input/mouse0-2.


is your touchpad a USB HID device?

Simon

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


Re: [PD] HID problem in Xubuntu.

2009-07-15 Thread Diego Azar
Hi Simon,

Thanks for the fast response. No, it isn't. It's the standard  synaptic 
touchpad that comes with many laptops. 

Diego.

--- On Wed, 7/15/09, Simon Wise simonzw...@gmail.com wrote:

From: Simon Wise simonzw...@gmail.com
Subject: Re: [PD] HID problem in Xubuntu.
To: Diego Azar dazar...@yahoo.com
Cc: PD-List pd-list@iem.at
Date: Wednesday, July 15, 2009, 11:14 AM

Diego Azar wrote:
 Hi,
 
 I'm trying to use de hid librari in Xubuntu.
 I installed pd-hid.deb package without trouble and everything works perfect 
 (usb mouse, keyboard, etc) except for the touchpad. It's not a permission 
 issue, i've already gave permission to /dev/input/event0-9 and 
 /dev/input/mouse0-2.

is your touchpad a USB HID device?

Simon



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


Re: [PD] HID problem in Xubuntu.

2009-07-15 Thread Hans-Christoph Steiner


Chances are that the trackpad is an USB device, but just internal.   
But I don't think that's the issue.  I think in recent versions of  
Ubuntu, the X server or related process grabs the keyboard and mice  
using exclusive access.  You have to tell the X server to not use the  
mice that you want to use with [hid].  Check the archives, there is  
quite a bit of discussion about it.  It would be great to have a wiki  
page about this...


.hc

On Jul 15, 2009, at 12:26 PM, Diego Azar wrote:


Hi Simon,

Thanks for the fast response. No, it isn't. It's the standard   
synaptic touchpad that comes with many laptops.


Diego.

--- On Wed, 7/15/09, Simon Wise simonzw...@gmail.com wrote:

From: Simon Wise simonzw...@gmail.com
Subject: Re: [PD] HID problem in Xubuntu.
To: Diego Azar dazar...@yahoo.com
Cc: PD-List pd-list@iem.at
Date: Wednesday, July 15, 2009, 11:14 AM

Diego Azar wrote:
 Hi,

 I'm trying to use de hid librari in Xubuntu.
 I installed pd-hid.deb package without trouble and everything  
works perfect (usb mouse, keyboard, etc) except for the touchpad.  
It's not a permission issue, i've already gave permission to /dev/ 
input/event0-9 and /dev/input/mouse0-2.


is your touchpad a USB HID device?

Simon

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








Free software means you control what your computer does. Non-free  
software means someone else controls that, and to some extent controls  
you. - Richard M. Stallman



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


Re: [PD] HID problem in Xubuntu.

2009-07-15 Thread Phil Stone
I have a similar, but slightly different, problem on OS X  (10.4, 
Macbook pro).  A Logitech Marble Mouse (trackball) shows up as device 0, 
but I can't get any data out of it.  The trackpad, on the other hand, is 
fully accessible through [hid].  Any ideas?



Phil



Hans-Christoph Steiner wrote:


Chances are that the trackpad is an USB device, but just internal. 
 But I don't think that's the issue.  I think in recent versions of 
Ubuntu, the X server or related process grabs the keyboard and mice 
using exclusive access.  You have to tell the X server to not use the 
mice that you want to use with [hid].  Check the archives, there is 
quite a bit of discussion about it.  It would be great to have a wiki 
page about this...


.hc

On Jul 15, 2009, at 12:26 PM, Diego Azar wrote:


Hi Simon,

Thanks for the fast response. No, it isn't. It's the standard  
synaptic touchpad that comes with many laptops.


Diego.

--- On *Wed, 7/15/09, Simon Wise /simonzw...@gmail.com 
mailto:simonzw...@gmail.com/* wrote:



From: Simon Wise simonzw...@gmail.com mailto:simonzw...@gmail.com
Subject: Re: [PD] HID problem in Xubuntu.
To: Diego Azar dazar...@yahoo.com mailto:dazar...@yahoo.com
Cc: PD-List pd-list@iem.at mailto:pd-list@iem.at
Date: Wednesday, July 15, 2009, 11:14 AM

Diego Azar wrote:
 Hi,

 I'm trying to use de hid librari in Xubuntu.
 I installed pd-hid.deb package without trouble and everything
works perfect (usb mouse, keyboard, etc) except for the touchpad.
It's not a permission issue, i've already gave permission to
/dev/input/event0-9 and /dev/input/mouse0-2.

is your touchpad a USB HID device?

Simon


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








Free software means you control what your computer does. Non-free 
software means someone else controls that, and to some extent controls 
you. - Richard M. Stallman





___
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