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

Driver needed for 6.1.61-v8+ #17

Open
CerberusVelvet opened this issue Nov 15, 2023 · 9 comments
Open

Driver needed for 6.1.61-v8+ #17

CerberusVelvet opened this issue Nov 15, 2023 · 9 comments

Comments

@CerberusVelvet
Copy link

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

@LaoHu0329
Copy link

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

@ChrisM510
Copy link

ChrisM510 commented Nov 24, 2023

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

@disruptivepatternmaterial

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

@ChrisM510
Copy link

@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
Copy link

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
Copy link

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
Copy link

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.

@slinkytoad
Copy link

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.

@ChrisM510
Copy link

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+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants