X11 only will display on PiTFT (fb1)

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
phillynj
 
Posts: 21
Joined: Sun Feb 10, 2013 8:47 pm

X11 only will display on PiTFT (fb1)

Post by phillynj »

Hi,

I have my PiTFT up-and-running and I love it. The only issue I have is when I want to run X11 on my HDMI/TV, it only displays on my PiTFT.

when I execute:

Code: Select all

FRAMEBUFFER=/dev/fb0 startx
X11 loads on PiTFT. I followed the directions from https://learn.adafruit.com/adafruit-pit ... rry-pi/faq.

Also, I have my PiTFT set to display the boot console. But I also tried to disable this and it didn't fix the issue.

Thanks for the help.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: X11 only will display on PiTFT (fb1)

Post by adafruit_support_mike »

Did you start from a fresh install of Raspbian when you installed the PiTFT software? Anomalies like this usually show up due to unexpected interaction between the PiTFT modules and other modules already installed on the system.

I don't recognize this specific issue, but what do you get from:

Code: Select all

ls -l /dev/fb*

User avatar
phillynj
 
Posts: 21
Joined: Sun Feb 10, 2013 8:47 pm

Re: X11 only will display on PiTFT (fb1)

Post by phillynj »

Hi Mike,

I think I found the issue. During installation I couldnt get X11 to start on PiTFT. So I followed the following suggestion:
http://www.raspberrypi.org/forums/viewt ... 02#p485302
Which forces X11 to always use fb1 (PiTFT).

So I removed the file

Code: Select all

99-fbdev.conf 
and X11 now displays on my HDMI/TV. But now I have the original problem.

Code: Select all

FRAMEBUFFER=/dev/fb1 startx
does not show X11 on the PiTFT.

To answer your question:
ls -l /dev/fb*

Code: Select all

crw-rw---T 1 root video 29, 0 Jan  1  1970 /dev/fb0
crw-rw---T 1 root video 29, 1 Apr  6 00:54 /dev/fb1

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: X11 only will display on PiTFT (fb1)

Post by adafruit_support_mike »

It does sound like the display-forcing modification was responsible for the choice-of-display problem.

WRT the display not working, you shouldn't use the 99-fbdev.conf file with a PiTFT. That tells the OS to use a new, hardware-accelerated framebuffer that wasn't part of the Raspbian distribution while we were writing the TFT driver module. Delete that file (or rename it, or move it to your home directory) to get the old PiTFT-compatible framebuffer back.

User avatar
phillynj
 
Posts: 21
Joined: Sun Feb 10, 2013 8:47 pm

Re: X11 only will display on PiTFT (fb1)

Post by phillynj »

Thanks. Like I said Removing 99-fbdev.conf fixed the problem and then the output was ALWAYS on the HDMI. So I looked through the instructions again and noticed this note:
If you have a version of Raspbian more recent than Sept. 2013, you'll need to turn off the accelerated X framebuffer here, run "sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf ~" to remove the accelerated X buffer and save it in your home directory
I missed that during install. Everything works perfect!

Thanks for the help.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”