Merge pull request #264280 from wineee/dde-daemon

deepin.dde-daemon: fix build with ddcutil 2
This commit is contained in:
Michele Guerini Rocco 2023-10-30 22:33:40 +01:00 committed by GitHub
commit 63982e51ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,17 @@
diff --git a/bin/backlight_helper/ddcci/ddcci.go b/bin/backlight_helper/ddcci/ddcci.go
index 679beea3..ccbfc508 100644
--- a/bin/backlight_helper/ddcci/ddcci.go
+++ b/bin/backlight_helper/ddcci/ddcci.go
@@ -103,11 +103,6 @@ func newDDCCI() (*ddcci, error) {
displayHandleMap: make(map[string]*displayHandle),
}
- status := C.ddca_set_max_tries(C.DDCA_MULTI_PART_TRIES, 5)
- if status < C.int(0) {
- return nil, fmt.Errorf("brightness: Error setting retries: %d", status)
- }
-
err := ddc.RefreshDisplays()
if err != nil {
return nil, err

View file

@ -62,6 +62,7 @@ buildGoPackage rec {
src = ./0005-fix-custom-wallpapers-path.diff;
inherit coreutils;
})
./0006-fix-build-with-ddcutil-2.patch
];
postPatch = ''