Package: release.debian.org Severity: normal Tags: buster User: release.debian....@packages.debian.org Usertags: pu
The redshift plasma applet doesn't work correctly in buster due to a wrong use of `redshift` arguments; see #910901 "plasma-applet-redshift-control: Mouse wheel only reduces color temperature, in either direction". This was fixed with the exact same patch in unstable; and the debdiff is attached. Thanks for considering! Cheers, OdyX
diff -Nru plasma-applet-redshift-control-1.0.18/debian/changelog plasma-applet-redshift-control-1.0.18/debian/changelog --- plasma-applet-redshift-control-1.0.18/debian/changelog 2018-02-22 07:16:23.000000000 +0100 +++ plasma-applet-redshift-control-1.0.18/debian/changelog 2019-10-01 09:26:56.000000000 +0200 @@ -1,3 +1,10 @@ +plasma-applet-redshift-control (1.0.18-2+deb10u1) buster; urgency=medium + + * Import upstream-submitted patch to fix manual mode for redshift + >= 1.12 (Closes: #910901) + + -- Didier Raboud <o...@debian.org> Tue, 01 Oct 2019 09:26:56 +0200 + plasma-applet-redshift-control (1.0.18-2) unstable; urgency=medium * Team upload. diff -Nru plasma-applet-redshift-control-1.0.18/debian/.gitattributes plasma-applet-redshift-control-1.0.18/debian/.gitattributes --- plasma-applet-redshift-control-1.0.18/debian/.gitattributes 1970-01-01 01:00:00.000000000 +0100 +++ plasma-applet-redshift-control-1.0.18/debian/.gitattributes 2019-10-01 09:26:56.000000000 +0200 @@ -0,0 +1 @@ +changelog merge=dpkg-mergechangelogs diff -Nru plasma-applet-redshift-control-1.0.18/debian/patches/fix-manual-mode-for-redshift-1.12.patch plasma-applet-redshift-control-1.0.18/debian/patches/fix-manual-mode-for-redshift-1.12.patch --- plasma-applet-redshift-control-1.0.18/debian/patches/fix-manual-mode-for-redshift-1.12.patch 1970-01-01 01:00:00.000000000 +0100 +++ plasma-applet-redshift-control-1.0.18/debian/patches/fix-manual-mode-for-redshift-1.12.patch 2019-10-01 09:26:56.000000000 +0200 @@ -0,0 +1,58 @@ +Description: Redshift version >= 1.12 requires the -P option to clear the existing gamma ramps for one-shot mode. Without it the screen gets darker and darker until it is impossible to see anything. + +Quoting from the redshift 1.12 manual page: + + -O TEMP One-shot manual mode (set color temperature). Use this with the -P option to clear the existing gamma ramps before applying the new color temperature. + -P Reset existing gamma ramps before applying new color effect. + +This is a cherry-pick from the fix submitted upstream at https://phabricator.kde.org/D23330 + +Author: Melvin Vermeeren <m...@mel.vin> +Bug: https://bugs.kde.org/show_bug.cgi?id=395641 +Bug-Debian: https://bugs.debian.org/910901 +Last-Update: 2019-09-28 + +--- a/package/contents/ui/CompactRepresentation.qml ++++ b/package/contents/ui/CompactRepresentation.qml +@@ -48,6 +48,8 @@ + property color redshiftColour: '#ff3c0b' + property color brightnessColour: '#39a2ee' + ++ property string versionString: 'N/A' ++ + PlasmaCore.IconItem { + id: customIcon + anchors.fill: parent +@@ -136,7 +138,11 @@ + } + } + } +- redshiftDS.connectedSources.push(redshiftOneTimeCommand) ++ if (parseFloat(versionString) >= 1.12) { ++ redshiftDS.connectedSources.push(redshiftOneTimeCommand + " -P") ++ } else { ++ redshiftDS.connectedSources.push(redshiftOneTimeCommand) ++ } + } + + onClicked: { +@@ -169,4 +175,19 @@ + } + } + ++ PlasmaCore.DataSource { ++ id: getOptionsDS ++ engine: 'executable' ++ ++ connectedSources: ['redshift -V'] ++ ++ onNewData: { ++ connectedSources.length = 0 ++ if (data['exit code'] > 0) { ++ print('Error running redshift with command: ' + sourceName + ' ...stderr: ' + data.stderr) ++ return ++ } ++ versionString = data.stdout.split(' ')[1] ++ } ++ } + } diff -Nru plasma-applet-redshift-control-1.0.18/debian/patches/series plasma-applet-redshift-control-1.0.18/debian/patches/series --- plasma-applet-redshift-control-1.0.18/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ plasma-applet-redshift-control-1.0.18/debian/patches/series 2019-10-01 09:26:56.000000000 +0200 @@ -0,0 +1 @@ +fix-manual-mode-for-redshift-1.12.patch