CubieBoard Forum

Cubieboard itself => Tips, Tricks and Guides => Topic started by: hhh123 on January 03, 2014, 05:56:59 am

Title: script to switch display
Post by: hhh123 on January 03, 2014, 05:56:59 am
Guys,

is the any one have a script to switch display from VGA to HDMI and vice versa.

Regards,
Harshal
Title: Re: script to switch display
Post by: Saegematz on January 03, 2014, 08:13:24 am
You want a script and not the right display at startup?
The change to HDMI or VGA I have seen plenty of times in this forum.
The script for changing the output of the screen , only one time, but
I don't know if it was on this forum.
Cu
Title: Re: script to switch display
Post by: ikeeki on January 03, 2014, 08:15:07 am
Cubiuntu 0.8 has a very clear one in the desktop see the video
Title: Re: script to switch display
Post by: rckburn on January 08, 2014, 03:20:07 pm
Where would that video be found? I would like to see it.
Title: Re: script to switch display
Post by: rwolf on January 08, 2014, 04:42:01 pm
I don't know is it good for you or not, because I have only one monitor (HDMI) but you can try the following:

1. type:   cat /sys/class/graphics/fb0/modes

2. you will get a list of avaiable video modes

3. type for example :  echo D:1920x1080p-60 > /sys/class/graphics/fb0/mode   

attention: there is no "s" in the end of the second command

the first letter is the monitor output type (I think) D: means digital (HDMI)   V:means Video(analoge)  U:means VGA  S:means S-video

for resolution changing this method is working, I checked it.   For output changing I dont know





Title: Re: script to switch display
Post by: Leo123 on January 11, 2014, 12:59:08 am
The change to HDMI or VGA I have seen plenty of times in this forum.
The script for changing the output of the screen , only one time, but
I don't know if it was on this forum.