Skip to content

Raspberry PI and AOC e1649Fwu USB powered LED monitor – deprecated

September 18, 2012

 New post – http://imkiyoung.wordpress.com/2014/07/25/aoc-e1649fwu-16-usb-powered-portable-with-raspberry-pi/

I have AOC’s 15.6 inch USB LED monitor and want to use it as a monitor for Raspberry PI.

  • It wasn’t easy for me. So, I wrote down here.
  • For now, AOC’s e1649Fwu monitor does not work in console mode, so you should connect AOC monitor just before run ‘startx’. I have no idea why it does not work in console mode.
  • From https://github.com/notro/fbtft/wiki/Framebuffer-use#console, I can use AOC monitor as a console. I added “con2fbmap 1 1″ to /etc/profile and “source /etc/profile” will turn on AOC monitor. But, only after X-Window(Desktop) is launched and exit Desktop mode, console works fine.
  • Additionally, Ubuntu is required for cross compile & build new kernel for Raspberry PI.
  • Please refer to http://elinux.org/RPi_Kernel_Compilation for latest kernel compile.
  • When SD is connected to PC(Windows), we can see only the contents of (real) /boot directory. When copying kernel.img, there is no problem. But, with lib(module, firmwar) directory, I connected to RPi using WinSCP(file copying using SSH). You should check /lib has proper version of modules.

First prepare SD card for Raspberry PI using Raspbian “wheezy” image. (http://www.raspberrypi.org/downloads)

[After boot, raspi-config]

  1. Enable ssh  for control Raspberry PI without HDMI monitor.
  2. boot_behaviour : Don’t start desktop on boot.

[Build Raspberry kernel image including udlfb driver on Ubuntu Linux]

[Download DisplayLink X server and build]

  1. sudo apt-get install pkg-config xorg-dev
  2. git clone http://git.plugable.com/webdav/xf-video-udlfb/
  3. cd xf-video-udlfb
  4. ./configure
  5. make
  6. sudo make install

[Make 99-fbdev.conf and copy it to /usr/share/X11/xorg.conf.d/]

  • please refer to https://github.com/notro/fbtft/wiki/Framebuffer-use#x-server

Section “Device”

Identifier “myfb”

Driver “fbdev”

Option “fbdev” “/dev/fb1″

EndSection

  • Above will work fine.

[Make 10-monitor.conf file and copy it to /usr/share/X11/xorg.conf.d/]

#################################################

Section “ServerLayout”

Identifier      “Server Layout”
Screen         “DisplayLinkScreen”
EndSection
 
#################################################
 
Section “Files”
ModulePath      “/usr/lib/xorg/modules”
ModulePath      “/usr/lib/xorg/modules/drivers”
ModulePath      “/usr/local/lib/xorg/modules”
ModulePath      “/usr/local/lib/xorg/modules/drivers”
ModulePath      “/usr/local/lib”
EndSection
 
############### DisplayLink Stuff ###############
 
Section “Device”
Identifier      “DisplayLinkDevice”
Driver          “displaylink”
Option  “fbdev” “/dev/fb0″
#Option  “DPI”   “96×96″
EndSection
 
Section “Monitor”
Identifier      “DisplayLinkMonitor”
Option  “Enable”        “true”
EndSection
 
Section “Screen”
Identifier      “DisplayLinkScreen”
Device          “DisplayLinkDevice”
Monitor         “DisplayLinkMonitor”
DefaultDepth    16
SubSection “Display”
Depth   16
Modes   “1366×768″
EndSubSection
SubSection “Display”
Depth   24
Modes   “1366×768″
EndSubSection
EndSection
#################################################

[Connect AOC's USB monitor to Raspberry]

  • USB monitor has Y-type USB connectors. One is for data & power, another is for additional power.
  • For my experience, connect data & power USB connector to Raspberry PI, and connect additional power USB connector to PC/Notebook. External powered USB Hub(Belkin) does not work for me.

[Check connection status]

pi@raspberrypi ~ $ lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

Bus 001 Device 004: ID 17e9:4107 DisplayLink

pi@raspberrypi ~ $ dmesg | grep udlfb

usbcore: registered new interface driver udlfb

udlfb: DisplayLink e1649Fwu – serial #CZSC4HA018627

udlfb: vid_17e9&pid_4107&rev_0112 driver’s dlfb_data struct at cba21000

udlfb: console enable=1

udlfb: fb_defio enable=1

udlfb: shadow enable=1

udlfb: vendor descriptor length:17 data:17 5f 01 0015 05 00 01 03 00 04

udlfb: DL chip limited to 1500000 pixel modes

udlfb: allocated 4 65024 byte urbs

udlfb: 1366×768 valid mode

udlfb: DisplayLink USB device /dev/fb1 attached. 1366×768 resolution. Using 4104K framebuffer memory

[Run X11 using 'startx' on console]

  • During launch X11, screen will be abnormal state. But, after a long wait, everything will be ok.

Thank you for reading.

Raspberry PI USB

  1. BELKIN USB hub (external powered)
  2. USB keyboard

Belkin USB hub

  1. ASUS WL-330g power
  2. AOC’s monitor’s main USB connector
  3. Mouse (not appeared in this picture)

Notebook PC

  1. Raspberry PI’s main power
  2. AOC’s monitor’s sub USB connector(I think power from Belkin was unstable.)
About these ads

From → Raspberry PI

29 Comments
  1. Bosstiger permalink

    Reblogged this on Gigable – Tech Blog.

  2. Hi, Thanks for posting this. I’ve been googling my head of to find a solution. I’m going to try it asap. Just one question, are all these instructions still relevant with the new 2012-09-18-wheezy-raspbian.zip image?

    • While building kernel image for udlfb driver, the command “git clone https://github.com/raspberrypi/linux.git” downloads v3.2.27 linux kernel. And we should replace the kernel of 2012-09-18-wheezy-raspbian. So, I believe there will be no problem regardless of latest version of raspbian image. (added) It is same version with 2012-09-18-wheezy-raspbian.

      Frankly speaking, this guide is not perfect. I have tried to fix some problems(only on first time, mouse works well with X11. but now, it does not work.) but in vain.

      (added) After more tests, using HD monitor, I found that mouse and keyboard problem in X11 is nothing to do with udlfb. Something went wrong.

  3. Just before, using 2012-09-18-wheezy-raspbian image, Raspberry PI works well with AOC’s monitor. Of course, not console but X11.

    My keyboard and mouse works without problem.

    Step1) make SD card using 2012-09-18-wheezy-raspbian.img
    Step2) boot with SD card, and change boot_behaviour for console boot.
    Step3) insert SD card to PC, and copy kernel.img and lib directories made by above step([Build Raspberry kernel image including udlfb driver on Ubuntu Linux]) to root folder of SD card.
    Step4) Connect AOC’s monitor using external powered USB hub. and check the connection status of monitor using lsusb, dmesg command.
    Step5) In Rasberry PI console, follow above step([Download DisplayLink X server and build])
    Step6) make 10-monitor.inf and copy to /usr/share/X11/xorg.conf.d/
    Step7) startx &

    That’s it.

    * Not fixed problems, maybe because of my lack of knowledge.

    – Console mode boot with AOC’s monitor. -> I heard this monitor has fixed resolution 1366×768. Changing the resolution values of Config.txt didn’t work.

  4. What do you think about creating bash script on github to do all this instructions ?
    I think about buying this monitor for my raspberry pi .

  5. I copied and pasted your config file (i.e. the quotes are not the same) which created errors. People should retype all the commands above instead of copy and paste.

  6. tritro23 permalink

    DID I NEED TO USE OTHER MONITOR TO MAKE THIS ON RASPBERRY?

  7. Thanks for sharing this post. I’m using this led-monitor for better viewing

  8. can you update this? the kernels aren’t supported anymore
    thanks

    • Maybe http://elinux.org/RPi_Kernel_Compilation would be helpful. I could download latest RPi kernel(3.10.33+).

      I found my 10-monitor.conf doesn’t work perfectly. Please refer to https://github.com/notro/fbtft/wiki/Framebuffer-use#x-server. I removed my 10-monitor.conf and created /usr/share/X11/xorg.conf.d/99-fbdev.conf file.

      It’s contents are,

      Section “Device”
      Identifier “myfb”
      Driver “fbdev”
      Option “fbdev” “/dev/fb1″
      EndSection

      From https://github.com/notro/fbtft/wiki/Framebuffer-use#console, I found “con2fbmap 1 1″ can redirect console to /dev/fb1 AOC monitor. I added “con2fbmap 1 1″ to end line of /etc/profile file.

      Also, using “cd /usr/bin” and “sudo raspi-config” command, I enabled boot to Desktop. While booting, console on AOC monitor does not work perfectly, but after X-Window is launched there is no problem. If you exit X-Server, console screen will also work fine.

      Thanks.

  9. So, can this run on Raspbian?

  10. Ken permalink

    imkiyoung
    Correction: I can’t do this in the kernel instructions {make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_cutdown_defconfig}
    missing .config?

  11. maratd569 permalink

    Hi I’m a noob and just got an AOC monitor with a powered HUB, the new rasp pi in order to learn linux and have some fun.

    I plan on running Raspbian and well is it “plug and play” or will I have to go through this process.

    Thank you! (Waiting for items in the mail ^_^)

    • I think default Kenel included Raspbian may not support FrameBuffer device. So, Kernel image replacement might be needed. It is not easy to complete this procedures for newbie, so Please take time to read all comments and contents.

      • maratd569 permalink

        No offense but the post is kind of messy ^_^

        Can you please clean it up/will this work with 2014-06-20-wheezy-raspbian

  12. maratd569 permalink

    Also I am very eager to learn how linux works, i’ve been a windows “guru” for years and that’s why I’m building this RPi system.

    Thanks for the reply!

  13. maratd569 permalink

    Will connecting it to an HDMI monitor, running the “[Download DisplayLink X server and build]” part of the tutorial in terminal and then using the USB monitor work?

    I don’t see a reason to compile the whole OS over again

    • As you said, this article needs to be refined. I’ll rewrite later.

      Without running X window, AOC USB monitor works. But Kernel compilation is required for frame buffer support.

      • maratd569 permalink

        I just want it to be say a mobile desktop environment, by xwindow you mean xorg?
        I’ve found some sort of “wolfson modified kernal” here “2014-01-07-wheezy-raspbianW.zip”

        I need a desktop environment and the USB aoc to be my main monitor, if you’re able to upload a firmware/os/dist with everything setup “out of the box” i will be forever grateful.

        Thank you young!

        If anything would compiling in vmware work? I tried to compile router firmware in fedora 6 (tutorial) but had 100 issues and gave up, i just want to get the monitor working and from there learn linux [failing at modding my router made me want to learn the linux system more than anything] but spending time to setup a monitor is going to suck balls.

        Thank you!

      • I compiled it on Ubuntu. For now I’m so busy I can’t help you for next 3 or 5 days. If you once understand the procedure, it’s not difficult. Of course for the first time it will take several hours.

  14. maratd569 permalink

    I’m waiting for my items in the mail anyway, if you can help me out and upload a rasbian that works with the aoc monitor “out the box” it would be awesome, and in 3-5 days I should have my rPI and peripherals so best of luck to both of us!

  15. maratd569 permalink

    Just a little update, I got the monitor in the mail (still waiting on my RPi) and regarding the power issues, I have a self powered USB hub (bought it specifically for my RPi) and via the hub the monitor is able to function at 100% via 1 USB port (The monitor has 2 USB ports if the USB slots incase the device is unable to feed it enough power) but since my hub goes into an outlet power and usb is not an issue ^_^

    Time to play in ubuntu and compile some kernels (help me /trapped in dungeon voice)

Trackbacks & Pingbacks

  1. Using AOC USB monitor on Ubuntu | WyldePlayground.netWyldePlayground.net -
  2. Using AOC USB monitor on Ubuntu | Ubuntu InfoUbuntu Info
  3. AOC E1649FWU 16″ USB-Powered Portable with Raspberry Pi | imkiyoung

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: