Skip to content

Commit f50574d

Browse files
Plagmancristicc
authored andcommitted
[NOT-FOR-UPSTREAM] drivers: video: backlight: Disable backlight notification events
We don't want to generate udev events for brightness changes on Steam Deck, as some games like Celeste will re-enumerate controller devices in response to this event. Patch from Sam Lantinga. (cherry picked from commit 85da5a5) Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
1 parent ac1ed49 commit f50574d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/video/backlight/backlight.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ static inline void backlight_unregister_fb(struct backlight_device *bd)
160160
static void backlight_generate_event(struct backlight_device *bd,
161161
enum backlight_update_reason reason)
162162
{
163+
#if 0 // We don't want to generate udev events for brightness changes on Steam Deck, as some games like Celeste will re-enumerate controller devices in response to this event.
163164
char *envp[2];
164165

165166
switch (reason) {
@@ -175,6 +176,7 @@ static void backlight_generate_event(struct backlight_device *bd,
175176
}
176177
envp[1] = NULL;
177178
kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp);
179+
#endif // 0
178180
sysfs_notify(&bd->dev.kobj, NULL, "actual_brightness");
179181
}
180182

0 commit comments

Comments
 (0)