Setting up Joy-It 3.5" Display
Hey,
I have been trying half a day now but still cant get it to work.
I did a fresh install of the Raspberry pi image, connected it to a network cable and a HDMI Display and did follow these instructions:
http://anleitung.joy-it.net/wp-content/uploads/2017/04/RB-TFT3.2_RB-TFT3.5_Manual_2018-01-24-1.pdf but it didn't work.
I started looking and found this https://forum.repetier.com/discussion/6014/setting-up-adafruit-3-5-tft-w-repetier-server. Obviously they use different drivers but the idea is basically the same.
The point I get stuck all the time is point 8: I don't have the 99-fbturbo.conf file.
the directory looks like this:
I have been trying half a day now but still cant get it to work.
I did a fresh install of the Raspberry pi image, connected it to a network cable and a HDMI Display and did follow these instructions:
http://anleitung.joy-it.net/wp-content/uploads/2017/04/RB-TFT3.2_RB-TFT3.5_Manual_2018-01-24-1.pdf but it didn't work.
I started looking and found this https://forum.repetier.com/discussion/6014/setting-up-adafruit-3-5-tft-w-repetier-server. Obviously they use different drivers but the idea is basically the same.
The point I get stuck all the time is point 8: I don't have the 99-fbturbo.conf file.
the directory looks like this:
pi@Repetier-Server:/usr/share/X11/xorg.conf.d $ ls
10-amdgpu.conf 10-quirks.conf 40-libinput.conf 70-wacom.conf
pi@Repetier-Server:/usr/share/X11/xorg.conf.d $
I did look into the problem that could be behind it and tried a few installations like lxde, lightdm, xinit, lxde lxde-core lxterminal lxappearance
it did create the file but I ended up with a system booting to terminal
I also tried:
pi@Repetier-Server:~ $ dpkg -s xserver-xorg-video-fbturbo
which gave me the following:
it did create the file but I ended up with a system booting to terminal
I also tried:
pi@Repetier-Server:~ $ dpkg -s xserver-xorg-video-fbturbo
which gave me the following:
dpkg-query: package 'xserver-xorg-video-fbturbo' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
pi@Repetier-Server:~ $
anyways - I am frustrated and don't really know where to continue. can anyone help me?
by the way: happy Christmas to all of you!
Comments
sudo apt install xserver-xorg-video-fbturbo
did the trick installing the driver and creating the 99-fturbo file.You might need to run
sudo apt update
before using apt to install new packages.
Whats wrong now?
it happens after I change
to
in /usr/share/X11/xorg.conf.d/99-fbturbo.conf
After changing it back to "fb0" it boots again but to the hdmi output
Login using ssh and enter manually
export DISPLAY=:0
startx
not sure the display setting is required. Now you should see error messages I hope, otherwise they are in /var/log/syslog
hope these help understanding - or it works.
I have seen booting stop working after updates so eventually you need to run
sudo raspi-config
and set autologin terminal as boot sequence.
pi@Repetier-Server:~ $ startx
xauth: file /home/pi/.Xauthority does not exist
X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
Current Operating System: Linux Repetier-Server 4.14.80-v7+ #1161 SMP Mon Nov 12 18:51:43 GMT 2018 armv7l
Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=null root=PARTUUID=79d8630f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait logo.nologo net.ifnames=0 modules-load=dwc2,g_ether
Build Date: 18 October 2017 04:55:30PM
xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Dec 29 10:02:48 2018
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
[1]+ Exit 1 xinit -- -nocursor 2> /dev/null > /dev/null
pi@Repetier-Server:~ $
The logfile shows the following:
[ 191.110]
X.Org X Server 1.19.2
Release Date: 2017-03-02
[ 191.110] X Protocol Version 11, Revision 0
[ 191.110] Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
[ 191.110] Current Operating System: Linux Repetier-Server 4.14.80-v7+ #1161 SMP Mon Nov 12 18:51:43 GMT 2018 armv7l
[ 191.110] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=null root=PARTUUID=79d8630f-02 root$
[ 191.110] Build Date: 18 October 2017 04:55:30PM
[ 191.110] xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
[ 191.110] Current version of pixman: 0.34.0
[ 191.111] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 191.111] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 191.111] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Dec 29 10:02:48 2018
[ 191.111] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 191.112] (==) No Layout section. Using the first Screen section.
[ 191.112] (==) No screen section available. Using defaults.
[ 191.112] (**) |-->Screen "Default Screen Section" (0)
[ 191.112] (**) | |-->Monitor "<default monitor>"
[ 191.113] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 191.113] (**) | |-->Device "Allwinner A10/A13 FBDEV"
[ 191.113] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 191.113] (==) Automatically adding devices
[ 191.113] (==) Automatically enabling devices
[ 191.113] (==) Automatically adding GPU devices
[ 191.113] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 191.113] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 191.113] Entry deleted from font path.
[ 191.113] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 191.113] Entry deleted from font path.
[ 191.113] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 191.113] Entry deleted from font path.
[ 191.113] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[ 191.113] Entry deleted from font path.
[ 191.113] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 191.113] Entry deleted from font path.
[ 191.113] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 191.113] Entry deleted from font path.
[ 191.113] (==) FontPath set to:
/usr/share/fonts/X11/misc,
built-ins
[ 191.113] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 191.113] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 191.113] (II) Loader magic: 0x1fbf40
[ 191.113] (II) Module ABI versions:
[ 191.113] X.Org ANSI C Emulation: 0.4
[ 191.113] X.Org Video Driver: 23.0
[ 191.113] X.Org XInput driver : 24.1
[ 191.114] X.Org Server Extension : 10.0
[ 191.116] (--) using VT number 2
[ 191.116] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 191.116] (II) no primary bus or device found
[ 191.116] (II) LoadModule: "glx"
[ 191.116] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 191.121] (II) Module glx: vendor="X.Org Foundation"
[ 191.121] compiled for 1.19.2, module version = 1.0.0
[ 191.121] ABI class: X.Org Server Extension, version 10.0
[ 191.121] (II) LoadModule: "fbturbo"
[ 191.121] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[ 191.121] (II) Module fbturbo: vendor="X.Org Foundation"
[ 191.121] compiled for 1.19.2, module version = 0.5.1
[ 191.121] Module class: X.Org Video Driver
[ 191.121] ABI class: X.Org Video Driver, version 23.0
[ 191.121] (II) FBTURBO: driver for framebuffer: fbturbo
[ 191.138] (WW) Falling back to old probe method for fbturbo
[ 191.138] (II) Loading sub module "fbdevhw"
[ 191.138] (II) LoadModule: "fbdevhw"
[ 191.139] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 191.139] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 191.139] compiled for 1.19.2, module version = 0.0.2
[ 191.139] ABI class: X.Org Video Driver, version 23.0
[ 191.139] (EE) open /dev/fb1: No such file or directory
[ 191.139] (EE) No devices detected.
[ 191.139] (EE)
Fatal server error:
[ 191.139] (EE) no screens found(EE)
[ 191.139] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 191.139] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 191.140] (EE)
[ 191.173] (EE) Server terminated with error (1). Closing log file.
I hope this helps finding the error.
[ 191.139] (EE) open /dev/fb1: No such file or directory
[ 191.139] (EE) No devices detected.
[ 191.139] (EE)
Fatal server error:
[ 191.139] (EE) no screens found(EE)
Is the crucial part. You see it wanted to use /dev/fb1 which is what you wanted to achieve if I remember the tutorial right, but that device does not exists so xserver failed. The display driver should have created it. So that is where you need to look. Installation/configuration of display driver.
Looks like error is in /usr/share/X11/xorg.conf.d/99-fbturbo.conf
can you please post the complete Content of this file
GNU nano 2.7.4 File: /usr/share/X11/xorg.conf.d/99-fbturbo.conf
# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-fbturbo driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
#
# Run "man fbturbo" to get additional information about the extra
# configuration options for tuning the driver.
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb1"
Option "SwapbuffersWait" "true"
EndSection
just took a look at the device, seems to be the waveshare Display.
I´ll respond later on,when i´m at home
/waveshare35a_pins ' :/fragment@2/__overlay__/waveshare35a@0 * G/fragment@2/__overlay__/waveshare35a-ts@1
You followed the instructions described in the link above or did you do it differently?
Step 1: Install latest RPi version of Repetier Server following normal directions
Step 2: Edit config.txt file
Edit Config.txt file on Boot
Change LCD rotate to 0
lcd_rotate=0
Scroll to this section and make these changes, uncomment 3 lines and single line addition
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
dtoverlay=pitft35-resistive,rotate=90,speed=20000000,fps=20
Save txt file
Step 3: Eject MicroSD card and load up the PI as normal
Step 5: SSH into your pi
Step 6: Expand the filesystem
sudo raspi-config
Select: 7 Advanced Options => A1 Expand Filesystem
Reboot
Step 7:
wget http://www.waveshare.com/w/upload/0/00/LCD-show-170703.tar.gz
tar xvf LCD-show-*.tar.gz
cd LCD-show/
chmod +x LCD35-show
./LCD35-show
—> after this step the Pi reboots showing the terminal but doesn’t start the repetier server
Step 8: Modify screen config
/usr/share/X11/xorg.conf.d/99-fbturbo.conf shows the following:
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb1"
Option "SwapbuffersWait" "true"
EndSection
(which I did not change as I assume the settings are right since the display is working)
step 9: I did skip it as screen size seems to be right
when trying to start x I get the following message:
pi@Repetier-Server:~ $ startx
xauth: file /home/pi/.Xauthority does not exist
X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
Current Operating System: Linux Repetier-Server 4.14.80-v7+ #1161 SMP Mon Nov 12 18:51:43 GMT 2018 armv7l
Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
Build Date: 18 October 2017 04:55:30PM
xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 4 16:48:18 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
pi@Repetier-Server:~ $
logfile shows the following:
[ 527.968]
X.Org X Server 1.19.2
Release Date: 2017-03-02
[ 527.968] X Protocol Version 11, Revision 0
[ 527.968] Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
[ 527.968] Current Operating System: Linux Repetier-Server 4.14.80-v7+ #1161 SMP Mon Nov 12 18:51:43 GMT 2018 ar$
[ 527.968] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap$
[ 527.969] Build Date: 18 October 2017 04:55:30PM
[ 527.969] xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
[ 527.969] Current version of pixman: 0.34.0
[ 527.969] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 527.969] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 527.969] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 4 16:48:18 2019
[ 527.970] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 527.973] (==) No Layout section. Using the first Screen section.
[ 527.973] (==) No screen section available. Using defaults.
[ 527.973] (**) |-->Screen "Default Screen Section" (0)
[ 527.973] (**) | |-->Monitor "<default monitor>"
[ 527.974] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 527.974] (**) | |-->Device "Allwinner A10/A13 FBDEV"
[ 527.974] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 527.974] (==) Automatically adding devices
[ 527.974] (==) Automatically enabling devices
[ 527.974] (==) Automatically adding GPU devices
[ 527.974] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 527.974] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 527.974] Entry deleted from font path.
[ 527.974] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 527.975] Entry deleted from font path.
[ 527.975] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 527.975] Entry deleted from font path.
[ 527.975] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[ 527.975] Entry deleted from font path.
[ 527.975] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 527.975] Entry deleted from font path.
[ 527.975] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 527.975] Entry deleted from font path.
[ 527.975] (==) FontPath set to:
/usr/share/fonts/X11/misc,
built-ins
[ 527.975] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 527.975] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 527.975] (II) Loader magic: 0x1fbf40
[ 527.975] (II) Module ABI versions:
[ 527.975] X.Org ANSI C Emulation: 0.4
[ 527.975] X.Org Video Driver: 23.0
[ 527.975] X.Org XInput driver : 24.1
[ 527.975] X.Org Server Extension : 10.0
[ 527.979] (--) using VT number 2
[ 527.979] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling lo$
[ 527.979] (II) no primary bus or device found
[ 527.979] (II) LoadModule: "glx"
[ 527.980] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 527.988] (II) Module glx: vendor="X.Org Foundation"
[ 527.988] compiled for 1.19.2, module version = 1.0.0
[ 527.988] ABI class: X.Org Server Extension, version 10.0
[ 527.988] (II) LoadModule: "fbturbo"
[ 527.989] (WW) Warning, couldn't open module fbturbo
[ 527.989] (II) UnloadModule: "fbturbo"
[ 527.989] (II) Unloading fbturbo
[ 527.989] (EE) Failed to load module "fbturbo" (module does not exist, 0)
[ 527.989] (EE) No drivers available.
[ 527.990] (EE)
Fatal server error:
[ 527.990] (EE) no screens found(EE)
[ 527.990] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 527.990] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 527.990] (EE)
[ 527.991] (EE) Server terminated with error (1). Closing log file.
so I tried:
sudo apt update
sudo apt install xserver-xorg-video-fbturbo
and a reboot
—> didn’t change anything….
I ordered a waveshare display on Amazon which should arrive later or tomorrow and I’ll give it a try, but don’t expect to mich of it jet
maybe we are closing in on the mistake and can solve it soon
I did look into the config.txt file afterwards which shows the following now:
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
enable_uart=1
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
but I’m not sure what to use as „yourdriver“ in
dtoverlay=yourdriver,rotate=90,speed=20000000,fps=20
without installing xserver-xorg-video-fbturbo it wont boot but installing it changes the fb1 to fb0 again i had to change it again or run the installations in another order
Thank you both for your help!
I'll be posting a tutorial in a few minutes for everyone trying to do the same thing
Thank you to RAyWB and codiac2600 for their Tutorial and their help
1. Copy the Repetier Server image to MicroSD using balenaEtcher (or any other way you like)
2. Eject MicroSD card (or mount the „boot“ partition and skip step 3)
3. Reinsert MicroSD card
4. In „boot“ partition edit the „config.txt“
Change LCD rotate to 0
lcd_rotate=0
Scroll to this section and make these changes, uncomment the 3 lines and the last line addition
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
dtoverlay=pitft35-resistive,rotate=90,speed=20000000,fps=20
Save txt file
5. Eject MicroSD card and load in the PI as normal6. SSH into your pi (ssh pi@"ip-adress")
7. Expand the filesystem
sudo raspi-config
Select: 7 Advanced Options -> A1 Expand Filesystem -> Finish
Reboot
8. SSH into your pi again9. Get Updates
sudo apt update
10. Install another package
sudo apt install xserver-xorg-video-fbturbo
11. Download and install LCD Drivers (each line is a separate command)
wget http://www.waveshare.com/w/upload/0/00/LCD-show-170703.tar.gz
tar xvf LCD-show-*.tar.gz
cd LCD-show/
chmod +x LCD35-show
./LCD35-show
after the last command the pi automatically reboots and everything should be working
The problem is, when I use the function ./LCD35-show my Picam stops working.
I set everything up in the repetier server before following these steps to make sure the cam is functional. Everything is working fine. However, after following these steps the Cam is nowhere to be found on the server, I then also tried to set it up using: https://www.repetier-server.com/setting-webcam-repetier-server-linux/
But that also doesn't work.
Can anyone help me on how I can get both the Picam and the Joy-it display working?
pi@Repetier-Server:~ $ vcgencmd get_camera
supported=1 detected=1
Only if detected is 1 the scripts will activate it. If not detected the script managed to deactivate it somehow.Run sudo raspi-config go to Interfacing Options -> Camera to enable it again. Hopefully the function then enables it again.
supported=0 detected=0.
Editing in raspi-config allowed me to activate it again!
Thank you for the quick response, one more thing I'm running into is the fact that I can not seem to rotate the display upside-down, I've tried pretty much everything possible in boot/config.txt (lcd_rotate=2, lcd_rotate=0, display_rotate, editing the rotate= line) but the orientation of the display does not change.
think that should do the trick
After some extra attempts, reopening some lines and making sure everything was correctly written, it now works with rotate=270, thank you so much for the help!