1

Topic: Blue light fliter

Hi people,


First of all, I hope that all of you are having a good time of Christmas holidays.

I have noticed lately a substantial decrease of my vision capacity. I think all is due to the fact that during the previous year I have been an inusual large amount of hours in front computer monitors.

I am trying to find some some blue light fliter to see if that can help me reduce the problem for the future.

I found references over the Internet to some programs but I canot find any of them within the Hyperbola repositories.

Does anyone know about any similar program available to us in Hyperbola?



Thanks to all in advance for your help.

2 (edited by ΙΧΘΥΣ 2019-12-28 20:35:26)

Re: Blue light fliter

cynicfm wrote:

Do you mean you need something that will change the blue light to orange?? Like night display light that is available on windows 10 for example??

What I mean is that I am looking for a program similar to Redshift within the Hyperbola repositories.


Does anyone know if such an alternative exists?

3 (edited by ΙΧΘΥΣ 2019-12-28 22:49:21)

Re: Blue light fliter

Ok, so I do not like this way but intending to give, at least temporarily, some relief to my eye strain problem, I tried to install the Redshift package from the Parabola repositories.

I tried to install the version without geoclue2 support (nonprism). Unfortunately, I cannot uninstall unless I decide to remove the your-freedom package (which I am not willing to remove).



pc@localhost:~/Downloads$ sudo pacman -U redshift-1.12-2.nonprism1-x86_64.pkg.tar.xz
[sudo] password for pc: 
loading packages...
resolving dependencies...
looking for conflicting packages...
:: redshift and your-freedom are in conflict. Remove your-freedom? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: redshift and your-freedom are in conflict



Any ideas, guys?

4 (edited by aether 2019-12-28 23:44:56)

Re: Blue light fliter

Save the following as "PKGBUILD"

# Maintainer (Arch): Lukas Fleischer <lfleischer@archlinux.org>
# Contributor (Arch): Geoffrey Teale <tealeg@stop-squark>
# Contributor (Arch): Mark, Huo Mian <markhuomian[at]gmail[dot]com>
# Contributor (Arch): Biginoz <biginoz a free dot fr>
# Contributor (Arch): Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
# Maintainer: André Silva <emulatorman@hyperbola.info>

pkgname=redshift-custom
pkgname2=redshift
pkgver=1.12
pkgrel=2.nonprism1
pkgdesc='Adjusts the color temperature of your screen according to your surroundings, without geoclue2 support'
arch=('i686' 'x86_64' 'armv7h')
url='http://jonls.dk/redshift/'
license=('GPL3')
depends=('libdrm' 'libxcb' 'libxxf86vm')
optdepends=('python-gobject: for redshift-gtk'
            'python-xdg: for redshift-gtk'
            'gtk3: for redshift-gtk')
makedepends=('intltool' 'python')
source=("https://github.com/jonls/${pkgname2}/releases/download/v${pkgver}/${pkgname2}-${pkgver}.tar.xz")
sha256sums=('d2f8c5300e3ce2a84fe6584d2f1483aa9eadc668ab1951b2c2b8a03ece3a22ba')

build() {
  cd "${srcdir}/${pkgname2}-${pkgver}"

  ./configure --prefix=/usr --enable-drm --enable-randr --enable-vidmode
  make
}
package() {
  cd "${srcdir}/${pkgname2}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}

Open a terminal and execute makepkg in the directory where you saved the PKGBUILD.

Example :

anon@user [~/Downloads] makepkg -si

It will compile it and install it automatically.
I edited the pkgbuild so it doesn't include systemd crap or geoclue. And also renamed the package to redshift-custom to avoid your-freedom block.
Since there is no geoclue, you will need to input latitude/longitude manually to make it work.

Example :
If you execute it with a terminal :

redshift -l 17.584034:3.319443

If using the gtk applet, edit the applet so it is launched it with coordinates :

redshift-gtk -l 17.584034:3.319443

Use https://getlatlong.net/ for example to find lat/long for your address.

5 (edited by ΙΧΘΥΣ 2019-12-29 20:13:09)

Re: Blue light fliter

Thanks, Aether. After having followed your instructions, the solution was close at hand, but at the last moment the installation failed:


pc@localhost:~/Downloads/redshift-custom$ makepkg -si
==> Making package: redshift-custom 1.12-2.nonprism1 (Sun Dec 29 20:49:04 CET 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found redshift-1.12.tar.xz
==> Validating source files with sha256sums...
    redshift-1.12.tar.xz ... Passed
==> Extracting sources...
  -> Extracting redshift-1.12.tar.xz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether make supports nested variables... (cached) no
checking for style of include used by make... none
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for gcc option to accept ISO C99... none needed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... none
checking whether NLS is requested... yes
checking for intltool >= 0.50... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for windres... no
checking whether Objective C compiler works... no
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... no
checking for libdrm... no
checking for x11... no
checking for xxf86vm... no
checking for xcb... no
checking for xcb-randr... no
checking for glib-2.0 gobject-2.0... no
checking for glib-2.0 gio-2.0 >= 2.26... no
checking ApplicationServices/ApplicationServices.h usability... no
checking ApplicationServices/ApplicationServices.h presence... no
checking for ApplicationServices/ApplicationServices.h... no
checking whether CoreLocation/CoreLocation.h is usable... no Objective C compiler available
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for a Python interpreter with version >= 3.2... python
checking for python... /usr/bin/python
checking for python version... 3.6
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.6/site-packages
checking whether to enable DRM method... missing dependencies
configure: error: missing dependencies for DRM method
==> ERROR: A failure occurred in build().
    Aborting...
pc@localhost:~/Downloads/redshift-custom$

I checked and I have already installed the libdrm package and I proceeded to install intel-gpu-tools. Even though, whenever I try again, the installation does not complete.

6

Re: Blue light fliter

cynicfm wrote:

Sorry for not being able to help... I am new to linux.
I have just checked what packages conflict with your-freedom if the dependencies needed to build redshift are on the list but i couldn't find anything

Well i am sorry for your eyes strain problem hmm. I used to have acer laptop and the screen from it felt like it's baking my eyes... I have librebooted thinkpad T500 now and is not as bad...
But i know how it's like when you want to use your computer but your eyes won't let you...

I hope somebody is going to help you soon with this.


No worries, dude. I seriously appreciate that you tried to help.

7 (edited by aether 2019-12-30 02:12:31)

Re: Blue light fliter

ΙΧΘΥΣ wrote:

I checked and I have already installed the libdrm package and I proceeded to install intel-gpu-tools. Even though, whenever I try again, the installation does not complete.

Strange, "makepkg -si" should install the dependencies though.
Looking at the log :

checking for libdrm... no
checking for xxf86vm... no
checking for xcb... no

So, install them :

pacman -S libdrm libxcb libxxf86vm

and probably, you also need base-devel :

pacman -S base-devel

it will install everything needed to compile packages.

And try again. smile

8 (edited by ΙΧΘΥΣ 2019-12-31 00:48:25)

Re: Blue light fliter

aether wrote:
ΙΧΘΥΣ wrote:

I checked and I have already installed the libdrm package and I proceeded to install intel-gpu-tools. Even though, whenever I try again, the installation does not complete.

Strange, "makepkg -si" should install the dependencies though.
Looking at the log :

checking for libdrm... no
checking for xxf86vm... no
checking for xcb... no

So, install them :

pacman -S libdrm libxcb libxxf86vm

and probably, you also need base-devel :

pacman -S base-devel

it will install everything needed to compile packages.

And try again. smile


Thanks, man.


It looks like the libdrm, libxcb and libxxf86vm packages were already in place. Installing base-devel did the trick.



pc@localhost:~$ sudo pacman -S libdrm libxcb libxxf86vm base-devel
[sudo] password for pc: 
warning: libdrm-2.4.80-1 is up to date -- reinstalling
warning: libxcb-1.12-1 is up to date -- reinstalling
warning: libxxf86vm-1.1.4-1 is up to date -- reinstalling
:: There are 27 members in group base-devel:
:: Repository core
   1) autoconf  2) automake  3) binutils  4) bison  5) fakeroot  6) file  7) findutils  8) flex  9) gawk  10) gcc  11) gettext  12) grep  13) groff  14) gzip
   15) libelogind  16) libeudev  17) libtool  18) m4  19) make  20) pacman  21) patch  22) pkg-config  23) sed  24) sudo  25) texinfo  26) util-linux
   27) which

Enter a selection (default=all): 
warning: binutils-2.28.0-2.hyperbola2 is up to date -- reinstalling
warning: file-5.30-1 is up to date -- reinstalling
warning: findutils-4.6.0-2 is up to date -- reinstalling
warning: gawk-4.1.4-2 is up to date -- reinstalling
warning: gcc-6.3.0-1.hyperbola2 is up to date -- reinstalling
warning: gettext-0.19.8.1-2 is up to date -- reinstalling
warning: grep-3.0-1 is up to date -- reinstalling
warning: groff-1.22.3-7 is up to date -- reinstalling
warning: gzip-1.8-2 is up to date -- reinstalling
warning: libelogind-232.6-4 is up to date -- reinstalling
warning: libeudev-3.2.5-4 is up to date -- reinstalling
warning: libtool-2.4.6-7 is up to date -- reinstalling
warning: pacman-5.0.2-2.hyperbola9 is up to date -- reinstalling
warning: sed-4.4-1 is up to date -- reinstalling
warning: sudo-1.8.19.p2-1.hyperbola2 is up to date -- reinstalling
warning: texinfo-6.3-1 is up to date -- reinstalling
warning: util-linux-2.29.2-2.hyperbola3 is up to date -- reinstalling
warning: which-2.21-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (32) gc-7.6.0-1  guile-2.2.2-1  autoconf-2.69-4.hyperbola1  automake-1.15-2  binutils-2.28.0-2.hyperbola2  bison-3.0.4-2  fakeroot-1.21-2
              file-5.30-1  findutils-4.6.0-2  flex-2.6.4-1  gawk-4.1.4-2  gcc-6.3.0-1.hyperbola2  gettext-0.19.8.1-2  grep-3.0-1  groff-1.22.3-7  gzip-1.8-2
              libdrm-2.4.80-1  libelogind-232.6-4  libeudev-3.2.5-4  libtool-2.4.6-7  libxcb-1.12-1  libxxf86vm-1.1.4-1  m4-1.4.18-1  make-4.2.1-2
              pacman-5.0.2-2.hyperbola9  patch-2.7.5-1  pkg-config-0.29.2-1  sed-4.4-1  sudo-1.8.19.p2-1.hyperbola2  texinfo-6.3-1
              util-linux-2.29.2-2.hyperbola3  which-2.21-2

Total Download Size:     8.52 MiB
Total Installed Size:  254.45 MiB
Net Upgrade Size:       52.57 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 m4-1.4.18-1-x86_64                                                   166.1 KiB   475K/s 00:00 [########################################################] 100%
 autoconf-2.69-4.hyperbola1-any                                       586.1 KiB   575K/s 00:01 [########################################################] 100%
 automake-1.15-2-any                                                  585.4 KiB   874K/s 00:01 [########################################################] 100%
 bison-3.0.4-2-x86_64                                                 555.3 KiB   992K/s 00:01 [########################################################] 100%
 fakeroot-1.21-2-x86_64                                                67.1 KiB  2.18M/s 00:00 [########################################################] 100%
 flex-2.6.4-1-x86_64                                                  282.8 KiB   943K/s 00:00 [########################################################] 100%
 make-4.2.1-2-x86_64                                                  407.7 KiB  1235K/s 00:00 [########################################################] 100%
 patch-2.7.5-1-x86_64                                                  79.2 KiB  2.58M/s 00:00 [########################################################] 100%
 pkg-config-0.29.2-1-x86_64                                            34.7 KiB  1734K/s 00:00 [########################################################] 100%
 gc-7.6.0-1-x86_64                                                    217.6 KiB  1088K/s 00:00 [########################################################] 100%
 guile-2.2.2-1-x86_64                                                   5.6 MiB  1355K/s 00:04 [########################################################] 100%
(32/32) checking keys in keyring                                                               [########################################################] 100%
(32/32) checking package integrity                                                             [########################################################] 100%
(32/32) loading package files                                                                  [########################################################] 100%
(32/32) checking for file conflicts                                                            [########################################################] 100%
(32/32) checking available disk space                                                          [########################################################] 100%
:: Processing package changes...
( 1/32) reinstalling libdrm                                                                    [########################################################] 100%
( 2/32) reinstalling libxcb                                                                    [########################################################] 100%
( 3/32) reinstalling libxxf86vm                                                                [########################################################] 100%
( 4/32) reinstalling gawk                                                                      [########################################################] 100%
( 5/32) installing m4                                                                          [########################################################] 100%
( 6/32) installing autoconf                                                                    [########################################################] 100%
( 7/32) installing automake                                                                    [########################################################] 100%
( 8/32) reinstalling binutils                                                                  [########################################################] 100%
( 9/32) installing bison                                                                       [########################################################] 100%
(10/32) reinstalling sed                                                                       [########################################################] 100%
(11/32) reinstalling libeudev                                                                  [########################################################] 100%
(12/32) reinstalling util-linux                                                                [########################################################] 100%
(13/32) installing fakeroot                                                                    [########################################################] 100%
(14/32) reinstalling file                                                                      [########################################################] 100%
(15/32) reinstalling findutils                                                                 [########################################################] 100%
(16/32) installing flex                                                                        [########################################################] 100%
(17/32) reinstalling gcc                                                                       [########################################################] 100%
(18/32) reinstalling gettext                                                                   [########################################################] 100%
(19/32) reinstalling grep                                                                      [########################################################] 100%
(20/32) reinstalling groff                                                                     [########################################################] 100%
(21/32) reinstalling gzip                                                                      [########################################################] 100%
(22/32) reinstalling libelogind                                                                [########################################################] 100%
(23/32) reinstalling libtool                                                                   [########################################################] 100%
(24/32) reinstalling texinfo                                                                   [########################################################] 100%
(25/32) installing gc                                                                          [########################################################] 100%
(26/32) installing guile                                                                       [########################################################] 100%
(27/32) installing make                                                                        [########################################################] 100%
(28/32) reinstalling pacman                                                                    [########################################################] 100%
(29/32) installing patch                                                                       [########################################################] 100%
Optional dependencies for patch
    ed: for patch -e functionality
(30/32) installing pkg-config                                                                  [########################################################] 100%
(31/32) reinstalling sudo                                                                      [########################################################] 100%
(32/32) reinstalling which                                                                     [########################################################] 100%
:: Running post-transaction hooks...
(1/1) Updating the info directory file...
pc@localhost:~$ cd Downloads
pc@localhost:~/Downloads$ cd redshift-custom
pc@localhost:~/Downloads/redshift-custom$ makepkg -si
==> Making package: redshift-custom 1.12-2.nonprism1 (Mon Dec 30 17:48:09 CET 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found redshift-1.12.tar.xz
==> Validating source files with sha256sums...
    redshift-1.12.tar.xz ... Passed
==> Extracting sources...
  -> Extracting redshift-1.12.tar.xz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
checking whether NLS is requested... yes
checking for intltool >= 0.50... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for windres... no
checking whether Objective C compiler works... no
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libdrm... yes
checking for x11... yes
checking for xxf86vm... yes
checking for xcb... yes
checking for xcb-randr... yes
checking for glib-2.0 gobject-2.0... yes
checking for glib-2.0 gio-2.0 >= 2.26... yes
checking ApplicationServices/ApplicationServices.h usability... no
checking ApplicationServices/ApplicationServices.h presence... no
checking for ApplicationServices/ApplicationServices.h... no
checking whether CoreLocation/CoreLocation.h is usable... no Objective C compiler available
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for a Python interpreter with version >= 3.2... python
checking for python... /usr/bin/python
checking for python version... 3.6
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.6/site-packages
checking whether to enable DRM method... yes
checking whether to enable RANDR method... yes
checking whether to enable VidMode method... yes
checking whether to enable Quartz method... missing dependencies
checking whether to enable WinGDI method... missing dependencies
checking whether to enable Geoclue2 location provider... yes
checking whether to enable CoreLocation method... missing dependencies
checking whether to enable GUI status icon... yes
checking whether to enable Ubuntu icons... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking Directory to install systemd user unit files... Package systemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `systemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'systemd' found
not enabled
checking whether to enable AppArmor profile... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for uint16_t... yes
checking for library containing clock_gettime... none required
checking for library containing floor... -lm
checking for setlocale... yes
checking for strchr... yes
checking for floor... yes
checking for pow... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating src/redshift-gtk/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing po/stamp-it commands

 redshift 1.12

    prefix:        /usr
    compiler:        gcc
    cflags:        -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt
    ldflags:        -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

    Adjustment methods:
    DRM:        yes
    RANDR:        yes
    VidMode:        yes
    Quartz (macOS):    no
    WinGDI (Windows):    no

    Location providers:
    Geoclue2:            yes
    CoreLocation (macOS):    no

    GUI:        yes
    Ubuntu icons:    no
    systemd units:    no 
    AppArmor profile:   no

make  all-recursive
make[1]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
Making all in src
make[2]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
Making all in redshift-gtk
make[3]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src/redshift-gtk'
  GEN      redshift-gtk
make[3]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src/redshift-gtk'
make[3]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
  CC       colorramp.o
  CC       config-ini.o
  CC       gamma-dummy.o
  CC       hooks.o
  CC       location-manual.o
  CC       options.o
  CC       pipeutils.o
pipeutils.c: In function ‘pipeutils_signal’:
pipeutils.c:89:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  write(write_fd, "", 1);
  ^~~~~~~~~~~~~~~~~~~~~~
pipeutils.c: In function ‘pipeutils_handle_signal’:
pipeutils.c:97:2: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
  read(read_fd, &data, 1);
  ^~~~~~~~~~~~~~~~~~~~~~~
  CC       redshift.o
  CC       signals.o
  CC       solar.o
  CC       systemtime.o
  CC       gamma-drm.o
  CC       gamma-randr.o
  CC       gamma-vidmode.o
  CC       location-geoclue2.o
  OBJCLD   redshift
make[3]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
make[2]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
Making all in po
make[2]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/po'
  MSGFMT ar.gmo
  MSGFMT be.gmo
  MSGFMT bg.gmo
  MSGFMT ca.gmo
  MSGFMT cs.gmo
  MSGFMT da.gmo
  MSGFMT de.gmo
  MSGFMT el.gmo
  MSGFMT en_GB.gmo
  MSGFMT es.gmo
  MSGFMT et.gmo
  MSGFMT eu.gmo
  MSGFMT fi.gmo
  MSGFMT fr.gmo
  MSGFMT gl.gmo
  MSGFMT he.gmo
  MSGFMT hi.gmo
  MSGFMT hr.gmo
  MSGFMT hu.gmo
  MSGFMT it.gmo
  MSGFMT ja.gmo
  MSGFMT ka.gmo
  MSGFMT lt.gmo
  MSGFMT nb.gmo
  MSGFMT nl.gmo
  MSGFMT pl.gmo
  MSGFMT pt.gmo
  MSGFMT pt_BR.gmo
  MSGFMT ro.gmo
  MSGFMT ru.gmo
  MSGFMT sr.gmo
  MSGFMT sv.gmo
  MSGFMT tr.gmo
  MSGFMT uk.gmo
  MSGFMT zh_CN.gmo
  MSGFMT zh_TW.gmo
make[2]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/po'
make[2]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
  GEN      data/appdata/redshift-gtk.appdata.xml
  ITMRG  data/appdata/redshift-gtk.appdata.xml
  GEN      data/applications/redshift.desktop
  ITMRG  data/applications/redshift.desktop
  GEN      data/applications/redshift-gtk.desktop
  ITMRG  data/applications/redshift-gtk.desktop
make[2]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
make[1]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
==> Entering fakeroot environment...
==> Starting package()...
Making install in src
make[1]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
Making install in redshift-gtk
make[2]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src/redshift-gtk'
make[3]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src/redshift-gtk'
 /usr/bin/mkdir -p '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/bin'
 /usr/bin/install -c redshift-gtk '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/bin'
  GEN      defs.py
 /usr/bin/mkdir -p '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/lib/python3.6/site-packages/redshift_gtk'
 /usr/bin/install -c -m 644 defs.py '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/lib/python3.6/site-packages/redshift_gtk'
Byte-compiling python modules...
defs.py
Byte-compiling python modules (optimized versions) ...
defs.py
 /usr/bin/mkdir -p '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/lib/python3.6/site-packages/redshift_gtk'
 /usr/bin/install -c -m 644 __init__.py controller.py statusicon.py utils.py '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/lib/python3.6/site-packages/redshift_gtk'
Byte-compiling python modules...
__init__.pycontroller.pystatusicon.pyutils.py
Byte-compiling python modules (optimized versions) ...
__init__.pycontroller.pystatusicon.pyutils.py
make[3]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src/redshift-gtk'
make[2]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src/redshift-gtk'
make[2]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
make[3]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
 /usr/bin/mkdir -p '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/bin'
  /bin/sh ../libtool   --mode=install /usr/bin/install -c redshift '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/bin'
libtool: install: /usr/bin/install -c redshift /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/bin/redshift
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
make[2]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
make[1]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/src'
Making install in po
make[1]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/po'
linguas="ar be bg ca cs da de el en_GB es et eu fi fr gl he hi hr hu it ja ka lt nb nl pl pt pt_BR ro ru sr sv tr uk zh_CN zh_TW "; \
for lang in $linguas; do \
  dir=/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/$lang/LC_MESSAGES; \
  /bin/sh /home/pc/Downloads/redshift-custom/src/redshift-1.12/install-sh -d $dir; \
  if test -r $lang.gmo; then \
    /usr/bin/install -c -m 644 $lang.gmo $dir/redshift.mo; \
    echo "installing $lang.gmo as $dir/redshift.mo"; \
  else \
    /usr/bin/install -c -m 644 ./$lang.gmo $dir/redshift.mo; \
    echo "installing ./$lang.gmo as" \
     "$dir/redshift.mo"; \
  fi; \
  if test -r $lang.gmo.m; then \
    /usr/bin/install -c -m 644 $lang.gmo.m $dir/redshift.mo.m; \
    echo "installing $lang.gmo.m as $dir/redshift.mo.m"; \
  else \
    if test -r ./$lang.gmo.m ; then \
      /usr/bin/install -c -m 644 ./$lang.gmo.m \
    $dir/redshift.mo.m; \
      echo "installing ./$lang.gmo.m as" \
       "$dir/redshift.mo.m"; \
    else \
      true; \
    fi; \
  fi; \
done
installing ar.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/ar/LC_MESSAGES/redshift.mo
installing be.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/be/LC_MESSAGES/redshift.mo
installing bg.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/bg/LC_MESSAGES/redshift.mo
installing ca.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/ca/LC_MESSAGES/redshift.mo
installing cs.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/cs/LC_MESSAGES/redshift.mo
installing da.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/da/LC_MESSAGES/redshift.mo
installing de.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/de/LC_MESSAGES/redshift.mo
installing el.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/el/LC_MESSAGES/redshift.mo
installing en_GB.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/en_GB/LC_MESSAGES/redshift.mo
installing es.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/es/LC_MESSAGES/redshift.mo
installing et.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/et/LC_MESSAGES/redshift.mo
installing eu.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/eu/LC_MESSAGES/redshift.mo
installing fi.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/fi/LC_MESSAGES/redshift.mo
installing fr.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/fr/LC_MESSAGES/redshift.mo
installing gl.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/gl/LC_MESSAGES/redshift.mo
installing he.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/he/LC_MESSAGES/redshift.mo
installing hi.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/hi/LC_MESSAGES/redshift.mo
installing hr.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/hr/LC_MESSAGES/redshift.mo
installing hu.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/hu/LC_MESSAGES/redshift.mo
installing it.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/it/LC_MESSAGES/redshift.mo
installing ja.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/ja/LC_MESSAGES/redshift.mo
installing ka.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/ka/LC_MESSAGES/redshift.mo
installing lt.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/lt/LC_MESSAGES/redshift.mo
installing nb.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/nb/LC_MESSAGES/redshift.mo
installing nl.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/nl/LC_MESSAGES/redshift.mo
installing pl.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/pl/LC_MESSAGES/redshift.mo
installing pt.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/pt/LC_MESSAGES/redshift.mo
installing pt_BR.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/pt_BR/LC_MESSAGES/redshift.mo
installing ro.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/ro/LC_MESSAGES/redshift.mo
installing ru.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/ru/LC_MESSAGES/redshift.mo
installing sr.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/sr/LC_MESSAGES/redshift.mo
installing sv.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/sv/LC_MESSAGES/redshift.mo
installing tr.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/tr/LC_MESSAGES/redshift.mo
installing uk.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/uk/LC_MESSAGES/redshift.mo
installing zh_CN.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/zh_CN/LC_MESSAGES/redshift.mo
installing zh_TW.gmo as /home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/locale/zh_TW/LC_MESSAGES/redshift.mo
make[1]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12/po'
make[1]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
make[2]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/appdata'
 /usr/bin/install -c -m 644 data/appdata/redshift-gtk.appdata.xml '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/appdata'
 /usr/bin/mkdir -p '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/applications'
 /usr/bin/install -c -m 644 data/applications/redshift.desktop data/applications/redshift-gtk.desktop '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/applications'
 /usr/bin/mkdir -p '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/icons/hicolor/scalable/apps'
 /usr/bin/install -c -m 644 data/icons/hicolor/scalable/apps/redshift.svg data/icons/hicolor/scalable/apps/redshift-status-on.svg data/icons/hicolor/scalable/apps/redshift-status-off.svg '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/icons/hicolor/scalable/apps'
 /usr/bin/mkdir -p '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/man/man1'
 /usr/bin/install -c -m 644 redshift.1 '/home/pc/Downloads/redshift-custom/pkg/redshift-custom/usr/share/man/man1'
make  install-data-hook
make[3]: Entering directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
gtk-update-icon-cache -f -t /usr/share/icons/hicolor || :;
gtk-update-icon-cache: Failed to open file /usr/share/icons/hicolor/.icon-theme.cache : Permission denied
make[3]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
make[2]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
make[1]: Leaving directory '/home/pc/Downloads/redshift-custom/src/redshift-1.12'
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "redshift-custom"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: redshift-custom 1.12-2.nonprism1 (Mon Dec 30 17:48:27 CET 2019)
==> Installing package redshift-custom with pacman -U...
[sudo] password for pc: 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) redshift-custom-1.12-2.nonprism1

Total Installed Size:  1.18 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                 [########################################################] 100%
(1/1) checking package integrity                                                               [########################################################] 100%
(1/1) loading package files                                                                    [########################################################] 100%
(1/1) checking for file conflicts                                                              [########################################################] 100%
(1/1) checking available disk space                                                            [########################################################] 100%
:: Processing package changes...
(1/1) installing redshift-custom                                                               [########################################################] 100%
Optional dependencies for redshift-custom
    python-gobject: for redshift-gtk [installed]
    python-xdg: for redshift-gtk
    gtk3: for redshift-gtk [installed]
:: Running post-transaction hooks...
(1/2) Updating icon theme caches...
(2/2) Updating the desktop file MIME type cache...
pc@localhost:~/Downloads/redshift-custom$


Redshift working now. I must admit that I already notice a positive difference with reference to my sight.


I am sincerely grateful to you.

9 (edited by ΙΧΘΥΣ 2019-12-31 01:07:32)

Re: Blue light fliter

cynicfm wrote:

i can confirm it changes the colors of screen into orange

Yeah, you were right from the beginning.

cynicfm wrote:

Although are there any ways to use eaasier command than writing all these numbers??

If you find it easier, the gtk applet should give you some basic interface to use Redshift without writting commands in the terminal.

cynicfm wrote:

Are these numbers related to the density of the orange light??

No, those are the latitude and longitude of your geographical position. Those coordinates are necessary in order to allow Redshift to adjusts the color temperature of your screen according to surrounding light at your location.

The "density" that you mean is the color temperature. You can try

redshift -h

for more information:

The neutral temperature is 6500K. Using this value will not change the color
temperature of the display. Setting the color temperature to a value higher
than this results in more blue light, and setting a lower value will result in
more red light.

Default values:

  Daytime temperature: 6500K
  Night temperature: 4500K


To me the program is useful. I just miss the possibility of setting the red filter permanently. I tried:

 redshift -O

but not working.

10 (edited by ΙΧΘΥΣ 2020-01-04 15:37:44)

Re: Blue light fliter

ΙΧΘΥΣ wrote:

To me the program is useful. I just miss the possibility of setting the red filter permanently. I tried:

 redshift -O

but not working.

Sorry, it was late at night so I think I did not explain myself well enough.

I did not want to mean that

 redshift -0 TEMP

did not work but that it just worked for a few moments and not permanently.

Nevertheless, time after, I realised that the reason for which the command did not work was that I had already a filter set up when I tried to change to another one.

So, if this happen to any of you, the trick is simple: you just need to reset the filter that have already placed and try again:

pc@localhost:~$ redshift -x
pc@localhost:~$ redshift -O 2500

That will keep the color temperature that you have chosen for your screen (in my case 2500) for as long as your current sesion lasts. That means that the temperature will not change throughout the hours of the day to adjust itself to the estimated degree of daylight at your location.

Still, every time you decide to start a new sesion, the filter will need to be set up again.

11 (edited by zapper 2020-01-05 01:16:34)

Re: Blue light fliter

Try this for redshift, and you don't need geoclue at all.


https://github.com/jonls/redshift/wiki/ … nf-example



Although you do need to enter a latitude or longitude... but it doesnt have to be exact, wink

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!