2 2
Patrice Déry

Odroid xu4 Webgl

Recommended Posts

Sorry for not topic, but why you get odroid for desktop when you can buy atom x-64 mini PC with no problem for desktop task?

My self have raspberry, orangepiplus2e and z83-II and for desktop there is not color.

Share this post


Link to post
Share on other sites
On 24/2/2018 at 1:31 AM, Patrice Déry said:

Hi, I've just ordered a Xu4 to use it as a desktop and I have never used armbian before. Is webgl is running fine in chromium browser? I want to run Construct 3 on it. Thanks in advance!

I have a HC1 (a kind of a headless XU4), so I can't test WebGL. It should work if you install these two packages:

http://deb.odroid.in/5422-s/pool/main/m/mali-x11/mali-x11_20170718-r17p0-20503ff-3_armhf.deb

http://deb.odroid.in/5422-s/pool/main/x/xf86-video-armsoc/xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb

 

And then replace /etc/X11/xorg.conf.d/(whatever-is-the-name-of-the-conf-file) with the following:

Section "Device"
	Identifier	"Mali FBDEV"
	Driver		"armsoc"
	Option		"fbdev"			"/dev/fb0"
	Option		"Fimg2DExa"		"false"
	Option		"DRI2"			"true"
	Option		"DRI2_PAGE_FLIP"	"false"
	Option		"DRI2_WAIT_VSYNC"	"true"
#	Option		"Fimg2DExaSolid"	"false"
#	Option		"Fimg2DExaCopy"		"false"
#	Option		"Fimg2DExaComposite"	"false"
        Option          "SWcursorLCD"           "false"
EndSection

Section "Screen"
	Identifier 	"DefaultScreen"
	Device     	"Mali FBDEV"
	DefaultDepth 	24
EndSection

Maybe you can play with the commented-out lines, and see how it affects performance. Let us know whether it works.

Share this post


Link to post
Share on other sites

I've tried it but the system doesn't boot to the desktop anymore. It is stuck to the terminal screen displaying session login and keeps rebooting. I don't know if I've done something wrong or if it's because I'm using the mainline kernel build. Thanks in advance! 

Share this post


Link to post
Share on other sites

This is after a clean intallation with default settings:

 

http://ix.io/Vrr

Spoiler

[    10.324] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[    10.324] X Protocol Version 11, Revision 0
[    10.324] Build Operating System: Linux 4.4.0-97-generic armv7l Ubuntu
[    10.324] Current Operating System: Linux odroidxu4 4.9.71-odroidxu4 #5 SMP PREEMPT Mon Jan 22 18:25:22 CET 2018 armv7l
[    10.324] Kernel command line: console=tty1 console=ttySAC2,115200n8 consoleblank=0 loglevel=1 panic=10 root=UUID=ee4a735b-05ef-4cdd-851c-95d05f7bcb40 rootfstype=ext4 rootwait rw  smsc95xx.macaddr=00:1e:06:61:7a:55 governor=performance hdmi_tx_amp_lvl=31 hdmi_tx_lvl_ch0=3 hdmi_tx_lvl_ch1=3 hdmi_tx_lvl_ch2=3 hdmi_tx_emp_lvl=6 hdmi_clk_amp_lvl=31 hdmi_tx_res=0 HPD=true vout=hdmi usb-storage.quirks=  s5p_mfc.mem=16M
[    10.324] Build Date: 13 October 2017  01:59:44PM
[    10.324] xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support)
[    10.324] Current version of pixman: 0.33.6
[    10.324]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    10.324] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    10.325] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Mar 11 09:44:36 2018
[    10.331] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    10.331] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    10.346] (==) No Layout section.  Using the first Screen section.
[    10.346] (==) No screen section available. Using defaults.
[    10.346] (**) |-->Screen "Default Screen Section" (0)
[    10.346] (**) |   |-->Monitor "<default monitor>"
[    10.346] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    10.346] (**) Option "BlankTime" "0"
[    10.346] (**) Option "StandbyTime" "0"
[    10.346] (**) Option "SuspendTime" "0"
[    10.346] (**) Option "OffTime" "0"
[    10.346] (==) Automatically adding devices
[    10.346] (==) Automatically enabling devices
[    10.346] (==) Automatically adding GPU devices
[    10.346] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    10.358] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    10.358]     Entry deleted from font path.
[    10.358] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    10.358]     Entry deleted from font path.
[    10.358] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    10.358]     Entry deleted from font path.
[    10.358] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[    10.358]     Entry deleted from font path.
[    10.358] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    10.358]     Entry deleted from font path.
[    10.358] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    10.358]     Entry deleted from font path.
[    10.358] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    built-ins
[    10.358] (==) ModulePath set to "/usr/lib/arm-linux-gnueabihf/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[    10.358] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    10.359] (II) Loader magic: 0x60ff70
[    10.359] (II) Module ABI versions:
[    10.359]     X.Org ANSI C Emulation: 0.4
[    10.359]     X.Org Video Driver: 20.0
[    10.359]     X.Org XInput driver : 22.1
[    10.359]     X.Org Server Extension : 9.0
[    10.360] (++) using VT number 7

[    10.360] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    10.362] (II) xfree86: Adding drm device (/dev/dri/card0)
[    10.362] (II) no primary bus or device found
[    10.362]     falling back to /sys/devices/platform/exynos-drm/drm/card0
[    10.362] (II) LoadModule: "glx"
[    10.369] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    10.502] (II) Module glx: vendor="X.Org Foundation"
[    10.502]     compiled for 1.18.4, module version = 1.0.0
[    10.502]     ABI class: X.Org Server Extension, version 9.0
[    10.502] (==) AIGLX enabled
[    10.503] (==) Matched modesetting as autoconfigured driver 0
[    10.503] (==) Matched fbdev as autoconfigured driver 1
[    10.503] (==) Assigned the driver to the xf86ConfigLayout
[    10.503] (II) LoadModule: "modesetting"
[    10.503] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    10.520] (II) Module modesetting: vendor="X.Org Foundation"
[    10.520]     compiled for 1.18.4, module version = 1.18.4
[    10.520]     Module class: X.Org Video Driver
[    10.520]     ABI class: X.Org Video Driver, version 20.0
[    10.520] (II) LoadModule: "fbdev"
[    10.520] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    10.529] (II) Module fbdev: vendor="X.Org Foundation"
[    10.529]     compiled for 1.18.1, module version = 0.4.4
[    10.529]     Module class: X.Org Video Driver
[    10.529]     ABI class: X.Org Video Driver, version 20.0
[    10.529] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    10.529] (II) FBDEV: driver for framebuffer: fbdev
[    10.546] (II) modeset(0): using drv /dev/dri/card0
[    10.546] (WW) Falling back to old probe method for fbdev
[    10.546] (II) Loading sub module "fbdevhw"
[    10.546] (II) LoadModule: "fbdevhw"
[    10.547] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    10.551] (II) Module fbdevhw: vendor="X.Org Foundation"
[    10.551]     compiled for 1.18.4, module version = 0.0.2
[    10.551]     ABI class: X.Org Video Driver, version 20.0
[    10.551] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    10.552] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    10.552] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    10.552] (==) modeset(0): RGB weight 888
[    10.552] (==) modeset(0): Default visual is TrueColor
[    10.552] (II) Loading sub module "glamoregl"
[    10.552] (II) LoadModule: "glamoregl"
[    10.552] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    10.745] (II) Module glamoregl: vendor="X.Org Foundation"
[    10.745]     compiled for 1.18.4, module version = 1.0.0
[    10.745]     ABI class: X.Org ANSI C Emulation, version 0.4
[    10.745] (II) glamor: OpenGL accelerated X.org driver based.
[    11.945] (II) glamor: EGL version 1.4 (DRI2):
[    11.945] EGL_MESA_drm_image required.
[    11.950] (EE) modeset(0): glamor initialization failed
[    11.950] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[    11.995] (II) modeset(0): Output HDMI-1 has no monitor section
[    12.040] (II) modeset(0): EDID for output HDMI-1
[    12.040] (II) modeset(0): Manufacturer: TSB  Model: 206  Serial#: 16843009
[    12.040] (II) modeset(0): Year: 2014  Week: 1
[    12.040] (II) modeset(0): EDID Version: 1.3
[    12.040] (II) modeset(0): Digital Display Input
[    12.040] (II) modeset(0): Max Image Size [cm]: horiz.: 160  vert.: 90
[    12.040] (II) modeset(0): Gamma: 2.20
[    12.041] (II) modeset(0): No DPMS capabilities specified
[    12.041] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    12.041] (II) modeset(0): First detailed timing is preferred mode
[    12.041] (II) modeset(0): redX: 0.640 redY: 0.335   greenX: 0.285 greenY: 0.605
[    12.041] (II) modeset(0): blueX: 0.150 blueY: 0.060   whiteX: 0.280 whiteY: 0.290
[    12.041] (II) modeset(0): Supported established timings:
[    12.041] (II) modeset(0): 640x480@60Hz
[    12.041] (II) modeset(0): 800x600@60Hz
[    12.041] (II) modeset(0): 1024x768@60Hz
[    12.041] (II) modeset(0): Manufacturer's mask: 0
[    12.041] (II) modeset(0): Supported standard timings:
[    12.041] (II) modeset(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[    12.041] (II) modeset(0): #1: hsize: 1360  vsize 765  refresh: 60  vid: 49291
[    12.041] (II) modeset(0): Supported detailed timing:
[    12.041] (II) modeset(0): clock: 148.5 MHz   Image Size:  1600 x 900 mm
[    12.041] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    12.041] (II) modeset(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    12.041] (II) modeset(0): Supported detailed timing:
[    12.041] (II) modeset(0): clock: 85.5 MHz   Image Size:  1600 x 900 mm
[    12.041] (II) modeset(0): h_active: 1360  h_sync: 1424  h_sync_end 1536 h_blank_end 1792 h_border: 0
[    12.041] (II) modeset(0): v_active: 768  v_sync: 771  v_sync_end 777 v_blanking: 795 v_border: 0
[    12.041] (II) modeset(0): Monitor name: TOSHIBA-TV
[    12.041] (II) modeset(0): Ranges: V min: 23 V max: 61 Hz, H min: 15 H max: 68 kHz, PixClock max 155 MHz
[    12.041] (II) modeset(0): Supported detailed timing:
[    12.041] (II) modeset(0): clock: 74.2 MHz   Image Size:  1600 x 900 mm
[    12.041] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    12.041] (II) modeset(0): v_active: 540  v_sync: 542  v_sync_end 547 v_blanking: 562 v_border: 0
[    12.041] (II) modeset(0): Supported detailed timing:
[    12.042] (II) modeset(0): clock: 74.2 MHz   Image Size:  1600 x 900 mm
[    12.042] (II) modeset(0): h_active: 1280  h_sync: 1390  h_sync_end 1430 h_blank_end 1650 h_border: 0
[    12.042] (II) modeset(0): v_active: 720  v_sync: 725  v_sync_end 730 v_blanking: 750 v_border: 0
[    12.042] (II) modeset(0): Supported detailed timing:
[    12.042] (II) modeset(0): clock: 27.0 MHz   Image Size:  1200 x 900 mm
[    12.042] (II) modeset(0): h_active: 720  h_sync: 736  h_sync_end 798 h_blank_end 858 h_border: 0
[    12.042] (II) modeset(0): v_active: 480  v_sync: 489  v_sync_end 495 v_blanking: 525 v_border: 0
[    12.042] (II) modeset(0): Supported detailed timing:
[    12.042] (II) modeset(0): clock: 27.0 MHz   Image Size:  1200 x 900 mm
[    12.042] (II) modeset(0): h_active: 1440  h_sync: 1478  h_sync_end 1602 h_blank_end 1716 h_border: 0
[    12.042] (II) modeset(0): v_active: 240  v_sync: 244  v_sync_end 247 v_blanking: 262 v_border: 0
[    12.042] (II) modeset(0): Number of EDID sections to follow: 1
[    12.042] (II) modeset(0): EDID (in hex):
[    12.042] (II) modeset(0):     00ffffffffffff005262060201010101
[    12.042] (II) modeset(0):     0118010380a05a780af09da355499b26
[    12.042] (II) modeset(0):     0f474a21080081808bc0010101010101
[    12.042] (II) modeset(0):     010101010101023a801871382d40582c
[    12.042] (II) modeset(0):     450040846300001e662150b051001b30
[    12.042] (II) modeset(0):     4070360040846300001e000000fc0054
[    12.042] (II) modeset(0):     4f53484942412d54560a2020000000fd
[    12.042] (II) modeset(0):     00173d0f440f000a2020202020200192
[    12.042] (II) modeset(0):     02032b714a9001020304050607202226
[    12.042] (II) modeset(0):     090707110718830100006c030c001000
[    12.042] (II) modeset(0):     382dc015151f1fe3050301011d801871
[    12.042] (II) modeset(0):     1c1620582c250040846300009e011d00
[    12.042] (II) modeset(0):     7251d01e206e28550040846300001e8c
[    12.042] (II) modeset(0):     0ad08a20e02d10103e9600b084430000
[    12.042] (II) modeset(0):     188c0aa01451f01600267c4300b08443
[    12.042] (II) modeset(0):     000098000000000000000000000000f7
[    12.042] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    12.043] (II) modeset(0): Printing probed modes for output HDMI-1
[    12.043] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    12.043] (II) modeset(0): Modeline "1920x1080i"x60.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[    12.043] (II) modeset(0): Modeline "1920x1080"x30.0   74.25  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.8 kHz e)
[    12.043] (II) modeset(0): Modeline "1920x1080"x24.0   74.25  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[    12.043] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    12.043] (II) modeset(0): Modeline "1360x768"x59.8   84.75  1366 1431 1567 1776  768 771 781 798 -hsync +vsync (47.7 kHz)
[    12.043] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    12.043] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    12.043] (II) modeset(0): Modeline "1440x480i"x59.9   27.00  1440 1478 1602 1716  480 488 494 525 interlace -hsync -vsync (15.7 kHz e)
[    12.043] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    12.043] (II) modeset(0): Modeline "720x480"x60.0   27.03  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    12.043] (II) modeset(0): Modeline "720x480"x59.9   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    12.043] (II) modeset(0): Modeline "640x480"x60.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    12.043] (II) modeset(0): Output HDMI-1 connected
[    12.043] (II) modeset(0): Using exact sizes for initial modes
[    12.043] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +0+0
[    12.043] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[    12.043] (==) modeset(0): DPI set to (96, 96)
[    12.043] (II) Loading sub module "fb"
[    12.043] (II) LoadModule: "fb"
[    12.044] (II) Loading /usr/lib/xorg/modules/libfb.so
[    12.049] (II) Module fb: vendor="X.Org Foundation"
[    12.049]     compiled for 1.18.4, module version = 1.0.0
[    12.049]     ABI class: X.Org ANSI C Emulation, version 0.4
[    12.049] (II) UnloadModule: "fbdev"
[    12.049] (II) Unloading fbdev
[    12.049] (II) UnloadSubModule: "fbdevhw"
[    12.049] (II) Unloading fbdevhw
[    12.049] (==) Depth 24 pixmap format is 32 bpp
[    12.062] (==) modeset(0): Backing store enabled
[    12.062] (==) modeset(0): Silken mouse enabled
[    12.065] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    12.065] (==) modeset(0): DPMS enabled
[    12.068] (--) RandR disabled
[    12.090] (II) SELinux: Disabled on system
[    12.093] (II) AIGLX: Screen 0 is not DRI2 capable
[    12.093] (EE) AIGLX: reverting to software rendering
[    12.100] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    12.102] (II) AIGLX: Loaded and initialized swrast
[    12.102] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    12.113] (II) modeset(0): Setting screen physical size to 508 x 285
[    12.410] (II) config/udev: Adding input device gpio_keys: (/dev/input/event0)
[    12.410] (**) gpio_keys:: Applying InputClass "evdev keyboard catchall"
[    12.410] (II) LoadModule: "evdev"
[    12.411] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    12.420] (II) Module evdev: vendor="X.Org Foundation"
[    12.420]     compiled for 1.18.1, module version = 2.10.1
[    12.420]     Module class: X.Org XInput Driver
[    12.420]     ABI class: X.Org XInput driver, version 22.1
[    12.420] (II) Using input driver 'evdev' for 'gpio_keys:'
[    12.420] (**) gpio_keys:: always reports core events
[    12.420] (**) evdev: gpio_keys:: Device: "/dev/input/event0"
[    12.420] (--) evdev: gpio_keys:: Vendor 0x1 Product 0x1
[    12.420] (--) evdev: gpio_keys:: Found keys
[    12.420] (II) evdev: gpio_keys:: Configuring as keyboard
[    12.420] (**) Option "config_info" "udev:/sys/devices/platform/gpio_keys:/input/input0/event0"
[    12.420] (II) XINPUT: Adding extended input device "gpio_keys:" (type: KEYBOARD, id 6)
[    12.420] (**) Option "xkb_rules" "evdev"
[    12.420] (**) Option "xkb_model" "pc105"
[    12.420] (**) Option "xkb_layout" "us"
[    12.426] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event3)
[    12.426] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
[    12.426] (II) Using input driver 'evdev' for 'ADS7846 Touchscreen'
[    12.426] (**) ADS7846 Touchscreen: always reports core events
[    12.426] (**) evdev: ADS7846 Touchscreen: Device: "/dev/input/event3"
[    12.426] (--) evdev: ADS7846 Touchscreen: Vendor 0 Product 0
[    12.426] (--) evdev: ADS7846 Touchscreen: Found absolute axes
[    12.426] (--) evdev: ADS7846 Touchscreen: Found x and y absolute axes
[    12.426] (--) evdev: ADS7846 Touchscreen: Found absolute touchscreen
[    12.426] (II) evdev: ADS7846 Touchscreen: Configuring as touchscreen
[    12.426] (**) evdev: ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5
[    12.426] (**) evdev: ADS7846 Touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    12.426] (**) Option "config_info" "udev:/sys/devices/platform/soc:/12d30000.spi:/spi_master/spi1/spi1.1/input/input3/event3"
[    12.426] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 7)
[    12.426] (II) evdev: ADS7846 Touchscreen: initialized for absolute axes.
[    12.427] (**) ADS7846 Touchscreen: (accel) keeping acceleration scheme 1
[    12.427] (**) ADS7846 Touchscreen: (accel) acceleration profile 0
[    12.427] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
[    12.427] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
[    12.428] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse1)
[    12.429] (II) No input driver specified, ignoring this device.
[    12.429] (II) This device may have been added with another device file.
[    12.432] (II) config/udev: Adding input device Telink Wireless Receiver (/dev/input/event1)
[    12.432] (**) Telink Wireless Receiver: Applying InputClass "evdev pointer catchall"
[    12.432] (**) Telink Wireless Receiver: Applying InputClass "evdev keyboard catchall"
[    12.433] (II) Using input driver 'evdev' for 'Telink Wireless Receiver'
[    12.433] (**) Telink Wireless Receiver: always reports core events
[    12.433] (**) evdev: Telink Wireless Receiver: Device: "/dev/input/event1"
[    12.433] (--) evdev: Telink Wireless Receiver: Vendor 0x248a Product 0xda
[    12.433] (--) evdev: Telink Wireless Receiver: Found 9 mouse buttons
[    12.433] (--) evdev: Telink Wireless Receiver: Found scroll wheel(s)
[    12.433] (--) evdev: Telink Wireless Receiver: Found relative axes
[    12.433] (--) evdev: Telink Wireless Receiver: Found x and y relative axes
[    12.433] (--) evdev: Telink Wireless Receiver: Found absolute axes
[    12.433] (II) evdev: Telink Wireless Receiver: Forcing absolute x/y axes to exist.
[    12.433] (--) evdev: Telink Wireless Receiver: Found keys
[    12.433] (II) evdev: Telink Wireless Receiver: Configuring as mouse
[    12.433] (II) evdev: Telink Wireless Receiver: Configuring as keyboard
[    12.433] (II) evdev: Telink Wireless Receiver: Adding scrollwheel support
[    12.433] (**) evdev: Telink Wireless Receiver: YAxisMapping: buttons 4 and 5
[    12.433] (**) evdev: Telink Wireless Receiver: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    12.433] (**) Option "config_info" "udev:/sys/devices/platform/soc:/soc:usb3-0:/12000000.dwc3:/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:248A:00DA.0001/input/input1/event1"
[    12.433] (II) XINPUT: Adding extended input device "Telink Wireless Receiver" (type: KEYBOARD, id 8)
[    12.433] (**) Option "xkb_rules" "evdev"
[    12.433] (**) Option "xkb_model" "pc105"
[    12.433] (**) Option "xkb_layout" "us"
[    12.434] (II) evdev: Telink Wireless Receiver: initialized for relative axes.
[    12.434] (WW) evdev: Telink Wireless Receiver: ignoring absolute axes.
[    12.434] (**) Telink Wireless Receiver: (accel) keeping acceleration scheme 1
[    12.434] (**) Telink Wireless Receiver: (accel) acceleration profile 0
[    12.434] (**) Telink Wireless Receiver: (accel) acceleration factor: 2.000
[    12.434] (**) Telink Wireless Receiver: (accel) acceleration threshold: 4
[    12.438] (II) config/udev: Adding input device Telink Wireless Receiver (/dev/input/mouse0)
[    12.438] (II) No input driver specified, ignoring this device.
[    12.438] (II) This device may have been added with another device file.
[    12.440] (II) config/udev: Adding input device Telink Wireless Receiver (/dev/input/event2)
[    12.441] (**) Telink Wireless Receiver: Applying InputClass "evdev keyboard catchall"
[    12.441] (II) Using input driver 'evdev' for 'Telink Wireless Receiver'
[    12.441] (**) Telink Wireless Receiver: always reports core events
[    12.441] (**) evdev: Telink Wireless Receiver: Device: "/dev/input/event2"
[    12.441] (--) evdev: Telink Wireless Receiver: Vendor 0x248a Product 0xda
[    12.441] (--) evdev: Telink Wireless Receiver: Found keys
[    12.441] (II) evdev: Telink Wireless Receiver: Configuring as keyboard
[    12.441] (**) Option "config_info" "udev:/sys/devices/platform/soc:/soc:usb3-0:/12000000.dwc3:/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.1/0003:248A:00DA.0002/input/input2/event2"
[    12.441] (II) XINPUT: Adding extended input device "Telink Wireless Receiver" (type: KEYBOARD, id 9)
[    12.441] (**) Option "xkb_rules" "evdev"
[    12.441] (**) Option "xkb_model" "pc105"
[    12.441] (**) Option "xkb_layout" "us"
[    15.360] (II) modeset(0): EDID vendor "TSB", prod id 518
[    15.360] (II) modeset(0): Using EDID range info for horizontal sync
[    15.360] (II) modeset(0): Using EDID range info for vertical refresh
[    15.360] (II) modeset(0): Printing DDC gathered Modelines:
[    15.360] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    15.360] (II) modeset(0): Modeline "1360x768"x0.0   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync (47.7 kHz e)
[    15.360] (II) modeset(0): Modeline "1920x1080i"x0.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[    15.360] (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    15.360] (II) modeset(0): Modeline "720x480"x0.0   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    15.360] (II) modeset(0): Modeline "1440x480i"x0.0   27.00  1440 1478 1602 1716  480 488 494 525 interlace -hsync -vsync (15.7 kHz e)
[    15.360] (II) modeset(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    15.360] (II) modeset(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    15.360] (II) modeset(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    15.360] (II) modeset(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    15.360] (II) modeset(0): Modeline "1366x768"x59.8   84.75  1366 1431 1567 1776  768 771 781 798 -hsync +vsync (47.7 kHz e)
[    15.360] (II) modeset(0): Modeline "720x576"x0.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[    15.360] (II) modeset(0): Modeline "1440x240"x0.0   27.00  1440 1478 1602 1716  240 244 247 262 -hsync -vsync (15.7 kHz e)
[    15.360] (II) modeset(0): Modeline "1920x1080"x0.0   74.25  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (28.1 kHz e)
[    15.360] (II) modeset(0): Modeline "2880x480"x0.0  108.00  2880 2944 3192 3432  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    15.360] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    16.487] (II) modeset(0): EDID vendor "TSB", prod id 518
[    16.487] (II) modeset(0): Using hsync ranges from config file
[    16.487] (II) modeset(0): Using vrefresh ranges from config file
[    16.487] (II) modeset(0): Printing DDC gathered Modelines:
[    16.487] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    16.487] (II) modeset(0): Modeline "1360x768"x0.0   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync (47.7 kHz e)
[    16.487] (II) modeset(0): Modeline "1920x1080i"x0.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[    16.487] (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    16.487] (II) modeset(0): Modeline "720x480"x0.0   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    16.487] (II) modeset(0): Modeline "1440x480i"x0.0   27.00  1440 1478 1602 1716  480 488 494 525 interlace -hsync -vsync (15.7 kHz e)
[    16.487] (II) modeset(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    16.487] (II) modeset(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    16.487] (II) modeset(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    16.487] (II) modeset(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    16.487] (II) modeset(0): Modeline "1366x768"x59.8   84.75  1366 1431 1567 1776  768 771 781 798 -hsync +vsync (47.7 kHz e)
[    16.487] (II) modeset(0): Modeline "720x576"x0.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[    16.487] (II) modeset(0): Modeline "1440x240"x0.0   27.00  1440 1478 1602 1716  240 244 247 262 -hsync -vsync (15.7 kHz e)
[    16.487] (II) modeset(0): Modeline "1920x1080"x0.0   74.25  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (28.1 kHz e)
[    16.487] (II) modeset(0): Modeline "2880x480"x0.0  108.00  2880 2944 3192 3432  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    16.487] (--) modeset(0): HDMI max TMDS frequency 225000KHz

 

 


 

Edited by Igor
add spoiler

Share this post


Link to post
Share on other sites

Just to save you some time: https://www.google.com/search?rls=en&q=webgl+site%3Aforum.odroid.com&oq=webgl+site%3Aforum.odroid.com vs.
https://www.google.com/search?rls=en&q=webgl+site%3Aforum.armbian.com&oq=webgl+site%3Aforum.armbian.com

 

4 times more hits at forum.odroid.com while they only support a fraction of boards compared to Armbian. I would believe none of the devs had ever a look into WebGL or similar GPU centric stuff (at least I never connected any of my ODROIDs to a display ever)

Share this post


Link to post
Share on other sites
On 2/23/2018 at 10:55 PM, jjrojo said:

Sorry for not topic, but why you get odroid for desktop when you can buy atom x-64 mini PC with no problem for desktop task?

My self have raspberry, orangepiplus2e and z83-II and for desktop there is not color.

A board like an Udoo x86 is more expensive and the Xu4 fits my needs. Webgl runs fine in the Odroid provided Ubuntu image but I find Armbian more stable in general usage.

Share this post


Link to post
Share on other sites
3 hours ago, tkaiser said:

I would believe none of the devs had ever a look into WebGL or similar GPU centric stuff (at least I never connected any of my ODROIDs to a display ever)

Yeah, you've done a great job to get a stable system, with all those filesystem and kernel tweaks that no other distro has. That's why there's so many of us who feel drawn to use Armbian, even though it would be easier to use the vendor-provided distro for graphic stuff. 

But, you see, we made everything work in RK3288 SoC, I think it is worth giving a try with the Exynos 5422 too.

 

3 hours ago, Patrice Déry said:

This is after a clean intallation with default settings

Let me make some tests in my own HC1 and see. I cannot test EGL, but I can test OpenCL. And normally, if the latter works, the former will work too.

Share this post


Link to post
Share on other sites

I installed the lib in my system, and OpenCL works. What strikes me is that you experienced a bootloop: I could understand X server not starting, but system rebooting ??

 

I noticed you must create a user called "odroid" before installing the package, for it to configure properly. So maybe it has something to do with the library not  being configured and therefore symlinks not created.

 

In short, you can try to copy-paste this into a terminal:

sudo adduser --disabled-login odroid
wget http://deb.odroid.in/5422-s/pool/main/m/mali-x11/mali-x11_20170718-r17p0-20503ff-3_armhf.deb
sudo dpkg -i mali-x11_20170718-r17p0-20503ff-3_armhf.deb
wget http://deb.odroid.in/5422-s/pool/main/x/xf86-video-armsoc/xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb
sudo dpkg -i xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb
sudo rm /etc/X11/xorg.conf.d/*
echo 'Section "Device"
        Identifier      "Mali-Fbdev"
        Driver          "armsoc"
        Option          "fbdev"         "/dev/fb0"
        Option          "Debug"         "false"
        Option          "DPMS"          "false"
        Option          "NoFlip"        "true"
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Option          "BlankTime"     "0"
        Option          "StandbyTime"   "0"
        Option          "SuspendTime"   "0"
        Option          "OffTime"       "0"
EndSection

Section "DRI"
        Mode            0666
EndSection
' | sudo tee /etc/X11/xorg.conf.d/01-armbian-defaults.conf

And then,  restart X and see what happens.

Share this post


Link to post
Share on other sites
12 hours ago, Patrice Déry said:

A board like an Udoo x86 is more expensive and the Xu4 fits my needs. Webgl runs fine in the Odroid provided Ubuntu image but I find Armbian more stable in general usage.

Example, you can run windows 10 or Linux  (linuxium), I believe fedora can run out the box in z83-II with 64 bits Intel atom 8350 cpu. And I talk about z83-ii but sure there is some more boards.

Share this post


Link to post
Share on other sites
18 hours ago, TonyMac32 said:

I'm willing to do some testing on this as well, I have an XU4 available.  (Otherwise, like tkaiser, my board would never see a monitor).

Great! Let's see if you don't get a bootloop with the commands listed in 

 

Share this post


Link to post
Share on other sites
12 hours ago, TonyMac32 said:

I'll check it as a non-superuser.

 

Yes, of course, I forgot the mali permissions issue.  This code should fix it:

echo 'KERNEL=="mali0", MODE="0666", GROUP="video"' | sudo tee /etc/udev/rules.d/50-mali.rules
sudo usermod -aG video $(getent passwd 1000 | cut -f1 -d:)

Then you must reboot, and you can test:

sudo apt install glmark2-es2
glmark2-es2

 

Share this post


Link to post
Share on other sites
11 hours ago, TonyMac32 said:

ugh, x is just plain failing to find/load the driver.

Well, I have some ideas, but  I cannot help you with testing and I don't want to have you pull all the weight.  Plus, since this topic doesn't seem to attract as much interest by users as the Rockchip's does, maybe we can just leave this on hold for the time being, if you're OK.

Share this post


Link to post
Share on other sites
1 hour ago, JMCC said:

Well, I have some ideas, but  I cannot help you with testing


I have one spare XU4 and can send you if it helps? Send me shipping address on PM and note if you need a PSU too.

 

Shell we better switch to 4.14.y (DEV branch at this time) with this? In any case, we should make a switch NEXT from 4.9 to 4.14. .. after deep testing this time :)

Share this post


Link to post
Share on other sites
14 minutes ago, Igor said:

Shell we better switch to 4.14.y (DEV branch at this time) with this? In any case, we should make a switch NEXT from 4.9 to 4.14. 

Sure. My OpenCL tests worked both in 4.9 and 4.14, so it's better to do all this stuff in 4.14 DEV, and that way we kill two birds with one stone (I mean, we also test kernel stability while testing GPU desktop acceleration).

 

I'll PM you, that's very generous of you.

Share this post


Link to post
Share on other sites

Okay, this script is confirmed to work in a XU4  image with desktop and kernel NEXT 4.14.29 nightly:

 

#!/bin/bash

if [ $EUID != 0 ]; then
    sudo "$0" "$@"
    exit $?
fi

# User setup
grep -q odroid /etc/passwd || adduser --no-create-home --disabled-login --disabled-password --gecos "" odroid
usermod -aG video $(getent passwd 1000 | cut -f1 -d:)

# Package installation
wget http://deb.odroid.in/5422-s/pool/main/m/mali-x11/mali-x11_20170718-r17p0-20503ff-3_armhf.deb
dpkg -i mali-x11_20170718-r17p0-20503ff-3_armhf.deb
rm mali-x11_20170718-r17p0-20503ff-3_armhf.deb
wget http://deb.odroid.in/5422-s/pool/main/x/xf86-video-armsoc/xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb
dpkg -i xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb
rm xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb
wget http://deb.odroid.in/5422-s/pool/main/x/xf86-video-armsoc/xserver-xorg-video-armsoc_1.4.1-0ubuntu6_armhf.deb
dpkg -i xserver-xorg-video-armsoc_1.4.1-0ubuntu6_armhf.deb
rm xserver-xorg-video-armsoc_1.4.1-0ubuntu6_armhf.deb
wget http://deb.odroid.in/5422-s/pool/main/libs/libsdl2/libsdl2-2.0-0_2.0.4%2bdfsg1-2ubuntu3_armhf.deb
dpkg -i libsdl2-2.0-0_2.0.4+dfsg1-2ubuntu3_armhf.deb
rm libsdl2-2.0-0_2.0.4+dfsg1-2ubuntu3_armhf.deb
wget http://deb.odroid.in/5422-s/pool/main/p/pixman/libpixman-1-0_0.34.0-1hk3_armhf.deb
dpkg -i libpixman-1-0_0.34.0-1hk3_armhf.deb
rm libpixman-1-0_0.34.0-1hk3_armhf.deb
apt -y install libdrm-exynos1

# Udev rules
echo 'KERNEL=="mali0",SUBSYSTEM=="misc",MODE="0777"
KERNEL=="CEC", MODE="0777"
KERNEL=="cec*", MODE="0777"' > /etc/udev/rules.d/10-odroid.rules

# Xorg config
sudo rm /etc/X11/xorg.conf.d/*
echo 'Section "Device"
        Identifier      "Mali-Fbdev"
        Driver          "armsoc"
        Option          "fbdev"         "/dev/fb0"
        Option          "Debug"         "false"
        Option          "DPMS"          "false"
	Option		"NoFlip"	"true"
        Option          "NoHardwareMouse" "true"
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Option          "BlankTime"     "0"
        Option          "StandbyTime"   "0"
        Option          "SuspendTime"   "0"
        Option          "OffTime"       "0"
EndSection

Section "DRI"
        Mode            0666
EndSection

Section "Extensions"
    Option "Composite" "Disable"
    Option "RENDER" "Disable"
EndSection
' > /etc/X11/xorg.conf.d/01-armbian-defaults.conf


# Chromium config
echo '# Default settings for chromium-browser. This file is sourced by /bin/sh from
# /usr/bin/chromium-browser

# Options to pass to chromium-browser
CHROMIUM_FLAGS=" --disable-namespace-sandbox --use-gl=egl --ignore-gpu-blacklist --disable-accelerated-2d-canvas --num-raster-threads=2"
' > /etc/chromium-browser/default
[ -e /usr/lib/chromium-browser/libEGL.so ] && mv /usr/lib/chromium-browser/libEGL.so /usr/lib/chromium-browser/libEGL.so.org
[ -e /usr/lib/chromium-browser/libGLESv2.so ] && mv /usr/lib/chromium-browser/libGLESv2.so /usr/lib/chromium-browser/libGLESv2.so.org
ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/chromium-browser/libEGL.so
ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/chromium-browser/libGLESv2.so

echo '
***********************************
*    Configuration complete.      *
*        PLEASE REBOOT            *
***********************************
'

exit 0

Notes:

  • You must disable window compositing, or performance will be awful
  • The problem is that, without compositing, some elements of the Xfce UI became invisible, the most annoying being the tray notification icons. I have checked, and it also happens in the Hardkernel image, but it is not a problem for them since they use Mate as default DE. We'll need to find a way to work around this.

Share this post


Link to post
Share on other sites
19 hours ago, JMCC said:

You must disable window compositing, or performance will be awful

 

Set this value to false, for current user and skel, and it's done:
https://github.com/armbian/build/blob/development/packages/blobs/desktop/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml#L68

 

Both WebGL and GLES works. What about video acceleration? At least under mpv. Have you done anything in that direction?

I'll move this to the build script when I come up with some bulletproof clean universal way. 

Share this post


Link to post
Share on other sites
5 hours ago, Igor said:

Well, that fixes the first part of the problem, namely disabling compositing by default. That gives us good performance. But we still have the second part, that after you disable compositing, icons in tray notification area become invisible (they are still there, and they respond to mouse clicks, but they don't show up). We'll have to fiddle with xorg.conf and Xfce settings and see if we can find a workaround.

 

5 hours ago, Igor said:

What about video acceleration?

I'm working on it. At least, mpv can use accelerated display though EGL, I'm not sure whether it is possible to get HW decoding too.

Share this post


Link to post
Share on other sites

I got a workaround by disabling the composite [EDIT: and Render] extension. Only that it has some side effects: everything works very well and performance is excellent, but in some places where Xfce tries to make transparency, you see a black background instead.

 

I modified the xorg config file in the script two posts above. You can either re-run the modified script, or add the following lines to /etc/X11/xorg.conf.d/01-armbian-defaults.conf

Section "Extensions"
    Option "Composite" "Disable"
    Option "RENDER" "Disable"
EndSection

In my opinion, everything works very well, and these solid black backgrounds in some places are a small price to pay for having the ability to use GLES, WebGL, and accelerated video display. And maybe in the future we can find a way to work those around too.

 

About accelerated video, I'll post a tweaked mpv package when it is ready. [EDIT: see the following post]

Edited by JMCC

Share this post


Link to post
Share on other sites

Ok, so this mpv will play by default with software decoding and GLES accelerated display output.  You can also use hardware decoding through the v4l interface with the "-hwdec" option, although the performance will not really improve, only the CPU usage will be lower.

 

  1. Download the package: https://mega.nz/#!AqhhAYQQ!W75RW58Pf3TQtN8koxMJ2YlWts9XvBhXiUbDDNrQPmE
  2. sudo dpkg -i mpv_2018.03.25_xu4_armhf.deb
  3. sudo apt -f install

Share this post


Link to post
Share on other sites
4 hours ago, TonyMac32 said:

Building a dev image to test as well, anything in particular I should look for?

I would say just use the UI and give your opinion on how bearable it is not to have composite. I recommend disabling hide windows content on resize (Settings > Window manager > Advanced > Untick the box "When resizing" under "Hide windows content"), and also setting the terminal background to "Solid color" in the terminal preferences menu. If you have some other suggestion about settings that can be tweaked, please share.

 

Also, it is a bit off-topic, but I am experiencing a weird problem: after system shutdown, my XU4 always corrupts the SD card filesystem, and I need to reflash and start from scratch. It doesn't happen on reboot, just on poweroff. Can you test that as well?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2 2