This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM1808 - Chromium and firefox browsers wouldn't display on the touch screen

Other Parts Discussed in Thread: AM1808

Hello all,

I installed iceweasel (firefox) on the AM1808 board. But when I ran the application, it said "No Display Specified". And nothing displayed on the touch screen. Does anyone know how to address this problem?

EDIT: I also installed Chromium-browser, and the error message I got when I tried to run it was "(chromium-browser:3633): Gtk-WARNING **: cannot open display"

 

Following is my setup:

OS: Ubuntu 10.04 LTS
U-Boot: 2009.11 (Mar 25 2010 - 14:39:42)
Kernal image name: Linux-2.6.33-rc4
Kernal image type: ARM Linux Kernel Image (uncompressed)
Using Matrix Application Launcher p1

 

Here is more detail regarding the problem I encountered:
I have the file system on a SD card. I ran apt-get install locally on the board to install the iceweasel (firefox) browser. Then I edited the Matrix Application Launcher so that one icon is pointed to the iceweasel application. I clicked the icon to launch the iceweasel browser, but all it gave me was "No Display Specified". My question is how do I 'specify the display' so that iceweasel browser can be displayed on the touch screen.

EDIT: I also installed Chromium-browser, and the error message I got when I tried to run it was "(chromium-browser:3633): Gtk-WARNING **: cannot open display"

Thank you!

Kevin

  • Any suggestions? Please.

  • Never tried that on an AM18xx system. Are you sure you running an X server and it is providing the display?

    regards.

  • Thanks for the replay, Frank!

    The board uses Matrix GUI to provide the display. I ran a Hello World, and it displayed fine.

    In the Matrix User Guide, is says:

    "Any application can be launched by Matrix GUI"

    "Matrix GUI uses the graphics display layer. If a launched application also uses the graphics display layer there will be a conflict." (I wonder if it's the case when running Chromium and firefox)

     

    I did look into the X server, and it seemed the board does not have it installed. I'll try to install X server on the board, and see what happens.

     

  • export DISPLAY=0:0

     

    will solve your display issue, but I would not advise running full Firefox on AM1808, unless it is for a very specific use-case.

     

  • Thanks, Prabindh!

    Does 'export DISPLAY=0:0' work on Matrix GUI? I had tried this, but it didn't work for me. I wonder if I need to have X server on the board in order for this to work.

    Currently, I only have Matrix GUI on the board, and still trying to get X server to work.

  • you are right - xserver is needed. Any reason you are not using the prebuilt narcissus images that include all of this ?

    http://narcissus.angstrom-distribution.org/

     

  • Prabindh, thank you so much for this great info!!

    I built a rootfs image with Narcissus, and the image works fine on the board. However, the xserver still doesn't seem to work.

    Here are the settings that I used to build the rootfs image on Narcissus:

    Base setting:

              Select the machine you want to build your rootfs image for: am180x-evm

              Choose your image name: random

              Choose the complexity of the options below: simple

    User environment selection:         X11

    X11 Desktop Environments:          Xfce 4.6

    Additional packages selection:     Firefox

    After the system boots, I enter the following two commands:

              $ export DISPLAY=0:0

              $ firefox

    I got 'Error: cannot open display: 0:0'

    I then enter (to see if the x server is running)

              $ startxfce4

    I got

    ---------------------------------------------------------------------------------------

    /usr/bin/startxfce4: X server already running on display 0:0
    /etc/xdg/xfce4/xinitrc: line 97: xrdb: not found

    (xfce4-session:1840): Gtk-WARNING **: cannot open display: 0:0

    ---------------------------------------------------------------------------------------

     

    If I enter the following command right after system boots (without 'export DISPLAY=0:0')

              $ startxfce4

    I got:

    ------------------------------------------------------------------------------------

    /usr/bin/startxfce4: Starting X server

    xinit: unable to run server "X": No such file or directory
    Use the -- option, or make sure that /usr/bin is in your path and
    that "X" is a program or a link to the right type of server
    for your display.  Possible server names include:

        Xorg        Common X server for most displays
        Xvfb        Virtual frame buffer
        Xfake       kdrive-based virtual frame buffer
        Xnest       X server nested in a window on another X server
        Xephyr      kdrive-based nested X server
        Xvnc        X server accessed over VNC's RFB protocol
        Xdmx        Distributed Multi-head X server

    xinit: giving up
    xinit: unable to connect to X server: No such file or directory
    xinit: server error

    ------------------------------------------------------------------------------------

     Any idea what might be causing all this?

    Thank you!

     

  • The problem was for some reason Xorg was not included in the rootfs image created by Narcissus (even though I selected X11 as user environment)

    I then installed Xorg, but when I try to run 'X - configure', it gave me the following errors.

    ------------------------------------------------------------------------------------------

    ipv6: disagrees about version of symbol module_layout
    _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
    _XSERVTransOpen: transport open failed for inet6/am180x-evm:0
    _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

    X.Org X Server 1.7.4
    Release Date: 2010-01-08
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.33.2 x86_64
    Current Operating System: Linux am180x-evm 2.6.33-rc4 #1 PREEMPT Thu Mar 25 15:06:29 IST 2010 armv5tejl
    Kernel command line: console=ttyS2,115200n8 rw noinitrd root=/dev/mmcblk0p1 rootfstype=ext2 rootwait ip=off
    Build Date: 22 September 2010  07:54:54AM
     
    Current version of pixman: 0.21.6
            Before reporting problems, check http://wiki.x.org
            to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
            (++) from command line, (!!) notice, (II) informational,
            (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul  6 21:11:40 2011
    Missing output drivers.  Configuration failed.

    ------------------------------------------------------------------------------------------

    What could be the problems?

    Thank you!

  • X11 Desktop Environments: GNOME works!

    Thanks for everyone's help here!