Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Function ReadFb in framebuffer.c #1

Open
vanducnkt opened this issue Mar 2, 2015 · 1 comment
Open

Error Function ReadFb in framebuffer.c #1

vanducnkt opened this issue Mar 2, 2015 · 1 comment

Comments

@vanducnkt
Copy link

unsigned int *ReadFb()
{
if (UpdateFbInfo() == -1)
return NULL;

ifndef USEMMAP

if (lseek(fbfd, SEEK_SET, 0) == -1)
{
    perror("lseek failed for framebuffer device\n");
    return NULL;
}
if (read(fbfd, fbmmap, fbsize) == -1)
{
    perror("Framebuffer read failed");
    return NULL;
}

endif

return (unsigned int *)fbmmap;

}

with samsung galaxy tab 3 it work good. but with samsung galaxy tab 2 and nexus 10 it out perror("Framebuffer read failed"); and send buffe black to client.
can you help me fix it ?
Thank you

@ArcsinX
Copy link
Owner

ArcsinX commented Mar 2, 2015

Answered you on xda-developers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants