wilsonb
Posts: 14
Joined: Thu Sep 11, 2014 4:13 pm

Using Multiple displays for terminal

Wed Jan 07, 2015 4:17 pm

Raspberry B+ and PiTFT LCD

Well, I am almost there.. What I need is a terminal not x windows (to bloated).
I want to be able to at least switch between displays with a terminal (if not Mirror the LCD)

Meybe replace xwindows with (whatever the "start" terminal command is )
FRAMEBUFFER=/dev/fd0 startx <---------------this works, but starts XWindows
FRAMEBUFFER=/dev/fd1 ttY <---------????????? trying to start terminal

Would be nice if someone wrote a quick script to sense if HDMI is plugged in and automatically enable that display .

DirkS
Posts: 10953
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Using Multiple displays for terminal

Wed Jan 07, 2015 10:03 pm

Meybe replace xwindows with (whatever the "start" terminal command is )
FRAMEBUFFER=/dev/fd0 startx <---------------this works, but starts XWindows
FRAMEBUFFER=/dev/fd1 ttY <---------????????? trying to start terminal
FYI: It's /dev/fb<number>
To switch a console /terminal to another framebuffer you can use 'con2fbmap'.

(long) topic about auto-switching between HDMI & Pitft: http://www.raspberrypi.org/forums/viewt ... 44&t=91764.
Probably best to start at http://www.raspberrypi.org/forums/viewt ... 75#p662735

Gr.
Dirk.

wilsonb
Posts: 14
Joined: Thu Sep 11, 2014 4:13 pm

Re: Using Multiple displays for terminal

Thu Jan 08, 2015 1:58 am

DirkS wrote:
Meybe replace xwindows with (whatever the "start" terminal command is )
FRAMEBUFFER=/dev/fd0 startx <---------------this works, but starts XWindows
FRAMEBUFFER=/dev/fd1 ttY <---------????????? trying to start terminal
FYI: It's /dev/fb<number>
To switch a console /terminal to another framebuffer you can use 'con2fbmap'.

(long) topic about auto-switching between HDMI & Pitft: http://www.raspberrypi.org/forums/viewt ... 44&t=91764.
Probably best to start at http://www.raspberrypi.org/forums/viewt ... 75#p662735

Gr.
Dirk.
Thanks , so does that mean ....?
FRAMEBUFFER=/dev/fd1 con2fbmap
or
FRAMEBUFFER=/dev/con2fbmap

User avatar
ragnarjensen
Posts: 332
Joined: Wed May 15, 2013 6:13 pm
Location: Stockholm, Sweden

Re: Using Multiple displays for terminal

Thu Jan 08, 2015 8:38 am

Map console 1 to framebuffer 1, login screen will show up on /dev/fb1

Code: Select all

con2fbmap 1 1
Revert console 1 to /dev/fb0

Code: Select all

con2fbmap 1 0
Show current mapping

Code: Select all

con2fbmap 1
--
Ragnar

wilsonb
Posts: 14
Joined: Thu Sep 11, 2014 4:13 pm

Re: Using Multiple displays for terminal

Thu Jan 08, 2015 11:18 am

Sorry, do you know the name of the package to install ?

# con2fbmap 1 1
-bash: con2fbmap: command not found

# apt-get install con2fbmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package con2fbmap

User avatar
rpdom
Posts: 22784
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Using Multiple displays for terminal

Thu Jan 08, 2015 11:28 am

wilsonb wrote:Sorry, do you know the name of the package to install ?
fbset is the package.

Return to “HATs and other add-ons”