Yes it is possible.
I took a look at the link that is provided and that make me on track, for my concern and now i can give a little back.
I have createt a 99-fbturbo.conf in /etc/X11/xorg.conf.d/
And also ensured that there is not another .conf, that will interfere with / change /dev/fb0 in:
My /etc/X11/xorg.conf.d/99-fbturbo :
# PiTFT xorg config file
#startx -- -layout HDMI
#startx -- -layout TFT
# When not specifying the layout, the first is used is: HDMI
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "True"
Option "fbdev" "/dev/fb1"
Screen 0 "ScreenHDMI"
Screen 0 "ScreenTFT"
Now we can log in to Pi2 from console / ssh and start X with the command:
startx -- -layout HDMI
startx -- -layout TFT
When using HDMI, touch on TFT-screen is still active.
If no -layout is provided HDMI is choosen, as is it the first in .conf
Change order to change first screen device.
Try and start both of them won't do any good, in any way...
If we install rpi-fbcp from:
then is possible to log in on RPi2 console (set as default in raspi-config, won't work via ssh) and from commandline go to directory /where/ever/you/build/rpi-fbcp.
sudo ./fbcp & startx -- -layout HDMI
Now PiTFT is a clone of HDMI.
Note: I have also removed export FRAMEBUFFER=/dev/fb1 from /home/pi/.profile.
and fbcon=map:10 fbcom=font:VGA8x8 from /boot/cmdline.txt (No console at logon on TFT).