admin管理员组

文章数量:1185484

the LCD screen is connected with SPI protocol. It's a MSP3521 LCD controlled with Vasily Kapustin lib (ILI9488 driver).

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. Id' like to make the LCD return to its original state (just before switching it off)

for info, the same RspPI3B connected to a HDMI screen can be switched ON/OFF with the same commands

wlr-randr --output HDMI-1 --off
wlr-randr --output HDMI-1 --on

with no pb.

PS : with the LCD i send command lines through SSH

本文标签: raspberry pi3how to switch offon a LCD connected to a RSPPI3B in pythonStack Overflow