Thread: Glo Kobo Night Mode
View Single Post
Old 05-05-2013, 05:30 AM   #39
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
It could be simply that it's more resource consuming to turn the pixel to black. It seems to me that in night mode Kobo is a bit more slow.

Anyway, what does exaclt this piece of code?

Code:
    while(1)
    {
        int err = epoll_wait(epollFD, &readEvent, 1, -1);
        if(err > 0)
        {
            int bytesRead = read(fd, &input, sizeof(input));
            
            if(bytesRead == 0) //writing application left the pipe -> reopen
            {
                close(fd);
                fd = open(ctlPipe, O_NONBLOCK);
                readEvent.data.fd = fd;
                epoll_ctl(epollFD, EPOLL_CTL_ADD, fd, &readEvent);
                continue;
            }
Lucas Malor is offline   Reply With Quote