---
title: kIOPMPreventIdleSleep
framework: IOKit
role: symbol
role_heading: Enumeration Case
platforms: [Mac Catalyst 13.0+, macOS 10.1+]
path: iokit/1499606-anonymous/kiopmpreventidlesleep
---

# kIOPMPreventIdleSleep

## Declaration

```occ
kIOPMPreventIdleSleep = 0x00000040
```

## Discussion

Discussion In the capability field of a power state, disallows idle system sleep while the device is in that state. For example, displays and disks set this capability for their ON power state; since the system may not idle sleep while the display (and thus keyboard or mouse) or the disk is active. Useful only as a Capability.
