![]() |
#31 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
And while I'm there, here's how the various fonts look, in this context
![]() Last edited by NiLuJe; 10-26-2018 at 12:35 AM. Reason: Updated snapshot |
![]() |
![]() |
![]() |
#32 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,247
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Quote:
![]() This is the default fbink statement for Miniclock: Code:
fbink -X "$cfg_offset_x" -Y "$cfg_offset_y" -F "$cfg_font" -S "$cfg_size" \ -C "$cfg_fg_color" -B "$cfg_bg_color" \ "$(date +"$cfg_format")" BTW:
|
||
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,855
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
|
Just checking (and waiting for a response to jackie_w's question) but I presume you need to have the footer displayed for this hack to work?
|
![]() |
![]() |
![]() |
#34 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@jackie_w:
* Good point, the fact that it doesn't draw a background *at all* means that this sort of thing can indeed happen, yeah ![]() * That may be a side-effect of how night-mode actually inverts the screen. With a software nightmode, it would work, but if it relies on the controller's inversion (which I *think* the latest versions do), I indeed have no idea how it might work, but probably not well ;p. And if the hack somehow manages to hook into fbink's own refresh calls, that's one more layer of unknown ![]() (But given the fact that you mention a white rectangle, I'm guessing the hack doesn't touch fbink's calls, and that rectangle is the refresh region itself, not getting inverted because fbink never does that). That's what you get for weird 5AM ideas, I guess, sorry ;p. Last edited by NiLuJe; 10-26-2018 at 10:48 AM. |
![]() |
![]() |
![]() |
#35 | |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Quote:
It does that 3 times (repeats) with 1 second in between (delay), configurable to some extent... Why repeat the call? I can register touchscreen activity but I don't know how long nickel takes to flip the page after that, and also you could be flipping two pages in quick succession, and in the old version of the hack, that would cause the clock to not show up in the end... Anyway this was meant as a quick and dirty fix, suprised how much attention this is getting to be honest ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@frostschutz: Don't be, I still have a similar quick'n dirty (and awfully inefficient) hack for Kindle lying around, and it was born the exact same way: on a bored night over 4 years ago after reading one random request ;D.
Last edited by NiLuJe; 10-26-2018 at 12:17 PM. |
![]() |
![]() |
![]() |
#37 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,247
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@NiLuJe,
OK. I thought it was just me being dumb ![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#38 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,592
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
![]() |
![]() |
![]() |
#39 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,592
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
![]() |
![]() |
![]() |
#40 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,247
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
![]() |
#41 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
...
there's a chance the wrong time will be displayed I have no idea why or how this happens, but somehow the miniclock process starts living in its own time zone ![]() someone please explain this to me Code:
# date Sun Oct 28 00:18:59 CEST 2018 ^^^^^^^^^^^^^^^^^^^^ # strace -ff -p $(pidof miniclock.sh) ./strace: Process 765 attached restart_syscall(<... resuming interrupted restart_syscall ...>) = 1 read(0, 0xa6d28, 1) = -1 EINVAL (Invalid argument) dup2(11, 0) = 0 close(11) = 0 [...] [pid 13229] stat64("/sbin/date", 0x7e98db70) = -1 ENOENT (No such file or directory) [pid 13229] stat64("/usr/sbin/date", 0x7e98db70) = -1 ENOENT (No such file or directory) [pid 13229] stat64("/bin/date", {st_mode=S_IFREG|0755, st_size=532224, ...}) = 0 [pid 13229] execve("/bin/date", ["date", "+%a %b %d %H:%m"], [/* 13 vars */]) = 0 [pid 13229] brk(NULL) = 0xa4000 [pid 13229] uname({sysname="Linux", nodename="(none)", ...}) = 0 [...] [pid 13229] gettimeofday({tv_sec=1540678741, tv_usec=421127}, NULL) = 0 [pid 13229] brk(NULL) = 0xa4000 [pid 13229] brk(0xc5000) = 0xc5000 [pid 13229] open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3 [pid 13229] fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) [pid 13229] fstat64(3, {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0 [pid 13229] fstat64(3, {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0 [pid 13229] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aac4000 [pid 13229] read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10\0\0\0\0"..., 1024) = 1024 [pid 13229] _llseek(3, 1257, [2281], SEEK_CUR) = 0 [pid 13229] read(3, "\nCET-1CEST,M3.5.0,M10.5.0/3\n", 1024) = 28 [pid 13229] close(3) = 0 [pid 13229] munmap(0x2aac4000, 4096) = 0 [pid 13229] fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 [pid 13229] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aac4000 [pid 13229] write(1, "Sun Oct 28 00:10\n", 17) = 17 [pid 13229] exit_group(0) = ? [pid 13229] +++ exited with 0 +++ <... read resumed> "Sun Oct 28 00:10\n", 128) = 17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [...] [pid 13230] execve("/usr/local/MiniClock/fbink", ["fbink", "-X", "2000", "-Y", "2000", "-F", "IBM", "-S", "0", "-C", "BLACK", "-B", "WHITE", "Sun Oct 28 00:10"], [/* 13 vars */]) = 0 edit: issue persists after reboot and even poweroff, so I'll put this down to moon radiation then edit: it's because I had %m instead of %M in the format string ![]() Last edited by frostschutz; 10-29-2018 at 06:53 AM. |
![]() |
![]() |
![]() |
#42 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
That's... interesting
![]() I assume gettimeofday returns the exact same tv each time? Could this be another weird quirk of udev's spawn restrictions? |
![]() |
![]() |
![]() |
#43 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
it flipped from 00:10 to 01:10 (before it actually was 01:10) and now it's stuck on that
guess it's somehow related to daylight saving transition but I don't understand, how it's possible for this to affect a background shell script, but not the interactive shell. timing seems to be still working fine otherwise |
![]() |
![]() |
![]() |
#44 |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Just to inform.
My A1 has power off last night (perhaps due to daylight saving transition?). Situation: Battery: 80% go to sleep: 5 mins power off: never After power on all seems as usual. Good luck. |
![]() |
![]() |
![]() |
#45 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,592
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
My Clara is sleeping (as it should, inside the sleepcover). No issue with time display or power off.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I (almost) spend more time reading about e-readers than e-reading | Antoinekamel | General Discussions | 15 | 02-25-2013 10:48 AM |
360 PB360 display gets "stripes" from time to time | klaetsch | PocketBook | 1 | 01-05-2011 04:49 AM |
How to get the time to display | synic | Sony Reader | 9 | 06-10-2009 06:05 PM |
Time Display | Jenny123 | Sony Reader | 2 | 04-23-2009 02:06 PM |
Time Display? | MickeyC | Sony Reader | 3 | 02-10-2008 11:57 PM |