c-shell-II 4.9.xx switch between L.C.D screen and desktop

Moderators: mdrjr, odroid

c-shell-II 4.9.xx switch between L.C.D screen and desktop

Unread postby phaseshifter » Fri Apr 28, 2017 2:56 pm

to have both the hdmi and l.c.d screen display at the same time...e.g have the desktop on hdmi as normal

but have the l.c.d screen of the shell-II displaying at a console level with top/htop running
in conjunction if you will

read on further for my notes
Last edited by phaseshifter on Fri May 05, 2017 9:32 am, edited 2 times in total.
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: c-shell-II is this at al possible

Unread postby odroid » Fri Apr 28, 2017 11:39 pm

It must be possible.
But somebody needs to make a guide after a couple of days experimental.
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: c-shell-II is this at al possible

Unread postby phaseshifter » Sat Apr 29, 2017 9:54 am

well that is great now i need a coder to hash it out

p.s..i was not shure where to post this @ odroid pls move this to the best place..thanks phase,,..
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: c-shell-II is this at al possible

Unread postby Brian.K » Tue May 02, 2017 3:25 pm

It is easy to use each display(TFT LCD, HDMI) as a console.

Add fbcon=map:10 boot parameter to /media/boot/boot.ini file.
Code: Select all
$ nano /media/boot/boot.ini
setenv bootargs "${bootrootfs} ${videoconfig} ${hdmi_phy_control} ${hud_quirks} smsc95xx.macaddr=${macaddr} ${external_watchdog} fbcon=map:10"
$ sudo reboot


It means the frame buffer devices mapping to tty virtual terminal (tty1 -> /dev/fb1, tty2 -> /dev/fb0).
This parameter is valid only in case HDMI cable connected. Because if HDMI cable disconnected then TFT LCD device file is '/dev/fb0'.

But, just one virtual terminal can be foreground in Linux system. Others are working on background.
We can change the foreground virtual terminal using '<Ctrl> + <Alt> + <F1> ~ <F6>' for the frame buffer console. (tty1 ~ tty6)
And we can enter the Xorg '<Ctrl> + <Alt> + <F7>'. (chvt <tty number> command is also working same.)

The problem is that only the display of the foreground terminal can be updated the screen.
So, the TFT LCD screen cannot be updated when we use the GUI desktop(HDMI, tty7 is foreground). The HDMI screen cannot be updated when the tty1(TFT LCD, fbcon) is foreground.

To resolve this problem, we need some hack in the fbcon or make system information GUI program which displays to the TFT LCD(/dev/fb1) device.
I think second approach is more easier (in my case...). If anybody(geek!) have the idea to solve the foreground/background terminal problem. Please let me know. :-)
User avatar
Brian.K
 
Posts: 246
Joined: Tue Sep 15, 2015 7:30 pm
Location: South Korea
languages_spoken: English, Korean
ODROIDs: XU4, C1+, C2

Re: c-shell-II is this at al possible

Unread postby phaseshifter » Tue May 02, 2017 4:00 pm

rem by user
Last edited by phaseshifter on Sat May 27, 2017 9:46 am, edited 1 time in total.
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: c-shell-II flip to L.C.D screen

Unread postby phaseshifter » Fri May 05, 2017 4:04 am

so you want to be able to control the l.c.d as well as control the desktop..this is about the best i could do..!!

from the cloudshell-II wiki notes install
1:
Code: Select all
sudo add-apt-repository ppa:kyle1117/ppa

Code: Select all
apt update

Code: Select all
sudo apt-get install cloudshell-lcd  cloudshell2-fan


2: Add fbcon=map:10 boot parameter to /media/boot/boot.ini file.
joe /media/boot/boot.ini
Code: Select all
setenv bootargs "${bootrootfs} ${videoconfig} ${hdmi_phy_control} ${hud_quirks} smsc95xx.macaddr=${macaddr} ${external_watchdog} fbcon=map:10"

Code: Select all
reboot

3: now to control between the desktop and the l.c.d
Code: Select all
ctrl+alt+F1

now your in control of the l.c.d screen..
login and do what you like for e.g i have htop running on the l.c.d
.to switch back to the desktop simple
Code: Select all
 ctrl+alt+F7


as you switch back to the l.c.d
it will restart what ever program you had running...
you can only have control of one screen or the other..as brian.k explained..earlier..i just made it in simple terms....
Last edited by phaseshifter on Sat May 27, 2017 9:45 am, edited 2 times in total.
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: c-shell-II 4.9.xx switch between L.C.D screen and deskto

Unread postby phaseshifter » Sun May 07, 2017 12:02 pm

TIP
if your running a program like top/htop
you can use the arrow keys to scroll across the page to see what programs are running
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: c-shell-II 4.9.xx switch between L.C.D screen and deskto

Unread postby markephillips » Fri Nov 09, 2018 5:12 am

So when I have done exactly this - the system hangs on boot-up - I started with a fresh image too. I would like to use the HDMI MATE interface with the cloudshell n-mon running on the device. Is there something I'm missing? It looks like below is jus the Mate image and fbcon added to boot.ini?
markephillips
 
Posts: 2
Joined: Fri Oct 26, 2018 11:39 am
languages_spoken: english
ODROIDs: xu4

Re: c-shell-II 4.9.xx switch between L.C.D screen and deskto

Unread postby markephillips » Fri Nov 09, 2018 5:15 am

Um, so magically, upon apt-get update - the LCD and screen are working. But the USB mouse and keyboard is not responding and the LCD screen won't die with ctl-c - any thoughts?
markephillips
 
Posts: 2
Joined: Fri Oct 26, 2018 11:39 am
languages_spoken: english
ODROIDs: xu4

Re: c-shell-II 4.9.xx switch between L.C.D screen and deskto

Unread postby odroid » Fri Nov 09, 2018 9:40 am

Can you access your XU4 via SSH?
If yes, check "lsusb" and "lsusb -t" outputs.
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: c-shell-II 4.9.xx switch between L.C.D screen and deskto

Unread postby phaseshifter » Fri Nov 09, 2018 10:17 am

it`s really tricky to switch between screen and monitor if that`s what your doing..
.you have to stop the shell program first then change back to the monitor if that is of any advice to you.
.it`s been a long time and i`d have to read the thread/s ive written a couple of them...and again i`d have to refresh my brains on the matter at hand.
.i dont think there is anything wrong with your hardware,.,

and run a full update as root user....
Code: Select all
apt update && apt upgrade && apt dist-upgrade


further more it is possible to get locked out of one or the other be it the l.c.d or the monitor...
the fix for this is not with me at present but a cold boot..
which is not going to be a viable option at the best of times is sometimes the only answer...

give me some time i`ll look into the threads and get back to you.. but yes if you had another machine E.G an xu4-etc.etc.you could just ssh into it if your running a router and have it dedicated to run the l.c.d..at times...

and also youd like the shell display runng what ever your program is be it shell stat`s or top etc.. and as well being able to utilize the desktop..browseing etc..

i`ll did unto my other threads when i get to finding them..i have not done anything with 18.04 or the 4.14.xx kernel`s etc..as other things took my interest..it happens ..i`ll break out my shell 2 later 2day i know where it is but it has no board in it ..i`ll just use a spare xu3-lite 4 now ..yes i did that too..lol..lol////
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: c-shell-II 4.9.xx switch between L.C.D screen and deskto

Unread postby phaseshifter » Sat Nov 10, 2018 5:17 am

THIS POST IS A WORKS IN PROGRESS
Thought i would add this for the Firefox users firstly...
ok so if you have run an update and want firefox to work then 52.xx is in this thread..
viewtopic.php?f=95&t=27977
you will find everything you need to download and install it..
if your not a Firefox fan then chromium work`s fine out of the box...
OK more about the shell screen..

if you install cloudshell-lcd program then this is where it becomes tricky...once you install it you have to run this command to start the hdd`s stats program

cloudshell-lcd


once you do a reboot using this program it will take over your frame buffer control
and the likes of switching between the l.c.d and the desktop you will have for-fitted the control to switch between CTRL+ALT+F1 AND F7 screen modes
the c-shell-lcd program just takes over.
there is a way around it and it took me an hour to do so,,
however i have not set up a machine as yet to ssh into the shell via this method..still working on that Works In progress Still..afraid here....

how ever if you have installed it from the start then here is what you have to do to remain in control of the frame buffers/screens...
once you have the shell-lcd program running and before you have done any forms of rebooting restarting the c-shel unit..then use CTRL+C..and the shell stats will stop[
now u must uninstall the c-shel-lcd program before you reboot the c-shell unit
so..
apt purge cloudshell-lcd
now you can reboot and you will have back control of switching between screens..
simply put...
now to start it again...
Code: Select all
apt install cloudshell-lcd

and the stats program will start again...

programs like top and htop and alike will give you no control issues you will simply have to restart them once a reboot has occurred

but i must say that which ever screen your logged/using at the time will be the one in control of the unit..
so if you want to monitor the programs of top and alike you must be in control of that console
if you switch back to your hdmi screen then the stats will freeze and not update
but switch back to the lcd screen ant it will come back to real time monitoring..

not the best way i wanted it to work either,,but seems no fix around the issue at present...

ok so i set up my other XU4 and ssh`d into the c-shell.
.it is easy to then proceed and do this
so if your shell is on the network just find it`s ip and ssh into it .via another machine on your network ....once login has done code the line below and reboot
then you back at having control over the frame buffer/screen/l.c.d on the shell...which ever you like...
Code: Select all
apt purge cloudshell-lcd


after this is done if you want it running again just reinstall it
Code: Select all
apt install cloudshell-lcd


there are a few more option`s you can just hold down the
ctrl+alt and press function key`s F1 trough to F7...

however the l.c.d screen mainly responds to F! F3 F5 from mem..
you can have top on one key F3 and the server program on F1 and htop on F5 ..and still press F7 to bring you back to your desktop

if you have the server program running on F1 and top running on F3 ..it will cycle from the server stats and top stats..as to say it will oscillate displays

i got to hack the refresh rates ,.,getting round to that one though..

food for thought 4 now...phase...
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 7 guests