tux1c / wavesharelcd-64bit-rpi

Install a Waveshare LCD on 64bit RaspberryOS
18 stars 18 forks source link

Mhs35 #1

Open slipk487 opened 4 years ago

slipk487 commented 4 years ago

Thanks so the touch seems to work I can see the console for a second before gui but stuck at black screen with _

alexanderi96 commented 4 years ago

yeah same problem here, pi4b whith 64 bit raspberry pi os and 3.5" hat

cppakko commented 4 years ago

same problem,pi3b+ whith 64 bit kali

JorgeMayoral commented 4 years ago

I have the same problem with a Raspberry Pi 4 Model B running 64 bit Kali.

waynew commented 4 years ago

I get the same problem - note that the console is there - I can log in and it will flash, but then it will flash back to black.

I'm not super knowledgable about the framebuffers, but IIUC there's something going on where it's drawing the framebuffer that we want, and then flipping back to a blank one.

waynew commented 4 years ago

For me when it boots it does show all the console [ OK ] messages. It's only when it flicks over to... whatever it's on, that it fails miserably.

waynew commented 4 years ago

Ooo! More promising info - for me:

def one():
    global r, g, b
    with open('/dev/fb0', 'wb') as framebuffer:
        for x in range(x_size):
            for y in range(y_size):
                r += 1
                r = r % 256

                g += 10
                g = g % 256

                b += 50
                b = b % 256
                pass
                framebuffer.write(r.to_bytes(1, byteorder='little'))
                framebuffer.write(g.to_bytes(1, byteorder='little'))
                framebuffer.write(b.to_bytes(1, byteorder='little'))
                framebuffer.write(b'\x00')
            if not x % 100:
                print(x)

This works! But if I do /dev/fb1 instead, what I get is bands of color displayed, and then... not. So it looks like something is misconfigured to fight between fb0 and fb1

alexstacey commented 3 years ago

I got this working on a MHS35. See here for a script: https://github.com/alexstacey/MHS35-lcd-64bit-rpi

greenpdx commented 11 months ago

I tried to get it working by switching to X, but still doesn't work. Raspberry Pi OS with desktop

Release date: October 10th 2023
System: 64-bit
Kernel version: 6.1
Debian version: 12 (bookworm)
Size: 1,093MB