LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-30-2012, 11:39 AM   #1
gregkwaste
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Udev ipod touch automount with gvfs


I am completely frustrated with this, so i'd like some help.

The whole point is to make a udev rule to mount and unmount my ipod touch whenever i connect it, using gvfs-mount command, in order to be able to browse my device with rhythmbox.

so this is my udev rule file named 91-ipod.rules
i got it from arch wiki and tweaked it respectively

Code:
SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[13]/*", ENV{INTERFACE}=="255/*", ENV{dir_name}="ipod"
SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[024]/*", ENV{INTERFACE}=="255/*", ENV{dir_name}="iphone"
SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[13]", ENV{dir_name}="ipod", 
SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[024]", ENV{dir_name}="iphone"
SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129a", ENV{dir_name}="ipad"
SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129f", ENV{dir_name}="ipad2"

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", SYMLINK+="ipod", RUN+="/usr/bin/gvfs-mount afc://%s{serial}"
ACTION=="remove", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", RUN+="/usr/bin/gvfs-mount -u '%s{serial}'"
The problem is that the connection command doesn't execute...
The action line itself must be correct because symlink is being created in /dev
i've run udevadm test command to test the "add" action, and the run command is reported correctly.

But when i copy and run the reported run command, everything just works fine....

Has anybody any idea what should i do on this occassion?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UDEV: Unable to run a command line interface script after USB automount using udev mohamr2 Linux - Embedded & Single-board computer 8 08-16-2011 10:39 AM
MeeGo onto ipod touch? applecheeks Linux - Mobile 0 05-02-2011 10:14 PM
[SOLVED] ipod touch 4G on slackware 13.1 mukulrawat Slackware 15 03-01-2011 04:25 AM
ipod touch issues bloodyscript Linux - Newbie 12 02-17-2010 04:06 AM
Does anyone have experience with the iPod touch? johnson_steve Linux - Hardware 3 06-25-2008 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration