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 .
Re: Using Multiple displays for terminal
FYI: It's /dev/fb<number>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
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.
Re: Using Multiple displays for terminal
Thanks , so does that mean ....?DirkS wrote:FYI: It's /dev/fb<number>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
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.
FRAMEBUFFER=/dev/fd1 con2fbmap
or
FRAMEBUFFER=/dev/con2fbmap
- ragnarjensen
- Posts: 332
- Joined: Wed May 15, 2013 6:13 pm
- Location: Stockholm, Sweden
Re: Using Multiple displays for terminal
Map console 1 to framebuffer 1, login screen will show up on /dev/fb1
Revert console 1 to /dev/fb0
Show current mapping
--
Ragnar
Code: Select all
con2fbmap 1 1
Code: Select all
con2fbmap 1 0
Code: Select all
con2fbmap 1
Ragnar
Re: Using Multiple displays for terminal
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
# 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
Re: Using Multiple displays for terminal
fbset is the package.wilsonb wrote:Sorry, do you know the name of the package to install ?