Skip to content

Commit 6aca7a9

Browse files
committed
Added ddca_enable_force_slave_address called for ddcutil >= 1.2.1. Fixes #82.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1 parent 59dfe54 commit 6aca7a9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

TODO.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
- [x] add a page about monitor hotplugging (dep on ddcutil >= 1.2.0 and refresh time!)
3535
- [x] Investigate memleaks (related to ddca_redetect_displays()?) -> see here: https://github.com/rockowitz/ddcutil/issues/202
3636
- [x] Instead of 30s sleep, use an udev_monitor on drm subsystem?
37+
- [x] Force slave address: ddca_enable_force_slave_address. Fixes #82
3738

3839
### KbdBacklight
3940
- [x] call sd_bus_emit_object_added() sd_bus_emit_object_removed() When object path are created/deleted

src/modules/backlight2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ MODULE("BACKLIGHT2");
108108
br_code = strtol(getenv("CLIGHTD_BL_VCP"), NULL, 16);
109109
m_log("Set 0x%x vcp code.\n", br_code);
110110
}
111+
#if DDCUTIL_VMAJOR >= 1 && DDCUTIL_VMINOR >= 2 && DDCUTIL_VMICRO >= 1
112+
ddca_enable_force_slave_address(true);
113+
#endif
111114
}
112115

113116
static void get_info_id(char *id, const int size, const DDCA_Display_Info *dinfo) {

0 commit comments

Comments
 (0)