Re: Mokomaze as non-root

2009-05-08 Thread Rask Ingemann Lambertsen
On Wed, May 06, 2009 at 10:59:20PM -0500, The Digital Pioneer wrote:
 Not sure what all issues you're experiencing, but the accelerometers are
 probably root:root access only (they are on mine, SHR-unstable), if that's
 your problem. You can probably chmod them manually, but I'm sure you can mod
 some conf somewhere to change it. Not sure what...

   Comparing SHR unstable (from about 3 weeks ago)
/etc/udev/rules.d/permissions.rules

# input devices
KERNEL==event[0-9]*, ATTRS{name}==*dvb*|*DVB*|* IR * \
MODE=0664,GROUP=video
KERNEL==js[0-9]*, MODE=0664
KERNEL==lirc[0-9]*,   GROUP=video

with Debian /lib/udev/rules.d/91-permissions.rules

# input devices
KERNEL==event[0-9]*, ATTRS{name}==*dvb*|*DVB*|* IR * \
MODE=0664,GROUP=video
KERNEL==js[0-9]*, MODE=0664
KERNEL==event[0-9]*, ENV{ID_CLASS}==joystick, \
MODE=0664,GROUP=audio
KERNEL==lirc[0-9]*,   GROUP=video

there's a difference in the input device section and indeed I have some
input devices with group audio and read permission for everybody:

# ls -l /dev/input/
total 0
crw-rw 1 root root  13, 64 May  5 11:39 event0
crw-rw 1 root root  13, 65 May  5 11:39 event1
crw-rw-r-- 1 root audio 13, 66 May  5 11:39 event2
crw-rw-r-- 1 root audio 13, 67 May  5 11:39 event3
crw-rw 1 root root  13, 68 May  5 11:39 event4
crw-rw 1 root root  13, 63 May  5 11:39 mice

-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Mokomaze as non-root

2009-05-07 Thread Timo Juhani Lindfors
The Digital Pioneer digitalpion...@gmail.com writes:
 Not sure what all issues you're experiencing, but the accelerometers are
 probably root:root access only (they are on mine, SHR-unstable), if that's
 your problem. You can probably chmod them manually, but I'm sure you can mod
 some conf somewhere to change it. Not sure what...

The largest problem are those /sys files, you can't change their permissions.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Mokomaze as non-root

2009-05-07 Thread Rui Miguel Silva Seabra
On Thu, May 07, 2009 at 12:44:20PM +0300, Timo Juhani Lindfors wrote:
 The Digital Pioneer digitalpion...@gmail.com writes:
  Not sure what all issues you're experiencing, but the accelerometers are
  probably root:root access only (they are on mine, SHR-unstable), if that's
  your problem. You can probably chmod them manually, but I'm sure you can mod
  some conf somewhere to change it. Not sure what...
 
 The largest problem are those /sys files, you can't change their permissions.

What do you need them for? In OmNewRotate I use /dev/input/events3 and it always
works regardless of kernel!

Rui

-- 
Kallisti!
Today is Boomtime, the 54th day of Discord in the YOLD 3175
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Gandhi
+ So let's do it...?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Mokomaze as non-root

2009-05-07 Thread Timo Juhani Lindfors
Rui Miguel Silva Seabra r...@1407.org writes:
 What do you need them for? In OmNewRotate I use /dev/input/events3 and it 
 always
 works regardless of kernel!

lindi1:~/debian/debian-mokomaze/mokomaze-0.5.0$ grep -r /sys src/*c
src/accelerometers.c:   fh = 
fopen(/sys/devices/platform/lis302dl.2/threshold, mode);
src/accelerometers.c:   fh = 
fopen(/sys/class/i2c-adapter/i2c-0/0-0073/lis302dl.2/threshold, mode);
src/accelerometers.c:   fh = 
fopen(/sys/class/i2c-adapter/i2c-0/0-0073/spi_s3c24xx_gpio.0/spi3.1/threshold,
 mode);
src/vibro.c:fvibro = fopen(/sys/class/leds/neo1973:vibrator/brightness, 
w);
src/vibro.c:fvibro = 
fopen(/sys/devices/platform/neo1973-vibrator.0/leds/neo1973:vibrator/brightness,
 w);


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Mokomaze as non-root

2009-05-07 Thread Rui Miguel Silva Seabra
On Thu, May 07, 2009 at 02:57:13PM +0300, Timo Juhani Lindfors wrote:
 Rui Miguel Silva Seabra r...@1407.org writes:
  What do you need them for? In OmNewRotate I use /dev/input/events3 and it 
  always
  works regardless of kernel!
 
 lindi1:~/debian/debian-mokomaze/mokomaze-0.5.0$ grep -r /sys src/*c
 src/accelerometers.c:   fh = 
 fopen(/sys/devices/platform/lis302dl.2/threshold, mode);
 src/accelerometers.c:   fh = 
 fopen(/sys/class/i2c-adapter/i2c-0/0-0073/lis302dl.2/threshold, mode);
 src/accelerometers.c:   fh = 
 fopen(/sys/class/i2c-adapter/i2c-0/0-0073/spi_s3c24xx_gpio.0/spi3.1/threshold,
  mode);
 src/vibro.c:fvibro = fopen(/sys/class/leds/neo1973:vibrator/brightness, 
 w);
 src/vibro.c:fvibro = 
 fopen(/sys/devices/platform/neo1973-vibrator.0/leds/neo1973:vibrator/brightness,
  w);

Ah oops, that's true :(

Rui

-- 
All Hail Discordia!
Today is Boomtime, the 54th day of Discord in the YOLD 3175
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Gandhi
+ So let's do it...?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Mokomaze as non-root

2009-05-06 Thread The Digital Pioneer
Not sure what all issues you're experiencing, but the accelerometers are
probably root:root access only (they are on mine, SHR-unstable), if that's
your problem. You can probably chmod them manually, but I'm sure you can mod
some conf somewhere to change it. Not sure what...
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community