Using the xrandr command, we can extend the Ubuntu 24.04 LTS desktop to include the 9th generation iPad's second screen.
Prerequisites
Before we begin, ensure that your Ubuntu system is running on the X11 desktop environment.
Connecting the iPad
-
Connect your iPad to your Ubuntu system using a USB cable.
-
On the iPad, enable the "Sidecar" feature in the "Settings" app under "General" > "Tablet".
-
On the Ubuntu system, open a terminal and enter the following command to check the available displays:
xrandr
You should see a list of available displays, including your Ubuntu desktop (Screen 0) and the iPad's second screen (eDP-1).
Extending the Desktop
- To extend the Ubuntu desktop to the iPad's second screen, use the following command:
xrandr --output eDP-1 --mode 1366x768 --left-of Screen0
Replace 1366x768 with the appropriate resolution for your iPad's second screen.
- Verify that the desktop has been extended by running the
xrandrcommand again:
xrandr
You should see the iPad's second screen (eDP-1) listed as an extended display.
Using the iPad as a Second Screen
Once the iPad is connected and the desktop is extended, you can use it as a second screen for your Ubuntu system. Applications can be moved to the iPad screen, and you can interact with them using touch or the Sidecar feature on a connected Mac.