diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-05-22 08:49:43 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-05-22 08:49:43 +0000 |
| commit | d97aa3303fcbdcbd6488397d55126f1334511910 (patch) | |
| tree | c0845cd57daf8f03ae500c86e3388937f5fee8ca /lib/python/Plugins | |
| parent | 0fe79d03d3e20c951076f78418bf51d04b3c7d83 (diff) | |
| download | enigma2-d97aa3303fcbdcbd6488397d55126f1334511910.tar.gz enigma2-d97aa3303fcbdcbd6488397d55126f1334511910.zip | |
set /proc/stb/hdmi/enable_hdmi_reset to 1 when a real DVI Mode is used and
set it to 0 when a hdmi mode is used ... without that DVI Modes are not
working (this needs drivers from today)
Diffstat (limited to 'lib/python/Plugins')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py index 43543bb1..b9b5dca8 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py @@ -146,6 +146,17 @@ class VideoHardware: if mode_60 is None or force == 50: mode_60 = mode_50 + dvimode = (mode_50.find('x') != -1 or mode_60.find('x') != -1) and '1' or '0' + try: + open("/etc/dvimode", "w").write(dvimode) # use 50Hz mode (if available) for booting + except IOError: + print "writing initial dvimode to /etc/dvimode failed." + + try: + open("/proc/stb/hdmi/enable_hdmi_reset", "w").write(dvimode) + except IOError: + print "setting dvimode failed." + try: open("/proc/stb/video/videomode_50hz", "w").write(mode_50) open("/proc/stb/video/videomode_60hz", "w").write(mode_60) |
