Day la cac buoc minh da lam va ghi note lai :
RuneAudio beta 20170229 + 3.5" LCD
# copy file waveshare35a.dtb to folder Overlays of rune, and rename *.dtb to *.dtbo
# Install video driver packages xf86
wget
http://tardis.tiny-vps.com/aarm/pac...o-fbturbo-git-199.f9a6ed7-1-armv7h.pkg.tar.xz
tar -xvpwf xf86-video-fbturbo-git/xf86-video-fbturbo-git-199.f9a6ed7-1-armv7h.pkg.tar.xz -C / --exclude .PKGINFO --exclude .INSTALL
# Add follow those to config.txt files
nano /boot/config.txt
start_x
gpu_mem=128
core_freq=250
sdram_freq=400
over_voltage=0
dtparam=spi=on
dtoverlay=waveshare35a-overlay.dtbo
dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900
dtparam=i2c_arm=on
dtoverlay=w1-gpio-pullup,gpiopin=4,extpullup=1
# Add those line at the end of the line in cmdline.txt file
nano /boot/cmdline.txt
fbcon=map:10 fbcon=font
roFont6x11 logo.nologo
# Create the file /etc/X11/xorg.conf.d/99-calibration.conf and insert the following
nano /etc/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3932 300 294 3801"
Option "SwapAxes" "1"
EndSection
# In /etc/X11/xorg.conf.d/99-fbturbo.conf, change to :
nano /etc/X11/xorg.conf.d/99-fbturbo.conf
Option "fbdev" "/dev/fb0"
to
Option "fbdev" "/dev/fb1"
# Add the following to /etc/modules-load.d/raspberrypi.conf:
nano /etc/modules-load.d/raspberrypi.conf
i2c-bcm2708
i2c-dev
flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3
fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24
ads7846_device model=7846 cs=1 gpio_pendown=17 keep_vref_on=1 swap_xy=1 pressure_max=255 x_plate_ohms=60 x_min=200 x_max=3900 y_min=200 y_max=3900
#### Option ####
# check if local browser ( midori) is enable = " redis-cli get local_browser "
If not do this = "redis-cli set local_browser 1 "
# Rotate screen
dtoverlay=waveshare35a-overlay.dtbo,rotate=270
# Zoom in screen
nano /root/.config/midori/config
changes zoom-level=0.7 to zoom-level=0.5