diff --git a/debian/control b/debian/control
index fc7a3f59..b4ae4f7e 100644
--- a/debian/control
+++ b/debian/control
@@ -16,6 +16,7 @@ Build-Depends: debhelper (>= 11),
libnet-dev,
libglib2.0-dev,
libdtk6gui-dev,
+ libpolkit-qt6-1-dev,
libdtk6core-dev,
libx11-dev,
libxext-dev,
@@ -44,7 +45,8 @@ Depends:
${misc:Depends},
deepin-service-manager (>> 1.0.21),
dbus,
- deepin-power-control (>= 2.0.1)
+ deepin-power-control (>= 2.0.1),
+ deepin-security-loader
Recommends:
iio-sensor-proxy
Breaks: dde-daemon (<< 6.1.102)
diff --git a/src/plugin-qt/power/system/CMakeLists.txt b/src/plugin-qt/power/system/CMakeLists.txt
index 3dbe0946..b96853b6 100644
--- a/src/plugin-qt/power/system/CMakeLists.txt
+++ b/src/plugin-qt/power/system/CMakeLists.txt
@@ -16,6 +16,7 @@ find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core DBus)
find_package(Dtk${DTK_VERSION_MAJOR} REQUIRED COMPONENTS Core)
find_package(PkgConfig REQUIRED)
pkg_check_modules(UDEV REQUIRED libudev)
+pkg_check_modules(POLKIT_QT REQUIRED polkit-qt6-1)
file(GLOB_RECURSE SRCS "*.cpp" "*.h")
@@ -24,6 +25,7 @@ add_library(${BIN_NAME} MODULE ${SRCS})
target_include_directories(${BIN_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
${UDEV_INCLUDE_DIRS}
+ ${POLKIT_QT_INCLUDE_DIRS}
)
target_link_libraries(${BIN_NAME} PRIVATE
@@ -31,6 +33,7 @@ target_link_libraries(${BIN_NAME} PRIVATE
Qt${QT_VERSION_MAJOR}::DBus
Dtk${DTK_VERSION_MAJOR}::Core
${UDEV_LIBRARIES}
+ ${POLKIT_QT_LIBRARIES}
)
install(TARGETS ${BIN_NAME}
diff --git a/src/plugin-qt/power/system/misc/dbus/org.deepin.dde.Power1.conf b/src/plugin-qt/power/system/misc/dbus/org.deepin.dde.Power1.conf
index 1c8cf3e9..2b81e0f0 100644
--- a/src/plugin-qt/power/system/misc/dbus/org.deepin.dde.Power1.conf
+++ b/src/plugin-qt/power/system/misc/dbus/org.deepin.dde.Power1.conf
@@ -8,6 +8,16 @@
+
+
+
+
+
+