Neal Peacock <kulimandpho...@gmail.com> writes:

> Isn't that expected?

no

> The last command turned it off, did you try turning it back on?

echo 0 turns it on

and to be clear:

"echo 4 > $P"

is not enough to produce the problem
you have to call it twice

"echo 4 > $P; echo 4 > $P"

you can also try something like:
/*BINFMTC:
 */
#include <stdio.h>
#include <assert.h>
#include <linux/fb.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc, char** argv) {
  int fd=open("/dev/fb0",O_RDWR);
  assert(fd!=-1);
  printf("%d\n",ioctl(fd, FBIOBLANK, FB_BLANK_POWERDOWN));
  printf("%d\n",ioctl(fd, FBIOBLANK, FB_BLANK_POWERDOWN));
  printf("%d\n",ioctl(fd, FBIOBLANK, FB_BLANK_UNBLANK));
  return 0;
}

greetings,
karme

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to