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

Moderators: odroid, mdrjr

c-shell-II 4.9.xx..4.14.xx switch 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 Sat Dec 01, 2018 9:02 am, edited 3 times in total.
phaseshifter
 
Posts: 3000
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: 29098
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: 3000
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: 3000
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 odroid-cloudshell  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 Dec 01, 2018 11:45 am, edited 4 times in total.
phaseshifter
 
Posts: 3000
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: 3000
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: 17
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: 17
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: 29098
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: 3000
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..


ok so for each console you'll need to login every time you swap from one to another initially..

once you have the frame buffer installed and rebooted then switch to
Code: Select all
ctrl+F1
then enter the login switch to root user ,,,..on the l.c.d screen .

Code: Select all
apt install cloudshell-lcd


once that finishes installing switch to
Code: Select all
ctrl+F2
and enter login and change to root..
Code: Select all
nano /bin/cloudshell-lcd

now see this entry..
Code: Select all
# Output Console (ttyX)
export OUTPUT_CONSOLE="1"

change it to..
Code: Select all
# Output Console (ttyX)
# export OUTPUT_CONSOLE=0

save and exit...
while your doing that then you can scroll down a few more lines to the refresh rate.
it`s in seconds..you can change this value if need be/want to..it`s res is in seconds..

but ..you must install the cloudshell-lcd program from the ctrl+F1screen.as root user..
now switch to
Code: Select all
 ctr+F1

ener login and launch ..
Code: Select all
cloudshell-lcd


now you can stop it by
Code: Select all
ctrl+c


you should now be able to change to
Code: Select all
ctrl+F3

and launch "top" after you login

you can now swap back to the cloudshell stats program
Code: Select all
ctrl+F1


now switch to ctrl+F2 and reboot..you should after this have the desktop come back to the scrren..

hopefully if you switch to ctrl+F1 now you should have a login screen...

enter details and launch
Code: Select all
cloudshell-lcd
..


happily now change between buffer screens and desktop..

all should be well...

with my limited code know how that is about the best i can do for now.....

hold
Code: Select all
ctrl+alt
and press any function key ..E.G..F!..F2 ..etc through to F6 will bring you through the consoles... and F7 will bring you back to your desktop.

F1..F3..F5..are the L.C.D consoles and the rest will display on your monitor..

ohh you must firstly login to your desktop session..then switch between the consoles..etc.etc..
although if you switch straight to a console without login you wont see hdd info on the server stat`s program...

other programs.are listed here..below..


to just use the shell-2 screen as a "dos box" so to speak uninstall that server stats program
Code: Select all
apt purge cloudshell-lcd


Code: Select all
reboot

Code: Select all
login

play away change back and forward from any console to your desktop...using ctrl+alt+F1 through to ctrl+alt+ F7 which is the desktop..

for invadres you must add a repo

Code: Select all
sudo add-apt-repository universe
sudo apt update
sudo apt-get install ninvaders

Code: Select all
apt install nmon


Code: Select all
apt install htop


Code: Select all
top

generic program that comes with most distro`s.

viewtopic.php?f=147&t=29298#p209432

just to name some shell-l.c.d display programs....
Last edited by phaseshifter on Tue Dec 11, 2018 2:55 am, edited 10 times in total.
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 3000
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 » Tue Nov 27, 2018 12:24 pm

Someone needs to make this post part of setting up a new cloudshell2 - because there is a ton of random other how-tos that have you chasing your tail.
markephillips
 
Posts: 17
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 » Tue Nov 27, 2018 12:33 pm

Does this look normal?

/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
|__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480M
markephillips
 
Posts: 17
Joined: Fri Oct 26, 2018 11:39 am
languages_spoken: english
ODROIDs: xu4

Re: c-shell-II 4.9.xx..4.14.xx switch L.C.D screen and deskt

Unread postby phaseshifter » Sat Dec 01, 2018 9:33 am

usb output looks normal..

working on thread ...
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 3000
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..4.14.xx switch L.C.D screen and deskt

Unread postby markephillips » Sun Dec 02, 2018 3:43 pm

hi,
so after the kernel update:
Linux Cloudshell2 4.9.30-41 #1 SMP PREEMPT Wed May 31 11:31:59 UTC 2017 armv7l armv7l armv7l GNU/Linux
my LCD stops updating the LCD at
[ 9.893322] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.903113] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.911916] spidev spi1.0: spidev spi1.0 1000kHz 8 bits mode=0x00
[ 9.917650] spi spi1.1: ads7846 spi1.1 1000kHz 8 bits mode=0x00
[ 9.923683] spidev spi1.0: Deleting spi1.0
[ 9.928018] fbtft_device: GPIOS used by 'hktft9340':
[ 9.932541] fbtft_device: 'reset' = GPIO21
[ 9.936602] fbtft_device: 'dc' = GPIO22
[ 9.940421] fbtft_device: 'led' = GPIO18
[ 9.944305] spi spi1.1: ads7846 spi1.1 1000kHz 8 bits mode=0x00
[ 9.944313] spi spi1.0: fb_ili9340 spi1.0 35000kHz 8 bits mode=0x00

any ideas on how to get this to work? Thanks.
markephillips
 
Posts: 17
Joined: Fri Oct 26, 2018 11:39 am
languages_spoken: english
ODROIDs: xu4

Re: c-shell-II 4.9.xx..4.14.xx switch L.C.D screen and deskt

Unread postby phaseshifter » Fri Dec 07, 2018 4:06 pm

EDIT: hit the enter key......
does the l.c.d just go blank
if so then look and see up the top left corner is there what appears to be a prompt cursor.
.if so hit ctrl+F1 and you should have a login line etc..etc..you can login and work with the command line interface via the l.c.d screen...
Last edited by phaseshifter on Fri Dec 07, 2018 6:39 pm, edited 1 time in total.
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 3000
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..4.14.xx switch L.C.D screen and deskt

Unread postby phaseshifter » Fri Dec 07, 2018 5:43 pm

if you can login via ssh or by using the usb uart kit on the serial; port then run these commands...or try another console..

ctrl+F3

ctrl+F5


Code: Select all
apt -f install

Code: Select all
dpkg --configure -a
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 3000
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..4.14.xx switch L.C.D screen and deskt

Unread postby odroid » Sat Dec 08, 2018 12:23 pm

Isn't it "Ctrl-Alt-F#" ?
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: c-shell-II 4.9.xx..4.14.xx switch L.C.D screen and deskt

Unread postby markephillips » Tue Dec 11, 2018 9:06 am

So after reimaging and restoring my files, the system is up again. I went back and cleaned the internal USB ports heavily with alcohol and the cable and last night after 18 hours of copying my movie directory between the drives back and forth the system appears not to have thrown any iotcl errors. How annoying, but how cool to actually be at point of a stable cloudshell 2 - its actually really cool. Now that I've sunk so much time into this - during of which I purchased a Synology 418play which for 10x more money, I am considering is it really worth it. Given I'm inside the 30 day return period, if this cloudshell can operate well for 2 weeks with solid uptime samba and netatalk, I may go a little crazy with what I might build.

Thank you, everyone, for your help.
markephillips
 
Posts: 17
Joined: Fri Oct 26, 2018 11:39 am
languages_spoken: english
ODROIDs: xu4

Re: c-shell-II 4.9.xx..4.14.xx switch L.C.D screen and deskt

Unread postby phaseshifter » Tue Dec 11, 2018 10:31 am

Hm..well that is interesting indeed,,however this thread was suposed to be informative..but o well it happens..good to hear you worked out your gear..
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 3000
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 1 guest