Rpi3 + Screen 3,5 Kedei + Runeaudio

Raspberry Pi related support

Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby dom_france » 09 Mar 2018, 17:02

Hello,

I need your help for my screen :
https://fr.aliexpress.com/item/Best-Pri ... 0.0.pHfkDV

I see this topics :
waveshare-spotspear-3-5-touch-screen-working-with-rune-t3859.html

A lots of information for me, but I have a screen : modele 3'5 Kedei.

The driver is available :
http://kedei.net/raspberry/raspberry.html

How to do ?

I'm blocked......

Thank you

DOM
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby Urlin » 10 Mar 2018, 16:37

I'm on the way "RuneAudio_rp2_rp3_0.4-beta_20170229_2GB.img " do so. I have only display "waveshare the 3.5". In folder /boot/overlays insert file "waveshare35a.dtb "and rename it to" waveshare35a.dtbo". In the file /boot/cmdline add at the end "fbcon=map:10 fbcon=font:VGA8x8". In the file /boot/config I add at the end
Code: Select all
dtparam=spi=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=waveshare35a

2. Create the file /etc/X11/xorg.conf.d/99-calibration.conf and insert the following:
Code: Select all
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "3932 300 294 3801"
        Option  "SwapAxes"      "1"
EndSection

3. In /etc/X11/xorg.conf.d/99-fbdev.conf, change
Code: Select all
Option          "fbdev" "/dev/fb0"

to
Code: Select all
Option          "fbdev" "/dev/fb1"


4. Reboot
Attachments
Файлы.7z
(1.18 KiB) Downloaded 4556 times
Urlin
 
Posts: 16
Joined: 09 Mar 2018, 10:46

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby dom_france » 10 Mar 2018, 19:09

Hello Urlin,

thank you for your answer.

I just tried to do what you told me, but without success at the end : my TFT Kedei 3'5 screen stays always white !

I have some question, because I read this topic after my test :
waveshare-spotspear-3-5-touch-screen-working-with-rune-t3859.html

for waveshare, OK, but just by comparison...

My question :
1) Do I have to install the xf86-video-fbturbo driver ? ( I think so, but are there any other drivers to install? )

Code: Select all
pacman -S xf86-video-fbturbo


2) in "waveshare" topic, in /boot/config.txt : there are many lines added, like "start x, gpu_mem=128, etc..." ?
Important ?


3) in "waveshare" topic : it's necessary to add line in / /etc/modules-load.d/raspberrypi.conf like :

Code: Select all
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



Remarque :
For information, I updated my raspberry pi 3 with this image : RuneAudio_rpi2_rp3_0.4-beta_20170229_2GB.img

and for the moment, I try only modification for my screen Kedei, just this, and after, if it's OK, I will be able to put back my IR remote (Keyes), but now, I'm only focusing on my KEDEI brand screen. (I specify this to avoid looking for other problem : interference with the remote control, with GPIO, etc.)



thank you for your help...

See you later

Bye

DOM
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby Urlin » 10 Mar 2018, 20:51

Instruction "http://www.runeaudio.com/forum/waveshare-spotspear-3-5-touch-screen-working-with-rune-t3859.html" works only on version " RuneAudio_rpi2_rp3_0.4-beta_20160321_2GB.img". On the version "RuneAudio_rp2_rp3_0.4-beta_20170229_2GB.img" do according to my instructions. The driver "fbturbo" should not be put. There is a driver "fbdev", it is enough. Try to copy the file "99-fbdev.conf " and " 99-calibration.conf " to the usr/share/x11/xorg folder.conf.d. In / boot / config.txt add only my text if you put " startx,..." it won't start. Instead of driver " waveshare35a.dtb " put your own. Only change to /boot / config.txt "dtoverlay=waveshare35a" to " overlay=your driver"
Last edited by Urlin on 10 Mar 2018, 21:22, edited 1 time in total.
Urlin
 
Posts: 16
Joined: 09 Mar 2018, 10:46

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby dom_france » 10 Mar 2018, 20:54

Hello, just pour Information, my screen work with raspian : (I just did this test to dismiss a hardware problem)
Image

No good for the moment with runeaudio (Archlinux) :
Image


With Archlinux (runeaudio), it's very difficult for me to understand the problem...

thank you

DOM

feature of my screen :
Image
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby Urlin » 10 Mar 2018, 21:16

You have the version RuneAudio ? Which version do you use?
Urlin
 
Posts: 16
Joined: 09 Mar 2018, 10:46

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby dom_france » 10 Mar 2018, 21:50

version 0.4b (20170229) :

Image
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby Urlin » 11 Mar 2018, 07:36

I have the same version, everything works. Just follow my instructions. Please send here your file "cmdline" and "config".
View more here http://www.runeaudio.com/forum/adafruit-pift-3-5-to-help-with-installation-t4714.html.
Urlin
 
Posts: 16
Joined: 09 Mar 2018, 10:46

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby dom_france » 11 Mar 2018, 08:45

my file /boot/config.txt :

Code: Select all
# Uncomment some or all of these to enable the optional hardware interfaces
# Params:
#         i2c_arm                  Set to "on" to enable the ARM's i2c interface
#                                  (default "off")
#         i2c_vc                   Set to "on" to enable the i2c interface
#                                  usually reserved for the VideoCore processor
#                                  (default "off")
#         i2c_arm_baudrate         Set the baudrate of the ARM's i2c interface
#                                  (default "100000")
#         i2c_vc_baudrate          Set the baudrate of the VideoCore i2c interface
#                                  (default "100000")
#         i2c_baudrate             An alias for i2c_arm_baudrate
#         i2s                      Set to "on" to enable the i2s interface
#                                  (default "off")
#         spi                      Set to "on" to enable the spi interfaces
#                                  (default "off")
#         act_led_trigger          Choose which activity the LED tracks.
#                                  Use "heartbeat" for a nice load indicator.
#                                  (default "mmc")
#         act_led_activelow        Set to "on" to invert the sense of the LED
#                                  (default "off")
#         act_led_gpio             Set which GPIO pin to use for the activity LED
#                                  (in case you want to connect it to an external
#                                  device)
#                                  (default "16" on a non-Plus board, "47" on a
#                                  Plus or Pi 2)
#         N.B. It is recommended to only enable those interfaces that are needed.
#         Leaving all interfaces enabled can lead to unwanted behaviour (i2c_vc
#         interfering with Pi Camera, I2S and SPI hogging GPIO pins, etc.)
#         Note also that i2c, i2c_arm and i2c_vc are aliases for the physical
#         interfaces i2c0 and i2c1. Use of the numeric variants is still possible
#         but deprecated because the ARM/VC assignments differ between board
#         revisions. The same board-specific mapping applies to i2c_baudrate,
#         and the other i2c baudrate parameters.

#dtparam=i2c_arm=on
#dtparam=i2c_vc=on
#dtparam=i2s=on
#dtparam=spi=on
#dtparam=act_led_trigger=mmc
#dtdebug=on

#dtparam=uart1=off
#dtoverlay=pi3-disable-bt-overlay
#dtoverlay=pi3-miniuart-bt-overlay

## RuneAudio HDMI & 3,5mm jack
dtparam=audio=on

## RuneAudio I2S-Settings
dtoverlay=none

# Uncomment to enable the lirc-rpi module
# Params: gpio_out_pin             GPIO pin for output (default "17")
#         gpio_in_pin              GPIO pin for input (default "18")
#         gpio_in_pull             Pull up/down/off on the input pin
#                                  (default "down")
#         sense                    Override the IR receive auto-detection logic:
#                                    "1" = force active high
#                                    "0" = force active low
#                                    "-1" = use auto-detection
#                                  (default "-1")
#         softcarrier              Turn the software carrier "on" or "off"
#                                  (default "on")
#         invert                   "on" = invert the output pin (default "off")
#         debug                    "on" = enable additional debug messages
#                                  (default "off")
#dtoverlay=lirc-rpi
#dtparam=gpio_out_pin=17
#dtparam=gpio_in_pin=18
#dtparam=gpio_in_pull=down

# LCD settings
# 180 degrees
#lcd_rotate=2
# Normal
lcd_rotate=0
#dtoverlay=rpi-backlight
#dtoverlay=rpi-ft5406
disable_splash=1

# Uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# Uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# Uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# Uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# Uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# Uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# Uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2

# Uncomment to set monitor mode to DMT
#hdmi_group=2

# Uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# setting the max usb current to 1200mA
max_usb_current=1

# memory options
gpu_mem=64

# Overclocking options
force_turbo=1

// Screen KEDEI 3'5 (DOM mars 2018)
dtparam=spi=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=waveshare35a



and my other file /boot/cmdline.txt :

Code: Select all
root=/dev/mmcblk0p2 rw rootwait rootfstype=ext4 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 elevator=noop ipv6.disable=1 logo.nologo quiet loglevel=3 rd.systemd.show_status=false rd.udev.log-priority=3 fbcon=map:10 fbcon=font:VGA8x8
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rpi3 + Screen 3,5 Kedei + Runeaudio

Postby Urlin » 11 Mar 2018, 09:45

Instead, " dtoverlay=waveshare35a "should be"dtoverlay=your driver's name". Send your driver "LCD_show_v6_1_3.tar " is a file with an extension .dtb or .dtbo
Urlin
 
Posts: 16
Joined: 09 Mar 2018, 10:46

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: Baidu [Spider] and 6 guests
cron