Raspberry Pi 4 as an iPad extension
How to use a Pi G4 as an iPad module
Interesting. I think I might give this a try.
.. later ..
I did try it, and it's fantastic. There are utility functions I find myself needing to do like accessing oddball filesystems, or using persistent sshfs connections, or all manner of other things that I flat out can't do w/ an iPad, but now I can fill that gap quite easily.
It is rough on your battery, though, since you're feeding both the iPad and the RP4, and there's not a way to charge while you're doing that. I'm going to look at perhaps powering the RP4 over the GPIO pins so that I can disconnect the iPad and leave the pi doing whatever I've got it doing.
.. even later still ..
You can’t power the Pi over GPIO and the USB-C at the same time. The Pi has no means to not take power over both and fry; glad I didn’t find this out the hard way.
-- later yet
Just in case the host sites should for whatever reason disappear on me, and since I've had to do this more than once:
- Change /boot/config.txt and either add or change:
framebuffer_height=768```
`[all]`
`dtoverlay=dwc2`
- Change /boot/cmdline.txt, add to end of line:
`modules-load=dwc2`
- Change /etc/modules and at end add:
`libcomposite`
- We want to prevent the USB0 lan adapter from picking up a dhcp client address, so we edit /etc/dhcpcd.conf and add at end:
`denyinterfaces usb0`
- Install dnsmasq:
`sudo apt install dnsmasq -y`
- Edit etc/dnsmasq.d/usb
`interface=usb0`
`dhcp-range=10.55.0.2,10.55.0.6,255.255.255.248,1h`
`dhcp-option=3`
`leasefile-ro`
- Enable that service :
`sudo systemctl enable dnsmasq`
- Create /etc/network/interfaces.d/usb0
`auto usb0`
`allow-hotplug usb0`
`iface usb0 inet static`
` address 10.55.0.1`
` netmask 255.255.255.248`
- Place https://magpi.cc/hardill script into /root.
- edit crontab -e
`@reboot bash /root/usb.sh`