Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: Herkules on December 26, 2013, 07:20:19 PM

Title: Debian screen settings
Post by: Herkules on December 26, 2013, 07:20:19 PM
Hello,

I could not change the screen from standard HDMI 720p to 7"TS LCD_connector.
So now my question:
How can I change this settings?
And can I change it under Debian, or do I have to do it external?

Hope you can help,
Herkules
Title: Re: Debian screen settings
Post by: Herkules on December 29, 2013, 01:19:25 PM
Can't anyone help? :(
Title: Re: Debian screen settings
Post by: wiesel24 on December 29, 2013, 09:07:03 PM
Hi

Open a Terminal(console) in Debian. Type ./change_display.sh there you can change to TS output and also the resolution.
Hope that helps.
Greetz
Wiesel
Title: Re: Debian screen settings
Post by: Herkules on December 31, 2013, 03:05:56 PM
I tried this already and there comes the output:

bash: ./change_display.sh: No such file or directory

I typed it exactley as you told me.... What is wrong here?

Hope you can help,
Herkules
Title: Re: Debian screen settings
Post by: martinayotte on January 01, 2014, 12:02:47 AM
On A20 debian image release5, the script is "change_display_a20.sh".
Title: Re: Debian screen settings
Post by: Herkules on January 01, 2014, 04:51:51 PM
Thanks that helped :)

To all a happy new year,
Herkules
Title: Re: Debian screen settings
Post by: Henri.D10 on January 25, 2014, 09:03:47 PM
Hello,

when i start "change_display_a20.sh" after the reboot my LCD don't turn on and also my HDMI.

after that step i can't connect on the a20-olinuxino with the SSH.

How did you do please?
Title: Re: Debian screen settings
Post by: Herkules on January 26, 2014, 11:17:12 AM
I'm sorry, I did it exactly like you, but I did not get that issue.
Maybe try not to remove the battery after shutdown, so the EEPROM keeps alive.

Sorry that I can'T help,
Herkules
Title: Re: Debian screen settings
Post by: gvi70000 on January 26, 2014, 12:55:41 PM
you can try to change script. bin

look here http://linux-sunxi.org/Fex_Guide#.5Bctp_para.5D (http://linux-sunxi.org/Fex_Guide#.5Bctp_para.5D)
https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/a20/a20-olinuxino_micro.fex (https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/a20/a20-olinuxino_micro.fex)

how to change the bin file http://www.imajeenyus.com/computer/20130301_android_tablet/android/fex2bin_etc.html (http://www.imajeenyus.com/computer/20130301_android_tablet/android/fex2bin_etc.html)
Title: Re: Debian screen settings
Post by: Henri.D10 on January 27, 2014, 02:48:19 AM
thank you

thank you but it still doesn't works.

i have change the script.bin on /mnt/mmc/script.bin

and i have disable HDMI and modify scrren0_output_type = 1 in disp_init.

I don't know why after this step my card don't work.

the Debian program is on the NAND or SDCARD for you?
Title: Re: Debian screen settings
Post by: Henri.D10 on January 27, 2014, 06:07:03 PM
I have find a solution,

it's XFCE the problem for me, i have remove XFCE and now i can change display between lcd and hdmi simply with the script change_display_a20.h

thank you all

now i search another desktop environment

henri
Title: Re: Debian screen settings
Post by: sanzoghenzo on April 18, 2014, 02:44:29 PM
sorry guys for resuming this discussion, but it's somewhat related, so I thought not to start another thread.
I just installed the unofficial Archlinux for ARM into my olinuxino, and I would like to use the change_display_a20.sh but obviously is not shipped with this distribution.
Can anyone provide the file online or point me to a location where I can download it?
thanks in advance!
Title: Re: Debian screen settings
Post by: Couby on June 05, 2014, 10:59:13 PM
Same problem as reported initial, ./change_display_a20.sh doesn t work neither the other one given on the wiki. Is there a new name for this script in latest release ? :(
Title: Re: Debian screen settings
Post by: JohnS on June 06, 2014, 09:32:20 AM
"unofficial Archlinux" sounds to be the cause.

John
Title: Re: Debian screen settings
Post by: Couby on June 06, 2014, 09:54:32 AM
What can we do then ?
What is the content of these scripts ?
Title: Re: Debian screen settings
Post by: jlucius on June 06, 2014, 11:57:21 AM
Hi

The script is called "change_display_a20_OlinuXino.sh" in the latest Debian image.

What it does is take a predefined .fex file and modifies it with a lot of ifs and seds and when finished creates a .bin file to be read at boot time.

There are some examples available at
https://github.com/linux-sunxi/sunxi-boards/tree/master/sys_config/a20

and you need sunxi-tools to convert .fex to .bin
https://github.com/linux-sunxi/sunxi-tools

I can also send the script if somebody needs it (don´t think it´s secret as it is in official olimex image?)
Title: Re: Debian screen settings
Post by: Couby on June 06, 2014, 01:03:59 PM
Ok but why the command doesn t work ?
I paid attention to be in the root directory and I got the error mentioned above.
And I m using the latest Debian image from the wiki...
Title: Re: Debian screen settings
Post by: jlucius on June 06, 2014, 05:56:59 PM
Quote from: Couby on June 06, 2014, 01:03:59 PM
Ok but why the command doesn t work ?
I paid attention to be in the root directory and I got the error mentioned above.
And I m using the latest Debian image from the wiki...

Strange. Did the same and it works for me. Just summerize your steps?

1) You have the latest Debian image from the wiki
2) You boot it, open a console, run "change_display_a20_OlinuXino.sh" in /root as user root or with sudo
3) A command line gui opens, where you can select "LCD" and "7".
4) You save and exit with reboot or without
5) you reboot the board
6) the LCD is connected via the HD cable to the right port on the board (says LCD_CON, on top of the writing "A20-OLINUXINO-MICRO")

What error do you get? Display not turning on?
Title: Re: Debian screen settings
Post by: Couby on June 06, 2014, 06:42:47 PM
1) Yes downloaded and installed the day before yesterday

2) Here is the problem
I boot it - ok.
Then I go to root (cd .. x2)
Then I tried "./change_display_a20_OlinuXino.sh" "sudo ./change_display_a20_OlinuXino.sh" "sudo sh ./change_display_a20_OlinuXino.sh" and more...
And it doesn't work. I have something like that bash: ./change_display_a20_OlinuXino.sh: No such file or directory.

I'm convinced I'm doing something wrong :-[, but what ?
Title: Re: Debian screen settings
Post by: jlucius on June 06, 2014, 06:51:42 PM
Quote from: Couby on June 06, 2014, 06:42:47 PM
1) Yes downloaded and installed the day before yesterday

2) Here is the problem
I boot it - ok.
Then I go to root (cd .. x2)
Then I tried "./change_display_a20_OlinuXino.sh" "sudo ./change_display_a20_OlinuXino.sh" "sudo sh ./change_display_a20_OlinuXino.sh" and more...
And it doesn't work. I have something like that bash: ./change_display_a20_OlinuXino.sh: No such file or directory.

I'm convinced I'm doing something wrong :-[, but what ?

are you in

/

or

/root

directory (you should be in /root)? Can you verifiy the file is there (execute "ls")? Can you verify the file is executeable (ls -l)?
Title: Re: Debian screen settings
Post by: JohnS on June 06, 2014, 06:57:04 PM
Case matters.  The wiki shows ...A20... not ...a20..., for example.

John
Title: Re: Debian screen settings
Post by: Couby on June 06, 2014, 07:11:20 PM
The screen I can use is busy at the moment, but I'll try as soon as possible.

Nope not in root but in /. Maybe here is my mistake. I didn't find the sh script for directories I looked.
Will check that root directory.

It seems to be so obvious...


@John : I paid attention to case.


Will tell you the result, thanks a lot jlucius.
Title: Re: Debian screen settings
Post by: JohnS on June 06, 2014, 08:25:21 PM
Your report shows the wrong case.

John
Title: Re: Debian screen settings
Post by: Couby on June 06, 2014, 11:12:34 PM
That was it Jlucius :).
Thanks again.