Creating CarPlay shortcuts for lock screen settings on iPhone 17

Can I create one shortcut on iPhone 17 to set lock screen to “never” upon plugging into Apple CarPlay and a second to set lock screen to “5 minutes” upon unplugging from Apple CarPlay?



[Re-Titled by Moderator]

Original Title:  CarPlay Shortcuts

iPhone 17, iOS 26

Posted on Oct 21, 2025 4:00 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 21, 2025 10:24 PM

It can't be done fully automatically. But you can have the Auto Lock menu open automatically when you connect to CarPlay, and again when you disconnect CarPlay. It also requires that your iPhone is unlocked when you connect/disconnect.


If you want to try it out, do this:


1. Open the Shortcuts App

2. Tap Automation in the bottom bar

3. Select CarPlay from the list

4. Select When Connecting or Disconnecting.

5. Check "Start immediately"

6. Tap "Create New Shortcut"

7. Search for and select "Open URL"

8. In the url field copy/paste: prefs:root=DISPLAY&path=AUTOLOCK

9. Save the automation, done.


Now the Auto Lock menu will open automatically when you connect to CarPlay. From there you can quickly select "Never" - set another automation for when CarPlay disconnects, so that Auto Lock also opens when you disconnect from CarPlay. Same guide.

2 replies
Question marked as Top-ranking reply

Oct 21, 2025 10:24 PM in response to EVOO-Drinker

It can't be done fully automatically. But you can have the Auto Lock menu open automatically when you connect to CarPlay, and again when you disconnect CarPlay. It also requires that your iPhone is unlocked when you connect/disconnect.


If you want to try it out, do this:


1. Open the Shortcuts App

2. Tap Automation in the bottom bar

3. Select CarPlay from the list

4. Select When Connecting or Disconnecting.

5. Check "Start immediately"

6. Tap "Create New Shortcut"

7. Search for and select "Open URL"

8. In the url field copy/paste: prefs:root=DISPLAY&path=AUTOLOCK

9. Save the automation, done.


Now the Auto Lock menu will open automatically when you connect to CarPlay. From there you can quickly select "Never" - set another automation for when CarPlay disconnects, so that Auto Lock also opens when you disconnect from CarPlay. Same guide.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Creating CarPlay shortcuts for lock screen settings on iPhone 17

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.