Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reTerminal DM screen does not light on Bookworm #113

Open
Kasperror opened this issue Jan 30, 2025 · 17 comments
Open

reTerminal DM screen does not light on Bookworm #113

Kasperror opened this issue Jan 30, 2025 · 17 comments
Assignees
Labels
seeed-linux-dtoverlays Label for seeed-linux-dtoverlays UAY Unassigned yet

Comments

@Kasperror
Copy link

After flashing official newest Raspberry Pi OS 64-bit (Bookworm) and installing the overlays like instruction says approx. 4 out of 5 times I turn on the reTerminal DM the screen does not turn on at all. Doesn't matter if I use reboot or unplug/plug the device. The behavior is random. I've got 5 of those and its a similar case on 2 which I flashed with new OS. The ones with shipped OS work normally (but I cannot use it for my product tho)

dmsg.txt

Output of dmesg | grep -i error:
Goodix-TS 10-005d: Direct firmware load for goodix_9271_cfg.bin failed with error -2
I'm not sure if its related cuz it's the same when the screen actually turns on but I attach full dmesg output in .txt file below

Kernel version:
6.6.62+rpt-rpi-v8

the /boot/firmware/config.txt:

# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Additional overlays and parameters are documented
# /boot/firmware/overlays/README

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt. 
# Use the kernel's default instead.
disable_fw_kms_setup=1

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

# Run as fast as firmware / board allows
arm_boost=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required    
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[cm5]

[all]
dtparam=i2c_vc=on
enable_uart=1
dtparam=ant2
disable_splash=1
ignore_lcd=1
dtoverlay=dwc2,dr_mode=host
dtoverlay=vc4-kms-v3d-pi4
dtoverlay=i2c1,pins_2_3
dtoverlay=i2c3,pins_4_5
dtoverlay=imx219,cam0
dtoverlay=reTerminal-DM
@Kasperror
Copy link
Author

I checked with previous versions of OS/overlays which worked well for me exact version here and it works normally so something is wrong with recent versions of overlays.

@Kasperror
Copy link
Author

If it's if any help I attach files for comparison

dmesg_when_ok.txt

dmesg_when_screen_blanks.txt

@bigbearishappy
Copy link
Member

First of all, The log you showed Goodix-TS 10-005d: Direct firmware load for goodix_9271_cfg.bin failed with error -2. It's a log of touch screen.It's OK if we get this log, cause we already have flash it into the touch screen chip.
And I compare the log you provided. Both of them had driver crash log. It seems that something is wrong with the LCD driver now.
We will test it and feedback to you.

@Kasperror
Copy link
Author

First of all, The log you showed Goodix-TS 10-005d: Direct firmware load for goodix_9271_cfg.bin failed with error -2. It's a log of touch screen.It's OK if we get this log, cause we already have flash it into the touch screen chip. And I compare the log you provided. Both of them had driver crash log. It seems that something is wrong with the LCD driver now. We will test it and feedback to you.

Thanks a lot, if you need any further information I'm happy to help

@Cyphrz
Copy link

Cyphrz commented Feb 8, 2025

Can confirm, flashed latest PiOS, followed directions and no screen. Previously was functional on Bullseye.

Possibly related to the switch to labwc as the default.

@Lesords Lesords added UAY Unassigned yet seeed-linux-dtoverlays Label for seeed-linux-dtoverlays labels Feb 8, 2025
@is-qian
Copy link
Contributor

is-qian commented Feb 8, 2025

I remember testing this under labwc before. I guess it is related to this commit . I will verify it.

@bclswl0827
Copy link

I'm also following up.

See Seeed-Studio/wiki-documents#182 (comment)

@Kasperror
Copy link
Author

Any updates on the matter? I've noticed that we used to have 100% chance of blackscreen on first reboot after installing overlays, now it almost always works on first reboot (I see there were some commits in the repo). No changes to overall chance of getting a blackscreen though.

@is-qian
Copy link
Contributor

is-qian commented Feb 21, 2025

Have you tried this commit? I tested it yesterday, and so far, no black screen has occurred. I have turned the screen on and off about 2000 times and restarted it more than 30 times.

Any updates on the matter? I've noticed that we used to have 100% chance of blackscreen on first reboot after installing overlays, now it almost always works on first reboot (I see there were some commits in the repo). No changes to overall chance of getting a blackscreen though.

@Lesords Lesords moved this to In Progress in Issues and PR Assemble Feb 24, 2025
@bclswl0827
Copy link

Any updates on the matter? I've noticed that we used to have 100% chance of blackscreen on first reboot after installing overlays, now it almost always works on first reboot (I see there were some commits in the repo). No changes to overall chance of getting a blackscreen though.

Hi, please update your OS software and libraries to the latest version

$ sudo apt update
$ sudo apt upgrade

then try to reinstall the seeed-linux-dtoverlays, now it should work

@Cyphrz
Copy link

Cyphrz commented Mar 5, 2025

Still not working

@is-qian
Copy link
Contributor

is-qian commented Mar 5, 2025

What is your system version? We previously tested it on the version from February 2025. Alternatively, you can use the image provided here.

@matsujirushi
Copy link
Contributor

I tried latest seeed driver and latest RasPi OS 64-bit.
A problem occurred.

Environment

  • reTerminal DM

  • Raspberry OS Desktop 2024-11-19 64-bit (2024-11-19-raspios-bookworm-arm64.img.xz)

  • seeed-linux-dtoverlays

    885862c (HEAD -> master, origin/master, origin/HEAD) fix pcf8563w compatible with kernel 5.15
    

Procedure

  1. Flash 2024-11-19-raspios-bookworm-arm64.img.xz to eMMC in reTerminal DM using Raspberry Pi Imager.

  2. Upgrade packages.

    sudo apt update
    sudo apt upgrade
    sudo reboot
    
  3. Install seeed-linux-dtoverlays.

    sudo apt install git
    git clone --depth 1 https://github.com/Seeed-Studio/seeed-linux-dtoverlays
    cd seeed-linux-dtoverlays
    sudo ./scripts/reTerminal.sh --device reTerminal-DM
    sudo reboot
    
  4. Repeat sudo reboot.

Result

1st ... OK.
2nd ... OK.
3rd ... NG. (backlight=ON, But screen not displayed.)
4th ... NG. (backlight=ON, But screen not displayed.)
5th ... OK
6th ... OK
7th ... NG. (backlight=ON, But screen not displayed.)

Additional Infomation

pi@raspberrypi:~/seeed-linux-dtoverlays $ cat /boot/issue.txt
Raspberry Pi reference 2024-11-19
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 891df1e21ed2b6099a2e6a13e26c91dea44b34d4, stage4
pi@raspberrypi:~/seeed-linux-dtoverlays $ uname -r
6.6.74+rpt-rpi-v8
pi@raspberrypi:~/seeed-linux-dtoverlays $ uname -m
aarch64
pi@raspberrypi:~/seeed-linux-dtoverlays $ dpkg --print-architecture
arm64
pi@raspberrypi:~/seeed-linux-dtoverlays $ getconf LONG_BIT
64

@is-qian
Copy link
Contributor

is-qian commented Mar 12, 2025

I tried latest seeed driver and latest RasPi OS 64-bit.
A problem occurred.

Environment

  • reTerminal DM

  • Raspberry OS Desktop 2024-11-19 64-bit (2024-11-19-raspios-bookworm-arm64.img.xz)

  • seeed-linux-dtoverlays

    885862c (HEAD -> master, origin/master, origin/HEAD) fix pcf8563w compatible with kernel 5.15
    

Procedure

  1. Flash 2024-11-19-raspios-bookworm-arm64.img.xz to eMMC in reTerminal DM using Raspberry Pi Imager.

  2. Upgrade packages.

    sudo apt update
    sudo apt upgrade
    sudo reboot
    
  3. Install seeed-linux-dtoverlays.

    sudo apt install git
    git clone --depth 1 https://github.com/Seeed-Studio/seeed-linux-dtoverlays
    cd seeed-linux-dtoverlays
    sudo ./scripts/reTerminal.sh --device reTerminal-DM
    sudo reboot
    
  4. Repeat sudo reboot.

Result

1st ... OK.
2nd ... OK.
3rd ... NG. (backlight=ON, But screen not displayed.)
4th ... NG. (backlight=ON, But screen not displayed.)
5th ... OK
6th ... OK
7th ... NG. (backlight=ON, But screen not displayed.)

Additional Infomation

pi@raspberrypi:~/seeed-linux-dtoverlays $ cat /boot/issue.txt
Raspberry Pi reference 2024-11-19
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 891df1e21ed2b6099a2e6a13e26c91dea44b34d4, stage4
pi@raspberrypi:~/seeed-linux-dtoverlays $ uname -r
6.6.74+rpt-rpi-v8
pi@raspberrypi:~/seeed-linux-dtoverlays $ uname -m
aarch64
pi@raspberrypi:~/seeed-linux-dtoverlays $ dpkg --print-architecture
arm64
pi@raspberrypi:~/seeed-linux-dtoverlays $ getconf LONG_BIT
64

Can you tell me what command you use to turn on and off the screen?

@matsujirushi
Copy link
Contributor

Hi,

Can you tell me what command you use to turn on and off the screen?

OS reboot. sudo reboot

It is not just on/off for screen.

@is-qian
Copy link
Contributor

is-qian commented Mar 14, 2025

I think it’s because the new system uses initramfs for booting. Regenerating the initramfs file after executing the script to install the driver seems to resolve this issue.

sudo update-initramfs -c -k $(uname -r)

@matsujirushi
Copy link
Contributor

Hi @is-qian ,
Awesome!!

I tried this solution on my reTerminal DM and had no problems at 10 reboots. 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
seeed-linux-dtoverlays Label for seeed-linux-dtoverlays UAY Unassigned yet
Projects
Status: In Progress
Development

No branches or pull requests

7 participants