PRIORITY MANAGER V1.5 BY BUYUKBANG : Complete Tool to Power

Stáhni Plugin.

Moderátoři: schmegea, monkus, gorick

Odpovědět
Uživatelský avatar
hitman222
Mírně pokročilý
Mírně pokročilý
Příspěvky: 447
Registrován: 26 čer 2009, 09:23

PRIORITY MANAGER V1.5 BY BUYUKBANG : Complete Tool to Power

Příspěvek od hitman222 »

PLEASE READ "INSTALLATION" SECTION BEFORE ASKING OR COMPLAINING ABOUT SOMETHING!, THANKS....




DESCRIPTION:
------------------------------------------------------------------------------------------
This plugin is written by BUYUKBANG to improve total performance of Azbox HD and add its
missing features! However its name remains as "Priority Manager", it now makes more than
its name is offering. Here are the features of Priority Manager:

* Priority Manager automatically changes the priorities of the processes to give optimal
performance for the menu being used. I tested all processes one by one, decided their
effects on the performance of all modules and prepared a bug-free (hopefully) and complex
logic to cover all possible usage cases.

* Priority Manager provides power saving! Smudger's power measurements show that
Priority Manager decrease power consumption of the box from 25W to 23W while watching an
SD channel and from 28W to 24W while watching an HD channel.

* Priority Manager provides password protected hidden channel list feature. This will
cover missing function in Azbox and so that you will be able to prepare a separate hidden
channel list which you want hide from people not knowing your password. Default channel
list will be automatically replaced, so that any reboots / electricity problems will not
reveal this second channel list.

* You can backup or restore /DISK2 and /PLUGINS folders with just a simple button from
user interface.

* Priority Manager optionally takes backup of /DISK2 and /PLUGINS folders in user defined
periods in background.

* Priority Manager upgrades Busybox from v1.0 to v1.16.

* Priority Manager enables Cron usage.

* Priority Manager can move plugins to internal HDD or USB storages.

* Priority Manager optionally automatically mounts CIF and NFS shares when remote server
is online and automatically unmounts CIF AND NFS shares when remote server is offline, so
protects file manager from freezes when remote goes offline after the shares mounted.

* Priority Manager optionally creates swap file on your HDD/Flash disk which will help
RAM by caching some part of the memory. Priority Manager not only supports creating swap
file on internal HDD or usb HDD/Flash disk connected before Azbox boots, it also supports
creating swap file on usb HDD/Flash disk connected after Azbox boots by continuously
checking for new USB devices.

* Priority Manager can execute user selected programs after going into SLEEP mode and
the kill them after return from SLEEP mode. By using this feature running resource
intensive programs like transmission, aMule, azepgmgr in only SLEEP mode will be
automatically managed without user intervention.

* Priority Manager increases internal storage (DOM) speed speed up to 20% by changing
its working parameters.

* Priority Manager provides "Deep Sleep Mode" which automatically kills all unnecessary
applications and improve downloading speed when box goes to sleep mode.


* Up on deactivating or uninstalling Priority Manager, if related features activated in
/DISK2/etc/PriorityManagerSettings.txt, Busybox downgrades to the orginal version,swap file
and cron is deactivated all mounted shares are unmounted and plugins are moved back to
original place. A complete rollback without reboot requirement is performed.


SPECIAL THANKS TO:
------------------------------------------------------------------------------------------
Smudger for the all information, tests and power measurements, his tests killed the bugs!

Kanber Kav for his permission for the usage and modification of his Multicas Info plugin
and for the idea of increasing internal storage (DOM) speed!


Bug Reports
------------------------------------------------------------------------------------------
If you have any problems with Priority Manager, activate VERBOSE LOG from user interface
and restart Priority Manager from PLUGINS-->PriorityManager-->Activate/Reactivate.
This will create a verbose log file /Download/PriorityManager_Verbose_Log . Collect data
with this option set to 1, without stopping, restarting, reactivating and deactivating
Priority Manager, because all this operations will delete all old log files. Then send an
e-mail to buyukbang @ gmail.com containing PriorityManager_Verbose_Log with the approximate
time that problem occured.


HISTORY:
------------------------------------------------------------------------------------------
v1.5
-----
NEW: User interface is completely reworked. Toggling all settings from user interface
without any need for using TELNET / FTP is now possible. Added a button to user interface
to review current settings.

NEW: Password protected hidden channel list feature is added.

NEW: Backup /DISK2 and /PLUGINS folder from user interface is added.

NEW: Restore last backup of /DISK2 and /PLUGINS folders from user interface is added.

FIX : Fixed some bugs in "Move Plugins" feature.


v1.4
-----
This was an internal release and only a few testers got this version.

NEW : Faster menu detection algorithm which dynamically manages sleep time between loops.

NEW : Busybox can be upgraded automatically in boot from v1.0 to v1.16 with a simple
option in PriorityManagerSettings.txt (Thanks to Kanber Kav for compiling Busybox!)

NEW : Full automated Cron setup. Cron provides a very flexible UNIX scheduling mechanism.

NEW : Moving plugins to internal HDD or USB storages.

NEW : Scheduled backup of /DISK2 and /PLUGINS folders in user defined periods.

NEW : Improved user interface on Plugins Menu. (Thanks to Kanber Kav for the new version of
his Multimenu plugin!)

NEW : Improvement on automatic management of execution and killing programs: Priority
Manager can start user selected programs when Azbox sleeps. When Azbox wakes up there are
3 things that priority manager can do as an opposite action: kill it, start another
script to stop it or simply do nothing which can be useful if it's a auto-terminated
program or script.

NEW: Better and faster recording detection algorithm.

NEW: Mount checks simplified and tuned for better performance. Now you can mount CIF/NFS
shares directly to HDD folders without using symlinks to DOM folders.

NEW: Improved swap file support. Creation of swap file is now retried when "SWAP FILE
ACTIVATION FAILED" error occurs.

NEW : Up on deactivating or uninstalling Priority Manager, if related features activated
in /DISK2/etc/PriorityManagerSettings.txt, Busybox downgrades to the orginal version, swap
file and cron is deactivated,all mounted shares are unmounted and plugins are moved back
to original place. So a complete rollback without reboot requirement is performed.

NEW : Limiting file size of PriorityManager_Verbose_Log with the given byte value.

FIX : HDD not sleeps when reserved programs are waiting to be recorded.


v1.3
-----
NEW : Packed the script as a plugin. You can look at the script logs, activate,
deactivate, restart the script simply from Plugins Menu without having to use TELNET.
Special thanks to Kanber Kav for his permission for the usage and modification of his
Multimenu plugin!

NEW : Increasing internal storage (DOM) speed up to 20% by changing its working
parameters! (Thanks to Kanber Kav for the idea!)

NEW : Full automated cleanup mechanism: After deleting this plugin from Plugins Menu,
Priority Manager will be deactivated and process will be stopped, all installed files and
log file will be deleted, all process priorities will be set to their default values. No
reboot or user intervention needed!

NEW : Reserved programs are now supported. When a scheduled recording starts, TV
prioritization will be applied until it ends.

NEW : CIF mount support for those who want want to mount CIF shares of your network to
Azbox. (auto-mounts shares when the file server is online, auto-unmounts share when the
file server is offline)

NEW : NFS mount support for those who want want to mount NFS shares of your network to
Azbox. (auto-mounts shares when the file server is online, auto-unmounts share when the
file server is offline)

NEW : Swap file support for Azbox. You can activate this option so that to Priority
Manager creates swap file on your HDD or Flash disk which will help RAM by caching some
part of the memory. Swap usage file helps large file operations like recording.

NEW : "Deep Sleep" option. You can activate this option if you want to kill all
unnecessary applications when box goes to sleep mode to improve downloading speed. There
are some side effects of deep sleep. For more information please read DEEP_SLEEP section
of /DISK2/etc/PriorityManagerSettings.txt .

NEW : Automatic management of execution and killing of sleep mode programs. Priority
Manager can execute user selected programs after going into SLEEP mode and the kill them
after return from SLEEP mode with the new feature. For more information please read
PROGRAM section of /DISK2/etc/PriorityManagerSettings.txt .

NEW : CCcam EMU prioritization. (Thanks to Smudger for the information!)

NEW : NewCS EMU prioritization. (Thanks to Smudger for the information!)

NEW : Transmission (torrent client) sleep mode prioritization.

NEW : aMule (eD2K client) sleep mode prioritization.

NEW : Verbose log generation for debugging added. Please read "IMPORTANT NOTES - 4" for
more information.

NEW : Better TV recording and channel switch speed.

NEW : Better performance for some process priorities.

NEW : All settings are moved from script file to a separate file :
/DISK2/etc/PriorityManagerSettings.txt

FIX : "CANCEL" option in sleep menu is now detected as it should be.


v1.2
-----
NEW : azepgmgr support to protect TV/Media applications from the glitches caused by its
initial process. (Thanks to Smudger for all tests and information!)

NEW : Client/Server mode switch parameter for those who want to this script on a box
being used as a CAM server.

NEW : Audio menu prioritization.

NEW : Settings menu prioritization.

NEW : Plugins menu prioritization.

NEW : Cheops EMU prioritization.

NEW : SBox EMU prioritization.

NEW : All process priorities fine tuned.

NEW : Better menu detection.

NEW : Better sleep mode detection.

NEW : Loop sleep time decreased from 60 seconds to 30 seconds.

FIX : Sometimes CRTVCore collects all CPU power and this slows down everything. So I
decreased priority of CRTVCore.

FIX : Fixed a bug in restart: /DISK2/etc/start.d/S1PriorityManager.sh restart


v1.1
-----
NEW : RSS and Browser components stay in memory after first usage. Added support for
automatically killing RSS and Browser components when using other menu.


v1.0
-----
NEW : All process priorities updated according to the results of my long tests. IP TV,
Mediaplayer, Recording, ECM Time (for EMUs) performances are optimised.

NEW : Old scripts use "snice +XX" command to give processes positive nice values (lower
priority). But this command does not guarantee to decrease the priority and system
sometimes ignore this command. You can check old scripts by top command while changing
menu modes. "<" sign means negative nice value and high priority, "N" sign means positive
nice value and low priority. After a few times changing the menu modes everything has "<"
sign and this is really nonfunctional situation. To fix this problem I used "snice STOP"
which cannot be ignored by the system.

NEW : massimo1167's script is not compatible with the option "Always Start in TV Mode"
and this causes totally wrong prioritization. This is fixed.

NEW : Old scripts block firmware upgrades and upgrade process sticks at "Extracting".
Priority Manager fixes this issue and fully compatible Opensat upgrades. Just wait 45
seconds at "Extracting", then upgrade process will continue.

NEW : ftp,samba,telnet prioritization in sleep mode. I suggest you to transfer your files
with FTP during sleep mode prioritization. This is the fasted method.

NEW : Photo menu prioritization.

NEW : Browser menu prioritization.

NEW : RSS menu prioritization.

NEW : Use this command to stop the script (does not work in old scripts):
/DISK2/etc/start.d/S1PriorityManager.sh stop
NEW : Use this command to restart the script (does not work in old scripts):
/DISK2/etc/start.d/S1PriorityManager.sh restart

NEW : Logging. Use this command to see log file:
tail -n100 -f /tmp/PriorityManager_IsRunning


INSTALLATION:
------------------------------------------------------------------------------------------
METHOD 1 : USING PLUGINS MENU USER INTERFACE
1. Extract PriorityManager.plugin and plugins.lst files from the archive file.

2. Copy PriorityManager.plugin and plugins.lst to USB or simply transfer them by FTP to
/tmp folder of your Azbox.

3. Enter Plugins menu, press Red Button on remote controller to add plugin. If you're
using USB select to install it from USB, or if you transferred files to /tmp folder
install it from tmp folder.

4. Check user defined parameters in /DISK2/etc/PriorityManagerSettings.txt and edit
parameters if you want, save the file.

5. Activate plugin from the plugins menu: PLUGINS-->PriorityManager-->Activate/Reactivate

6. After the first run of the script standby.sh and wakeup.sh scripts will be created
under /DISK2/etc . These scripts will help to main script for the decision of the sleep
mode by creating and deleting a file ( /tmp/PriorityManager_Sleep ) If you have already
standby.sh and wakeup.sh in /DISK2/etc, they will be backed up by installation process
in the same directory. Then you may want to manually add below commands to scripts
before running Priority Manager:
echo 0 > /tmp/PriorityManager_Sleep = to standby.sh
rm /tmp/PriorityManager_Sleep = to wakeup.sh

METHOD 2 : MANUAL INSTALLATION
Those having difficulties with azbox plugin installation mechanism may choose this method.
1. Rename PriorityManager.plugin as PriorityManager.tgz and extract files with an unzip
tool like winrar, 7-Zip, etc.

2. Upload PriorityManager folder to azbox under /PLUGINS folder.

3. chmod 755 everything in PriorityManager folder and its sub folders.

4. Check user defined parameters in /DISK2/etc/PriorityManagerSettings.txt and edit
parameters if you want, save the file.

5. Activate plugin from the plugins menu: PLUGINS-->PriorityManager-->Activate/Reactivate

6. After the first run of the script standby.sh and wakeup.sh scripts will be created
under /DISK2/etc . These scripts will help to main script for the decision of the sleep
mode by creating and deleting a file ( /tmp/PriorityManager_Sleep ) If you have already
standby.sh and wakeup.sh in /DISK2/etc, they will be backed up by installation process
in the same directory. Then you may want to manually add below commands to scripts
before running Priority Manager:
echo 0 > /tmp/PriorityManager_Sleep = to standby.sh
rm /tmp/PriorityManager_Sleep



DESCRIPTION OF THE PROCESSES:
------------------------------------------------------------------------------------------
SDecoderServer - A/V playback and demux
DStar - Menu handler
CRTVCore - TV module
CRTVSetup - TV module
detector_test - file type detection
emu_module - Multicas
file_control - manages file operations.
mbox_module - MBox emu
mgcamd - MgCamd emu
cheops_module - Cheops emu
sbox.sigma - SBox emu
telnetd - telnet server
vsftpd - ftp server
JIPC_Server - manages messages between processes (Java Interprocess Communication Server)
cifsdnotifyd - SAMBA server
cifsoplockd - SAMBA server
xfslogd - XFS log
xfsdatad - XFS
xfsbufd - XFS
ir_control - Remote control
youtube_player - Youtube
Polaris - Browser
browser_control - Browser
rssfeed - RSS
EStar - Photo viewer


LIST OF NEW COMMANDS IN BUSYBOX V1.16:
------------------------------------------------------------------------------------------
ar, arp, arping, blkid, brctl, bzip2, cal, catv, chattr, chpasswd, chpst, cksum, comm,
cpio, crond, crontab, cryptpw, cttyhack, depmod, devfsd, devmem, dhcprelay, diff, dnsd,
dnsdomainname, dumpkmap, ed, eject, envdir, envuidgid, ether-wake, expand, fakeidentd,
fbsplash, fdflush, findfs, flash_eraseall, flash_lock, flash_unlock, flashcp, fold, fsck,
fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, hd, httpd, hush, ifenslave, ifplugd,
inetd, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode,
killall5, length, linux32, linux64, loadfont, loadkmap, logread, losetup, lpd, lpq, lpr,
lsattr, lspci, lsusb, lzmacat, lzop, lzopcat, makemime, man, mdev, mesg, microcom,
mkdosfs, mke2fs, mkfs.ext2, mkfs.minix, mkfs.reiser, mkfs.vfat, mkpasswd, mountpoint,
msh, nameif, nc, nice, nmeter, nohup, ntpd, patch, pgrep, ping6, pkill, popmaildir,
printenv, pscan, rdev, readprofile, realpath, reformime, resize, rpm, rpm2cpio, rtcwake,
runlevel, runsv, runsvdir, script, scriptreplay, sendmail, seq, setarch, setconsole,
setfont, setkeycodes, setlogcons, setsid, setuidgid, sha256sum, sha512sum, showkey,
slattach, softlimit, split, stat, sum, sv, svlogd, switch_root, tac, tcpsvd, tftpd,
timeout, tr, traceroute6, tunctl, tune2fs, udpsvd, uncompress, unexpand, unlzma, unlzop,
volname, wall, watch, watchdog, who, zcip


SAMPLE LOG FILE:
------------------------------------------------------------------------------------------
PRIORITY MANAGER V1.5 BY BUYUKBANG
FLAGS => R:RECORD M:MOUNT S:SWAP A:ACTION B:BUSYBOX C:CRON P:PLUGINS
21:56:11 06/27/10: MOVING PLUGINS TO /DATA/usb1/sda1
21:56:48 06/27/10: MOUNTING /DATA/usb1/sda1 TO /PLUGINS
21:56:51 06/27/10: RECREATING SYMLINKS FOR /USER /EMU
21:56:52 06/27/10: PLUGINS MOVED
/dev/sda1 on /PLUGINS type ex** (rw,data=ordered)

21:56:53 06/27/10: INCREASING INTERNAL STORAGE (DOM) SPEED
21:56:53 06/27/10: UPGRADING BUSYBOX
21:57:02 06/27/10: BUSYBOX UPGRADED
21:57:03 06/27/10: CRON ACTIVATED
# THESE ARE JUST EXAMPLES, ADD YOUR ENTRIES WITHOUT LEADING #
# 30 14 * * * /DATA/hdb1/EPG/cronepg.sh
# 50 20 * * 0 /opt/rsync.sh
# 0 10 * * 4 /DATA/hdb1/EPG/update.sh
* * * * * /DISK2/etc/test1.sh

21:57:15 06/27/10: CREATING A NEW SWAP FILE
21:58:58 06/27/10: SWAP FILE ACTIVATED
total used free shared buffers
Mem: 100484 97244 3240 0 2836
Swap: 151700 0 151700
Total: 252184 97244 154940

21:59:01 06/27/10: NFS MOUNT COMPLETED
192.168.2.12:/film on /DATA/hdb1/movie/film type nfs
192.168.2.12:/download on /DATA/hdb1/movie/download type nfs
192.168.2.12:/mp3 on /DATA/hdb1/music/PC type nfs
192.168.2.12:/pictures on /DATA/hdb1/picture/PC type nfs

21:59:01 06/27/10: BACKUP STARTED => /DATA/hdb1/BACKUP/100627215901
21:59:40 06/27/10: DELETING OLD BACKUP /DATA/hdb1/BACKUP/100619151221
21:59:40 06/27/10: BACKUP COMPLETED
21:59:42 06/27/10: START=>PLUGINS TV=10 R=0 M=1 S=1 A=W BU=1 C=1 P=1 BA=1
22:00:39 06/27/10: PLUGINS=>TV TV=13 R=0 M=1 S=1 A=W BU=1 C=1 P=1 BA=1
------------------------------------------------------------------------------------------
Prior.png
Nemáte oprávnění prohlížet přiložené soubory.


Dream800 HDse_OpenPli
Vu+Solo2_OpenPli
Cloud-ibox3_OpenPli
Dreambox 7020,Dreambox 500
Samsung UE46ES8000
A-DATA NH92 Slim HDD 2.5" 320GB - modrý (blue), 12mm, USB2.0, 5400ot, ANH92-320GU-RBL,
motor SG2100(SKY Link)
Odpovědět

Zpět na „Pluginy“