Video resolution on Apalis TK1

Good morning.

I am trying to setup my TK1 for a dual display LVDS setup but I can’t setup the resolution in any way listed here:
Display Output
If I run fbset I get this:

fbset

mode "800x600-86"
    # D: 55.002 MHz, H: 53.713 kHz, V: 86.079 Hz
    geometry 800 600 800 1200 32
    timings 18181 112 32 3 17 80 4
    hsync high
    vsync high
    rgba 8/0,8/8,8/16,8/24
endmode

But I can only see the startup console with the kernel dmesg but no LXDE. The second display is powered on but remains black.

cat /proc/cmdline 
lp0_vec=2064@0xf46ff000 core_edp_mv=1150 core_edp_ma=4000 usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 ip=off root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait igb_mac=00:14:2d:2b:12:fd consoleblank=0 no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,0 video=fb0:800x480-16@60 video=fb1:1024x600-16@60

I tried with both tegrafb* and fb* in uboot settings, I have flashed from scratch the 2.6 beta Image.

Suggestions?

Please explain your HW setup in more details. How are displays connected?
tegrafb0 is preferred, to use LVDS in LXDE please remove line:
/usr/bin/xrandr --output LVDS-0 --off
from /etc/xdg/lxsession/LXDE/autostart

Hi Dominik, thanks for your reply. I will try in a few moments. I have a 7" 800x480 Display on LVDS port 0 and a 10" 1024x600 Display on LVDS1 port but I can’t set the correct resolution on the first one and show something different from a black screen from the second one.

I add the xrandr result:

root@apalis-tk1:~# xrandr -q      
Can't open display :0.0

What do you mean by LVDS1 port?

Sorry, my mistake. The ports are LVDSA instead LVDS0 and LVDSB instead LVDS1

There is no LVDSB or LVDS1 on Apalis TK1.
From our product page:
LVDS (1x 1920x1200x24bpp Single)

I was reading on the TK1 datasheet. I didn’t see “not available” under LVDSB.

What about changing the resolution on LVDSA?

Hi Dominik, then, how can I set the video resolution for LVDSA? Modify uboot arguments doesn’t work.

root@apalis-tk1:~# cat /proc/cmdline 
lp0_vec=2064@0xf46ff000 core_edp_mv=1150 core_edp_ma=4000 usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 ip=off root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait igb_mac=00:14:2d:2b:13:04 consoleblank=0 no_console_suspend=1 console=tty1 console=ttyS0,115200n8 debug_uartport=lsport,0 video=tegrafb0:1024x600-16@60

root@apalis-tk1:~# fbset
    mode "800x600-86"
        # D: 55.002 MHz, H: 53.713 kHz, V: 86.079 Hz
        geometry 800 600 800 1200 32
        timings 18181 112 32 3 17 80 4
        hsync high
        vsync high
        rgba 8/0,8/8,8/16,8/24
    endmode

On Apalis TK1 the frame buffer boot configuration integration via kernel command line is still pending and the LVDS configuration is currently hard-coded here.

Hi marcel, thank you.
I removed the line /usr/bin/xrandr --output LVDS-0 --off from /etc/xdg/lxsession/LXDE/autostart but with the image just flashed I can’t manage to start the window manager. I still get a black console and I cannot type anything, I can only access from SSH.
I still get

xrandr
Can't open display :0.0

Hello Dominik,

I still can’t get X11 to work. This is Xorg.0.log file. Fresh BSP installation.

root@apalis-tk1:~#  cat /var/log/Xorg.0.log
[3577290.303] 
X.Org X Server 1.17.2
Release Date: 2015-06-16
[3577290.303] X Protocol Version 11, Revision 0
[3577290.303] Build Operating System: Linux 4.5.5-201.fc23.x86_64 x86_64 
[3577290.303] Current Operating System: Linux apalis-tk1 3.10.40-gbd83e0f-dirty #3 SMP PREEMPT Fri Aug 26 14:43:29 CEST 2016 armv7l
[3577290.303] Kernel command line: lp0_vec=2064@0xf46ff000 core_edp_mv=1150 core_edp_ma=4000 usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 ip=off root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait igb_mac=00:14:2d:2b:13:04 consoleblank=0 no_console_suspend=1 console=tty1 console=ttyS0,115200n8 debug_uartport=lsport,0 video=tegrafb0:1024x600-16@60
[3577290.303] Build Date: 24 June 2016  04:59:16PM
[3577290.303]  
[3577290.303] Current version of pixman: 0.32.6
[3577290.303] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[3577290.303] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[3577290.304] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug 29 07:35:05 2016
[3577290.304] (==) Using config file: "/etc/X11/xorg.conf"
[3577290.305] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[3577290.305] (==) No Layout section.  Using the first Screen section.
[3577290.305] (==) No screen section available. Using defaults.
[3577290.305] (**) |-->Screen "Default Screen Section" (0)
[3577290.305] (**) |   |-->Monitor "<default monitor>"
[3577290.306] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[3577290.306] (**) |   |-->Device "Tegra0"
[3577290.306] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[3577290.306] (==) Automatically adding devices
[3577290.306] (==) Automatically enabling devices
[3577290.306] (==) Automatically adding GPU devices
[3577290.306] (WW) The directory "/usr/share/fonts/X11/TTF/" does not exist.
[3577290.306] 	Entry deleted from font path.
[3577290.306] (WW) The directory "/usr/share/fonts/X11/OTF/" does not exist.
[3577290.306] 	Entry deleted from font path.
[3577290.306] (WW) The directory "/usr/share/fonts/X11/Type1/" does not exist.
[3577290.306] 	Entry deleted from font path.
[3577290.306] (==) FontPath set to:
	/usr/share/fonts/X11/misc/,
	/usr/share/fonts/X11/100dpi/,
	/usr/share/fonts/X11/75dpi/
[3577290.306] (==) ModulePath set to "/usr/lib/xorg/modules"
[3577290.306] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[3577290.306] (II) Loader magic: 0x141d80
[3577290.306] (II) Module ABI versions:
[3577290.307] 	X.Org ANSI C Emulation: 0.4
[3577290.307] 	X.Org Video Driver: 19.0
[3577290.307] 	X.Org XInput driver : 21.0
[3577290.307] 	X.Org Server Extension : 9.0
[3577290.309] (II) no primary bus or device found
[3577290.309] (WW) "dri" will not be loaded unless you've specified it to be loaded elsewhere.
[3577290.309] (II) "glx" will be loaded by default.
[3577290.309] (II) LoadModule: "extmod"
[3577290.309] (II) Module "extmod" already built-in
[3577290.309] (II) LoadModule: "glx"
[3577290.310] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[3577290.311] (EE) Failed to load /usr/lib/xorg/modules/extensions/libglx.so: libnvidia-tls.so.21.4: cannot open shared object file: No such file or directory
[3577290.311] (II) UnloadModule: "glx"
[3577290.311] (II) Unloading glx
[3577290.311] (EE) Failed to load module "glx" (loader failed, 7)
[3577290.311] (II) LoadModule: "nvidia"
[3577290.311] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[3577290.312] (EE) Failed to load /usr/lib/xorg/modules/drivers/nvidia_drv.so: libnvidia-rmapi-tegra.so.21.4: cannot open shared object file: No such file or directory
[3577290.312] (II) UnloadModule: "nvidia"
[3577290.312] (II) Unloading nvidia
[3577290.312] (EE) Failed to load module "nvidia" (loader failed, 7)
[3577290.312] (EE) No drivers available.
[3577290.312] (EE) 
Fatal server error:
[3577290.312] (EE) no screens found(EE) 
[3577290.312] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[3577290.312] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[3577290.312] (EE) 

Any advice?

Yes, or just doing a manual ldconfig helps. Occasionally there seems to be some sort of a race condition as it should automatically do this upon first boot.

I solved creating symlinks in lib folder

ln -s /usr/lib/arm-linux-gnueabihf/tegra/* /lib/

Thank you marcel, next step is get edt-ft5x06 touch driver working.
I’ll open another topic for this.

Is this still an issue? If so what does the following look like?

root@apalis-tk1:~# cat /etc/xdg/lxsession/LXDE/autostart
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
#/usr/bin/xrandr --output LVDS-0 --off
root@apalis-tk1:~# systemctl status -l lxdm
● lxdm.service - LXDE Display Manager
   Loaded: loaded (/usr/lib/systemd/system/lxdm.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2016-08-31 11:17:04 UTC; 22s ago
 Main PID: 503 (lxdm-binary)
   CGroup: /system.slice/lxdm.service
           ├─503 /usr/sbin/lxdm-binary
           └─522 /usr/bin/X -s 0 :0 vt07 -nolisten tcp -novtswitch

Aug 31 11:17:04 apalis-tk1 systemd[1]: Started LXDE Display Manager.
Aug 31 11:17:06 apalis-tk1 lxdm-session[698]: pam_unix(lxdm:session): session opened for user root by (uid=0)
root@apalis-tk1:~# echo $DISPLAY
:0.0

I had a similar problem but after adding the symlinks gstreamer seems to have some issues by displaying warning messages like the following ones:

(gst-launch-1.0:9620): GStreamer-WARNING **: Invalid caps feature name: \u0010
(gst-launch-1.0:9620): GStreamer-WARNING **: Invalid caps feature name: 0\u000c2\xab\xa0\u0012\u0011

Does anyone else have experienced the same or does anyone have an explanation why this is happening?

The C program I run basically reads a rtsp videostream, does some image processing using opencv and displays the result using ximagesink. The module has been shutdown / restarted several times without any issues until last time: after powering on the Apalis TK1 module the monitor showed only the last lines of the dmesg.
Searching for possible causes/solution brought me to this post, which fixed the issue of not displaying the graphical interface (lxdm) but introduced the above mentioned gstreamer problem.

Environment:

Apalis-TK1 module with preloaded 2.6 Beta

Installed following libs / dependencies:

  1. opkg install libopencv-core2.4 libopencv-imgproc2.4 libopencv-video2.4 libopencv-highgui2.4
  2. opkg install gstreamer1.0-plugins-good-rtsp

Hijacking an old thread like that is not recommended. Please create a new question. Thanks!