From: Pekka Paalanen <ppaalanen@gmail.com>
To: Simon Ser <contact@emersion.fr>, Hans de Goede <hdegoede@redhat.com>
Cc: Sebastian Wick <sebastian.wick@redhat.com>,
Martin Roukala <martin.roukala@mupuf.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
wayland <wayland-devel@lists.freedesktop.org>,
Christoph Grenz <christophg+lkml@grenz-bonn.de>,
Yusuf Khan <yusisamerican@gmail.com>
Subject: Re: [RFC v2] drm/kms: control display brightness through drm_connector properties
Date: Fri, 9 Sep 2022 16:53:46 +0300 [thread overview]
Message-ID: <20220909165346.51e92499@eldfell> (raw)
In-Reply-To: <KBKl__LKqWb8-i0ErjSYiqJRJOf2AK48SVFIvyOYM-aGG_uZOal8BAm3VbkFJHc6Vquz1mFNugZkoFyz490r6N5UIM1a8JthAgFyDnQBtqk=@emersion.fr>
[-- Attachment #1: Type: text/plain, Size: 2329 bytes --]
On Fri, 09 Sep 2022 13:39:37 +0000
Simon Ser <contact@emersion.fr> wrote:
> On Friday, September 9th, 2022 at 12:12, Hans de Goede <hdegoede@redhat.com> wrote:
>
> > Phase 3: Deprecate /sys/class/backlight uAPI
> > ============================================
> >
> > Once most userspace has moved over to using the new drm_connector
> > brightness props, a Kconfig option can be added to stop exporting
> > the backlight-devices under /sys/class/backlight. The plan is to
> > just disable the sysfs interface and keep the existing backlight-device
> > internal kernel abstraction as is, since some abstraction for (non GPU
> > native) backlight devices will be necessary regardless.
> >
> > It is unsure if we will ever be able to do this. For example people using
> > non fully integrated desktop environments like e.g. sway often use custom
> > scripts binded to hotkeys to get functionality like the brightness
> > up/down keyboard hotkeys changing the brightness. This typically involves
> > e.g. the xbacklight utility.
> >
> > Even if the xbacklight utility is ported to use kms with the new connector
> > object brightness properties then this still will not work because
> > changing the properties will require drm-master rights and e.g. sway will
> > already hold those.
>
> I replied to this here in another thread [1].
>
> tl;dr I think it would be fine even for Sway-like compositors.
Furthermore, if other compositors are like Weston in their KMS state
handling, and do not track which property has already been programmed
to KMS and which hasn't, and instead just smash all KMS properties
every update anyway (it's also great for debugging, you always have the
full state in flight), anything changed via sysfs will be immediately
reverted.
Therefore I think there is a high probability that the external or
sysfs controls just naturally stop working anyway, even if the kernel
does not remove them first.
Thanks,
pq
> (Also note the utilities used right now are not xbacklight, but
> brightnessctl/light/brillo/etc [2])
>
> [1]: https://lore.kernel.org/dri-devel/bZJU9OkYWFyaLHVa4XUE4d5iBTPFXBRyPe1wMd_ztKh5VBMu-EDNGoUDpvwtFn_u9-JMvN8QmIZVS3pzMZM_hZTkTCA9gOBnCGXc5HFmsnc=@emersion.fr/
> [2]: https://github.com/swaywm/sway/wiki#xbacklight
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-09-09 13:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-09 10:12 [RFC v2] drm/kms: control display brightness through drm_connector properties Hans de Goede
2022-09-09 13:39 ` Simon Ser
2022-09-09 13:53 ` Pekka Paalanen [this message]
2022-09-09 14:01 ` Simon Ser
2022-09-09 14:39 ` Hans de Goede
2022-09-28 10:04 ` Jani Nikula
2022-09-28 10:57 ` Ville Syrjälä
2022-09-28 11:14 ` Ville Syrjälä
2022-09-29 18:06 ` Sebastian Wick
2022-09-30 7:39 ` Pekka Paalanen
2022-09-30 14:20 ` Sebastian Wick
2022-09-30 14:30 ` Jani Nikula
2022-09-30 14:44 ` Ville Syrjälä
2022-09-30 14:49 ` Simon Ser
2022-09-30 15:26 ` Pekka Paalanen
2022-09-30 16:17 ` Sebastian Wick
2022-10-03 8:37 ` Pekka Paalanen
2022-10-03 9:29 ` Ville Syrjälä
2022-10-03 10:16 ` Pekka Paalanen
2022-10-03 9:44 ` Hans de Goede
2022-10-03 10:32 ` Pekka Paalanen
2022-10-03 11:02 ` Hans de Goede
2022-10-03 9:02 ` Hans de Goede
2022-10-03 8:53 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220909165346.51e92499@eldfell \
--to=ppaalanen@gmail.com \
--cc=christophg+lkml@grenz-bonn.de \
--cc=contact@emersion.fr \
--cc=dri-devel@lists.freedesktop.org \
--cc=hdegoede@redhat.com \
--cc=martin.roukala@mupuf.org \
--cc=sebastian.wick@redhat.com \
--cc=wayland-devel@lists.freedesktop.org \
--cc=yusisamerican@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.