Waveshare-DSI-LCD icon indicating copy to clipboard operation
Waveshare-DSI-LCD copied to clipboard

Driver needed for 6.1.61-v8+

Open CerberusVelvet opened this issue 2 years ago • 9 comments

As per subject. Driver is needed for Kernel 6.1.61-v8+

CerberusVelvet avatar Nov 15 '23 19:11 CerberusVelvet

Based on the Bookworm OS, how did you obtain the 6.1.61 kernel? The current kernel automatically updated by the system is 6.1.58: https://github.com/waveshare/Waveshare-DSI-LCD/tree/main/6.1.58

LaoHu0329 avatar Nov 23 '23 03:11 LaoHu0329

I have the same issue. I need the driver for the 6.1.61 kernel for 64-bit. I installed the new kernel by executing "sudo rpi-update".

Here is what I get when I try to install any driver version:

root@rpi:~/Waveshare-DSI-LCD/6.1.58/64 $ sudo bash ./WS_xinchDSI_MAIN.sh 70C I2C1 SCREEN_type=2,I2C_bus=1 The raspberry PI hardware platform is pi4 Driver Start Settings modprobe: ERROR: could not insert 'WS_xinchDSI_Touch': Exec format error modprobe: ERROR: could not insert 'WS_xinchDSI_Screen': Exec format error It already exists and does not need to be added It already exists and does not need to be added It already exists and does not need to be added It already exists and does not need to be added It already exists and does not need to be added It already exists and does not need to be added Driver end Settings

ChrisM510 avatar Nov 24 '23 15:11 ChrisM510

So the thing is that supposedly the driver is in the OS now, but I cannot for the life of me get the touch to work right, this would be great because we dont have to wait for these guys to update the drivers each time...

take a look at this built in driver

I have added dtoverlay=vc4-kms-dsi-waveshare-panel,7_9_inch to my /boot/config.txt but wow the touch is just messed up.

anyone get it to work would love to have the details...would also be great if waveshare just helped this all work instead of making it harder for us

@disruptivepatternmaterial I tried it, but no luck. Would you mind copying your entire config.txt file?

I had the panel working on a 4GB Pi4, 32-bit running Buster...worked perfectly. I upgraded to an 8GB Pi4 and went 64-bit, and now nothing. I am not a Linux guru, so I am still learning the ropes on a lot of this stuff, especially drivers - most of my experience has been on VMs.

ChrisM510 avatar Nov 24 '23 18:11 ChrisM510

Running dmesg:

[ 13.648727] WS_xinchDSI_Screen_Interface: disagrees about version of symbol module_layout [ 14.041111] rtc-ds1307 1-0068: registered as rtc0 [ 14.044107] rtc-ds1307 1-0068: setting system clock to 2023-11-27T22:17:22 UTC (1701123442) [ 14.076581] WS_xinchDSI_Touch_Interface: disagrees about version of symbol module_layout [ 14.105346] WS_xinchDSI_Touch_Interface: disagrees about version of symbol module_layout [ 14.124440] WS_xinchDSI_Touch_Interface: disagrees about version of symbol module_layout

ChrisM510 avatar Nov 27 '23 22:11 ChrisM510

Ok, I got it to work (DSI only; no touch controls though):

The following lines must be added to your /boot/config.txt file:

dtoverlay=vc4-kms-dsi-waveshare-panel,7_0_inchC,i2c1,sizex=600,sizey=1080
dtoverlay=vc4-kms-v3d

Once the display comes up, you will need to use a hardware keyboard and mouse to control. In my case, I needed to rotate the display 180 degrees, however none of the controls in either config.txt or cmdline.txt would work. I rotated my display in the GUI by going to Start->Preferences->Screen Configuration; and then Layout->Screens->DSI1->Orientation and select Inverted.

If anyone has gotten the touchscreen to work, please share how...

ChrisM510 avatar Dec 05 '23 18:12 ChrisM510

UPDATE: after much research, it looks like the issue is more related to a change in the new Raspberry Pi image (Bookworm). The new default has moved away from X11 to Wayfire. Apparently, just about every single touchscreen is failing to work under Bookworm, not just Waveshare/ads7846-based touchscreens. Just thought I would share my findings...HTH.

ChrisM510 avatar Dec 08 '23 14:12 ChrisM510

UPDATE: after much research, it looks like the issue is more related to a change in the new Raspberry Pi image (Bookworm). The new default has moved away from X11 to Wayfire. Apparently, just about every single touchscreen is failing to work under Bookworm, not just Waveshare/ads7846-based touchscreens. Just thought I would share my findings...HTH.

I found this to be true and works as long as you set it back to x11. YMMV, but this works well enough for my projects.

I did find that the driver in the kernel doesn't like being forced in to a different orientation, but if you can deal with the default, it works.

slinkytoad avatar Dec 14 '23 13:12 slinkytoad

I have it working now, with Wayfire. The latest firmware update using rpi-update did the trick, but it was the latest driver from Waveshare that got the touchscreen working. Currently running 6.1.69-v8+.

ChrisM510 avatar Jan 08 '24 12:01 ChrisM510