Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2018, 01: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: 7,923
Karma: 9469999
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
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:	124
Size:	5.8 KB
ID:	167210  

Last edited by NiLuJe; 10-26-2018 at 01:35 AM. Reason: Updated snapshot
NiLuJe is offline   Reply With Quote
Old 10-26-2018, 10:26 AM   #32
jackie_w
Wizard
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: 4,651
Karma: 11229177
Join Date: Sep 2009
Location: UK
Device: Sony:PRS-350, Kobo:Aura6"/H2O/GloHD/KA1/ClaraHD/Forma
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, 11:38 AM   #33
MGlitch
Guru
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: 966
Karma: 3713190
Join Date: Aug 2014
Device: Kobo H2O, Kobo Aura One
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, 11: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: 7,923
Karma: 9469999
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@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 11:48 AM.
NiLuJe is offline   Reply With Quote
Old 10-26-2018, 12:23 PM   #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: 1,987
Karma: 4808000
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
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, 01: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: 7,923
Karma: 9469999
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@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 01:17 PM.
NiLuJe is offline   Reply With Quote
Old 10-26-2018, 01:14 PM   #37
jackie_w
Wizard
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: 4,651
Karma: 11229177
Join Date: Sep 2009
Location: UK
Device: Sony:PRS-350, Kobo:Aura6"/H2O/GloHD/KA1/ClaraHD/Forma
@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, 02: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: 5,105
Karma: 5460000
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, 02: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: 5,105
Karma: 5460000
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, 03:10 PM   #40
jackie_w
Wizard
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: 4,651
Karma: 11229177
Join Date: Sep 2009
Location: UK
Device: Sony:PRS-350, Kobo:Aura6"/H2O/GloHD/KA1/ClaraHD/Forma
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, 07: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: 1,987
Karma: 4808000
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
...

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 07:53 AM.
frostschutz is offline   Reply With Quote
Old 10-27-2018, 08: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: 7,923
Karma: 9469999
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
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, 08: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: 1,987
Karma: 4808000
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
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, 03: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: 292
Karma: 1750142
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, 04: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: 5,105
Karma: 5460000
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:48 AM
360 PB360 display gets "stripes" from time to time klaetsch PocketBook 1 01-05-2011 05:49 AM
How to get the time to display synic Sony Reader 9 06-10-2009 07:05 PM
Time Display Jenny123 Sony Reader 2 04-23-2009 03:06 PM
Time Display? MickeyC Sony Reader 3 02-11-2008 12:57 AM


All times are GMT -4. The time now is 11:35 AM.


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