[Bug 1090480] New: OpenSUSE Leap 15 redshift causes screen flicker on KDE

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 Bug ID: 1090480 Summary: OpenSUSE Leap 15 redshift causes screen flicker on KDE Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: x86-64 OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: KDE Applications Assignee: opensuse-kde-bugs@opensuse.org Reporter: mobile.harvey@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Comparing two identical deployments of Tumbleweed and Leap 15 Beta with KDE desktop. On each I have installed Redshift and added the Redshift widget to my panel. On Tumbleweed I see the expected behaviour whereby enabling the redshift widget enables Redshift, and vice versa. On Leap 15 however Redshift seems to be already running on boot, and enabling the widget ends up with two instances seemingly running together. The result is the screen will switch between cold and warm white balances every 1-2 seconds. Disabling the widget stops the flickering but Redshift still seems to be running (i.e. my screen changes to warm white balance in the evening). Below are some observations which I believe sum-up the delta between Leap 15 and Tumbleweed. Can Leap 15 be made to work like Tumbleweed? LEAP 15: ========== With widget switched on: nharvey@opensuse-thinkpad:~/.config> ps -ef | grep redshift nharvey 14285 2345 0 12:12 ? 00:00:00 /usr/bin/redshift -t 6500 4000 -b 1 1 -g 1 1 1 nharvey 14371 2206 0 12:14 ? 00:00:00 /usr/bin/redshift nharvey 14381 11475 0 12:14 pts/2 00:00:00 grep --color=auto redshift With widget switched off: nharvey@opensuse-thinkpad:~/.config> ps -ef | grep redshift nharvey 14371 2206 0 12:14 ? 00:00:00 /usr/bin/redshift nharvey 14432 11475 0 12:15 pts/2 00:00:00 grep --color=auto redshift I then disable service: nharvey@opensuse-thinkpad:~/.config> systemctl --user status redshift ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enabled Active: active (running) since Sun 2018-04-22 11:59:05 BST; 12min ago Docs: http://jonls.dk/redshift/ Main PID: 12118 (redshift) CGroup: /user.slice/user-1000.slice/user@1000.service/redshift.service └─12118 /usr/bin/redshift nharvey@opensuse-thinkpad:~/.config> systemctl --user stop redshift nharvey@opensuse-thinkpad:~/.config> systemctl --user status redshift ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enabled Active: inactive (dead) since Sun 2018-04-22 12:12:35 BST; 6s ago Docs: http://jonls.dk/redshift/ Process: 12118 ExecStart=/usr/bin/redshift (code=exited, status=0/SUCCESS) Main PID: 12118 (code=exited, status=0/SUCCESS) nharvey@opensuse-thinkpad:~/.config> With widget switched on: nharvey@opensuse-thinkpad:~/.config> ps -ef | grep redshift nharvey 14443 2345 0 12:15 ? 00:00:00 /usr/bin/redshift -t 6500 4000 -b 1 1 -g 1 1 1 nharvey 14453 11475 0 12:15 pts/2 00:00:00 grep --color=auto redshift With widget switched off: nharvey@opensuse-thinkpad:~/.config> ps -ef | grep redshift nharvey 14468 11475 0 12:16 pts/2 00:00:00 grep --color=auto redshift Tumbleweed as at 22/04/2018: ============================= With widget switched on: nharvey@opensuse-acer-es1:~> ps -ef | grep redshift nharvey 5968 2148 0 12:11 ? 00:00:00 /usr/bin/redshift -t 6500 4000 -b 1 1 -g 1 1 1 nharvey 6529 6343 0 12:21 pts/0 00:00:00 grep --color=auto redshift With widget switched off: nharvey@opensuse-acer-es1:~> ps -ef | grep redshift nharvey 6541 6343 0 12:21 pts/0 00:00:00 grep --color=auto redshift -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 Nicholas Harvey <mobile.harvey@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c1 Wolfgang Bauer <wbauer@tmo.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P5 - None CC| |wbauer@tmo.at Component|KDE Applications |X11 Applications Assignee|opensuse-kde-bugs@opensuse. |bnc-team-screening@forge.pr |org |ovo.novell.com --- Comment #1 from Wolfgang Bauer <wbauer@tmo.at> --- redshift is not a KDE application. AFAICS there is no difference between the current packages in Leap 15 and Tumbleweed though, they appear to be exactly the same. One thought though: do you have plasmoid-redshift installed on the affected system? (from KDE:Extra e.g.) That does contain an autostart file that may run redshift on login to a KDE session. If yes, uninstall it, it's a plasmoid for a KDE4 desktop and won't work with Plasma5. And what "Redshift widget" exactly are you talking about? How do you add that to your panel? -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c2 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fvogt@suse.com, | |masterpatricko@gmail.com, | |matthias@mailaender.name --- Comment #2 from Fabian Vogt <fvogt@suse.com> --- The question is why the redshift user service is started. It conflicts with plasma's redshift plasmoid. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c3 --- Comment #3 from Nicholas Harvey <mobile.harvey@gmail.com> --- Hi I've checked and I do not have plasmoid-redshift installed - I actually do not have the KDE:Extra repo enabled: nharvey@opensuse-thinkpad:~> sudo zypper install plasmoid-redshift Loading repository data... Warning: Repository 'openSUSE-Leap-15.0-Update' appears to be outdated. Consider using a different mirror or server. Warning: Repository 'openSUSE-Leap-15.0-Update-Non-Oss' appears to be outdated. Consider using a different mirror or server. Reading installed packages... 'plasmoid-redshift' not found in package names. Trying capabilities. No provider of 'plasmoid-redshift' found. Resolving package dependencies... Nothing to do. The widget I have installed on both systems is called Redshift Control and is installed by 'Add Widgets' -> 'Get more widgets' and downloading it from the KDE store. The project homepage is here: https://store.kde.org/p/998916 Hope this helps. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c4 Stanislav Kučera <kacernator@quick.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED CC| |kacernator@quick.cz --- Comment #4 from Stanislav Kučera <kacernator@quick.cz> --- Same problem here. I have two running instances of redshift. Killing one instance solves the problem. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c5 Tejas Guruswamy <masterpatricko@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mobile.harvey@gmail.com Flags| |needinfo?(mobile.harvey@gma | |il.com) --- Comment #5 from Tejas Guruswamy <masterpatricko@gmail.com> --- Clearly the cause is both systemd and plasmoid autostarting redshift; only one instance is needed. I can fix this by modifying the upstream systemd unit to no longer start by default. For now, you can simply disable systemd redshift: systemctl --user disable redshift.service What I do not understand is if something is really different between Leap and Tumbleweed. Redshift has been in Factory with the upstream systemd user unit for 4 months and package contents should be the same. Can you provide specific package versions on each system? i.e. rpm -q --queryformat="%{NAME}-%{VERSION}-%{RELEASE} %{DISTURL}\n" redshift and for good measure double-check the systemd unit vendor preset and enabled state on both systems: systemctl --user status redshift -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c6 Nicholas Harvey <mobile.harvey@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(mobile.harvey@gma | |il.com) | --- Comment #6 from Nicholas Harvey <mobile.harvey@gmail.com> --- Certainly. Here's the output from the two systems. Looks like there's a delta in the redshift versions: Tumbleweed: ============ nharvey@opensuse-acer-es1:~> rpm -q --queryformat="%{NAME}-%{VERSION}-%{RELEASE} %{DISTURL}\n" redshift redshift-1.11-7.2 obs://build.opensuse.org/openSUSE:Factory/standard/0a1ca33859cd2057c4c9a2b44f8e9de7-redshift nharvey@opensuse-acer-es1:~> systemctl --user status redshift ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enabled Active: inactive (dead) Docs: http://jonls.dk/redshift/ nharvey@opensuse-acer-es1:~> sudo zypper info redshift Information for package redshift: --------------------------------- Repository : openSUSE-20180410-0 Name : redshift Version : 1.11-7.2 Arch : x86_64 Vendor : openSUSE Installed Size : 63.3 KiB Installed : Yes Status : up-to-date Source package : redshift-1.11-7.2.src Summary : Adjusts the color temperature of your screen Description : Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night. Leap 15: ========= nharvey@opensuse-thinkpad:~> rpm -q --queryformat="%{NAME}-%{VERSION}-%{RELEASE} %{DISTURL}\n" redshift redshift-1.11-lp150.2.5 obs://build.opensuse.org/openSUSE:Leap:15.0/standard/0a1ca33859cd2057c4c9a2b44f8e9de7-redshift nharvey@opensuse-thinkpad:~> systemctl --user status redshift ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enab Active: active (running) since Mon 2018-04-23 21:35:18 BST; 1h 37min ago Docs: http://jonls.dk/redshift/ Main PID: 3025 (redshift) CGroup: /user.slice/user-1000.slice/user@1000.service/redshift.service └─3025 /usr/bin/redshift nharvey@opensuse-thinkpad:~> sudo zypper info redshift Information for package redshift: --------------------------------- Repository : openSUSE-Leap-15.0-1 Name : redshift Version : 1.11-lp150.2.5 Arch : x86_64 Vendor : openSUSE Installed Size : 63.3 KiB Installed : Yes Status : up-to-date Source package : redshift-1.11-lp150.2.5.src Summary : Adjusts the color temperature of your screen Description : Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c7 --- Comment #7 from Ludwig Nussel <lnussel@suse.com> --- so duplicate of #1090785? -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c8 --- Comment #8 from Tejas Guruswamy <masterpatricko@gmail.com> --- if the resolution of bsc#1090785 is to revert user services to default disabled, yes. otherwise i will need to consider how to modify the package. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c9 --- Comment #9 from Nicholas Harvey <mobile.harvey@gmail.com> --- Hi, the other bug suggests a fix is coming in package systemd-rpm-macros. However on my system (affected by the redshift problem) I do not have this package installed. Does this mean a separate fix needs to be found for this bug? Thanks. opensuse-thinkpad:~> sudo zypper info systemd-rpm-macros Loading repository data... Reading installed packages... Information for package systemd-rpm-macros: ------------------------------------------- Repository : openSUSE-Leap-15.0-1 Name : systemd-rpm-macros Version : 3-lp150.5.20 Arch : noarch Vendor : openSUSE Installed Size : 8.9 KiB Installed : No Status : not installed Source package : systemd-rpm-macros-3-lp150.5.20.src Summary : RPM macros for systemd Description : Starting with openSUSE 12.1, several RPM macros must be used to package systemd services files. This package provides these macros. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c10 Tejas Guruswamy <masterpatricko@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED CC| |fbui@suse.com Resolution|--- |FIXED Flags| |needinfo?(fbui@suse.com) --- Comment #10 from Tejas Guruswamy <masterpatricko@gmail.com> --- (In reply to Nicholas Harvey from comment #9)
Hi, the other bug suggests a fix is coming in package systemd-rpm-macros. However on my system (affected by the redshift problem) I do not have this package installed. Does this mean a separate fix needs to be found for this bug? Thanks.
The fix for this particular issue (default status of user services) is actually in the systemd package itself, see https://build.opensuse.org/request/show/610240 which is in Factory/Tumbleweed but will have missed getting into the released Leap 15.0. I am not sure if an online update is planned/necessary, perhaps Franck can answer that. Until then, the fix is to ensure the user service is disabled while the plasma widget is running, as you already spotted. systemctl --global disable redshift.service systemctl --user disable redshift.service -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c11 --- Comment #11 from Nicholas Harvey <mobile.harvey@gmail.com> --- Hi - can you please confirm precisely this work-around? I've tried disabling & stopping the user service but by doing this both the user and global service seem to stop and the redshift widget then does nothing (i.e. redshift seems to be permanently switched off): opensuse-thinkpad:~> systemctl --user status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enable> Active: active (running) since Mon 2018-06-04 23:25:03 PDT; 1min 5s ago Docs: http://jonls.dk/redshift/ Main PID: 2461 (redshift) CGroup: /user.slice/user-1000.slice/user@1000.service/redshift.service └─2461 /usr/bin/redshift opensuse-thinkpad:~> systemctl --global status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enable> Active: active (running) since Mon 2018-06-04 23:25:03 PDT; 1min 14s ago Docs: http://jonls.dk/redshift/ Main PID: 2461 (redshift) CGroup: /user.slice/user-1000.slice/user@1000.service/redshift.service └─2461 /usr/bin/redshift opensuse-thinkpad:~> systemctl --user stop redshift.service opensuse-thinkpad:~> systemctl --user status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enable> Active: inactive (dead) since Mon 2018-06-04 23:27:01 PDT; 3s ago Docs: http://jonls.dk/redshift/ Process: 2461 ExecStart=/usr/bin/redshift (code=exited, status=0/SUCCESS) Main PID: 2461 (code=exited, status=0/SUCCESS) opensuse-thinkpad:~> systemctl --global status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enable> Active: inactive (dead) since Mon 2018-06-04 23:27:01 PDT; 11s ago Docs: http://jonls.dk/redshift/ Process: 2461 ExecStart=/usr/bin/redshift (code=exited, status=0/SUCCESS) Main PID: 2461 (code=exited, status=0/SUCCESS) Considering redshift and similar technologies are becoming increasingly popular then if Leap 15 won't receive the root cause fix it makes sense to me that users are given a solid work-around until the next release of Leap. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c12 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(fbui@suse.com) | --- Comment #12 from Franck Bui <fbui@suse.com> --- Hi Tejas, (In reply to Tejas Guruswamy from comment #10)
The fix for this particular issue (default status of user services) is actually in the systemd package itself, see https://build.opensuse.org/request/show/610240 which is in Factory/Tumbleweed but will have missed getting into the released Leap 15.0. I am not sure if an online update is planned/necessary, perhaps Franck can answer that.
Yes it's planned to be fixed on Leap as well and it will be released on the next update. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c13 --- Comment #13 from Franck Bui <fbui@suse.com> --- Actually the fix is already part of SLE15 but Leap15 missed it because it's been released before. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c14 --- Comment #14 from Tejas Guruswamy <masterpatricko@gmail.com> --- (In reply to Nicholas Harvey from comment #11)
Hi - can you please confirm precisely this work-around? I've tried disabling & stopping the user service but by doing this both the user and global service seem to stop and the redshift widget then does nothing (i.e. redshift seems to be permanently switched off):
opensuse-thinkpad:~> systemctl --user status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enable> Active: active (running) since Mon 2018-06-04 23:25:03 PDT; 1min 5s ago Docs: http://jonls.dk/redshift/ Main PID: 2461 (redshift) CGroup: /user.slice/user-1000.slice/user@1000.service/redshift.service └─2461 /usr/bin/redshift opensuse-thinkpad:~> systemctl --global status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enable> Active: active (running) since Mon 2018-06-04 23:25:03 PDT; 1min 14s ago Docs: http://jonls.dk/redshift/ Main PID: 2461 (redshift) CGroup: /user.slice/user-1000.slice/user@1000.service/redshift.service └─2461 /usr/bin/redshift opensuse-thinkpad:~> systemctl --user stop redshift.service opensuse-thinkpad:~> systemctl --user status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enable> Active: inactive (dead) since Mon 2018-06-04 23:27:01 PDT; 3s ago
Docs: http://jonls.dk/redshift/
Process: 2461 ExecStart=/usr/bin/redshift (code=exited, status=0/SUCCESS)
Main PID: 2461 (code=exited, status=0/SUCCESS)
opensuse-thinkpad:~> systemctl --global status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enable> Active: inactive (dead) since Mon 2018-06-04 23:27:01 PDT; 11s ago Docs: http://jonls.dk/redshift/ Process: 2461 ExecStart=/usr/bin/redshift (code=exited, status=0/SUCCESS) Main PID: 2461 (code=exited, status=0/SUCCESS)
Considering redshift and similar technologies are becoming increasingly popular then if Leap 15 won't receive the root cause fix it makes sense to me that users are given a solid work-around until the next release of Leap. Thanks.
Franck has confirmed the update for systemd will be released for Leap 15.0. Once that is out, a reinstall (or any new installs) of redshift will start disabled. The plasma widget you have installed runs its own instance of redshift. Therefore (user AND global) systemd redshift services should be disabled when the widget is installed. Try restarting once the services are disabled and then check the widget functionality. If the widget is now failing to start redshift, that may be a different bug; it was working as of your original report. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c15 --- Comment #15 from Nicholas Harvey <mobile.harvey@gmail.com> --- Hi Tejas I've tried the work-around and it appears to work. Slight confusion on my part about the commands and whether to run as sudo or not. Here's what I did to get this to work: sudo systemctl --global disable redshift.service #running without sudo stated permission denied sudo systemctl --user disable redshift.service Failed to connect to bus: No such file or directory Disabling the user service without sudo just returned nothing. Not to worry as I've rebooted and the redshift widget not only switches on and off correctly, but when on it no longer flickers. That'll do me for now and I'll re-install redshift when the systemd update arrives to test the final fix. Thanks and all the best, Nick -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c16 --- Comment #16 from Tejas Guruswamy <masterpatricko@gmail.com> --- (In reply to Nicholas Harvey from comment #15)
Not to worry as I've rebooted and the redshift widget not only switches on and off correctly, but when on it no longer flickers.
That'll do me for now and I'll re-install redshift when the systemd update arrives to test the final fix.
Great, thanks. For clarification to anyone else reading: systemctl --user disable redshift.service is to be run as your/every user and sudo systemctl --global disable redshift.service is to be run as root. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1090480 http://bugzilla.opensuse.org/show_bug.cgi?id=1090480#c17 --- Comment #17 from Franck Bui <fbui@suse.com> --- (In reply to Tejas Guruswamy from comment #14)
Franck has confirmed the update for systemd will be released for Leap 15.0. Once that is out, a reinstall (or any new installs) of redshift will start disabled.
Just for clarification, I said that it will be certainly part of an *update* release. AFAIK Leap 15.0 is already released. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com