This happens to me, when multiple f.lux sessions are running in the background at the same time. I use this script, to terminate them all:
#!/bin/bash
killall xflux;
while true;
do allxflux=$(pidof xflux);
wtsp=" ";
tmpxflux=${allxflux%%"$wtsp"*};
allxflux=${allxflux#*"$wtsp"};
case "$allxflux" in
*" "*)
kill -9 "$tmpxflux";
continue;
;;
*)
kill -9 "$tmpxflux";
break;
;;
esac;
done;
exit 0;
The script above terminates all f.lux sessions based on their PIDs.
After that, you can start a new f.lux session.
Hope that this can help you! :)