Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: [gentoo-user] udev rules for an iPod Touch?
Date: Thu, 03 Nov 2011 21:33:50
Message-Id: CAK2H+ed+GVof1UeRRim53mVoim-cEZ_0StY8NGZ=iJm4kREfjA@mail.gmail.com
1 Hi,
2 I was looking at an app called gtkpod which looks like something my
3 wife might use to sync her iPod Touch. The gtkpod manual suggests that
4 when the system is setup correctly if I plug in her iPod I should see
5 it show up in dmesg as a USB disk. Currently I do not:
6
7 [ 163.164161] usb 2-4: new high speed USB device number 3 using ehci_hcd
8 [ 163.280726] usb 2-4: New USB device found, idVendor=05ac, idProduct=1291
9 [ 163.280731] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
10 [ 163.280734] usb 2-4: Product: iPod
11 [ 163.280737] usb 2-4: Manufacturer: Apple Inc.
12 [ 163.280739] usb 2-4: SerialNumber: REMOVED-BY-MARK
13
14 The manual also talks about making some udev rules, an example shown here:
15
16 #80GB IPOD
17 SUBSYSTEMS=="usb", ATTRS{serial}=="000A2700XXXXXXXX", KERNEL=="sd?2", \
18 NAME="80gbipod", MODE="0664", OPTIONS="last_rule"
19
20 #4GB IPOD NANO
21 SUBSYSTEMS=="usb", ATTRS{serial}=="000A2700YYYYYYYY", KERNEL=="sd?2", \
22 NAME="4gbnano", MODE="0664", OPTIONS="last_rule"
23
24 Unfortunately it does not say what file to put these rules in so
25 from some other web pages I used /etc/udev/rules.d/60-ipod.rules.
26
27 c2stable ~ # ls -al /etc/udev/rules.d/
28 total 28
29 drwxr-xr-x 2 root root 4096 Nov 3 14:21 .
30 drwxr-xr-x 3 root root 4096 Jun 23 15:09 ..
31 -rw-r--r-- 1 root root 0 Jun 23 15:07 .keep_sys-fs_udev-0
32 -rw-r--r-- 1 root root 166 Nov 3 12:08 60-ipod.rules
33 -rw-r--r-- 1 root root 126 Nov 3 14:18 60-vmware.rules
34 -rw-r--r-- 1 root root 790 Apr 13 2010 70-persistent-cd.rules
35 -rw-r--r-- 1 root root 627 Jun 23 15:09 70-persistent-net.rules
36 -rw-r--r-- 1 root root 28 Jan 21 2011 99-fuse.rules
37 c2stable ~ #
38
39 I've removed the serial number for the sake of this thread but the
40 udev file number and the number I see in dmesg to match:
41
42 c2stable ~ # cat /etc/udev/rules.d/60-ipod.rules
43 #8GB IPOD Touch
44 SUBSYSTEMS=="usb", ATTRS{serial}=="SERIAL-NUMBER", KERNEL=="sd?2", \
45 NAME="8gbipodtouch", MODE="0664", OPTIONS="last_rule"
46 c2stable ~ #
47
48 I've rebuilt my kernel to include everything Apple oriented, as
49 well as USB oriented, that's discussed on this page:
50
51 http://www.gentoo-wiki.info/Apple_iPod
52
53 Still, when I plug the iPod in it shows up but not as a disk:
54
55 [ 79.115529] usb 2-4: new high speed USB device number 3 using ehci_hcd
56 [ 79.233277] usb 2-4: New USB device found, idVendor=05ac, idProduct=1291
57 [ 79.233282] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
58 [ 79.233285] usb 2-4: Product: iPod
59 [ 79.233288] usb 2-4: Manufacturer: Apple Inc.
60 [ 79.233291] usb 2-4: SerialNumber: SERIAL-NUMBER
61
62
63 Does anyone here have this working? Can you see what I might be doing wrong?
64
65 One possibly clue is that when I plug the iPod in KDE is popping up
66 a message about a new camera being attached. I assume KDE is behind
67 udev rules in terms of priority, but if not then possibly KDE is
68 somehow blocking it showing up as a USB device? If I remove it from
69 the KDE Camera Settings it just gets created the next time I plug it
70 in.
71
72 Thanks,
73 Mark

Replies

Subject Author
Re: [gentoo-user] udev rules for an iPod Touch? "Jorge Martínez López" <jorgeml@×××××.com>