View Single Post
Old 07-09-2013, 09:22 AM   #132
cgm999
Enthusiast
cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.cgm999 knows the way to San Jose.
 
Posts: 46
Karma: 54894
Join Date: Jun 2013
Device: kobo
giorgio130:

The only binary file is frontlight.c which is on one of the older topics, src:

#include <stdio.h>
#include <fcntl.h>
#include <sys/ioctl.h>

int main(int argc, char *argv[])
{
if ( argc != 2 ) {
printf("Usage: %s brightness \n", argv[0]);
return 1;
}

int light;

// Open the file for reading and writing
if ((light = open("/dev/ntx_io", O_RDWR)) == -1) {
printf("Error opening ntx_io device");
}

int brightness = atoi ( (argv[1]) );
ioctl(light, 241, brightness);

return 0;
}


Also, the ideea with wireless on/off, is part of debug_cmds, is good to have a way run those right?,then ssh/sftp to upload debug.

as for wpa_supplicant issues I was just saying I need to find/make a wrapper to close all open files except 0/1/2 before running any commands out of koreader or we will see issues like input is frozen on 2nd koreader run

The list of changes that my mod include:
- suspend button works
- light button works
- light level from landscape bottom menu
- debug commands from bottom menu
- dpy set for aurahd (we need to add others like glo?)

Also we need to set changes in toggleswitch.lua based on main dpy or model I think, whoever have those need to test and report back.
cgm999 is offline   Reply With Quote