Re: [hatari-users] 320x240 LCD not working. What I'm I doing wrong? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-users Archives
]
Hi
Thank you for your information. It gave me a fresh view on the problem
but unfortunately it did not help. But I have collected some more
information.
xrandr returns:
pi@phatari ~ $ xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 240, current 320 x 240, maximum 320 x 240
default connected 320x240+0+0 0mm x 0mm 320x240 0.0*
The version for SDL in PyGames is 1,2,15 as return by the code down below.
A test white-out VDI
pi@phatari ~ $ hatari --borders off --vdi false --desktop-st false --statusbar false --drive-led false --max-width 320 --max-height 240 --fullscreen --tos /home/pi/AtariTOS/tos206se.img
Hatari v1.6.2, compiled on: Jul 5 2012, 07:30:39
WARNING: invalid desktop size 320x240, defaulting to 832x576!
Could not set video mode:
No video mode large enough for 640x400
pi@phatari ~ $
A test white VDI
pi@phatari ~ $ hatari --borders off --vdi true --desktop-st false --statusbar false --drive-led false --max-width 320 --vdi-width 320 --vdi-height 240 --max-height 240 --fullscreen --tos /home/pi/AtariTOS/tos206se.img
VDI screen: request = 320x240@4, aligned result = 384x240@4
Hatari v1.6.2, compiled on: Jul 5 2012, 07:30:39
WARNING: invalid desktop size 320x240, defaulting to 832x576!
Could not set video mode:
No video mode large enough for 384x240
pi@phatari ~ $
On both occasion the desktop size 320x240 is invalid but in one occasion
Hatari needs 384x240 video in the other 640x400 video. Do you have any
ideas on why? Do I somehow use a Atari desktop larger then 320x200? The
config file is not present so I assume Hatari starts in ST-low the first
time it runs? Is this assumption wrong?
WR// B Mathias Johansson
----Python test code----
import os
import pygame
from pygame.locals import *
from time import sleep
os.putenv('SDL_VIDEODRIVER', 'fbcon')
os.putenv('SDL_FBDEV' , '/dev/fb1')
print (" ")
print (pygame.get_sdl_version())
print (" ")
print ("Initting...")
pygame.init()
print ("Setting fullscreen...")
modes = pygame.display.list_modes(16)
screen = pygame.display.set_mode(modes[0], FULLSCREEN, 16)
red = (255, 0, 0)
screen.fill(red)
pygame.display.update()
sleep(10)
---- End code ----