2015-06-11, 06:40
NOTE: Kodi is NOT a AMLogic Firmware installation help forum, users need see their manufacturers website or head over to the Freaktab website for alternative Firmware HERE
I've decided to Edit this thread and add instructions to help AMLogic users that have devices with rubbish Firmware. Ones that have incorrect Read / Write permissions set to allow for proper Kodi 15.2 audio and video playback. If this fix fails for you then your best course of action is the Freaktab website.
Firstly follow the instructions in the Original Post below, steps 1 and 2.
The script you want to add at Step 3 is this:
Also be aware that this script is sometime a bit slow to execute straight after a reboot as it is one of the last things in the startup sequence to execute.
Original post: (enables Dynamic Refresh Rate Switching)
Firstly Your device needs to be Rooted with Superuser or SuperSu installed. Tested on Android 4.4.2.
Steps:
1. Download the app from the Play Store called - Universal Init.d
2. Delete all the test Text present
3. Add or Edit a script and include the following:
4. Test the script by Executing (top right)
5. Exit and now run any version of SPMC v13.4.0 onwards or Kodi Isengard with Refresh Rate Switching Enabled
(select On Start/Stop):
http://kodi.wiki/view/Settings/Videos#Playback
Note: I used the Test function on this app and received the following response:
"Your Kernel Does Not Have Init.d Support"
but it actually does and works properly. Result may vary of course on various AMlogic devices.
This is actually very easy to write into a devices Firmware without having to use the app.
Those with well supported devices should expect this to be included as standard if you actually alert the Firmware developer to the permissions code needed as given above.
Why Do I need it you Ask ?
This Switching function is particularily useful is you run the Kodi Android GUI at 60Hz and then want to view TV with a frame rate of 25/50fps. Dynamic switching then operates automatically to switch the TV to a 50Hz refresh rate for perfect results on AMlogic devices.
Once AMlogic Firmware devs. get to grips with supporting 23.976fps(24p) video output then we will see perfect sync there as well.
(MINIX , Wetek and HardKernel are the guys doing proper 23.976/59.94Hz / AMlogic video output currently)
Noggin explains everything in detail in this post:
Noggin's Knowledge !
W.
I've decided to Edit this thread and add instructions to help AMLogic users that have devices with rubbish Firmware. Ones that have incorrect Read / Write permissions set to allow for proper Kodi 15.2 audio and video playback. If this fix fails for you then your best course of action is the Freaktab website.
Firstly follow the instructions in the Original Post below, steps 1 and 2.
The script you want to add at Step 3 is this:
Code:
#!/system/bin/sh
chmod 666 /sys/class/display/mode
chmod 666 /dev/amvideo
chmod 666 /dev/amstream*
chmod 666 /sys/class/video/axis
chmod 666 /sys/class/video/screen_mode
chmod 666 /sys/class/video/disable_video
chmod 666 /sys/class/tsync/pts_pcrscr
chmod 666 /sys/class/audiodsp/digital_raw
chmod 666 /sys/class/ppmgr/ppmgr_3d_mode
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Also be aware that this script is sometime a bit slow to execute straight after a reboot as it is one of the last things in the startup sequence to execute.
Original post: (enables Dynamic Refresh Rate Switching)
Firstly Your device needs to be Rooted with Superuser or SuperSu installed. Tested on Android 4.4.2.
Steps:
1. Download the app from the Play Store called - Universal Init.d
2. Delete all the test Text present
3. Add or Edit a script and include the following:
Code:
#!/system/bin/sh
chmod 666 /sys/class/display/mode
5. Exit and now run any version of SPMC v13.4.0 onwards or Kodi Isengard with Refresh Rate Switching Enabled
(select On Start/Stop):
http://kodi.wiki/view/Settings/Videos#Playback
Note: I used the Test function on this app and received the following response:
"Your Kernel Does Not Have Init.d Support"
but it actually does and works properly. Result may vary of course on various AMlogic devices.
This is actually very easy to write into a devices Firmware without having to use the app.
Those with well supported devices should expect this to be included as standard if you actually alert the Firmware developer to the permissions code needed as given above.
Why Do I need it you Ask ?
This Switching function is particularily useful is you run the Kodi Android GUI at 60Hz and then want to view TV with a frame rate of 25/50fps. Dynamic switching then operates automatically to switch the TV to a 50Hz refresh rate for perfect results on AMlogic devices.
Once AMlogic Firmware devs. get to grips with supporting 23.976fps(24p) video output then we will see perfect sync there as well.
(MINIX , Wetek and HardKernel are the guys doing proper 23.976/59.94Hz / AMlogic video output currently)
Noggin explains everything in detail in this post:
Noggin's Knowledge !
W.