[App] libHideSource D/E/F/H
Posted: Sat Jul 25, 2015 8:20 pm
Lib hides greyed out sources from source list and/or specific user-defined ones (greyed or not). So that you don't need anymore to scroll amongst unused/unplugged ones.
Usage:
*For D series (arm), replace every instance of /mnt below by /mtd_rwcommon/widgets/user/SamyGO/SamyGO
Usage:
*For D series (arm), replace every instance of /mnt below by /mtd_rwcommon/widgets/user/SamyGO/SamyGO
- First install latest samyGOso as usual, if needed.
- Extract attached archives and copy libHideSource.so to /mnt/opt/privateer/usr/libso (create folder if needed).
- In case you're willing to permanently (=until TV reboot) hide some source, first list your sources numbers using command:
Resulting log (/dtv/HideSource.log) should be something like this, source labels being in your local language:
Code: Select all
samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libHideSource.so LIST
Code: Select all
[...] [HideSource] lib_init, >>> [HideSource] Building source list... [HideSource] TV: 0 [HideSource] AV: 55 [HideSource] AV2: 56 [HideSource] AV3: 57 [HideSource] S-Video1: 58 [HideSource] S-Video2: 59 [HideSource] S-Video3: 60 [HideSource] Component: 61 [HideSource] Component2: 62 [HideSource] Component3: 63 [HideSource] PC: 64 [HideSource] PC2: 65 [HideSource] PC3: 66 [HideSource] HDMI1/DVI: 67 [HideSource] HDMI2: 68 [HideSource] HDMI3: 69 [HideSource] HDMI4: 70 [HideSource] Ext.: 71 [HideSource] Ext.2: 72 [HideSource] Ext.3: 73 [HideSource] DVI: 74 [HideSource] DVI2: 75 [HideSource] DVI3: 76 [HideSource] IPTV: 81 [HideSource] DisplayPort: 85 [HideSource] RUI: 87 [HideSource] DisplayPort2: 89 [HideSource] DiiVA: 91 [HideSource] Intel? WiDi: 94 [HideSource] HDMI-CEC: 97 [HideSource] USB: 98 [HideSource] <<< lib_deinit
- Next is resident injection which can take 1 or 2 args:
- GREYED - Dynamically hides all currently greyed out sources from list.
- PERMANENT:source_nums - Permanently hide sources by numbers listed above, comma separated if more than one.
Do not bother about obviously "unexisting" sources, simply ignore them
- Sample usage:
(no space before or after commas !!)
Code: Select all
samyGOso -d -A -B -r -l /mnt/opt/privateer/usr/libso/libHideSource.so GREYED PERMANENT:55,61,71
- Any source doesn't necessarily need to be found by LIST option for it to be hidden. In case you can't find one, once you injected lib resident, press SOURCE key (at least) once and log will show current source list in order of display. There you might find some previously "missing" number(s) (labeled "Unknown") you could permanently hide afterwards:
Here "103 Unknown" being DLNA, for example.
Code: Select all
[HideSource] >>> SOURCE list displayed! <<< [HideSource] Shown source: 0 TV [HideSource] Shown source: 67 HDMI1/DVI [HideSource] Shown source: 68 HDMI2 [HideSource] Hidden greyed: 69 HDMI3 [HideSource] Hidden permanent: 97 HDMI-CEC [HideSource] Hidden permanent: 71 Ext. [HideSource] Hidden greyed: 55 AV [HideSource] Hidden greyed: 61 Component [HideSource] Shown source: 98 USB [HideSource] Shown source: 103 Unknown [HideSource] >>>>>>>>>>>> DONE <<<<<<<<<<<<
- Autostart
- Copy 99_93_HideSource.init to /mnt/etc/init.d
- Set permissions
Code: Select all
chmod +x /mnt/etc/init.d/99_93_HideSource.init
- You can change OPTIONS value on top of script, default is "GREYED" only. You can set for example:
Code: Select all
OPTIONS="GREYED PERMANENT:71,97"
Code: Select all
25/7/2015
v0.2.4 - Fixed some issue on H
v0.2.3 - First public release