Go to index / Go to protocols

kde_external_brightness_v1 ↗

kde_external_brightness_v1
kde_external_brightness_v1

Version 3
Compositor Support
Version 3
kwin 6.7

external brightness control

Some brightness control mechanisms are somewhat unstable, or require root privileges, so putting them inside of the compositor is not desired. This protocol is for outsourcing the actual brightness-setting to a process outside of the compositor.

kde_external_brightness_v1
request destroy()
Destructor

    Destroy the object.

    kde_external_brightness_v1
    request create_brightness_control(
        id: new_id<kde_external_brightness_device_v1>,
    )

      registers a brightness device with the compositor

      kde_external_brightness_v1
      kde_external_brightness_device_v1

      Version 3

      brightness control device

      After creating this object, the client should issue all relevant setup requests (set_internal, set_edid, set_max_brightness, optionally set_observed_brightness) and finish the sequence with commit. Afterwards, for each change in values, the client must call commit again.

      kde_external_brightness_device_v1
      request destroy()
      Destructor

        destroy the object and unregister the brightness control device

        kde_external_brightness_device_v1
        request set_internal(
            internal: uint,
        )
        • internal — 1 if it's an internal panel, 0 if not

        sets whether or not the brightness device belongs to an internal display

        kde_external_brightness_device_v1
        request set_edid(
            string: string,
        )
        • string — base-64 encoded string of the first 128 bytes of the EDID

        set the EDID data for identification of the display

        kde_external_brightness_device_v1
        request set_max_brightness(
            value: uint,
        )
        • value — the maximum value that can be set

        notifies the compositor of the maximum brightness that can be set on this device

        kde_external_brightness_device_v1
        request commit()

          notifies the compositor that all relevant identifiers and values have been sent

          kde_external_brightness_device_v1
          event requested_brightness(
              value: uint,
          )
          • value — the value to set the device to

          requests the client to change the brightness to this value

          The client must ensure that if the brightness level changes due to external factors, that it either overwrites those changes with what the compositor last requested, or commit again with set_observed_brightness specifying the changed brightness.

          kde_external_brightness_device_v1
          request set_observed_brightness(
              value: uint,
          )
          Available since version 2
          • value — the observed value that was read

          notifies the compositor of the brightness that was read from this device

          The client can set this to notify the compositor of the device's initial brightness. It can also set this again after the initial commit to notify the compositor that the brightness level has changed due to external factors. The compositor is free to use or ignore this value as it sees fit.

          kde_external_brightness_device_v1
          request set_uses_ddc_ci(
              value: uint,
          )
          Available since version 3
          • value — 1 if it uses DDC/CI, 0 if not (assumed by default)

          notifies the compositor that DDC/CI is used to control brightness etc.

          The compositor can use this information to ignore this object if its commands expose monitor issues. The compositor may also reduce the amount of brightness requests given potentially slow response times and concerns about monitor EEPROM longevity/wear-out.