Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

3 votes
3 answers
7749 views
How to change temperature of the screen and set my position manually with redshift?
I'd like to use the [`redshift`][1] to change the screen color temperature. Now it looks like redshift requires me to install [`geoclue`][2]. But I don't want to have that package installed. And in addition, I'd like to specify the times for my screen color to be changed manually. Either by setting...
I'd like to use the redshift to change the screen color temperature. Now it looks like redshift requires me to install geoclue . But I don't want to have that package installed. And in addition, I'd like to specify the times for my screen color to be changed manually. Either by setting my position manually or by simply specifying the time it should start and end dimming. Is there a way to change my screen color temperature like that with some other tool or with some trick maybe? I'm also interested in *why* that isn't possible with redshift even though it shouldn't matter whether it gets the data from geoclue position data or by some data entered manually. I'm using Debian 9 with KDE.
mYnDstrEAm (4708 rep)
Sep 17, 2017, 02:33 PM • Last activity: Mar 25, 2025, 02:15 PM
6 votes
1 answers
4629 views
geoclue "Failed to query location: Not Found"
I have noticed that `redshift` does not work anymore on my machine with Linux Mint 21.3. I am sure that about half a year ago it was still working (that could be under Linux Mint 21.2 though). Trying to debug this, I found out that the problem must be with `geoclue`: ```console $ redshift Trying loc...
I have noticed that redshift does not work anymore on my machine with Linux Mint 21.3. I am sure that about half a year ago it was still working (that could be under Linux Mint 21.2 though). Trying to debug this, I found out that the problem must be with geoclue:
$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Could not connect to wayland display, exiting.
Failed to start adjustment method wayland.
Trying next method...
Using method `randr'.
Waiting for initial location to become available...
^Cpoll: Interrupted system call
Unable to get location from provider.
(I do not know why it talks about wayland, it is not a wayland session.) Executing /usr/libexec/geoclue-2.0/demos/where-am-i from geoclue-2-demo package just times out after a while without any output or error. (Sometimes it did produce some error message about something missing IIRC, but I could not reproduce it reliably.) Here is the status of geoclue.service:
$ systemctl status geoclue.service | cat
● geoclue.service - Location Lookup Service
     Loaded: loaded (/lib/systemd/system/geoclue.service; static)
     Active: active (running) since Sat 2024-06-15 13:53:51 CEST; 7min ago
   Main PID: 2434 (geoclue)
      Tasks: 4 (limit: 18810)
     Memory: 19.1M
        CPU: 424ms
     CGroup: /system.slice/geoclue.service
             └─2434 /usr/libexec/geoclue

Jun 15 13:53:51 Alexey-InfinityBook-Mint systemd: Started Location Lookup Service.
Jun 15 13:54:12 Alexey-InfinityBook-Mint geoclue: Failed to query location: Not Found
Jun 15 13:54:17 Alexey-InfinityBook-Mint geoclue: Failed to query location: Not Found
[...]
Googling "geoclue.service Failed to query location Not Found" did not return anything relevant on the top of the search results. I have the same problem (at least it looks the same) under LMDE 6 (Linux Mint Debian Edition). Any help will be appreciated.
Alexey (2310 rep)
Jun 15, 2024, 12:21 PM • Last activity: Jun 16, 2024, 09:57 PM
2 votes
1 answers
1692 views
Debugging strange EACCES (Permission denied) permission error
I have a symlink to a world-readable file that a c program is being unable to read. `redshift` is supposed to pick up configuration from `$HOME/.config/redshift/redsihft.conf` automatically, but it wasn't. I tried tracing system calls to understand what files are being tried: debian-x1-7th][redshift...
I have a symlink to a world-readable file that a c program is being unable to read. redshift is supposed to pick up configuration from $HOME/.config/redshift/redsihft.conf automatically, but it wasn't. I tried tracing system calls to understand what files are being tried: debian-x1-7th][redshift-1.12]$ strace -fe trace=file redshift execve("/usr/bin/redshift", ["redshift"], 0x7ffd2d3c2680 /* 78 vars */) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdrm.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libwayland-client.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libxcb-randr.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libX11.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libXxf86vm.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libffi.so.7", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libXext.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgmodule-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libmount.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libbsd.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libblkid.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libmd.so.0", O_RDONLY|O_CLOEXEC) = 3 statfs("/sys/fs/selinux", 0x7ffc678ee320) = -1 ENOENT (No such file or directory) statfs("/selinux", 0x7ffc678ee320) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3 access("/etc/selinux/config", F_OK) = 0 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/home/ealfonso/.config/redshift/redshift.conf", O_RDONLY) = -1 EACCES (Permission denied) openat(AT_FDCWD, "/home/ealfonso/.config/redshift.conf", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/home/ealfonso/.config/redshift/redshift.conf", O_RDONLY) = -1 EACCES (Permission denied) openat(AT_FDCWD, "/home/ealfonso/.config/redshift.conf", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/redshift.conf", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) Trying location provider `geoclue2'... Using provider `geoclue2'. strace: Process 78213 attached Could not connect to wayland display, exiting. Failed to start adjustment method wayland. Trying next method... [pid 78212] access("/home/ealfonso/.Xauthority", R_OK) = 0 [pid 78212] openat(AT_FDCWD, "/home/ealfonso/.Xauthority", O_RDONLY) = 6 strace: Process 78214 attached [pid 78213] openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 78213] openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 78213] openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 78213] openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 78213] openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 78213] openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory) Using method `randr'. Waiting for initial location to become available... strace: Process 78215 attached strace: Process 78216 attached [pid 78215] +++ exited with 0 +++ ` The line that surprises me is this permission denied: openat(AT_FDCWD, "/home/ealfonso/.config/redshift/redshift.conf", O_RDONLY) = -1 EACCES (Permission denied) Suggesting that the process is being denied opening /home/ealfonso/.config/redshift/redshift.conf. This is strange because the file is supposed to be world-readable. All the parent directories are owner-executable, including the symlink target: [debian-x1-7th][redshift-1.12]$ ls -l /home/ealfonso/.config/redshift/redshift.conf lrwxrwxrwx 1 ealfonso ealfonso 47 Jul 21 15:47 /home/ealfonso/.config/redshift/redshift.conf -> /home/ealfonso/git/dotfiles/inits/redshift.conf █[debian-x1-7th][redshift-1.12]$ ls -l /home/ealfonso/git/dotfiles/inits/redshift.conf -rw-r--r-- 1 ealfonso ealfonso 138 Jul 21 15:32 /home/ealfonso/git/dotfiles/inits/redshift.conf █[debian-x1-7th][redshift-1.12]$ ls -ld ~/.config/ drwx------ 29 ealfonso ealfonso 4096 Jul 21 15:47 /home/ealfonso/.config/ █[debian-x1-7th][redshift-1.12]$ ls -ld ~/ drwxr-xr-x 56 ealfonso ealfonso 4096 Jul 21 16:10 /home/ealfonso/ █[debian-x1-7th][redshift-1.12]$ ls -ld /home/ drwxr-xr-x 3 root root 4096 Apr 27 17:10 /home/ █[debian-x1-7th][redshift-1.12]$ █[debian-x1-7th][redshift-1.12]$ ls -ld /home/ealfonso/git/dotfiles/inits/ drwxr-xr-x 8 ealfonso ealfonso 4096 Jul 21 15:32 /home/ealfonso/git/dotfiles/inits/ I tried compiling redshift from source and adding some debug logs, and surprisingly I was not able to reproduce the error: █[debian-x1-7th][redshift-1.12]$ strace -f -e trace=file ./src/redshift execve("./src/redshift", ["./src/redshift"], 0x7ffc655cd728 /* 78 vars */) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libwayland-client.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libxcb-randr.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libffi.so.7", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgmodule-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libmount.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libbsd.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libblkid.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libmd.so.0", O_RDONLY|O_CLOEXEC) = 3 statfs("/sys/fs/selinux", 0x7fff8353fa80) = -1 ENOENT (No such file or directory) statfs("/selinux", 0x7fff8353fa80) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3 access("/etc/selinux/config", F_OK) = 0 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 DDEBUG 7w6d: cp /home/ealfonso/.config/redshift/redshift.conf openat(AT_FDCWD, "/home/ealfonso/.config/redshift/redshift.conf", O_RDONLY) = 3 DDEBUG TRACE (config-ini.c) nlbc () DDEBUG wo2r: value randr DDEBUG iwyt: m->name wayland DDEBUG iwyt: m->name randr access("/home/ealfonso/.Xauthority", R_OK) = 0 openat(AT_FDCWD, "/home/ealfonso/.Xauthority", O_RDONLY) = 4 openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4 openat(AT_FDCWD, "/usr/local/share/locale/en_US.UTF-8/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/local/share/locale/en_US.utf8/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/local/share/locale/en_US/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/local/share/locale/en.UTF-8/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/local/share/locale/en.utf8/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/local/share/locale/en/LC_MESSAGES/redshift.mo", O_RDONLY) = -1 ENOENT (No such file or directory) Waiting for initial location to become available... Location: 28.56 N, 81.21 E openat(AT_FDCWD, "/home/ealfonso/.config/redshift/hooks", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory) ^Cstrace: Process 78851 detached █[debian-x1-7th][redshift-1.12]$ In particular: DDEBUG 7w6d: cp /home/ealfonso/.config/redshift/redshift.conf openat(AT_FDCWD, "/home/ealfonso/.config/redshift/redshift.conf", O_RDONLY) = 3 The file is opened successfully and the correct configuration is loaded. How can I further debug this strange error? For context, I am on debian 11 using redshift 1.12, but this is intended as a general question of how to debug these system calls. ... Shortly after posting the question, I looked into the files packaged as part of redshift and noticed an apparmor file with contents including: #include /usr/bin/redshift { #include #include #include #include #include dbus send bus=system path=/org/freedesktop/GeoClue2/Client/[0-9]*, dbus receive bus=system path=/org/freedesktop/GeoClue2/Manager, # Allow but log any other dbus activity audit dbus bus=system, owner @{HOME}/.config/redshift.conf r, owner /run/user/*/redshift-shared-* rw, # Site-specific additions and overrides. See local/README for details. #include } From the source, the ~/.config/redshift.conf is referred to as the "formerly used" fall-back path: if (f == NULL && (env = getenv("XDG_CONFIG_HOME")) != NULL && env != '\0') { snprintf(cp, sizeof(cp), "%s/redshift/redshift.conf", env); f = fopen(cp, "r"); if (f == NULL) { /* Fall back to formerly used path. */ snprintf(cp, sizeof(cp), "%s/redshift.conf", env); f = fopen(cp, "r"); } } But after adding the line owner @{HOME}/.config/redshift/redshift.conf r to this config and the file was still denied.
ealfonso (993 rep)
Jul 21, 2023, 08:55 PM • Last activity: Jul 21, 2023, 09:36 PM
3 votes
1 answers
490 views
How to remove *all* green and blue light: xcalib and redshift seem not to?
I'd like to have a `redshift`-style effect on my laptop screen but where I truly remove *all* green and blue light, leaving only red. I've experimented with `redshift`, which doesn't seem to take it all the way, only redder, but neither it seems does `xcalib`... I had thought I could get this by run...
I'd like to have a redshift-style effect on my laptop screen but where I truly remove *all* green and blue light, leaving only red. I've experimented with redshift, which doesn't seem to take it all the way, only redder, but neither it seems does xcalib... I had thought I could get this by running this: xcalib -blue 1 0 1 -a xcalib -green 1 0 1 -a But that seems to turn the screen orange rather than red -- perhaps it reduces the contrast in both directions (so makes the bottom end brighter too?). I'm confident that I'm right, and that that isn't a trick of the light, because if i run instead xcalib -red 1 99 1 -a ...then my black terminal turns definitely the sort of red that I wanted. Is there any way that I can achieve what I want -- effectively, cut out *all* blue and green light?
justme (133 rep)
Oct 16, 2018, 09:09 PM • Last activity: Apr 19, 2023, 07:16 AM
3 votes
3 answers
1984 views
toggle a program using bash script
I am trying to make a script that will toggle `redshift` (a night mode application). So, I've done this, #!/bin/bash pgrep redshift > /dev/null && \ killall redshift || \ setsid redshift [options] &> /dev/null This looks up for the program and if that program is running in the background then it is...
I am trying to make a script that will toggle redshift (a night mode application). So, I've done this, #!/bin/bash pgrep redshift > /dev/null && \ killall redshift || \ setsid redshift [options] &> /dev/null This looks up for the program and if that program is running in the background then it is killed otherwise it is started and is setsid. Now, this script works if I am to kill the process, but this script hangs when I run it back. - What am I doing wrong? - Is there other ways to put the process background so that killing the terminal won't stop the program?
Galilean (574 rep)
Jun 14, 2019, 04:33 PM • Last activity: Feb 23, 2023, 12:37 PM
0 votes
2 answers
665 views
redshift not working as intended
I am using Kali Linux and to filter the blue light, I am using this command: redshift -O 3500 But after a minute or so, the screen again goes back to default (does not filter the blue light anymore). Is it because `redshift` does not work during the day (and if it is so, how can I make it work durin...
I am using Kali Linux and to filter the blue light, I am using this command: redshift -O 3500 But after a minute or so, the screen again goes back to default (does not filter the blue light anymore). Is it because redshift does not work during the day (and if it is so, how can I make it work during the day) or something else?
mujin (11 rep)
May 6, 2021, 12:58 PM • Last activity: Aug 13, 2022, 03:06 AM
2 votes
1 answers
405 views
Running redshift on Debian returns a “Segmentation fault”
$ /usr/bin/redshift -l 52.3:16.3 -t 6700:3500 Segmentation fault DISTRIB_CODENAME=rodete DISTRIB_DESCRIPTION="Debian GNU/Linux rodete" DISTRIB_ID=Debian DISTRIB_RELEASE=rodete I restart my machine and I saw a popup with `cannot run redshift`. I tried to run it from the cmd, and got the above `Segmen...
$ /usr/bin/redshift -l 52.3:16.3 -t 6700:3500 Segmentation fault DISTRIB_CODENAME=rodete DISTRIB_DESCRIPTION="Debian GNU/Linux rodete" DISTRIB_ID=Debian DISTRIB_RELEASE=rodete I restart my machine and I saw a popup with cannot run redshift. I tried to run it from the cmd, and got the above Segmentation fault error.
Elad Benda (125 rep)
Jan 17, 2021, 10:09 AM • Last activity: Jul 19, 2022, 09:28 AM
1 votes
1 answers
1067 views
Linux: Redshift is blinking
I am using Arch linux with i3wm and picom as compositor. I would like to be able to use `redshift`. But when I launch `redshift`, it turns itself on and off every two seconds, resulting in annoying screen blinking. What can I do to stop this blinking and use `redshift` in peace?
I am using Arch linux with i3wm and picom as compositor. I would like to be able to use redshift. But when I launch redshift, it turns itself on and off every two seconds, resulting in annoying screen blinking. What can I do to stop this blinking and use redshift in peace?
Jan Černý (1723 rep)
Jan 9, 2022, 07:16 PM • Last activity: Jan 19, 2022, 11:47 PM
0 votes
1 answers
299 views
How to create a command to incrementally increase redshift's color temperature?
`redshift` is a package that enables blue light filter, so people can avoid eye strain. This software is pretty good, but it lacks controls to adjust the filter color temperature, **incrementally**: no sliders, buttons or commands. When I say "incrementally", what I mean is that I need a command to...
redshift is a package that enables blue light filter, so people can avoid eye strain. This software is pretty good, but it lacks controls to adjust the filter color temperature, **incrementally**: no sliders, buttons or commands. When I say "incrementally", what I mean is that I need a command to set color temperature according to the previous value. The package xbacklight has a good example: xbacklight +10 #increases monitor brightness by 10% or... xbacklight -10 #decreases monitor brightness by 10% Hence, if brightness value was 70%: now, it would become 60%. What I need is a command like this: temperature +10 #increases color temperature by 10% --- ### what redshift already provides With redshift, you can manually set color temperature like this: redshift -O 3000K Although, there's no built-in way to increase this value by 10%. Therefore, if you need to increase the value, you need to do this: redshift -x #reset the previous value redshift -O 3300K Notice that: not only I had to calculate the new value manually, I also had to reset the previous value, first. --- ### why do I need to do this I study all day, using my laptop. So, I need to have blue light filter on, in order to save my eyes and be more productive. I have some some ideas on how to make a simple shell script that could do this, but I have no idea how I would go and store the previous value variable or where to store this kinda script properly.
surfboardcompound (123 rep)
Feb 10, 2021, 02:35 PM • Last activity: Feb 20, 2021, 11:51 AM
1 votes
0 answers
596 views
Why does redshift use the deleted file /memfd:pulseaudio?
I ran a rkhunter scan (`sudo rkhunter -c --enable all --disable none --rwo`) and it showed me that redshift is accessing a deleted file. I'd like to find out why it's doing so and why it would need access to anything related to audio. The output is: `Warning: The following processes are using delete...
I ran a rkhunter scan (sudo rkhunter -c --enable all --disable none --rwo) and it showed me that redshift is accessing a deleted file. I'd like to find out why it's doing so and why it would need access to anything related to audio. The output is: Warning: The following processes are using deleted files: [...] Process: /usr/bin/redshift PID: id File: /memfd:pulseaudio. This file has been accessed before but I don't know if that was redshift too. Edit: asked about it at the redshift repo now
mYnDstrEAm (4708 rep)
Dec 16, 2020, 11:40 PM • Last activity: Jan 2, 2021, 05:16 PM
1 votes
1 answers
997 views
Spool/Capture output of COPY command in postgres/Redshift in shell script
I have shell script which will insert data into Redshift/Postgres database using psql command and i am using > for capturing script output. It captures everything but not how many rows inserted. When i run manually script on screen i can see rows inserted but not when i append output to file. Curren...
I have shell script which will insert data into Redshift/Postgres database using psql command and i am using > for capturing script output. It captures everything but not how many rows inserted. When i run manually script on screen i can see rows inserted but not when i append output to file. Currently i am getting - TRUNCATE TABLE and COMMIT TRANSACTION COPY Expected output- TRUNCATE TABLE and COMMIT TRANSACTION INFO: Load into table 'tablename' completed, 568 record(s) loaded successfully. COPY Command for insert from my script - psql -w -U uname -h dbhost db --port 1234 -c "COPY tablename FROM 's3://bucket1/tablename.json' credentials 'aws_access_key_id=' format as json 'auto';"
user437275 (13 rep)
Oct 14, 2020, 11:59 AM • Last activity: Oct 14, 2020, 02:30 PM
1 votes
0 answers
306 views
Redshift prevents manual backlight adjustment (LXQt)
Redshift seems to work fine, dimming my screen with the red tint at night, but when Redshift is running (whether actively enabled or not) I cannot control laptop brightness with the laptop brightness keys (F2 and F3). Instead, pressing the keys will momentarily seem to remove the Redshift effect and...
Redshift seems to work fine, dimming my screen with the red tint at night, but when Redshift is running (whether actively enabled or not) I cannot control laptop brightness with the laptop brightness keys (F2 and F3). Instead, pressing the keys will momentarily seem to remove the Redshift effect and adjust brightness, until Redshift become active again seconds later, resetting brightness to whatever it was set to before Redshift became active. If I quit Redshift entirely, brightness control works fine. Using Lubuntu (LXQt) 20.04, HP Pavilion.
Crabgrass0899 (221 rep)
Sep 23, 2020, 03:17 PM
1 votes
0 answers
164 views
Resdhift specify multiple time periods
I use [redshift][1] to regulate the levels of blue light of my display. I like the program but it only lets me specify a `dawn-time` and a `dusk-time`, which limits the ability to configure the temperature throughout the day. Is there a way to set other time intervals, for example one for the mornin...
I use redshift to regulate the levels of blue light of my display. I like the program but it only lets me specify a dawn-time and a dusk-time, which limits the ability to configure the temperature throughout the day. Is there a way to set other time intervals, for example one for the morning, one for the early afternoon, one for the late afternoon and one for the night? My current config file, located in ~/.config/redshift/redshift.conf as suggested in the man page is the following [redshift] dawn-time=06:50 dusk-time=18:00 temp-day=5400 temp-night=2300 gamma=0.8
noibe (407 rep)
Jan 12, 2020, 07:07 PM • Last activity: Feb 5, 2020, 12:57 PM
2 votes
2 answers
1661 views
How do I install Redshift 1.12 on Linux Mint 19 Cinnamon from source?
Redshift --------------- packages which are available in most distributions are dated 2016-01-02, which is > 2.5 years ago. Like on my system - Linux Mint 19 Cinnamon 64-bit - there is only [1.11 version][1] available: $ apt-cache policy redshift redshift: Installed: (none) Candidate: 1.11-1ubuntu1...
Redshift --------------- packages which are available in most distributions are dated 2016-01-02, which is > 2.5 years ago. Like on my system - Linux Mint 19 Cinnamon 64-bit - there is only 1.11 version available: $ apt-cache policy redshift redshift: Installed: (none) Candidate: 1.11-1ubuntu1 Version table: 1.11-1ubuntu1 500 500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages Note, that Linux Mint 19 is based on the latest Ubuntu 18.04. That might be caused by too little commits made in version 1.12 . Either way, I personally find version 1.12 it a rather crucial step forward. ------------------------------- Question ------------- Anyway, my question is, how to install the newer version without adding any PPA? Let me re-phrase. How do I install Redshift 1.12 on Linux Mint 19 Cinnamon from source? Please do include basic settings and set-up as I am not yet familiar with its settings.
Vlastimil Burián (30505 rep)
Oct 6, 2018, 01:58 AM • Last activity: May 5, 2019, 03:33 AM
1 votes
1 answers
2062 views
Redshift user service disallowed from using GeoClue2
I can't get Redshift to retrieve geolocation information from GeoClue2. The state right now, after a reboot and without having changed any packages or configuration since the reboot, is that - the GeoClue service is running: $ systemctl status geoclue.service ● geoclue.service - Location Lookup Serv...
I can't get Redshift to retrieve geolocation information from GeoClue2. The state right now, after a reboot and without having changed any packages or configuration since the reboot, is that - the GeoClue service is running: $ systemctl status geoclue.service ● geoclue.service - Location Lookup Service Loaded: loaded (/usr/lib/systemd/system/geoclue.service; static; vendor preset: disabled) Active: active (running) since Wed 2018-09-05 18:49:03 NZST; 3s ago Main PID: 8489 (geoclue) Tasks: 4 (limit: 4915) Memory: 2.1M CGroup: /system.slice/geoclue.service └─8489 /usr/lib/geoclue Sep 05 18:49:03 machine systemd[1] : Starting Location Lookup Service... Sep 05 18:49:03 machine systemd[1] : Started Location Lookup Service. - the packages are up to date: $ pacman --sync --info geoclue2 redshift Repository : extra Name : geoclue2 Version : 2.4.12-1 Description : Modular geoinformation service built on the D-Bus messaging system Architecture : x86_64 URL : https://www.freedesktop.org/wiki/Software/GeoClue/ Licenses : LGPL Groups : None Provides : None Depends On : libsoup json-glib libmm-glib avahi libnotify Optional Deps : None Conflicts With : geoclue Replaces : None Download Size : 154.42 KiB Installed Size : 1206.00 KiB Packager : Jan Alexander Steffens (heftig) Build Date : Sun 02 Sep 2018 07:42:59 NZST Validated By : MD5 Sum SHA-256 Sum Signature Repository : community Name : redshift Version : 1.12-2 Description : Adjusts the color temperature of your screen according to your surroundings. Architecture : x86_64 URL : http://jonls.dk/redshift/ Licenses : GPL3 Groups : None Provides : None Depends On : geoclue2 libdrm libxcb libxxf86vm Optional Deps : python-gobject: for redshift-gtk python-xdg: for redshift-gtk gtk3: for redshift-gtk Conflicts With : None Replaces : None Download Size : 130.88 KiB Installed Size : 851.00 KiB Packager : Evangelos Foutras Build Date : Tue 24 Jul 2018 03:19:05 NZST Validated By : MD5 Sum SHA-256 Sum Signature - GeoClue is configured to allow access from Redshift: $ tail --lines=4 /etc/geoclue/geoclue.conf [redshift] allowed=true system=false users= and yet Redshift is unable to start: $ redshift Trying location provider `geoclue2'... Using provider `geoclue2'. Using method `randr'. Waiting for initial location to become available... Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying. Unable to get location from provider. The user service exhibits a *different* behaviour: Trying location provider `geoclue2'... Using provider `geoclue2'. Using method `randr'. Waiting for initial location to become available... Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: 'redshift' disallowed, no agent for UID 1000. Access to the current location was denied by GeoClue! Make sure that location services are enabled and that Redshift is permitted to use location services. See https://github.com/jonls/redshift#faq for more information. Unable to get location from provider. There seems to be a hack available to work around a similar problem - the error message above is different from that page when starting the program manually - but I'm interested in whether a more permanent fix is available or being worked on.
l0b0 (53368 rep)
Sep 5, 2018, 07:08 AM • Last activity: Oct 23, 2018, 03:10 AM
Showing page 1 of 15 total questions