switch between piTFT and HDMI

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
diegobarone
 
Posts: 3
Joined: Sun Jan 25, 2015 3:15 pm

switch between piTFT and HDMI

Post by diegobarone »

Hi guys!
I have set up a Raspberry B+, piTFT (2.8" plus resistive touch) and hifiberry Dac+.
I installed last Raspbian distro (24/12/2014) and the script update to use the tft.
And it is working well.
I'd like to chose where display the video: tft or hdmi.
But even using "FRAMEBUFFER=/dev/fb0 startx" or "FRAMEBUFFER=/dev/fb1 startx" ... I obtain video only on TFT.
The only way to use hdmi is to keep 99-fbturbo.conf in its directory instead ov moving it in ~ (but in this case, I'm not able to have video on tft).

Any idea?
My idea is to
- boot X on TFT
- have a couple on icon to start MPLAYER (or another X) on TFT or on HDMI

Diego

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: switch between piTFT and HDMI

Post by adafruit_support_rick »

This tutorial section describes how to boot to X on the PiTFT:
https://learn.adafruit.com/adafruit-pit ... s-on-pitft

User avatar
diegobarone
 
Posts: 3
Joined: Sun Jan 25, 2015 3:15 pm

Re: switch between piTFT and HDMI

Post by diegobarone »

Yes,
but as I wrote, I'm trying to switch between TFT or HDMI output.
I tried "FRAMEBUFFER=/dev/fb0 startx" nor "FRAMEBUFFER=/dev/fb1 startx" (as described in that tutorial) but
- if I keep original 99-fbturbo.conf I'm able to see X only on HDMI
- if I substitute 99-fbturbo.conf with 99-pitft.con I'm able to see X only on TFT

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: switch between piTFT and HDMI

Post by adafruit2 »

just move the file out, the 99- files will override your FRAMEBUFFER argument

https://learn.adafruit.com/adafruit-pit ... /faq#faq-4

User avatar
diegobarone
 
Posts: 3
Joined: Sun Jan 25, 2015 3:15 pm

Re: switch between piTFT and HDMI

Post by diegobarone »

Ok, thanks!
I removed the "export FRAMEBUFFER ... etc etc" from ~/.profile file too.
Now it is ok

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”