Hi
I am running an Arch Linux Arm installation on a Raspberry Pi 2 (model B). I have managed to connect a 5 inch HDMI LCD touchscreen from waveshare to the system (product description here...
http://www.waveshare.com/product/5inch-HDMI-LCD.htm
The following code is what is working for me for now:
In /etc/X11/xorg.conf.d/99-fbturbo.conf
$this->bbcode_second_pass_code('', '
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection
')
In /etc/X11/xorg.conf.d/99-calibration.conf
$this->bbcode_second_pass_code('', '
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3900 240 3900 240"
EndSection
')
In /etc/modules-load.d/raspberrypi.conf
$this->bbcode_second_pass_code('', '
bcm2708-rng
snd-bcm2835
i2c-bcm2708
i2c-dev
ads7846_device
ads7846_device model=7846 speed=100000 cs=1 gpio_pendown=25 keep_vref_on=0 swap_xy=0 pressure_max=255 x_plate_ohms=150 x_min=200 x_max=3900 y_min=200 y_max=3900
')
And finally in /boot/config.txt
$this->bbcode_second_pass_code('', '
device_tree=bcm2709-rpi-2-b.dtb
device_tree_param=i2c_arm=on
device_tree_param=spi=on
device_tree_overlay=piscreen
device_tree_overlay=w1-gpio-pullup=on
device_tree_param=gpiopin=4
device_tree_param=extpullup=1
device_tree_overlay=ads7846
device_tree_param=cs=1
device_tree_param=penirq=25
device_tree_param=penirq_pull=2
device_tree_param=speed=50000
device_tree_param=keep_vref_on=0
device_tree_param=pmax=255
device_tree_param=xohms=150
device_tree_param=xmin=200
device_tree_param=xmax=3900
device_tree_param=ymin=200
device_tree_param=ymax=3900
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
')
NOTE: I came across many posts mentioning that the 99-fbturbo.conf file should be modified to include "fb1" instead of "fb0" (including the forum discussion here:
http://archlinuxarm.org/forum/viewtopic.php?f=31&t=9208)
and also in the user instructions from Waveshare. But in my case that causes a problem and the X-server fails to start. Not sure why this is happening, but the X-server and fluxbox start only when I set to "fb0".
I hope this post helps anyone who is trying to get the 5 inch screen working.