Closed matsujirushi closed 6 months ago
yup have the same issue. Was trying to reinstall after latest update to 6.2.20 and after update display no longer turns on for the ReTerminal DM. Keen to know of a fix.
It appears to be the wrong variable type on Line 731 to ch343.c
According to this: https://github.com/WCHSoftGroup/ch343ser_linux/blob/main/driver/ch343.c
the line 731 should be
static ssize_t ch343_tty_write(struct tty_struct *tty, const u8 *buf, size_t count);
instead of the current:
static int ch343_tty_write(struct tty_struct *tty, const u8 *buf, size_t count)
therefore ssize_t
rather than int
I am no c coder just doing some basic pattern matching here. Not sure if there is additional items as I notice also that the number of lines in the original linked above is different to the one in this library.
Although I was able to get the scripts to compile and run this still does not fix the screen issue on the reTerminal DM running 6.2.20 kernel :(
Fix commit is here.
Although I was able to get the scripts to compile and run this still does not fix the screen issue on the reTerminal DM running 6.2.20 kernel :(
Can you provide the detail of your problem and open a new issue? Thank you~
Hi @bigbearishappy ,
I have tried the latest drivers. The build error is fixed, but screen is not displayed. It appears that there is an error in the backlight.
Are you able to display screen there?
[ 2.813589] OF: /lcd_backlight: #pwm-cells = 3 found 2
[ 2.813630] of_pwm_get(): can't parse "pwms" property
[ 2.813643] pwm-backlight lcd_backlight: unable to request PWM
[ 2.813654] pwm-backlight: probe of lcd_backlight failed with error -22
pwm-bcm2835 supports PWM polarity https://github.com/raspberrypi/linux/commit/81b875892022181d1d8f9a04416403b307b66754
With the following modifications, the LCD is now displayed.
Info.
pwm-bcm2835 supports PWM polarity raspberrypi/linux@81b8758
Testing
With the following modifications, the LCD is now displayed.
Actually, I don't try it. Can you push your fix of this problem to us?
Hi @bigbearishappy ,
I think you need to determine the kernel version in the install script and switch the device tree overlay. Since reTerminal.sh is complicated, I would like to see this part addressed there.
Hi @bigbearishappy ,
I think you need to determine the kernel version in the install script and switch the device tree overlay. Since reTerminal.sh is complicated, I would like to see this part addressed there.
I think we can have a try on passing a parameter to the dtoverlay of reTerminal-plus. Just like the code in here. And then config the dtoverlay with different raspbian OS version in reTerminal.sh.
Stucking with the same error here...
dmesg | grep lcd
[ 0.040372] OF: /lcd_backlight: #pwm-cells = 3 found 2
[ 2.597359] OF: /lcd_backlight: #pwm-cells = 3 found 2
[ 2.597408] pwm-backlight lcd_backlight: unable to request PWM
[ 2.597419] pwm-backlight: probe of lcd_backlight failed with error -22
Is there something for testing already?
Hi @TB-archIT ,
Is there something for testing already?
Try manually rewriting reTerminal-plus-overlay.dts and re-running reTerminal.sh. See here.
Thx, is working again.
this seems to fix the ability to connect remotely to the display via RealVNC but does not power on the backlight for me so the actual physical display still remains black. I can see that the touchscreen is still active though as I can see the mouse move through the VNC session now.
Here is the output from dmesg:
I have also a following problem that worked with the old kernel before and now not anymore...
My application (java running with xorg) does starting, but rotation of the screen does not work. display is in portrait but landscape is needed.
Tried both ways of https://wiki.seeedstudio.com/Incorrect_screen_orientation_on_RPiOS_Bullseye/#raspberry-pi-os-bookworm None of them does work. Before one of both does work (I don't know whether ;-))
I'm quite irritated now... Whereas the link above describing a physical resolution with 1280x720 my reTerminal DM says...
xrandr
Screen 0: minimum 320 x 200, current 800 x 1280, maximum 7680 x 7680
HDMI-1 disconnected primary (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DSI-1 connected 800x1280+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
800x1280 60.00*+
Hi @kustere ,
[ 7.407942] mipi_dsi: Initialize kernel module
[ 7.407956] mipi_dsi: (i2c_md_init) Add I2C driver
[ 7.408101] mipi_dsi: Probe I2C driver
[ 7.408106] mipi_dsi: (i2c_md_probe) Start
[ 7.408185] mipi_dsi 1-0045: I2C read id failed: -5
[ 7.408379] mipi_dsi: (i2c_md_init) Register MIPI-DSI driver
mipi_dsi driver is for reTerminal. (NOT reTerminal DM) Please check your config.txt file.
Hi @TB-archIT , I don't know much about it, but I suspect the distribution may be affecting it. This may be helpful. https://github.com/matsujirushi/seeed-linux-dtoverlays/blob/82d72b11814ef59748014a889d6065a27e067193/scripts/reTerminal2.sh#L222
I'm quite irritated now... Whereas the link above describing a physical resolution with 1280x720 my reTerminal DM says...
xrandr Screen 0: minimum 320 x 200, current 800 x 1280, maximum 7680 x 7680 HDMI-1 disconnected primary (normal left inverted right x axis y axis) HDMI-2 disconnected (normal left inverted right x axis y axis) DSI-1 connected 800x1280+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 800x1280 60.00*+
Actually, 720x1280 is the lcd resolution for reTerminal while 800x1280 is for reTerminal DM. You can have a try to append:
[output:DSI-1]
mode = 800x1280@60
transform = 270
to ~/.config/wayfire.ini
Hi @kustere ,
[ 7.407942] mipi_dsi: Initialize kernel module [ 7.407956] mipi_dsi: (i2c_md_init) Add I2C driver [ 7.408101] mipi_dsi: Probe I2C driver [ 7.408106] mipi_dsi: (i2c_md_probe) Start [ 7.408185] mipi_dsi 1-0045: I2C read id failed: -5 [ 7.408379] mipi_dsi: (i2c_md_init) Register MIPI-DSI driver
mipi_dsi driver is for reTerminal. (NOT reTerminal DM) Please check your config.txt file.
Thanks. For some reason there was multiple lines in config.txt with dtoverlay=reTerminal,tp_rotate=0
in there so I removed the duplicates and commented out the last one leaving in the dtoverlay=reTerminal-plus
at the end of the file and now the display is working perfectly.
Thanks for the help troubleshooting.
Create new issue and close this issue.
Reprocedure
Error message
seeed-linux-dtoverlays