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)

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?


All times are GMT. The time now is 14:52.

vBulletin® Version 3.8.8