Page 1 of 9
[App] Subtitle Font Size and Color Patch
Posted: Wed Feb 19, 2014 11:17 pm
by sectroyer
This patch allows setting font size values (def. 29,32,35). You can also set font color.
- Extract fontsizecolorpatch file (not folder) from attached archive to TV in /mnt/opt/privateer/usr/bin
- Telnet to TV and set file permissions:
Code: Select all
chmod +x /mnt/opt/privateer/usr/bin/fontsizecolorpatch
- Execute
Code: Select all
fontsizecolorpatch -n exeDSP -s 45 -m 50 -l 55 -c 0xfff0f010 -d
You can apply this patch as many times as you want without the need to restart the TV 
- Autostart:
- Extract 99_97_FontSizeColorPatch.init from archive to /mnt/etc/init.d
You can edit your prefered values on top of script
Code: Select all
SmallFontSize=45
MediumFontSize=50
LargeFontSize=55
FontColor=0xfff0f010
- Set permissions
Code: Select all
chmod +x /mnt/etc/init.d/99_97_FontSizeColorPatch.init
Re: [App] Subtitle Font Size Patch
Posted: Wed Feb 19, 2014 11:21 pm
by zoelechat
attachment?

Re: [App] Subtitle Font Size Patch
Posted: Wed Feb 19, 2014 11:39 pm
by sectroyer
Uploaded

Re: [App] Subtitle Font Size Patch
Posted: Wed Feb 19, 2014 11:55 pm
by zoelechat
It works! (and is really useful

)
Unfortunately, I'm still having that holding issue on first launch that makes it unusable as permanently installed for me
It is really needed that more E owners test your patches to confirm or not if I'm again alone with an issue

Re: [App] Subtitle Font Size Patch
Posted: Thu Feb 20, 2014 12:14 am
by sectroyer
zoelechat wrote:It works! (and is really useful

)
Unfortunately, I'm still having that holding issue on first launch that makes it unusable as permanently installed for me
It is really needed that more E owners test your patches to confirm or not if I'm again alone with an issue

Even if other users won't have any problems with my patches and you still will have it won't change a thing

Just put USB_STOP checking in init script and test

Re: [App] Subtitle Font Size Patch
Posted: Thu Feb 20, 2014 12:28 am
by zoelechat
I didn't set up that USB_STOP thing yet. Anyway if TV is doing other things such as starting other scripts, your patches are systematically crashing my TV.
I've tried seekpatch as last startup script, even with a "sleep 100" before, it crashes about 9 times on 10 (certainly because TV hasn't totally finished to boot, or simply it can't continue to execute its
own script)
So, it's really unusable on startup for me.
Do you have a dual-core-E TV? Maybe you don't see it also holds for you, because you have a remaining thread? (just an idea

)
Technically and seeing sourcecode, it seems to hold somewhere in util.c allocate_memory() function, but with my near zero C programming skill, I can't explain anything...
Even if other users won't have any problems with my patches and you still will have it won't change a thing

On the contrary, if they have problems, I won't keep feeling alone

Re: [App] Subtitle Font Size Patch
Posted: Thu Feb 20, 2014 12:37 am
by sectroyer
It looks I have dual CPU TV
cat /proc/cpuinfo
Processor : ARMv7 Processor rev 0 (v7l)
processor : 0
BogoMIPS : 1794.04
processor : 1
BogoMIPS : 1794.04
Features : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0
Hardware : amber3
Revision : 0000
Serial : 0000000000000000
Didn't know that

If other people also report problems I will rewrite the patch to use samyGOso

I also have some other idea to make it more stable... But need more reports since it will require a little work

Re: [App] Subtitle Font Size Patch
Posted: Thu Feb 20, 2014 12:55 am
by zoelechat
...And it looks like I have EXACT same cpuinfo, we must have different firmware
Mine is not dual-core, there must be some kind of hyperthreading (so, my idea about threads is wrong, I knew it

)
Sure it should be smarter to use SamyGOso, at least for patches weight I presume. I trust you

Re: [App] Subtitle Font Size Patch
Posted: Thu Feb 20, 2014 6:47 am
by greenhorn
Another great app! Thank you.
VDLinux#> chmod +x fontsizepatch
VDLinux#> ./fontsizepatch -n exeDSP -s 35 -m 37 -l 39
Font Size patched at : @0x03523330 with values: 35,37,39.
VDLinux#> cat /proc/cpuinfo
Processor : ARMv7 Processor rev 8 (v7l)
processor : 0
BogoMIPS : 1990.65
processor : 1
BogoMIPS : 1990.65
Features : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 8
Hardware : Samsung SDP1106 evaluation board
Revision : 0000
Serial : 0000000000000000
Edit: after applying the patch, subtitles got smaller. I even tied -s 55, but size did not change...
Edit2: Maybe, I did get right.... Thought that -s = size.... What do -s -m -l mean?
Re: [App] Subtitle Font Size Patch
Posted: Thu Feb 20, 2014 11:46 am
by sectroyer
greenhorn wrote:Another great app! Thank you.
VDLinux#> chmod +x fontsizepatch
VDLinux#> ./fontsizepatch -n exeDSP -s 35 -m 37 -l 39
Font Size patched at : @0x03523330 with values: 35,37,39.
VDLinux#> cat /proc/cpuinfo
Processor : ARMv7 Processor rev 8 (v7l)
processor : 0
BogoMIPS : 1990.65
processor : 1
BogoMIPS : 1990.65
Features : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 8
Hardware : Samsung SDP1106 evaluation board
Revision : 0000
Serial : 0000000000000000
Edit: after applying the patch, subtitles got smaller. I even tied -s 55, but size did not change...
Edit2: Maybe, I did get right.... Thought that -s = size.... What do -s -m -l mean?
Why don't you ever try running my patches without any arguments? If you would at least once did you wouldn't ask such questions
Font Size Patch v0.5.2 by sectroyer
error usage: ./fontsizepatch [-p PID | -n procname] -d (debug on)
-p, --pid pid of process to attach
-n, --procname name of process to attach
-d, --debug enable debug output
You can specify three values:
-s, --small small font size (def. 29)
-m, --medium medium font size (def. 32)
-l, --medium large font size (def. 35)
So as you can notice there three font sizes uses by TV (changeable trough tools menu:) ). Small, Medium and Large

With -s you were only change "small" size and your TV was switched to let's say medium subtitle size it didn't change anything
