[Python] how to switch off/on a LCD connected to a RSPPI3B in python?

Discussão em 'Python' iniciado por Stack, Janeiro 26, 2025.

  1. Stack

    Stack Membro Participativo

    I first tried with cmd lines :

    wlr-randr


    it returns

    SPI-1 "(null) (null) (SPI-1)"
    Physical size: 73x49 mm
    Enabled: yes
    Modes:
    480x320 px, 0.007000 Hz (preferred, current)
    Position: 0,0
    Transform: normal
    Scale: 1.000000


    then

    wlr-randr --output SPI-1 --off


    and again

    wlr-randr


    that returns :

    SPI-1 "(null) (null) (SPI-1)"
    Physical size: 73x49 mm
    Enabled: no
    Modes:
    480x320 px, 0.007000 Hz (preferred)
    NOOP-1 "Headless output 2"
    Enabled: yes
    Modes:
    1920x1080 px (current)
    Position: 0,0
    Transform: normal
    Scale: 1.000000


    and

    wlr-randr --output NOOP-1 --off


    switches off the screen

    but impossible to switch it on again


    wlr-randr --output NOOP-1 --on


    doesn't work. It displays a corrupted screen.

    i read many many postgs in many forums

    Continue reading...

Compartilhe esta Página