Not able to get ipad-charge package

Hello. SUSE was my first real Linux distro almost 10 years back. After a long time (after SUSE 9.3) I am coming back to openSUSE Tumbleweed now (after 13.2). First the horrible fonts rendering and unavailability of SMPlayer from the default repos warded me off but now I have installed Infinality with OS X rendering and Packman apparently finally got updated to the new Tumbleweed so I’m sort of sitting pretty (I hope this continues).

Now I need the ipad-charge package to enable my iPad to be properly charged from Linux. (See https://github.com/mkorenkov/ipad_charge and http://www.webupd8.org/2014/02/quickly-charge-your-iphone-or-ipad-in.html). So I found this OBS repo: https://build.opensuse.org/package/show/home:MargueriteSu/ipad-charge. On the right side the build results say that for Tumbleweed the build succeeded but if I click on Download Package on the top it says No data for home:MargueriteSu / ipad-charge. Not sure what to do. Please advise.

Hi
It’s present here;
http://download.opensuse.org/repositories/home:/MargueriteSu/openSUSE_Tumbleweed/

Never worried about a package, just plug it in to a usb port and it charges…

Hi thanks for the link. I installed the RPM from there but still the requisite charging is not happening. I don’t know what is your config that enables automatic charging. For me even after installing the package, running ipad_charge from a terminal gives the following error: ipad_charge: no such device or an error occured

but dmesg shows:

 4060.291296] usb 1-1.2: new high-speed USB device number 4 using ehci-pci
 4060.380357] usb 1-1.2: New USB device found, idVendor=05ac, idProduct=12ab
 4060.380368] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 4060.380373] usb 1-1.2: Product: iPad
 4060.380376] usb 1-1.2: Manufacturer: Apple Inc.
 4060.380380] usb 1-1.2: SerialNumber: 254613b381c2e5b143c9015b124c2e2a2516628a
 4135.853536] usb 1-1.2: USB disconnect, device number 4
 4138.668128] usb 1-1.2: new high-speed USB device number 5 using ehci-pci
 4138.757719] usb 1-1.2: New USB device found, idVendor=05ac, idProduct=12ab
 4138.757730] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 4138.757735] usb 1-1.2: Product: iPad
 4138.757739] usb 1-1.2: Manufacturer: Apple Inc.
 4138.757743] usb 1-1.2: SerialNumber: 254613b381c2e5b143c9015b124c2e2a2516628a
 4148.698795] usb 1-1.2: USB disconnect, device number 5
 4151.061366] usb 1-1.2: new high-speed USB device number 6 using ehci-pci
 4151.151080] usb 1-1.2: New USB device found, idVendor=05ac, idProduct=12ab
 4151.151114] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 4151.151120] usb 1-1.2: Product: iPad
 4151.151124] usb 1-1.2: Manufacturer: Apple Inc.
 4151.151128] usb 1-1.2: SerialNumber: 254613b381c2e5b143c9015b124c2e2a2516628a

Should this query be moved to the hardware section or what?

Hi
You need to add your device to the udev rule in /etc/udev/rules.d/95-ipad_charge.rules;


device", ACTION=="add", BUS=="usb", SYSFS{idVendor}=="05ac", SYSFS{idProduct}=="12ab", RUN+="/usr/bin/ipad_charge"

Then run (as root user) udevadm trigger then plug the device in and see how it goes…

I added the following line (yours seemed somewhat truncated compared to the existing entries):


ENV{DEVTYPE}=="usb_device", ACTION=="add", BUS=="usb", SYSFS{idVendor}=="05ac", SYSFS{idProduct}=="12ab", RUN+="/usr/bin/ipad_charge"

Did sudo udevadm trigger, no effect. Even rebooted. No effect. dmesg gives (just like before IIUC):


[11897.784137] usb 1-1.2: new high-speed USB device number 4 using ehci-pci
[11897.872750] usb 1-1.2: New USB device found, idVendor=05ac, idProduct=12ab
[11897.872755] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[11897.872757] usb 1-1.2: Product: iPad
[11897.872759] usb 1-1.2: Manufacturer: Apple Inc.
[11897.872760] usb 1-1.2: SerialNumber: 254613b381c2e5b143c9015b124c2e2a2516628a

On Wed 03 Dec 2014 03:26:01 PM CST, jamadagni wrote:

malcolmlewis;2679974 Wrote:
> Hi
> You need to add your device to the udev rule in
> /etc/udev/rules.d/95-ipad_charge.rules;
> >
Code:

> >
> device", ACTION==“add”, BUS==“usb”, SYSFS{idVendor}==“05ac”,
SYSFS{idProduct}==“12ab”, RUN+=“/usr/bin/ipad_charge” >

> >
> Then run (as root user) udevadm trigger then plug the device in and
> see how it goes…

I added the following line (yours seemed somewhat truncated compared to
the existing entries):

Code:

ENV{DEVTYPE}==“usb_device”, ACTION==“add”, BUS==“usb”,
SYSFS{idVendor}==“05ac”, SYSFS{idProduct}==“12ab”,
RUN+=“/usr/bin/ipad_charge” --------------------

Did sudo udevadm trigger, no effect. Even rebooted. No effect. dmesg
gives (just like before IIUC):

Code:

[11897.784137] usb 1-1.2: new high-speed USB device number 4 using
ehci-pci [11897.872750] usb 1-1.2: New USB device found, idVendor=05ac,
idProduct=12ab [11897.872755] usb 1-1.2: New USB device strings: Mfr=1,
Product=2, SerialNumber=3 [11897.872757] usb 1-1.2: Product: iPad
[11897.872759] usb 1-1.2: Manufacturer: Apple Inc.
[11897.872760] usb 1-1.2: SerialNumber:
254613b381c2e5b143c9015b124c2e2a2516628a

Hi
Ok, can you move the rules file to /usr/lib/udev/rules.d/ and then
udevadm trigger (as root user [su -] not sudo please).


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Thanks for the hand-holding, but there was no fruit here also.

What did finally help me was to compile the latest git head from GitHub - mkorenkov/ipad_charge: charge Apple devices under Ubuntu Linux and install (it’s just the binary plus a .rules file) – apparently the repo version I was trying was from 2011 and out of date in many ways. (Lots of git commits since then.) And my iPad is an Air so probably the old software didn’t support the newer hardware…

Thanks for the help, anyhow.

If anyone could package the latest for the official repo (I’m using Tumbleweed) it would be great and probably help lots of other people too!

On Wed 03 Dec 2014 05:26:01 PM CST, jamadagni wrote:

malcolmlewis;2680501 Wrote:
> Hi
> Ok, can you move the rules file to /usr/lib/udev/rules.d/ and then
> udevadm trigger (as root user [su -] not sudo please).
>

Thanks for the hand-holding, but there was no fruit here also.

What did finally help me was to compile the latest git head from
GitHub - mkorenkov/ipad_charge: charge Apple devices under Ubuntu Linux and install (it’s just the
binary plus a .rules file) – apparently the repo version I was trying
was from 2011 and out of date in many ways. (Lots of git commits since
then.) And my iPad is an Air so probably the old software didn’t support
the newer hardware…

Thanks for the help, anyhow.

If anyone could package the latest for the official repo (I’m using
Tumbleweed) it would be great and probably help lots of other people
too!

Hi
Please test :wink:


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Working fine. Thankees! Please upload this to the main openSUSE repos too! (I presume you have write access.)

BTW it seems you have put the .rules file under /usr/lib/udev/rules.d/ rather than /etc/udev/rules.d/. Is there a particular reason or is it just the “SuSE” way of doing things?

Hi
They way it works is home repo -> devel repo -> submit to factory -> in next release, I will possibly push it to the utilities repo for the moment. Yes, it’s a SUSE thing for the lib directory :wink: