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
版权声明:本文标题:raspberry pi3 - how to switch offon a LCD connected to a RSPPI3B in python? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738299530a2073539.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论