View Single Post
Old 08-23-2015, 12:31 AM   #1
nahte
Enthusiast
nahte began at the beginning.
 
Posts: 28
Karma: 12
Join Date: Aug 2015
Device: none
Nonvnc and Opensource to Use DX(G) as a PC Display

https://github.com/nahtethan/dxg-display

- Contributor and suggestion are welcome, especially some compile/install steps.
- Ubuntu 12.04 is the only verified platform now.
- My ubuntu is using Linux version 4.0.

0-binary

Binary helps to use dxg as display without compiling.

01-udlfb.ko

Please remember it is based on linux-4.0. I put udlfb.ko the path as /lib/modules/4.0.0-040000-generic/kernel/drivers/video/fbdev/udlfb.ko, and append udlfb to /etc/modules.

02-52-displaylink.conf

Please reference http://how-to.cc/get-a-displaylink-v...h-ubuntu-12-04 to get familiar with displaylink. 52-displaylink.conf should be put under /usr/share/X11/xorg.conf.d/.

sudo apt-get install xserver-xorg-video-displaylink

03-jailbreak

04-g_android.ko, put this under dxg's /mnt/us/

05-i.sh, put this under dxg's /mnt/us/ and make it executable.

06-mylcd, put this under dxg's /mnt/us/ and make it executable.

07-launchpad

Install launchpad from mobileread kindle forum. Append "I = !/mnt/us/i.sh" to launchpad's config file launchpad.ini.

08-steps

Boot ubuntu, boot dxg, landscape dxg, launchpad with I (press dxg's up key then i key to input I), connect dxg with usb, check pc's dmesg to see an extra fb is attached, logout ubuntu and login again, fun with dxg display!

***************

1-displaylink

My codes started from Linux udlfb module, many thanks to displaylink team, a little bit change of udlfb is required.

***************

2-linux-2.6.22-lab126

Displaylink's Linux udlfb module is used in PC side, so it is clear that we need to write a usb gadget driver for dxg.

My gadget code is based on linux-2.6.22-lab126, which is kindle dxg's kernel. The directory path here is kept same as to linux-2.6.22-lab126, which can be downloaded from https://kindle.s3.amazonaws.com/Kind...5370010.tar.gz

The android gadget driver is pretty cool for usb, so the first step is porting android gadget driver.

***************

Q & A

- How to compile?
It is easy to compile a Linux module like udlfb, contribute please.

- How to install?
Insmod.

- How to use?
http://how-to.cc/get-a-displaylink-v...h-ubuntu-12-04

Last edited by nahte; 09-21-2015 at 03:10 AM.
nahte is offline   Reply With Quote