You are not logged in.

#1 2008-04-04 18:30:58

echasslau
Member
Registered: 2007-09-21
Posts: 113

udev rule for mobile phone

Hi.

I want to sync my phone with my laptop but the udev rule don't want to work.
I did it like descriped here: http://libsyncml.opensync.org/wiki/obex-guide

# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 005: ID 0fce:d042 Sony Ericsson Mobile Communications AB
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
# vi /etc/udev/rules.d/w810i.rules
BUS=="usb", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="d042", MODE="0660", GROUP="users"
# udevcontrol reload_rules

But i can't connect as user to the mobile - as root it works as expected.
Any ideas?

Thanks, Andreas

Offline

#2 2008-04-04 22:10:41

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: udev rule for mobile phone

Try changing the last part of your udev rule to: MODE:="0660", GROUP:="users". You should also change SYSFS to ATTR (or ATTRS if it doesn't work).

Last edited by lanrat (2008-04-04 22:25:49)

Offline

#3 2008-04-04 22:13:14

SlodS
Member
Registered: 2007-03-21
Posts: 20

Re: udev rule for mobile phone

I'm pretty sure it's the same problem as described in comments of this bug report: http://bugs.archlinux.org/task/9935#comment26467
As a workaround maybe you can substitute the idVendor attribute with another(s).

Offline

#4 2008-04-06 19:27:27

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: udev rule for mobile phone

@lanrat:
Your advices didn't help.
@SlodS:
You're right, idVendor was it...
Thanks for helping, now it works but now the last libsoup update brokes syncml... sad

Offline

#5 2008-04-06 20:01:07

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: udev rule for mobile phone

Ok, i fixed it for my own - a new package for the old lib smile
http://aur.archlinux.org/packages.php?ID=16216

Offline

Board footer

Powered by FluxBB