Set a specific brightness to a KDE Plasma session

qdbus

  • Inter-Process Communication (IPC) and Remote Procedure Calling (RPC) mechanism originally developed for Linux.
    More information: <https://doc.qt.io/qt-5/qtdbus-index.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

qdbus {{org.kde.Solid.PowerManagement}} {{/org/kde/Solid/PowerManagement/Actions/BrightnessControl}} {{org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness}} {{5000}}

click the source code to copy install qdbus on any operating system with command-not-found.com