From bd12ee85f01d2e85e7425d3eca2f1591bcf1c33a Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Fri, 20 Jul 2018 15:21:40 +0200 Subject: [PATCH] reactivate hdmi --- README.md | 3 +-- raspberry-environment/display.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 13d0aa1..cbc8c71 100644 --- a/README.md +++ b/README.md @@ -77,8 +77,7 @@ mount -o remount,rw /boot ## ToDo - * bootsplash * dritte led für boot?: dtoverlay=gpio-poweroff,gpiopin=23,active_low * gpio pins ändern * screenshot-tool option für sofortigen screenshot - * hdmi auch wenn nach boot eingesteckt aktivieren \ No newline at end of file + * hdmi regelmäßig überprüfen ob inaktiv \ No newline at end of file diff --git a/raspberry-environment/display.py b/raspberry-environment/display.py index 6b567d8..a76a0f1 100644 --- a/raspberry-environment/display.py +++ b/raspberry-environment/display.py @@ -202,7 +202,8 @@ if __name__ == '__main__': #os_echo(g+"functions/rndis.usb0/os_desc/interface.rndis/compatible_id", "RNDIS") #os_echo(g+"functions/rndis.usb0/os_desc/interface.rndis/sub_compatible_id", "5162001") - + subprocess.run(['tvservice', '-p'], shell=False, check=False) + subprocess.run(['fbset', '-fb', '/dev/fb0', '-depth', '16'], shell=False, check=False) #tvservice -p # tvservice -e "DMT 82"