maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   redshift, f-lux: Adaptive screen color temperature (https://talk.maemo.org/showthread.php?t=76800)

momcilo 2011-09-16 14:31

redshift, f-lux: Adaptive screen color temperature
 
I think this should be interesting to investigate:

https://launchpad.net/redshift

http://stereopsis.com/flux/linux.html

Especially if you are using your devices under low-light conditions.

stlpaul 2011-09-16 14:37

Re: f-lux: Adapive screen color temperature
 
Since we have an ambient light sensor, maybe it could be used rather than lat/long lookups. Disabling the N900's auto brightness adjustment does not disable the ALS, so it could be used instead of brightness adjustments.

jstokes 2011-09-16 14:40

Re: f-lux: Adapive screen color temperature
 
redshift would be better to look at. Not only is it actually open source (unlike f.lux), it also has two methods to change the "temperature" rather than just one

momcilo 2011-09-16 14:59

Re: f-lux: Adapive screen color temperature
 
Quote:

Originally Posted by jstokes (Post 1089568)
redshift would be better to look at. Not only is it actually open source (unlike f.lux), it also has two methods to change the "temperature" rather than just one

That is true, the source for xflux is not released. I've posted this one as an idea for maemo based light adjuster.

You meant: https://launchpad.net/redshift

momcilo 2011-09-16 20:43

Re: redshift, f-lux: Adapive screen color temperature
 
I've tried the redshift this evening. In the evening I usually make all rooms darker.

It really feels better, turning of backlight makes it obvious.

demolition 2011-09-16 21:34

Re: redshift, f-lux: Adaptive screen color temperature
 
This seems very interesting. Are there any screenshots/images we can all see?

momcilo 2011-09-16 22:20

Re: redshift, f-lux: Adaptive screen color temperature
 
Quote:

Originally Posted by demolition (Post 1089741)
This seems very interesting. Are there any screenshots/images we can all see?

There is a ppa for redshift at launchpad. The thing reduces amount of blue, the display becomes redish. It is easier to read in the dark.

szopin 2011-09-19 19:34

Re: redshift, f-lux: Adaptive screen color temperature
 
Have you tried it on device? It does seem interesting (doubt screenshots will help, as it is about current display settings in current ambient light)

gregoranderson 2011-09-22 10:38

Re: redshift, f-lux: Adaptive screen color temperature
 
Can't compile on scratchbox ; can't seem to get libxcb-randr0 (although it exists on the N900 itself)

Code:

[sbox-FREMANTLE_ARMEL: /usr/lib] > apt-cache search randr   
libxrandr-dev - X11 RandR extension library (development headers)
libxrandr2 - X11 RandR extension library
libxrandr2-dbg - X11 RandR extension library (debug package)
x11proto-randr-dev - X11 RandR extension wire protocol
[sbox-FREMANTLE_ARMEL: /usr/lib] >


Code:

Nokia-N900:/etc/apt# apt-cache search randr
libxcb-randr0 - X C Binding, randr extension
libxrandr2 - X11 RandR extension library
Nokia-N900:/etc/apt#

Full Package Info:

Code:

Nokia-N900:/etc/apt# apt-cache showpkg libxcb-randr0
Package: libxcb-randr0
Versions:
1.1.92-2downgraded (/var/lib/apt/lists/downloads.maemo.nokia.com_fremantle_ssu_203_._Packages) (/var/lib/dpkg/status)
 Description Language:
                File: /var/lib/apt/lists/downloads.maemo.nokia.com_fremantle_ssu_203_._Packages
                  MD5: adb389382ef0d8f0e2a3de70afef6284

Reverse Depends:
  ohm-plugins-misc,libxcb-randr0
  mp-fremantle-203-pr,libxcb-randr0 1.1.92-2downgraded
Dependencies:
1.1.92-2downgraded - libc6 (2 2.5.0-1) libxcb1 (0 (null))
Provides:
1.1.92-2downgraded -
Reverse Provides:
Nokia-N900:/etc/apt#

Sadly Nokia not allowing me to added this repo to my sbox (even though I added the https method to apt).

Any thoughts?

momcilo 2011-09-22 11:15

Re: redshift, f-lux: Adaptive screen color temperature
 
Quote:

Originally Posted by gregoranderson (Post 1093832)
Can't compile on scratchbox ; can't seem to get libxcb-randr0 (although it exists on the N900 itself)

Code:

[sbox-FREMANTLE_ARMEL: /usr/lib] > apt-cache search randr   
libxrandr-dev - X11 RandR extension library (development headers)
libxrandr2 - X11 RandR extension library
libxrandr2-dbg - X11 RandR extension library (debug package)
x11proto-randr-dev - X11 RandR extension wire protocol
[sbox-FREMANTLE_ARMEL: /usr/lib] >


Code:

Nokia-N900:/etc/apt# apt-cache search randr
libxcb-randr0 - X C Binding, randr extension
libxrandr2 - X11 RandR extension library
Nokia-N900:/etc/apt#

Full Package Info:

Code:

Nokia-N900:/etc/apt# apt-cache showpkg libxcb-randr0
Package: libxcb-randr0
Versions:
1.1.92-2downgraded (/var/lib/apt/lists/downloads.maemo.nokia.com_fremantle_ssu_203_._Packages) (/var/lib/dpkg/status)
 Description Language:
                File: /var/lib/apt/lists/downloads.maemo.nokia.com_fremantle_ssu_203_._Packages
                  MD5: adb389382ef0d8f0e2a3de70afef6284

Reverse Depends:
  ohm-plugins-misc,libxcb-randr0
  mp-fremantle-203-pr,libxcb-randr0 1.1.92-2downgraded
Dependencies:
1.1.92-2downgraded - libc6 (2 2.5.0-1) libxcb1 (0 (null))
Provides:
1.1.92-2downgraded -
Reverse Provides:
Nokia-N900:/etc/apt#

Sadly Nokia not allowing me to added this repo to my sbox (even though I added the https method to apt).

Any thoughts?

I've tried on diablo (all packages present) and failed to configure

I think the configure script might be broken.

BTW: after several days of using redshift on my laptop, I think it really works better than dimming of the screen. If combined with dimming it works great for my eyes.

Alfred 2011-09-22 11:28

Re: redshift, f-lux: Adaptive screen color temperature
 
I really hope this comes to a HAPPY END for maemo

momcilo 2011-09-22 11:56

Re: redshift, f-lux: Adaptive screen color temperature
 
Quote:

Originally Posted by Alfred (Post 1093859)
I really hope this comes to a HAPPY END for maemo

It should be simple.

There are two things that must be provided by OS:
  1. information on current time and time zone (geoclue, gnome-clock, manual)
  2. method to change the colors (randr, vidmode)

gregoranderson 2011-09-22 12:07

Re: redshift, f-lux: Adaptive screen color temperature
 
Quote:

Originally Posted by momcilo (Post 1093854)
I've tried on diablo (all packages present) and failed to configure

I think the configure script might be broken.

BTW: after several days of using redshift on my laptop, I think it really works better than dimming of the screen. If combined with dimming it works great for my eyes.

I'll have a dig through it again this afternoon when I've done some real (get-paid-for!) work.

Agree with you about redshift on my panels. Makes a big difference for prolonged use.

gregoranderson 2011-09-22 12:40

Re: redshift, f-lux: Adaptive screen color temperature
 
Google dug up the following (which didn't turn up when I searched maemo.org!)

http://forums.internettablettalk.com...4&postcount=34

Checking again, redshift requires xrandr >= 1.3, so that's a non-starter for the N900. I'll look and see what is possible with the xrandr-dev libs that come with the sdk - however I think we can call it a no-go for a redshift port.

In the meantime, a means of staggering the brightness across day might be a reasonable. Fbreader, even with white on black nearly burns the core of my retina when I'm reading late at night ... it's a PITA having to traverse the control panel just to change it :)

momcilo 2011-09-22 12:47

Re: redshift, f-lux: Adaptive screen color temperature
 
Quote:

Originally Posted by gregoranderson (Post 1093896)
Google dug up the following (which didn't turn up when I searched maemo.org!)

http://forums.internettablettalk.com...4&postcount=34

Checking again, redshift requires xrandr >= 1.3, so that's a non-starter for the N900. I'll look and see what is possible with the xrandr-dev libs that come with the sdk - however I think we can call it a no-go for a redshift port.

In the meantime, a means of staggering the brightness across day might be a reasonable. Fbreader, even with white on black nearly burns the core of my retina when I'm reading late at night ... it's a PITA having to traverse the control panel just to change it :)

FBReader can be tweaked to support that, by alternating the background color based on time/zone.

gregoranderson 2011-09-22 12:54

Re: redshift, f-lux: Adaptive screen color temperature
 
Quote:

Originally Posted by momcilo (Post 1093900)
FBReader can be tweaked to support that, by alternating the background color based on time/zone.

Ha! Thinking out of the box - I very much like that idea. Nice one :)

Nad 2013-02-01 17:16

Re: redshift, f-lux: Adaptive screen color temperature
 
I love flux on my PC and have tried to get it running on my N9.
No luck there.

As flux closed source, I have tried redshift. Downloaded the source code and I have gcc installed as per:
http://talk.maemo.org/showpost.php?p...3&postcount=18

I know gcc works are I have compiled and use proxychains on my N9.

On ./configure:
Code:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for 2-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no

From the config.log

Code:

configure:3219: $? = 0
configure:3208: gcc -v >&5
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='maemo 4.4.1-0maemo14+0m6' --with-bugurl=http://bugs.maemo.org/ --with-arch=armv7-a --with-float=hard --with-fpu=neon --enable-languages=c,c++,fortran --prefix=/usr --enable-shared --disable-multiarch --enable-linker-build-id --with-system-zlib --with-mpfr-lib=/usr/lib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.4.1 (maemo 4.4.1-0maemo14+0m6)
configure:3219: $? = 0
configure:3208: gcc -V >&5
gcc: '-V' option must have argument
configure:3219: $? = 1
configure:3208: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3219: $? = 1
configure:3239: checking whether the C compiler works
configure:3261: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3265: $? = 1
configure:3303: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "redshift"
| #define PACKAGE_TARNAME "redshift"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "redshift 1.7"
| #define PACKAGE_BUGREPORT "https://bugs.launchpad.net/redshift"
| #define PACKAGE_URL ""
| #define PACKAGE "redshift"
| #define VERSION "1.7"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|  return 0;
| }
configure:3308: error: in `/redshift':
configure:3310: error: C compiler cannot create executables
See `config.log' for more details

I doesnt want to compile ;/

Thought there was a slim chance that the debian packages may work too so I have also downloaded redshift_1.2-3_armel.deb, which installed ok following me installing the dependency libxxf86vm1_1.1.0-2_armel.deb was installed but then I get a "BUS error" on execution.

Any ideas on getting it to run?

Doctor Colossus 2013-07-08 23:36

Re: redshift, f-lux: Adaptive screen color temperature
 
Unfortunately I'm not sure why it claims your C compiler doesn't work. That's weird. Check this and this:
Quote:

might want to run gcc-config to re set your C compiler, generally when you get this error is either due to broken CFLAGS or flat out not having the compiler in the expected path.
might need ldconfig also
I can only tell you that more trouble lies ahead. For me it configures okay after installing the libxcb-randr0 package and manually installing /usr/lib/pkgconfig/xcb-randr.pc and /usr/include/xcb/randr.h from the source of the appropriate version.

But I still get build errors:
Code:

make                                                                               
make  all-recursive
make[1]: Entering directory `redshift-1.7'
Making all in src
make[2]: Entering directory `redshift-1.7/src'
Making all in gtk-redshift
make[3]: Entering directory `redshift-1.7/src/gtk-redshift'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `redshift-1.7/src/gtk-redshift'
make[3]: Entering directory `redshift-1.7/src'
  CC      redshift.o
In file included from redshift.c:61:
gamma-randr.h:33: error: expected specifier-qualifier-list before ‘xcb_randr_crtc_t’
make[3]: *** [redshift.o] Error 1
make[3]: Leaving directory `redshift-1.7/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `redshift-1.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `redshift-1.7'
make: *** [all] Error 2

I started working on it last summer and gave up. Redshift's author was helpful then, so I've once more solicited his advice. Anyone here with insight is also welcome to chip in. Hoping to make some more progress on this.

knobtviker 2013-07-09 06:18

This is much simpler on N9 than that.
2 lines properly placed. :)

Kozzi 2013-11-17 03:03

Any chance for a deb of redshift for N9 or did anyone got it working yet?

badpixel 2016-01-29 01:11

Re: redshift, f-lux: Adaptive screen color temperature
 
Quote:

Originally Posted by knobtviker (Post 1357798)
This is much simpler on N9 than that.
2 lines properly placed. :)

Can you(knobtviker) or anyone else share these 2lines?

I installed RedShift on desktop and it's pretty helpfull. I hate this shitty crapware for android (screen is horribly red) and would like to got similar experience on n9 (it's even more important on it, than on desktop machine)


All times are GMT. The time now is 22:19.

vBulletin® Version 3.8.8