notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.86k stars 494 forks source link

can't manually show startx on fb0 #370

Closed alec801 closed 7 years ago

alec801 commented 8 years ago

I am using the waveshare 3.5a screen. Following your instructions, I have the screen working well using an overlay by swkim01.

I want the pi to boot to fb1 automatically. I moved the /usr/share/X11/xorg.conf.d/99-fbturbo.conf file and did the following: sudo wget https://gist.github.com/notro/63fc8f563b5f85010d30/raw/5e68d6c6df9471f973b3da5305e73a5017590a69/fbtft.conf -O /etc/X11/xorg.conf.d/fbtft.conf

added to /etc/modules-load.d/fbtft.conf

added to /etc/modprobe.d/fbtft.conf

So now it boots to fb1, but if I run sudo FRAMEBUFFER=/dev/fb0 startx it will start the new startx on fb1. The only way I can get fb0 working is to replace the 99-fbturbo.conf file.

Is there a way I can have it boot to fb1 and switch to fb0 easily? or will it require replacing that file each time I want to do it?

Thanks for the help

notro commented 8 years ago

At the top of the file: startx -- -layout HDMI

notro commented 7 years ago

Closing issue since there has been no activity in a long time. Reopen if needed.