Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-29-2012, 06:26 AM   #16
piratepanda
Enthusiast
piratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura aboutpiratepanda has a spectacular aura about
 
Posts: 31
Karma: 4158
Join Date: Nov 2012
Device: Kobo Glo
Quote:
Originally Posted by dimi5 View Post
Can somebody explain, where the koboplugins.ini file can be found or should be placed?
See here http://www.mobileread.com/forums/sho...d.php?t=193377
piratepanda is offline   Reply With Quote
Old 12-29-2012, 12:02 PM   #17
dimi5
Junior Member
dimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of lightdimi5 is a glorious beacon of light
 
Posts: 4
Karma: 12050
Join Date: Dec 2012
Device: Kobo Glo
Quote:
Originally Posted by piratepanda View Post
Thx it works, but i cannot see that the proposed plugin has any influence (tried with 0 and 1 levels) on brightness level. Hope, that Kobo developers will tackle this problem in future firmware releases.
dimi5 is offline   Reply With Quote
Old 01-20-2013, 01:18 PM   #18
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
I've noticed that if I plug my Glo into a USB cable and turn the frontlight on and then off that the LEDs will often go dimmer than the lowest level for a few seconds. I'd say that it's about half as bright as the lowest setting, and hardly noticeable in a bright room.
KevinShort is offline   Reply With Quote
Old 01-21-2013, 05:47 AM   #19
xuyn2003
Connoisseur
xuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texan
 
Posts: 71
Karma: 18140
Join Date: Jul 2011
Device: PRS-T1&KOBOTOUCH
Quote:
Originally Posted by KevinShort View Post
I've noticed that if I plug my Glo into a USB cable and turn the frontlight on and then off that the LEDs will often go dimmer than the lowest level for a few seconds. I'd say that it's about half as bright as the lowest setting, and hardly noticeable in a bright room.
I teset it as follow steps, got failure:

1.when the frontlight is off, pluged the usb into GLO, GLO asked me if I want to connect to pc?
2.I chose cancel, then pressed the light button, the led is on.
3.I pressed the light button again, the led is just off.
4.Unconnected the usb, turn on the led, the light didn't go to a dimmer level.

What's wrong with the above steps?

Last edited by xuyn2003; 01-21-2013 at 05:51 AM.
xuyn2003 is offline   Reply With Quote
Old 01-21-2013, 01:47 PM   #20
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by xuyn2003 View Post
I teset it as follow steps, got failure:

1.when the frontlight is off, pluged the usb into GLO, GLO asked me if I want to connect to pc?
2.I chose cancel, then pressed the light button, the led is on.
3.I pressed the light button again, the led is just off.
4.Unconnected the usb, turn on the led, the light didn't go to a dimmer level.

What's wrong with the above steps?
Don't disconnect the USB; the light goes dim immediately after you press the light button to turn the frontlight off. Here are my steps:

1. Plug USB into Glo, choose cancel when asked to connect to PC.
2. Turn on frontlight.
3. Turn off frontlight. The light goes dim for a second, then goes completely off.

Sometimes the frontlight only goes dimmer for a fraction of a second, and you'd miss it if you weren't looking for it. A few times, I've had it stay at half-brightness for 10-15 seconds.

Here are two photos of my Glo in an almost completely dark room, first at normal lowest brightness:



And then at a dimmer level after pressing the light button to turn the frontlight off while connected to a USB charger:

Attached Thumbnails
Click image for larger version

Name:	glo_normal.jpg
Views:	1298
Size:	83.4 KB
ID:	99839   Click image for larger version

Name:	glo_dim.jpg
Views:	1301
Size:	67.2 KB
ID:	99840  
KevinShort is offline   Reply With Quote
Old 01-22-2013, 03:30 AM   #21
xuyn2003
Connoisseur
xuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texan
 
Posts: 71
Karma: 18140
Join Date: Jul 2011
Device: PRS-T1&KOBOTOUCH
Thank you, it will be great if the half-brightness level could be kept.
xuyn2003 is offline   Reply With Quote
Old 01-25-2013, 04:07 PM   #22
staropram
Junior Member
staropram began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
OK cool, at least you've made some progress. Just found this forum after searching about the brightness of the Kobo Glo. I was really disappointed because I fell for the marketing saying it could be read "even in pitch darkness". It's way too bright at minimum level for my eyes.

I guess if the ioctl doesn't work, we need to go lower and look at the device driver that ioctl interfaces with (if that's accessible, I've no idea as not tried to root mine yet).

staropram
staropram is offline   Reply With Quote
Old 02-05-2013, 10:15 AM   #23
xor_
Enthusiast
xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.xor_ can self-interpret dreams as they happen.
 
Posts: 47
Karma: 20894
Join Date: Nov 2012
Device: Nook ST, Kobo Glo
If I turn the light on with this program, it stays on when the device enters sleep mode. If I turn the light on through the button, it gets turned off for sleep mode

So it would seem that pressing the light button sets a flag somewhere, which is then being read by the sleep routine.

I was looking for a script somewhere that handles sleep mode, but couldn't find anything. Running strace on nickel also didn't give me recognizable hints.

Any ideas?
xor_ is offline   Reply With Quote
Old 02-06-2013, 04:54 AM   #24
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 414
Karma: 288418
Join Date: May 2011
Device: Kobo Glo and Aura HD
I've made some research on this. I've added a little code used in kernel:
Code:
#include <stdio.h>
#include <fcntl.h>
#include <sys/ioctl.h>

static unsigned short FL_table0[100]={
0x0001,0x0006,0x0007,0x0009,0x000C,0x000D,0x000E,0x000F,0x0011,0x0012,
0x0014,0x0015,0x0017,0x0018,0x001A,0x001B,0x001C,0x001D,0x001F,0x0020,
0x0022,0x0023,0x0025,0x0027,0x0028,0x002A,0x002B,0x002D,0x002E,0x0030,
0x0031,0x0033,0x0035,0x0036,0x0038,0x0039,0x003B,0x003C,0x003E,0x0040,
0x0041,0x0043,0x0044,0x0046,0x0047,0x0049,0x004A,0x0051,0x0057,0x005D,
0x0063,0x006A,0x0070,0x0076,0x007C,0x0083,0x0089,0x008F,0x0095,0x009C,
0x00A2,0x00A8,0x00AE,0x00B5,0x00B9,0x00BB,0x00C1,0x00C7,0x00CE,0x00D4,
0x00DA,0x00E0,0x00E7,0x00ED,0x00F3,0x00F9,0x0100,0x0106,0x010C,0x0112,
0x0118,0x011F,0x0125,0x012B,0x0131,0x0138,0x013E,0x0144,0x014A,0x0151,
0x0157,0x015D,0x0163,0x016A,0x0170,0x0176,0x017C,0x0183,0x0189,0x018F
};
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, 243, brightness);

    return 0;
}

/*
		case CM_FRONT_LIGHT_SET:241
			if(0!=gptHWCFG->m_val.bFrontLight)
			{
				if (p) {			
					printk ("\nset front light level : %d\n",p);
					if(p>0 && p<=50)
					{
						gpio_direction_output(FL_R_EN,0);
						msp430_write (0xA7, FL_table0[2*(p-1)]&0xFF00);
						msp430_write (0xA6, FL_table0[2*(p-1)]<<8);
						printk("PWMCNT : 0x%04x\n", FL_table0[2*(p-1)]);
					}else if(p>50 && p<=100){
						gpio_direction_output(FL_R_EN,1);
						msp430_write (0xA7, FL_table0[p-1]&0xFF00);
						msp430_write (0xA6, FL_table0[p-1]<<8);
						printk("PWMCNT : 0x%04x\n", FL_table0[p-1]);
					}else{
						printk("Wrong number! level range from 0 to 100\n");
					}
					if (0 == last_FL_duty){
						msp430_write (0xA1, 0xFF00);
						msp430_write (0xA2, 0xFF00);
						msp430_write (0xA5, 0x0100);   
						msp430_write (0xA4, 0x9000);
						msp430_write (0xA3, 0x0100);

						msleep(100);
						gpio_direction_output(FL_EN,0);
					}
				}
				else {
					printk ("turn off front light\n");
					msp430_write (0xA3, 0);

					gpio_direction_input(FL_EN);
					gpio_direction_output(FL_R_EN,0);
				}
				last_FL_duty = p;
			}
			break;
		case CM_FRONT_LIGHT_DUTY:243
			if(0!=gptHWCFG->m_val.bFrontLight)
			{
				if (p) {			
					printk ("\nSet front light PWMCNT : 0x%4X\n",p);
					printk ("Current front light Frequency : (8MHz/0x%4X)\n",current_FL_freq);		
					msp430_write (0xA7, p&0xFF00);
					msp430_write (0xA6, p<<8);
					if (0 == last_FL_duty){
						msp430_write (0xA1, 0xFF00);
						msp430_write (0xA2, 0xFF00);
//						msp430_write (0xA5, 0xFF00);   
//						msp430_write (0xA4, 0xFF00);
						msp430_write (0xA3, 0x0100);

						msleep(100);
						gpio_direction_output(FL_EN,0);
					}
				}
				else {
					printk ("turn off front light\n");
					msp430_write (0xA3, 0);

					gpio_direction_input(FL_EN);
				}
				last_FL_duty = p;
			}
			break;

		case CM_FRONT_LIGHT_FREQUENCY:244
			if(0!=gptHWCFG->m_val.bFrontLight)
			{
				if (p) {
					printk ("set front light Frequency : (8MHz/0x%4X)\n",p);		
//					msp430_write (0xA4, (p<<8));
					msp430_write (0xA5, p&0xFF00);   
					msp430_write (0xA4, (p<<8));
					current_FL_freq = p;
				}
			}
			break;
*/
It seems that the lowest level (1) set by kevinshort is already the lowest that one can set, without going lower and manually using some gpios.
I'd say the state in which there's only a faint light on the screen is here:
printk ("turn off front light\n");
msp430_write (0xA3, 0);
//hang somehow
gpio_direction_input(FL_EN);
gpio_direction_output(FL_R_EN,0);

so that FL_R_EN is not yet set to 0.
giorgio130 is offline   Reply With Quote
Old 02-06-2013, 03:56 PM   #25
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by xor_ View Post
If I turn the light on with this program, it stays on when the device enters sleep mode. If I turn the light on through the button, it gets turned off for sleep mode

So it would seem that pressing the light button sets a flag somewhere, which is then being read by the sleep routine.

I was looking for a script somewhere that handles sleep mode, but couldn't find anything. Running strace on nickel also didn't give me recognizable hints.

Any ideas?
I have no clue. I haven't found any script that handles sleeping either, I think it's all handled by nickel.
KevinShort is offline   Reply With Quote
Old 02-19-2013, 06:35 AM   #26
tapioco2000
Member
tapioco2000 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2013
Device: kobo glo
Is it working on new 2.4.0 firmware?
tapioco2000 is offline   Reply With Quote
Old 02-19-2013, 10:40 AM   #27
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by tapioco2000 View Post
Is it working on new 2.4.0 firmware?
Yep. This program is firmware-independent.
KevinShort is offline   Reply With Quote
Old 03-02-2013, 08:38 AM   #28
An81
Junior Member
An81 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: Kobo Glo
Hello,

I 'm new to this fora. I just bought a kobo glo and while the reader is great, I also find the frontlight too bright. I put the code in the main folder of my kobo, but nothing seems to happen. I also don 't see how I can 'execute' it. Apologies if this is a stupid question, but is there something more I need to install/do before this code will work on the kobo?

Thanks in advance!

An
An81 is offline   Reply With Quote
Old 03-02-2013, 09:27 AM   #29
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
You have to use the Kobo Tweaks plugin to use the frontlight program. After you install the plugin, add these lines to kobotweaks.ini (in the .kobo folder on your Glo):
Code:
[CustomCommands]
Frontlight=tweaks.executeSystemCmd(\"/mnt/onboard/frontlight 1\")
That assumes that the "frontlight" program is in the main folder on your Glo.

Just a note: while this program does let you set the frontlight to a lower level, there is really hardly any difference at all between the Glo's default lowest brightness and this program's lowest.
KevinShort is offline   Reply With Quote
Old 03-02-2013, 02:17 PM   #30
Mrs_Often
Wizard
Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.
 
Mrs_Often's Avatar
 
Posts: 1,310
Karma: 1495609
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Kobo Glo
Quote:
Originally Posted by KevinShort View Post
Just a note: while this program does let you set the frontlight to a lower level, there is really hardly any difference at all between the Glo's default lowest brightness and this program's lowest.
Yes I noticed this. Rather a shame. I'm assuming the LEDs are dimmed by switching them on and off in a certain frequency with a certain length of _on_ time. Would there be a way to make this _on_ time shorter? The Kindle Paperwhite seems to be able to dim its LEDs right down with no disturbing "flickering" – and I see no disturbing flickering with the Glo light=1 setting either... so I'd really like to try and glo lower.
Mrs_Often is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Odyssey Odyssey HD FrontLight available for preorder Chi Cygni Bookeen 66 12-21-2012 02:55 AM
Frontlight + touchscreen + moths GeoffR Kobo Reader 7 12-12-2012 05:21 PM
Kobo Glo vs Cybook Odyssey Frontlight Magean Which one should I buy? 4 11-30-2012 06:50 AM
Frontlight: How to reset? WS64 Bookeen 18 11-26-2012 04:47 AM
Odyssey Odyssey HD FrontLight battery Gardenman Bookeen 4 11-12-2012 03:46 AM


All times are GMT -4. The time now is 07:37 PM.


MobileRead.com is a privately owned, operated and funded community.