Hi to all,
I'm trying to write a very simple application ( python + elementary ) to
control usb mode.
It should be like the usual dialog on the latest smartphone ( like the palm
pre for example )that let you choose between USB Mass Storage, USB network
etc..
To show up the application when you plug the usb cable I've thought about an
udev rule.
After installing it ( since lastest shr-u don't use it) I've written the
following rule (aided by udevadm monitor and info ):
SUBSYSTEM=="power_supply", DRIVER=="", ACTION=="change", ATTR{type}=="USB",
ATTR{online}=="1", KERNEL=="usb", RUN+=="/home/root/usbmode.py"
( it looks at device looking at device
'/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-mbc/power_supply/usb
checking if attribute online change to 1 )
But it doesn't work :(
I've tried different combination with the same result.
Searching over the net I found very similar rules ( for example:
http://www.palmix.org/vaio.html ) so.. what's the problem I don't know.
Do you have any idea?
Otherwise, there's another way to launch the app when you plug the cable?
--
Marco aka Delian
On IRC freenode: /marco
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel