hat leider nichts gebracht
Please post the result of
ls -al /dev/fb*
ls -al /dev/fb*
crw-rw---- 1 root video 29, 0 Apr 8 22:29 /dev/fb0
Hm, it seems you need to revert the change from post #40 then:
sudo sed 's/fb1/fb0' -i /usr/share/X11/xorg.conf.d/99-fbturbo.conf
This is weird, as per this thread I would have expected that your screen uses fb1 and not fb0⊠Sorry for asking, but want to make sure: Is your screen an original Waveshare 35b and also V2? And is it the only screen connected to your Pi?
Yes the only screen.
bought here
Do you have the printing âRev2.0â on the screenâs PCB?
yes
I am wondering why
are set to 640 and 480 when the resolution of the display is 480 x 320âŠ
Please post the results of
cat /boot/config.txt
cat /boot/userconfig.txt
and
cat /boot/cmdline.txt
Iâm sorry
cat /boot/config.txt
initramfs volumio.initrd
gpu_mem=32
max_usb_current=1
dtparam=audio=on
audio_pwm_mode=2
dtparam=i2c_arm=on
disable_splash=1
hdmi_force_hotplug=1
force_eeprom_read=0
include userconfig.txt
Volumio i2s setting below: do not alter
dtoverlay=hifiberry-dacplus
cat /boot/userconfig.txt
dtparam=spi=on
dtoverlay=waveshare35b-v2
cat /boot/cmdline.txt
splash plymouth.ignore-serial-consoles dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0xF dwc_otg.nak_holdoff=1 quiet console=serial0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh rootwait bootdelay=5 elevator=noop logo.nologo vt.global_cursor_default=0 net.ifnames=0 snd-bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 loglevel=0
Looks ok. Since you are using a Hifiberry (?) DAC Amp 2: Did you check if the GPIO pins used by the DAC Amp 2 interfere with the ones used by the screen?
yes it is plugged into the pins.
sorry iâll try again later, my eyes close.
good night
After having a look at Hifiberryâs page I think the DAC doesnât cause the problem as it doesnât use GPIO needed by the display.
Please check what happens if you remove â99-fbturbo.confâ from â/usr/share/X11/xorg.conf.dâ. After a reboot please execute
cat /var/log/Xorg.0.log
once again and post the result.
Apart from that:
Is the backlight of your display on?
Is something displayed during Volumioâs boot process?
yes backlight is on, no nothing displayed during boot.
volumio@hifiberry:~$ cat /var/log/Xorg.0.log
[ 48.244]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[ 48.244] Build Operating System: Linux 5.4.0-72-generic armv8l Raspbian
[ 48.244] Current Operating System: Linux hifiberry 5.10.92-v7+ #1514 SMP Mon Jan 17 17:36:39 GMT 2022 armv7l
[ 48.244] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 splash plymouth.ignore-serial-consoles dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0xF dwc_otg.nak_holdoff=1 quiet console=ttyS0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh rootwait bootdelay=5 elevator=noop logo.nologo vt.global_cursor_default=0 net.ifnames=0 snd-bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 loglevel=0
[ 48.244] Build Date: 04 January 2022 10:05:34AM
[ 48.244] xorg-server 2:1.20.4-1+rpt4+deb10u4 (Debian -- Support)
[ 48.244] Current version of pixman: 0.36.0
[ 48.244] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 48.244] Markers: (â) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 48.245] (==) Log file: â/var/log/Xorg.0.logâ, Time: Sat Apr 9 16:28:07 2022
[ 48.257] (==) Using config directory: â/etc/X11/xorg.conf.dâ
[ 48.257] (==) Using system config directory â/usr/share/X11/xorg.conf.dâ
[ 48.265] (==) No Layout section. Using the first Screen section.
[ 48.265] (==) No screen section available. Using defaults.
[ 48.265] () |â>Screen âDefault Screen Sectionâ (0)
[ 48.265] (**) | |â>Monitor ââ
[ 48.272] (==) No monitor specified for screen âDefault Screen Sectionâ.
Using a default monitor configuration.
[ 48.272] (==) Automatically adding devices
[ 48.272] (==) Automatically enabling devices
[ 48.272] (==) Automatically adding GPU devices
[ 48.279] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 48.280] (WW) The directory â/usr/share/fonts/X11/cyrillicâ does not exist.
[ 48.280] Entry deleted from font path.
[ 48.282] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 48.282] (==) ModulePath set to â/usr/lib/xorg/modulesâ
[ 48.282] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 48.282] (II) Loader magic: 0x1fdf80
[ 48.282] (II) Module ABI versions:
[ 48.283] X.Org ANSI C Emulation: 0.4
[ 48.283] X.Org Video Driver: 24.0
[ 48.283] X.Org XInput driver : 24.1
[ 48.283] X.Org Server Extension : 10.0
[ 48.285] (â) using VT number 2
[ 48.285] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 48.286] (II) no primary bus or device found
[ 48.286] (II) LoadModule: âglxâ
[ 48.288] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 48.354] (II) Module glx: vendor=âX.Org Foundationâ
[ 48.354] compiled for 1.20.4, module version = 1.0.0
[ 48.354] ABI class: X.Org Server Extension, version 10.0
[ 48.355] (==) Matched modesetting as autoconfigured driver 0
[ 48.355] (==) Matched fbdev as autoconfigured driver 1
[ 48.355] (==) Assigned the driver to the xf86ConfigLayout
[ 48.355] (II) LoadModule: âmodesettingâ
[ 48.358] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 48.365] (II) Module modesetting: vendor=âX.Org Foundationâ
[ 48.365] compiled for 1.20.4, module version = 1.20.4
[ 48.365] Module class: X.Org Video Driver
[ 48.365] ABI class: X.Org Video Driver, version 24.0
[ 48.365] (II) LoadModule: âfbdevâ
[ 48.366] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 48.369] (II) Module fbdev: vendor=âX.Org Foundationâ
[ 48.369] compiled for 1.20.3, module version = 0.5.0
[ 48.369] Module class: X.Org Video Driver
[ 48.369] ABI class: X.Org Video Driver, version 24.0
[ 48.369] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 48.369] (II) FBDEV: driver for framebuffer: fbdev
[ 48.373] (WW) Falling back to old probe method for modesetting
[ 48.373] (EE) open /dev/dri/card0: No such file or directory
[ 48.373] (WW) Falling back to old probe method for fbdev
[ 48.373] (II) Loading sub module âfbdevhwâ
[ 48.373] (II) LoadModule: âfbdevhwâ
[ 48.373] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 48.376] (II) Module fbdevhw: vendor=âX.Org Foundationâ
[ 48.376] compiled for 1.20.4, module version = 0.0.2
[ 48.376] ABI class: X.Org Video Driver, version 24.0
[ 48.376] (II) FBDEV(0): using default device
[ 48.376] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 48.376] (II) FBDEV(0): Creating default Display subsection in Screen section
âDefault Screen Sectionâ for depth/fbbpp 24/32
[ 48.376] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[ 48.376] (==) FBDEV(0): RGB weight 888
[ 48.376] (==) FBDEV(0): Default visual is TrueColor
[ 48.376] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 48.376] (II) FBDEV(0): hardware: BCM2708 FB (video memory: 1200kB)
[ 48.376] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[ 48.376] (II) FBDEV(0): checking modes against framebuffer deviceâŠ
[ 48.376] (II) FBDEV(0): checking modes against monitorâŠ
[ 48.376] (II) FBDEV(0): Virtual size is 640x480 (pitch 640)
[ 48.376] () FBDEV(0): Built-in mode âcurrentâ
[ 48.376] (==) FBDEV(0): DPI set to (96, 96)
[ 48.376] (II) Loading sub module âfbâ
[ 48.376] (II) LoadModule: âfbâ
[ 48.376] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 48.382] (II) Module fb: vendor=âX.Org Foundationâ
[ 48.382] compiled for 1.20.4, module version = 1.0.0
[ 48.382] ABI class: X.Org ANSI C Emulation, version 0.4
[ 48.382] () FBDEV(0): using shadow framebuffer
[ 48.382] (II) Loading sub module âshadowâ
[ 48.382] (II) LoadModule: âshadowâ
[ 48.383] (II) Loading /usr/lib/xorg/modules/libshadow.so
[ 48.386] (II) Module shadow: vendor=âX.Org Foundationâ
[ 48.386] compiled for 1.20.4, module version = 1.1.0
[ 48.386] ABI class: X.Org ANSI C Emulation, version 0.4
[ 48.386] (II) UnloadModule: âmodesettingâ
[ 48.386] (II) Unloading modesetting
[ 48.410] (==) FBDEV(0): Backing store enabled
[ 48.415] (==) FBDEV(0): DPMS enabled
[ 48.416] (II) Initializing extension Generic Event Extension
[ 48.417] (II) Initializing extension SHAPE
[ 48.418] (II) Initializing extension MIT-SHM
[ 48.419] (II) Initializing extension XInputExtension
[ 48.424] (II) Initializing extension XTEST
[ 48.425] (II) Initializing extension BIG-REQUESTS
[ 48.426] (II) Initializing extension SYNC
[ 48.427] (II) Initializing extension XKEYBOARD
[ 48.428] (II) Initializing extension XC-MISC
[ 48.429] (II) Initializing extension SECURITY
[ 48.430] (II) Initializing extension XFIXES
[ 48.431] (II) Initializing extension RENDER
[ 48.432] (II) Initializing extension RANDR
[ 48.434] (II) Initializing extension COMPOSITE
[ 48.436] (II) Initializing extension DAMAGE
[ 48.437] (II) Initializing extension MIT-SCREEN-SAVER
[ 48.438] (II) Initializing extension DOUBLE-BUFFER
[ 48.439] (II) Initializing extension RECORD
[ 48.440] (II) Initializing extension DPMS
[ 48.441] (II) Initializing extension Present
[ 48.442] (II) Initializing extension DRI3
[ 48.442] (II) Initializing extension X-Resource
[ 48.443] (II) Initializing extension XVideo
[ 48.444] (II) Initializing extension XVideo-MotionCompensation
[ 48.444] (II) Initializing extension SELinux
[ 48.444] (II) SELinux: Disabled on system
[ 48.444] (II) Initializing extension GLX
[ 48.445] (II) AIGLX: Screen 0 is not DRI2 capable
[ 49.772] (II) IGLX: Loaded and initialized swrast
[ 49.772] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 49.772] (II) Initializing extension XFree86-VidModeExtension
[ 49.773] (II) Initializing extension XFree86-DGA
[ 49.774] (II) Initializing extension XFree86-DRI
[ 49.777] (II) Initializing extension DRI2
I think something is wrong with the overlay. Back in the days there have been issues with Waveshare overlays on kernel 5+, but I think these should have been solved in the meantime.
Anyhow, maybe try replacing the âwaveshare-35bâ entry in your â/boot/userconfig,txtâ with
dtoverlay=ads7846
dtparam=cs=1
dtparam=penirq=17
dtparam=penirq_pull=2
dtparam=speed=1000000
dtparam=keep_vref_on=1
dtparam=swapxy=1
dtparam=pmax=255
dtparam=xohms=60
dtparam=xmin=200
dtparam=xmax=3900
dtparam=ymin=200
dtparam=ymax=3900
only backliht
I suggest to test the display on the same Pi running Raspberry Pi OS.
P.S. What is currently the result of
ls -al /dev/fb*
unfortunately it didnât work with raspi os either, but the driver would have to be installed anyway.
and unfortunately i canât download the image provided by the waveshare with installed drivers.
https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(B)
Donât use the Waveshare image but install âstandardâ Raspberry Pi OS.
Before doing so, I would be interested in the output of
ls -al /dev/fb*
now I was too fast
I tried Raspberry Pi OS and only backlight on the display.
Now with the Waveshare image the display works!
Canât I read out the configuration there?
With the Waveshare image running:
uname -r
cat /boot/config.txt
ls -al /boot/overlays
ls -al /dev/fb*
ls -al /usr/share/X11/xorg.conf.d
cat /var/log/Xorg.0.log
I suggest that you PM me the results to not clutter this thread with content belonging to the Waveshare image.