Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2018, 12:33 AM   #31
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
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 .
Attached Thumbnails
Click image for larger version

Name:	fonts.png
Views:	784
Size:	5.8 KB
ID:	167210  

Last edited by NiLuJe; 10-26-2018 at 12:35 AM. Reason: Updated snapshot
NiLuJe is offline   Reply With Quote
Old 10-26-2018, 09:26 AM   #32
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by NiLuJe View Post
... * You can get a "transparent" background by adding a -O to the command.
Quote:
Originally Posted by Terisa de morgan View Post
Forma I have, shell access no (and I'm not very ready for tinkering in that side). Ah! And thanks for the -O command
OK, what's your cunning secret I cannot get either the -O or -o option to work satisfactorily in white-on-black Nightmode. I've tried all sorts of tweaks to the fbink statement in miniclock.sh without success (including removing the -B parameter). Whatever combo I've tried ends up with a white background, not a transparent one.

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")"
What should it be to get optimal results in both black-on-white and white-on-black modes? In case it's relevant, I set the config file's fg_color=GRAY7 so that the HH:MM would be equally visibly muted in both modes.

BTW:
  • using the -O option has the minor drawback that, when the minutes value changes, the new value is overlaid on the old value until the next screen touch tidies it up.
  • using the -o option just gives me a white background rectangle with no HH:MM display.
jackie_w is offline   Reply With Quote
Advert
Old 10-26-2018, 10:38 AM   #33
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,841
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?
MGlitch is offline   Reply With Quote
Old 10-26-2018, 10:42 AM   #34
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
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.
NiLuJe is offline   Reply With Quote
Old 10-26-2018, 11:23 AM   #35
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by MGlitch View Post
I presume you need to have the footer displayed for this hack to work?
This hack doesn't care at all. You touch the screen, it displays the clock.

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
frostschutz is offline   Reply With Quote
Advert
Old 10-26-2018, 12:14 PM   #36
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
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.
NiLuJe is offline   Reply With Quote
Old 10-26-2018, 12:14 PM   #37
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
@NiLuJe,
OK. I thought it was just me being dumb

Quote:
Originally Posted by frostschutz View Post
Anyway this was meant as a quick and dirty fix, suprised how much attention this is getting to be honest
Is I.T. your proper day job, too? If so, I would have thought that you would be familiar with the concept that the user's interest is inversely proportional to the blood, sweat & tears you shed
jackie_w is offline   Reply With Quote
Old 10-26-2018, 01:53 PM   #38
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by jackie_w View Post
Is I.T. your proper day job, too? If so, I would have thought that you would be familiar with the concept that the user's interest is inversely proportional to the blood, sweat & tears you shed
I totally agree
Terisa de morgan is offline   Reply With Quote
Old 10-26-2018, 01:54 PM   #39
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by jackie_w View Post
OK, what's your cunning secret I cannot get either the -O or -o option to work satisfactorily in white-on-black Nightmode.
My secret? I don't use nightmode
Terisa de morgan is offline   Reply With Quote
Old 10-26-2018, 02:10 PM   #40
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Terisa de morgan View Post
My secret? I don't use nightmode
Well, that's cheating!
jackie_w is offline   Reply With Quote
Old 10-27-2018, 06:24 PM   #41
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
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
okay today is daylight saving clock change day, that might cause weird things, but... doesn't make a lick of sense to me right now. it's stuck on 00:10 forever now, but shell on the same device displays time correct


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 silly me

Last edited by frostschutz; 10-29-2018 at 06:53 AM.
frostschutz is offline   Reply With Quote
Old 10-27-2018, 07:26 PM   #42
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
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?
NiLuJe is offline   Reply With Quote
Old 10-27-2018, 07:29 PM   #43
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
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
frostschutz is offline   Reply With Quote
Old 10-28-2018, 02:57 AM   #44
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
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.
jcn363 is offline   Reply With Quote
Old 10-28-2018, 03:42 AM   #45
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
Karma: 11768331
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.
Terisa de morgan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:16 AM.


MobileRead.com is a privately owned, operated and funded community.