---
name: "libkypowermanagement"
section: "3"
platform: "linux"
package: "libkysdk-system"
version: "3.0.1.4-1"
release: "Arch Linux 2026-11-07"
platforms: ["linux"]
url: "https://carta.tech/man/libkypowermanagement"
---

# libkypowermanagement(3)

提供锁屏设置能力

## NAME

kdk\_set\_inhibit\_lockscreen, kdk\_un\_inhibit\_lockscreen  - 提供锁屏设置能力

## SYNOPSIS

```
#include <libkylockscreen.h>

extern uint32_t kdk_set_inhibit_lockscreen(const char *appName, const char *reason);

extern int kdk_un_inhibit_lockscreen(uint32_t flag);

Link with -lkypowermanagement.
```

## Detailed Description

This library provides lock screen setting capabilities.

## RETURN VALUE

The return value is generally specific to the individual function called.

## CONFORMING TO

These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: **kdk\_set\_inhibit\_lockscreen**() and **kdk\_un\_inhibit\_lockscreen**().

## SEE ALSO

[**kdk\_set\_inhibit\_lockscreen**(3)](/man/kdk_set_inhibit_lockscreen/3.md) and [**kdk\_un\_inhibit\_lockscreen**(3)](/man/kdk_un_inhibit_lockscreen/3.md).
