I'm trying to cause a wait for vsync, but none of the methods I've been able to find are actually working for me
The ioctl method above fails with ret == -1, and errno == 22 ("EINVAL")
Checking the register always turns up false. I tried the opposite condition to be sure (while the same condition is false), and it creates an infinite loop, so the flag is never being set
Is there another method that will work, or are there any initial steps (other than using mmap to map the registers) required for these to work?
Thanks for any help
Code:
int fd = open( "/dev/fb0" , O_RDONLY );
if( 0 < fd )
{
int ret = 0;
ret = ioctl(fd, FBIO_WAITFORVSYNC, &ret );
/*if ( ret != 0 )
VSYNC failed
*/
}
close(fd);
Code:
while(memregs16[0x1182>>1]&(1<<4));
Is there another method that will work, or are there any initial steps (other than using mmap to map the registers) required for these to work?
Thanks for any help