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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-12-2013, 09:33 PM   #436
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by HugeFanOfE-Ink View Post
.
(re: Mint/MATE -- thanks for the heads up; I did hear about MATE (possibly on the Linux Action Show), but hadn't tried it. I still like XFCE better )
OK -
You just gave yourself away as one of the lead programmers of lab126 with that bit of logic.

"... I haven't tried it. I still like XFCE better."

Yup, haven't tried it, but already can determine which you like better.
A certain sign of "lab126 lead programmer" logic.
knc1 is offline   Reply With Quote
Old 09-12-2013, 10:39 PM   #437
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
@knc1: aawww. Don't be cruel.

I've just installed Debian testing(=jessie) on my new laptop (because anything older just won't run properly), and to tell the truth, I don't even know what it uses. I guess it's Gnome3 - looks and feels different from what I used before.

I liked the Mint LXDE editions.

Last edited by ixtab; 09-13-2013 at 12:27 AM.
ixtab is offline   Reply With Quote
Advert
Old 09-13-2013, 12:02 AM   #438
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Mint LXDE here. FTW!
twobob is offline   Reply With Quote
Old 09-13-2013, 12:16 AM   #439
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Quote:
Originally Posted by twobob View Post
Mint LXDE here. FTW!

from the 'about' page of Mint: "Based on Debian and Ubuntu"

why not just use Debian? (sid) Just Openbox and Tint2 for me!
brianinmaine is offline   Reply With Quote
Old 09-13-2013, 04:58 AM   #440
HugeFanOfE-Ink
Junior Member
HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.
 
Posts: 6
Karma: 28654
Join Date: Sep 2013
Device: Kindle DX
Quote:
Originally Posted by knc1 View Post
"... I haven't tried it. I still like XFCE better."

Yup, haven't tried it, but already can determine which you like better.
A certain sign of "lab126 lead programmer" logic.
I said 'hadn't tried it', not 'haven't tried it'.

I did try it, yesterday. The VM is still running right now. But in any case,
HugeFanOfE-Ink is offline   Reply With Quote
Advert
Old 09-15-2013, 10:45 AM   #441
HugeFanOfE-Ink
Junior Member
HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.HugeFanOfE-Ink solves Fermat’s last theorem while doing the crossword.
 
Posts: 6
Karma: 28654
Join Date: Sep 2013
Device: Kindle DX
Some improvement...

It looks like the problem was chiefly one of there being no good vnc servers on OS X.

Here's a really, really roundabout solution which works better than a 'direct' connection in OS X, ironically....

* The best vnc server for the job appears to be TigerVNC, but specifically the Linux version. TigerVNC has Windows & Mac viewers too; but the server works only on Linux. (So, no use building it from source, if you're on a Mac.)

Check out their wiki: TigerVNC. It looks like they're pouring a lot of effort into making the RFB server more efficient.

TigerVNC is also a *lot* more customizable. The most useful customization for my purposes was setting the *color depth*. I set this to the lowest value (8).

It creates a virtual desktop, allowing you to run whatever window manager you like on it. I find twm somewhat annoying, so I went with OpenBox; it works amazing.

In my setup, Linux Mint runs inside a VM. (Side note: It looks like some distros don't 'play nice' with TigerVNC; it works great so far on Mint.)

I first ssh, from OS X into Mint(VM), forwarding Mint's 5901 to OS X's 5902.
I then ssh, from the Kindle into OS X, forwarding the Kindle's 5903 to OS X's 5902.

I then run kindlevncviewer on the Kindle, with the setting -encodings hextile, to connect to Kindle's localhost:3

I then run OS X's built in vnc viewer (Command-K from the Finder, then enter URL) to connect to localhost:2.

I control the mouse & keyboard from this second vnc window on OS X.

It's a shame for the Mac, really, that this works better than a native server.
HugeFanOfE-Ink is offline   Reply With Quote
Old 09-15-2013, 10:59 AM   #442
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
awesome write up and tips.

As an aside: Did you implement the kindle side click-thru also? That's a neat feature.


As a further aside. It is my experience that Apple have never been very big into "screen-scrape", for whatever reason.

Heck, it's banned in iPhone apps
lol

Last edited by twobob; 09-15-2013 at 11:02 AM.
twobob is offline   Reply With Quote
Old 10-16-2013, 06:37 PM   #443
Graphite
Junior Member
Graphite can extract oil from cheeseGraphite can extract oil from cheeseGraphite can extract oil from cheeseGraphite can extract oil from cheeseGraphite can extract oil from cheeseGraphite can extract oil from cheeseGraphite can extract oil from cheeseGraphite can extract oil from cheese
 
Posts: 2
Karma: 1000
Join Date: Oct 2013
Device: Kindle DXG
Has anyone got this working on Win 8 pro?

I got as far as installing USB Networking and setting up VNC server. Kindle is no longer recognized as a storage device, but the USB device does not show in Network Connections either.

Would appreciate guidance as I am really keen to set it up as a secondary screen to help reduce eye strain.
Graphite is offline   Reply With Quote
Old 10-17-2013, 02:35 AM   #444
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
That's really more about USB networking. Probably a driver issue?
hawhill is offline   Reply With Quote
Old 11-05-2013, 08:21 PM   #445
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
https://dl.dropboxusercontent.com/u/15900420/PW-pump

EXPERIMENTAL inversion pump for the PW.

replaces need for eips. fixes colors.


just run it in parallel with the viewer.

[root@kindle root]# /mnt/us/PW-pump
Quote:
using XRandR: screen size = 758x1024, rotation = UR
EPDC fbdev is /dev/fb0
1: (x,y)=(0,0) (w,h)=(758,1024)
2: (x,y)=(338,572) (w,h)=(78,46)
3: (x,y)=(338,572) (w,h)=(161,46)
4: (x,y)=(420,572) (w,h)=(164,46)
5: (x,y)=(505,572) (w,h)=(79,46)
6: (x,y)=(256,420) (w,h)=(328,198)
7: (x,y)=(420,420) (w,h)=(79,46)
8: (x,y)=(588,572) (w,h)=(79,46)
9: (x,y)=(588,522) (w,h)=(79,96)
10: (x,y)=(588,420) (w,h)=(79,148)
11: (x,y)=(588,420) (w,h)=(79,46)
12: (x,y)=(420,522) (w,h)=(79,46)
13: (x,y)=(420,522) (w,h)=(79,96)

POSSIBLE ERRORS:

/mnt/us # /mnt/us/PW-pump
Quote:
using XRandR: screen size = 758x1024, rotation = UR EPDC fbdev is /dev/fb0
15: (x,y)=(172,268) (w,h)=(327,300)
16: (x,y)=(420,472) (w,h)=(79,46)
17: (x,y)=(450,730) (w,h)=(71,71)
18: (x,y)=(130,943) (w,h)=(426,71)
19: (x,y)=(2,2) (w,h)=(748,1012)
Error in ioctl(MXCFB_SEND_UPDATE) call
/dev/fb0: Cannot allocate memory
at which point it will bomb out...

meh, it's experimental. currently I'm just testing it.

As you can see from the screen shot the image /thinks/ it is still b&w...
but on the screen you see the correct colour inversion.

: )



Other then me breaking it this is the work of seaniko, Freescale and Hawhill.
And probably a bunch of other people too...

(It's gpl so I think I need to include the source)
Header: https://github.com/hwhw/kindlevncvie...nclude/mxcfb.h
Spoiler:
Code:
/*
 * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 *
 */

/*
 * @file mxc_epdc_x11_fb_test.c
 *
 * @brief MXC EPDC unit test applicationi for framebuffer updates
 * based on X11 changes to its root window
 *
 */

#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <poll.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xdamage.h>
#include <X11/extensions/Xrandr.h>
#include <linux/fb.h>
#include "mxcfb.h"
#include <sys/ioctl.h>
#include <time.h>

#define INIT_UPDATE_MARKER      0x12345678

static int kbhit(void)
{
	struct pollfd pollfd;
	pollfd.fd = 0;
	pollfd.events = POLLIN;
	pollfd.revents = 0;

	return poll(&pollfd, 1, 0);
}

int main (int argc, char* argv[])
{
	/* Declare and init variables used after cleanup: goto. */
	Display* xDisplay = NULL;
	Damage xDamageScreen = 0;
	int fd = -1;
	XRRScreenConfiguration* xrrScreenConfig = NULL;

	/* Open the X display */
	xDisplay = XOpenDisplay(NULL);
	if (NULL == xDisplay)
	{
		printf("\nError: unable to open X display\n");
		goto cleanup;
	}

	/* Acess the root window for the display. */
	Window xRootWindow = XDefaultRootWindow(xDisplay);
	if (0 == xRootWindow)
	{
		printf("\nError: unable to access root window for screen\n");
		goto cleanup;
	}

	/* Access the XRandR screen configuration. */
	xrrScreenConfig = XRRGetScreenInfo(xDisplay, xRootWindow);
	if (NULL == xrrScreenConfig)
	{
		printf("\nError: unable to query XRandR screen config\n");
		goto cleanup;
	}

	/* Query the list of XRandR configured screen sizes. */
	int xrrSizeListCount;
	XRRScreenSize* xrrSizeList =
		XRRConfigSizes(xrrScreenConfig, &xrrSizeListCount);

	/* Query the current XRandR screen rotation and which screen size */
	/* is currently being used. */
	Rotation xrrRotate;
	int xrrSizeIndex =
		XRRConfigCurrentConfiguration( xrrScreenConfig, &xrrRotate);
	const int screenWidth = xrrSizeList[xrrSizeIndex].width;
	const int screenHeight = xrrSizeList[xrrSizeIndex].height;

	/* Display XRandR information */
	printf("using XRandR: screen size = %dx%d, rotation = ",
		screenWidth, screenHeight);
	int fbRotate = -1;
	if (RR_Rotate_0 & xrrRotate)
	{
		printf("UR\n");
		fbRotate = FB_ROTATE_UR;
	}
	else if (RR_Rotate_90 & xrrRotate)
	{
		printf("CW\n");
		fbRotate = FB_ROTATE_CW;
	}
	else if (RR_Rotate_180 & xrrRotate)
	{
		printf("UD\n");
		fbRotate = FB_ROTATE_UD;
	}
	else if (RR_Rotate_270 & xrrRotate)
	{
		printf("CCW\n");
		fbRotate = FB_ROTATE_CCW;
	}
	else
	{
		printf("???\n");
	}
	if (-1 == fbRotate)
	{
		printf("\nError: unsupported XRandR rotation = 0x%04x\n",
			xrrRotate);
		goto cleanup;
	}

	/* Query the damage extension associated with this display. */
	int xDamageEventBase;
	int xDamageErrorBase;
	if (!XDamageQueryExtension(xDisplay, &xDamageEventBase, &xDamageErrorBase))
	{
		printf("\nError: unable to query XDamage extension\n");
		goto cleanup;
	}

	/* Setup to receive damage notification on the main screen */
	/* each time the bounding box increases until it is reset. */
	xDamageScreen =
		XDamageCreate(xDisplay, xRootWindow,
			XDamageReportBoundingBox);
	if (0 == xDamageScreen)
	{
		printf("\nError: unable to setup X damage on display screen\n");
		goto cleanup;
	}

	/* Find the EPDC FB device */
	char fbDevName[10] = "/dev/fb";
	int fbDevNum = 0;
	struct fb_fix_screeninfo fbFixScreenInfo;
	do {
		/* Close previously opened fbdev */
		if (fd >= 0)
		{
			close(fd);
			fd = -1;
		}

		/* Open next fbdev */
		fbDevName[7] = '0' + (fbDevNum++);
		fd = open(fbDevName, O_RDWR, 0);
		if (fd < 0)
		{
			printf("Error in opening fb device\n");
			perror(fbDevName);
			goto cleanup;
		}

		/* Query fbdev fixed screen info. */
		if (0 > ioctl(fd, FBIOGET_FSCREENINFO, &fbFixScreenInfo))
		{
			printf("Error in ioctl(FBIOGET_FSCREENINFFO) call\n");
			perror(fbDevName);
			goto cleanup;
		}
    
	} while (0 != strcmp(fbFixScreenInfo.id, "mxc_epdc_fb"));
	printf("EPDC fbdev is %s\n", fbDevName);

	/* Query fbdev var screen info. */
	struct fb_var_screeninfo fbVarScreenInfo;
	if (0 > ioctl(fd, FBIOGET_VSCREENINFO, &fbVarScreenInfo))
	{
		printf("Error in ioctl(FBIOGET_VSCREENINFO) call\n");
		perror(fbDevName);
		goto cleanup;
	}

	/* Force EPDC to initialize */
	fbVarScreenInfo.activate = FB_ACTIVATE_FORCE;
	if (0 > ioctl(fd, FBIOPUT_VSCREENINFO, &fbVarScreenInfo))
	{
		printf("Error in ioctl(FBIOPUT_VSCREENINFO) call\n");
		perror(fbDevName);
		goto cleanup;
	}

	/* Put EPDC into region update mode. */
	int mxcfbSetAutoUpdateMode = AUTO_UPDATE_MODE_REGION_MODE;
	if (0 > ioctl(fd, MXCFB_SET_AUTO_UPDATE_MODE, &mxcfbSetAutoUpdateMode))
	{
		printf("Error in ioctl(MXCFB_SET_AUTO_UPDATE_MODE) call\n");
		perror(fbDevName);
		goto cleanup;
	}

        /* Set EPDC update scheme. */
        int mxcfbSetUpdateScheme = UPDATE_SCHEME_SNAPSHOT;
        if (0 > ioctl(fd, MXCFB_SET_UPDATE_SCHEME, &mxcfbSetUpdateScheme))
        {
                printf("Error in ioctl(MXCFB_SET_UPDATE_SCHEME) call\n");
                perror(fbDevName);
                goto cleanup;
        }

	/* Setup waveform modes. */
        struct mxcfb_waveform_modes mxcfbWaveformModes;


	/* Common properties for EPDC screen update */
	struct mxcfb_update_data mxcfbUpdateData;
        mxcfbUpdateData.update_region.left = 0;
        mxcfbUpdateData.update_region.width = 0x2F6;
        mxcfbUpdateData.update_region.top = 0;
        mxcfbUpdateData.update_region.height = 0x400;
        mxcfbUpdateData.update_mode = UPDATE_MODE_PARTIAL;
        mxcfbUpdateData.waveform_mode = WAVEFORM_MODE_GL16;
        mxcfbUpdateData.update_marker = 1;


        mxcfbUpdateData.flags = EPDC_FLAG_ENABLE_INVERSION;
                if (0 > ioctl(fd, MXCFB_SEND_UPDATE, &mxcfbUpdateData))
                {
                        printf("Error in ioctl(MXCFB_SEND_UPDATE) call\n");
                        perror(fbDevName);
                        goto cleanup;
                }

	int numPanelUpdates = 0;
	while (1)
	{
		int numDamageUpdates = 0;
		int updateLeft, updateRight;
		int updateTop, updateBottom;

		while (XPending(xDisplay))
		{
			XEvent xEvent;
			XNextEvent(xDisplay, &xEvent);
			if ((XDamageNotify+xDamageEventBase) == xEvent.type)
			{
				XDamageNotifyEvent* xDamageNotifyEvent =
					(XDamageNotifyEvent*)&xEvent;

				int left = xDamageNotifyEvent->area.x;
				int top = xDamageNotifyEvent->area.y;
				int right = left + xDamageNotifyEvent->area.width;
				int bottom = top + xDamageNotifyEvent->area.height;

				if (numDamageUpdates++ > 0)
				{
					if (left < updateLeft)
					{
						updateLeft = left;
					}
					if (right > updateRight)
					{
						updateRight = right;
					}
					if (top < updateTop)
					{
						updateTop = top;
					}
					if (bottom > updateBottom)
					{
						updateBottom = bottom;
					}
				}
				else
				{
					updateLeft = left;
					updateTop = top;
					updateRight = right;
					updateBottom = bottom;
				}
			}
		
		}

			usleep (30000);  // Bit of grace time.

		/* Send accum bound rect updates to EPDC */
		mxcfbUpdateData.update_marker = ++numPanelUpdates;

		if (FB_ROTATE_UR == fbRotate)
		{
			mxcfbUpdateData.update_region.left = 0;
			mxcfbUpdateData.update_region.top = 0;

mxcfbUpdateData.update_region.width = 758 ; // screenWidth;
mxcfbUpdateData.update_region.height = 1024 ;// screenHeight;

		}
		else if (FB_ROTATE_UD == fbRotate)
		{
			mxcfbUpdateData.update_region.left = 0;
			mxcfbUpdateData.update_region.top = 0;

			mxcfbUpdateData.update_region.width =
				screenWidth - updateLeft;
			mxcfbUpdateData.update_region.height =
				screenHeight - updateTop;
		}
		else if (FB_ROTATE_CW == fbRotate)
		{
			mxcfbUpdateData.update_region.left = 0;
			mxcfbUpdateData.update_region.top = 0;

			mxcfbUpdateData.update_region.width =
				screenWidth - updateTop;
			mxcfbUpdateData.update_region.height =
				updateRight;
		}
		else if (FB_ROTATE_CCW == fbRotate)
		{
			mxcfbUpdateData.update_region.left = 0;
			mxcfbUpdateData.update_region.top = 0;

			mxcfbUpdateData.update_region.width =
				updateBottom;
			mxcfbUpdateData.update_region.height =
				screenHeight - updateLeft;
		}
		else
		{
			continue;
		}

		if (0 > ioctl(fd, MXCFB_SEND_UPDATE, &mxcfbUpdateData))
		{
			printf("Error in ioctl(MXCFB_SEND_UPDATE) call\n");
			perror(fbDevName);
			goto cleanup;
		}

		/* Display what getting updated */
		printf("%d: (x,y)=(%d,%d) (w,h)=(%d,%d)\n",
			numPanelUpdates,
			updateLeft, updateTop,
			updateRight - updateLeft,
			updateBottom - updateTop);

		/* Clear the damage update bounding box */
		XDamageSubtract(xDisplay, xDamageScreen, None, None);

		/* Wait for previous EPDC update to finish */
		if (0 > ioctl(fd, MXCFB_WAIT_FOR_UPDATE_COMPLETE,
				&mxcfbUpdateData.update_marker))
		{
			printf("Error in ioctl(MXCFB_WAIT_FOR_UPDATE_COMPLETE) call\n");
			perror(fbDevName);
			goto cleanup;
		}
		
	}

cleanup:
	if (fd >= 0)
	{
		close(fd);
		fd = -1;
	}

	if (NULL != xrrScreenConfig)
	{
		XRRFreeScreenConfigInfo(xrrScreenConfig);
		xrrScreenConfig = NULL;
	}

	if (0 != xDamageScreen)
	{
		XDamageDestroy(xDisplay, xDamageScreen);
		xDamageScreen = 0;
	}

	if (NULL != xDisplay)
	{
		XCloseDisplay(xDisplay);
		xDisplay = NULL;
	}

	return 0;
}
Attached Thumbnails
Click image for larger version

Name:	screenshot_2013_11_06T02_37_58+0000.png
Views:	626
Size:	38.4 KB
ID:	114759   Click image for larger version

Name:	screenshot_2013_11_06T02_37_53+0000.png
Views:	632
Size:	40.9 KB
ID:	114760  

Last edited by twobob; 11-05-2013 at 09:49 PM.
twobob is offline   Reply With Quote
Old 02-09-2014, 06:45 AM   #446
edddh
Junior Member
edddh began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2014
Device: Kindle DX / Nook Touch
Tricks to make a Kindle external monitor more effective for daily usage

Hi all and many thanks for your great contributions.

Since I really cannot use my Laptop with backlight at the evening, following this thread I just bought a brand new kindle DX. I then followed all your instructions and successfully managed to connect the Kindle to have an external monitor for my laptop. Nice (your) job!

Let me make clear first that although I like Linux, I need to work with Windows (now I have Windows 8 but I might change it) for many reasons.

Now I have a configuration that works well enough for my purpose, however it seems to me that there is space for improvement:

1) Both laptop LCD and external VGA do not have a resolution that matches exactely with the Kindle. I have spent hours to find a solution: change the resolution for the external VGA in Windows 8, even creating a custom monitor .inf, however it did not work; find a VNC server that works with a virtual Windows desktop, however I did not find one that worked. Does anyone have a solution to have a VNC server sending a virtual desktop with resolution 1200x824 to the Kindle?

2) I do not care if the refresh is slow, however the behaviour of the mouse obviously makes the usage a bit tiring and difficult, although perfectly feasible. Do you have any configuration or trick to have ONLY the mouse movement more fluent?

I chose the Kindle DX because I knew of its excellent screen and because I understood from your posts that the solution was available and reliable, however I am very open to change device, so please do not hesitate to give me some different advice, for example change for the M92 and so on! (I can still return the Kindle DX without costs)

Thanks in advance for your support!
edddh is offline   Reply With Quote
Old 02-10-2014, 10:53 AM   #447
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I guess making the mouse cursor having no shadow and being purely black/white would be all you can do to make it fast. I agree, it's no fun to use the mouse.
hawhill is offline   Reply With Quote
Old 03-16-2014, 11:10 AM   #448
wallaertq
Junior Member
wallaertq began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2013
Device: Kindle 4.1.1
Kindle4NT+Windows XP(virtualbox)+MouseEmulator+FreeVirtualKeyboard = Full control !

But there is a problem ; I don't know how to edit config.lua on my K4nt for :
K4 CONTROLS .....K4 KEYS.....WXP CONTROLS
prev page right....109...........Numpad (2)
next page right....191...........Numpad (1)
prev page left......193..........Verr Num
next page left......104..........Numpad (3)
back...................158.........ESCAPE
keyboard.............29...........Verr Num
menu..................139.........WINDOWS button
home..................102
centre................194.........ENTER
left....................105.........Numpad (8)
right..................106.........Numpad (5)
up.....................103.........Numpad (6)
down.................108.........Numpad (4)

Instead make long explanations, you can send a config.lua edited on this topic, it will probably avoid a lot of problems. I thank you in advance.
wallaertq is offline   Reply With Quote
Old 03-16-2014, 01:03 PM   #449
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by wallaertq View Post
Instead make long explanations, you can send a config.lua edited on this topic, it will probably avoid a lot of problems. I thank you in advance.
Avoid a lot of problems for who?

It would be better if you just learned to edit the file.
Then you would not have to come back here every time you wanted a change made.
knc1 is offline   Reply With Quote
Old 04-29-2014, 04:14 AM   #450
MagnusW
Junior Member
MagnusW began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2014
Device: none
E-ink external monitor

I am an entrepreneur that is currently developing a dedicated e-ink external monitor that is easy to use and dedicated to being the best possible monitor solution (not an e-reader). I am reaching out to people who seem interested in a product like this.

I would love to hear your thoughts on how you personally would like such a product to work. At this point in my development your input could become real-world features. Hit me with comment and we could have a talk!

Best,
- Magnus


PS: I'm posting on a couple of threads like this, sorry if some of you might see this message other places as well.
MagnusW is offline   Reply With Quote
Reply

Tags
application, kindle, source, viewer, vnc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free (GPLv2) Translation Dictionaries Elleo Amazon Kindle 3 01-11-2011 10:57 PM
Calibre native app on iphone for reading news? bigreat Calibre 2 07-21-2010 11:50 PM
Android Android App: VNC leo315 enTourage Archive 4 05-13-2010 06:06 PM
Android VNC viewer (use your PC from the eDGe!) devseev enTourage Archive 2 04-11-2010 01:21 AM
PalmPDF - native PDF Viewer for Palm OS 5.x Colin Dunstan Reading and Management 2 11-23-2005 02:09 PM


All times are GMT -4. The time now is 03:57 AM.


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