User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

notes:iphone_usbmuxd [2012/10/10 12:20]
andy created
notes:iphone_usbmuxd [2012/10/10 12:27]
andy Updated udev section.
Line 30: Line 30:
 <​code>​ <​code>​
 # Forces iDevices to the last USB configuration and runs usbmuxd # Forces iDevices to the last USB configuration and runs usbmuxd
-ACTION=="​add",​ SUBSYSTEM=="​usb",​ OWNER="​usbmux",​ ATTR{idVendor}=="​05ac",​ ATTR{idProduct}=="​12[9a][0-9a-f]",​+ACTION=="​add",​ SUBSYSTEM=="​usb",​ OWNER="​usbmux",​ 
 +    ​ATTR{idVendor}=="​05ac",​ ATTR{idProduct}=="​12[9a][0-9a-f]",​
     ENV{USBMUX_SUPPORTED}="​1",​ ATTR{bConfigurationValue}!="​$attr{bNumConfigurations}",​     ENV{USBMUX_SUPPORTED}="​1",​ ATTR{bConfigurationValue}!="​$attr{bNumConfigurations}",​
-    ATTR{bConfigurationValue}="​$attr{bNumConfigurations}",​ RUN+="/​usr/​sbin/​usbmuxd -u -U usbmux"​+    ATTR{bConfigurationValue}="​$attr{bNumConfigurations}",​ 
 +    ​RUN+="/​usr/​sbin/​usbmuxd -u -U usbmux"​
 </​code>​ </​code>​
-Note that **''​0x05ac''​** ​is the USB vendor ID for Apple.+The interpretation of this rule is as follows: 
 +  ​* **If** a USB device is being added 
 +    * **And** it has vendor ID of ''​0x05ac'' ​(Apple) 
 +    ​* **And** it has a product ID of ''​0x12[9a][0-9a-f]''​ 
 +    * **And** its USB configuration isn't currently ​the highest one available 
 +  * **Then** perform the following:​ 
 +    * Change the device'​s ​USB configuration to the highest available 
 +    * Set the device owner to the user ''​usbmux''​ 
 +    * Set the environment variable ''​USBMUX_SUPPORTED''​ 
 +    * Run ''/​usr/​sbin/​usbmuxd -u -U usbmux''​
notes/iphone_usbmuxd.txt · Last modified: 2012/10/12 08:32 (external edit)