codematrixer / awesome-hdc

鸿蒙NEXT HDC命令合集
Apache License 2.0
175 stars 14 forks source link

hdc 是否支持屏幕亮度设定? #7

Open edisonchan opened 2 months ago

edisonchan commented 2 months ago

在华为官方网站找不到相关信息。 然后在 forums.openharmony.cn 看到下面的内容: https://forums.openharmony.cn/forum.php?mod=viewthread&tid=1092&extra=page%3D1&mobile=no image

power-shell display -s 20
usage: power-shell
command list:
  setmode :    Set power mode.
  wakeup  :    Wakeup system and turn screen on.
  suspend :    Suspend system and turn screen off.
  timeout :    Override or Restore screen off time.
  help    :    Show this help menu.

实测不行,可能是因为我的设备是鸿蒙 Next 设备?抑或这个指令本身已经废弃了?

codematrixer commented 2 months ago

在华为官方网站找不到相关信息。 然后在 forums.openharmony.cn 看到下面的内容: https://forums.openharmony.cn/forum.php?mod=viewthread&tid=1092&extra=page%3D1&mobile=no image

power-shell display -s 20
usage: power-shell
command list:
  setmode :    Set power mode.
  wakeup  :    Wakeup system and turn screen on.
  suspend :    Suspend system and turn screen off.
  timeout :    Override or Restore screen off time.
  help    :    Show this help menu.

实测不行,可能是因为我的设备是鸿蒙 Next 设备?抑或这个指令本身已经废弃了?

问了官方,目前并没有能设置屏幕亮度的hdc命令