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.
|