Armnlegs Posted April 22, 2017 Posted April 22, 2017 So I saw many thread with this question. Of course there are also good answers but I just don't understand. Out of the box HDMI works(hdmi2hdmi). Hdmi2dvi=doesn't work. Analog AV=doesn't work. I'm supposed to disable the hdmi and enable av-out by script.bin with something like [disp_init] My question is where is this file located? Am I suppose to vi create it? Hopefully someone could provide step by step or point me to the right direction with detailed information.
martinayotte Posted April 23, 2017 Posted April 23, 2017 script.bin is located in /boot. you need to decompile it into script.fex using bin2fex, edit it, and then recompile it into script.bin with fex2bin.
Armnlegs Posted April 23, 2017 Author Posted April 23, 2017 Thank you for reply. So I would need to 1. apt-get install libusb-1.0-0-dev 2. ./sunxi-fexc [-vq] [-I <bin>] [-O <fex>] [<script> [<script>]] 3. Edit 4. ./sunxi-fexc [-vq] [-I <fex>] [-O <bin>] [<script> [<script>]] Do i need to save it first? I thought i read somewhere it will save as .bak.
martinayotte Posted April 23, 2017 Posted April 23, 2017 euuhhh ? libusb-1.0-0-dev as nothing to do with your issue... why sunxi-fexc ? the tools I've mentioned are "bin2fex" and "fex2bin", but of course, sunxi-fexc can work too. Of course, it is better to keep manual backups before overwriting any files. Check this page : http://linux-sunxi.org/Fex_Guide
Armnlegs Posted April 23, 2017 Author Posted April 23, 2017 That's what i mean when I said I don't understand. Is bin2fex and fex2bin avaliable in Linux or has to be install? That's what i thought when i searched bin2fex.
Armnlegs Posted April 24, 2017 Author Posted April 24, 2017 Correct me if i'm wrong I will need to change what's in red? What else might I need to change? Not sure if I should added on here but HDMI2DVI not working either(tested 2 new cables). Since i'm changing this, what if I want to use HDMI2DVI(monitor) [disp_init] disp_init_enable = 1 disp_mode = 0 screen0_output_type = 3 screen0_output_mode = 5 screen1_output_type = 3 screen1_output_mode = 5 fb0_format = 0 fb0_width = 0 fb0_height = 0 fb1_format = 0 fb1_width = 0 fb1_height = 0 [hdmi_para]hdmi_used = 1 change to 0 hdmi_power = "vcc-hdmi-18" [tv_para]tv_used = 0 change to 1 tv_dac_used = 1 tv_dac_src0 = 0
martinayotte Posted April 24, 2017 Posted April 24, 2017 For the change in red, Yes ! I've all my OPi as headless, so, I can't answer for the HDMI2DVI questions.
Armnlegs Posted April 24, 2017 Author Posted April 24, 2017 8 hours ago, martinayotte said: all my OPi as headless Please explain......
martinayotte Posted April 24, 2017 Posted April 24, 2017 Personally, none of my OPis have any video monitor. So, I tried to help about FEX, but I can't debug video issues.
Armnlegs Posted April 25, 2017 Author Posted April 25, 2017 At least you help me understand bin file.
Armnlegs Posted April 25, 2017 Author Posted April 25, 2017 So change the 2 parameter below in red did not work. Check the cable with portable dvd and they are good. Tried singly(Red White Yellow) one by one into Video, none of them works. Has to be more to change below. [boot_disp] advert_disp = 0 auto_hpd = 1 output_type = 4 hdmi_channel = 0 hdmi_mode = 4 cvbs_channel = 1 cvbs_mode = 11 output_full = 1 hdmi_mode_check = 1 [disp_init] disp_init_enable = 1 disp_mode = 0 screen0_output_type = 3 screen0_output_mode = 5 screen1_output_type = 3 screen1_output_mode = 5 fb0_format = 0 fb0_width = 0 fb0_height = 0 fb1_format = 0 fb1_width = 0 fb1_height = 0 [hdmi_para]hdmi_used = 0 change from 1 hdmi_power = "vcc-hdmi-18" [tv_para]tv_used = 1 change from 0 tv_dac_used = 1 tv_dac_src0 = 0
Armnlegs Posted April 25, 2017 Author Posted April 25, 2017 Just found out you need to change the [disp_init]disp_mode = 0 to 1. 0=hdmi 1=analog rca Thank to jernej
Recommended Posts