LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64
User Name
Password
slarm64 This forum is for the discussion of slarm64.

Notices


Reply
  Search this Thread
Old 12-20-2021, 05:20 AM   #1
pscan
LQ Newbie
 
Registered: Dec 2021
Posts: 5

Rep: Reputation: Disabled
get xorg to use DSI (LCD) output of RK3566 device?


Hi.
I am using mara's quartz64-a legacy XFCE build (4.19.220) but on a different device.
Essentially I install the build on a quartz64-a and get it running on a microSD card, then I change the dtb file to one from my device and boot it up.
A linux console and login and displayed on the LCD panel if I limit the inittab to run level 3.
By default the run level is set to 4 which results in just a cursor at the top of the screen.
If I change inittab to run level 3 and the run startx then the device attempts to run xorg and then switched itself off.

This is the xorg log that I'm getting. I can see that it is picking up the LCD panel resolution correctly:-

Can anyone suggest anything?

Code:
 Xorg.0.log
[    68.716]
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[    68.717] Build Operating System: Slackware 15.0 Slackware Linux Project
[    68.717] Current Operating System: Linux quartz64 4.19.210 #1 SMP Sun Oct 10 15:50:32 UTC 2021 aarch64
[    68.717] Kernel command line: root=/dev/mmcblk0p3 ro rootwait rootfstype=ext4 init=/sbin/init loglevel=4 earlycon=uart8250,mmio32,0xfe660000 console=ttyFIQ0 console=ttyFIQ0,1500000n8
[    68.717] Build Date: 30 July 2021  08:16:48PM
[    68.717]
[    68.717] Current version of pixman: 0.40.0
[    68.718]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    68.718] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    68.718] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 20 10:39:11 2021
[    68.722] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    68.722] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    68.730] (==) No Layout section.  Using the first Screen section.
[    68.730] (==) No screen section available. Using defaults.
[    68.730] (**) |-->Screen "Default Screen Section" (0)
[    68.730] (**) |   |-->Monitor "<default monitor>"
[    68.731] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    68.731] (**) Option "BlankTime" "0"
[    68.731] (**) Option "StandbyTime" "0"
[    68.732] (**) Option "SuspendTime" "0"
[    68.732] (**) Option "OffTime" "0"
[    68.732] (==) Automatically adding devices
[    68.732] (==) Automatically enabling devices
[    68.732] (==) Automatically adding GPU devices
[    68.732] (==) Automatically binding GPU devices
[    68.735] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    68.735] (WW) The directory "/usr/share/fonts/local" does not exist.
[    68.735]    Entry deleted from font path.
[    68.735] (WW) The directory "/usr/share/fonts/CID" does not exist.
[    68.735]    Entry deleted from font path.
[    68.748] (==) FontPath set to:
        /usr/share/fonts/misc,
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Type1,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/cyrillic
[    68.748] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    68.748] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    68.748] (II) Loader magic: 0x624c30
[    68.748] (II) Module ABI versions:
[    68.748]    X.Org ANSI C Emulation: 0.4
[    68.748]    X.Org Video Driver: 24.1
[    68.748]    X.Org XInput driver : 24.1
[    68.748]    X.Org Server Extension : 10.0
[    68.749] (II) xfree86: Adding drm device (/dev/dri/card0)
[    68.750] (II) no primary bus or device found
[    68.751]    falling back to /sys/devices/platform/display-subsystem/drm/card0
[    68.751] (II) LoadModule: "glx"
[    68.754] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    68.765] (II) Module glx: vendor="X.Org Foundation"
[    68.765]    compiled for 1.20.13, module version = 1.0.0
[    68.765]    ABI class: X.Org Server Extension, version 10.0
[    68.765] (==) Matched modesetting as autoconfigured driver 0
[    68.765] (==) Matched fbdev as autoconfigured driver 1
[    68.765] (==) Assigned the driver to the xf86ConfigLayout
[    68.765] (II) LoadModule: "modesetting"
[    68.767] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[    68.770] (II) Module modesetting: vendor="X.Org Foundation"
[    68.770]    compiled for 1.20.13, module version = 1.20.13
[    68.770]    Module class: X.Org Video Driver
[    68.771]    ABI class: X.Org Video Driver, version 24.1
[    68.771] (II) LoadModule: "fbdev"
[    68.771] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[    68.773] (II) Module fbdev: vendor="X.Org Foundation"
[    68.773]    compiled for 1.20.9, module version = 0.5.0
[    68.773]    Module class: X.Org Video Driver
[    68.773]    ABI class: X.Org Video Driver, version 24.1
[    68.773] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    68.773] (II) FBDEV: driver for framebuffer: fbdev
[    68.773] (--) using VT number 7

[    68.820] (II) modeset(0): using drv /dev/dri/card0
[    68.820] (WW) Falling back to old probe method for fbdev
[    68.820] (II) Loading sub module "fbdevhw"
[    68.820] (II) LoadModule: "fbdevhw"
[    68.821] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[    68.825] (II) Module fbdevhw: vendor="X.Org Foundation"
[    68.825]    compiled for 1.20.13, module version = 0.0.2
[    68.825]    ABI class: X.Org Video Driver, version 24.1
[    68.825] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    68.826] (II) modeset(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[    68.827] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    68.827] (==) modeset(0): RGB weight 888
[    68.827] (==) modeset(0): Default visual is TrueColor
[    68.827] (II) Loading sub module "glamoregl"
[    68.827] (II) LoadModule: "glamoregl"
[    68.828] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[    68.861] (II) Module glamoregl: vendor="X.Org Foundation"
[    68.861]    compiled for 1.20.13, module version = 1.0.1
[    68.861]    ABI class: X.Org ANSI C Emulation, version 0.4
[    70.663] (II) modeset(0): Refusing to try glamor on llvmpipe
[    70.668] (EE) modeset(0): glamor initialization failed
[    70.668] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[    70.669] (II) modeset(0): Output HDMI-1 has no monitor section
[    70.669] (II) modeset(0): Output DSI-1 has no monitor section
[    70.669] (II) modeset(0): EDID for output HDMI-1
[    70.669] (II) modeset(0): EDID for output DSI-1
[    70.670] (II) modeset(0): Printing probed modes for output DSI-1
[    70.670] (II) modeset(0): Modeline "1200x1920"x57.3  153.60  1200 1314 1324 1364  1920 1942 1946 1964 -hsync -vsync (112.6 kHz eP)
[    70.670] (II) modeset(0): Output HDMI-1 disconnected
[    70.670] (II) modeset(0): Output DSI-1 connected
[    70.670] (II) modeset(0): Using exact sizes for initial modes
[    70.670] (II) modeset(0): Output DSI-1 using initial mode 1200x1920 +0+0
[    70.670] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    70.670] (==) modeset(0): DPI set to (96, 96)
[    70.670] (II) Loading sub module "fb"
[    70.670] (II) LoadModule: "fb"
[    70.670] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    70.676] (II) Module fb: vendor="X.Org Foundation"
[    70.676]    compiled for 1.20.13, module version = 1.0.0
[    70.676]    ABI class: X.Org ANSI C Emulation, version 0.4
[    70.676] (II) UnloadModule: "fbdev"
[    70.677] (II) Unloading fbdev
[    70.677] (II) UnloadSubModule: "fbdevhw"
[    70.677] (II) Unloading fbdevhw
[    70.691] (==) modeset(0): Backing store enabled
[    70.691] (==) modeset(0): Silken mouse enabled
[    70.774] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[    70.775] (==) modeset(0): DPMS enabled
[    70.776] (II) Initializing extension Generic Event Extension
[    70.776] (II) Initializing extension SHAPE
[    70.776] (II) Initializing extension MIT-SHM
[    70.776] (II) Initializing extension XInputExtension
[    70.779] (II) Initializing extension XTEST
[    70.779] (II) Initializing extension BIG-REQUESTS
[    70.779] (II) Initializing extension SYNC
[    70.780] (II) Initializing extension XKEYBOARD
[    70.780] (II) Initializing extension XC-MISC
[    70.780] (II) Initializing extension XFIXES
[    70.780] (II) Initializing extension RENDER
[    70.780] (II) Initializing extension RANDR
[    70.781] (II) Initializing extension COMPOSITE
[    70.781] (II) Initializing extension DAMAGE
[    70.781] (II) Initializing extension MIT-SCREEN-SAVER
[    70.781] (II) Initializing extension DOUBLE-BUFFER
[    70.781] (II) Initializing extension RECORD
[    70.781] (II) Initializing extension DPMS
[    70.781] (II) Initializing extension Present
[    70.782] (II) Initializing extension DRI3
[    70.782] (II) Initializing extension X-Resource
[    70.782] (II) Initializing extension XVideo
[    70.782] (II) Initializing extension XVideo-MotionCompensation
[    70.782] (II) Initializing extension GLX
[    70.783] (II) AIGLX: Screen 0 is not DRI2 capable
[    70.944] (II) IGLX: Loaded and initialized swrast
[    70.944] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    70.944] (II) Initializing extension XFree86-VidModeExtension
[    70.944] (II) Initializing extension XFree86-DGA
[    70.944] (II) Initializing extension XFree86-DRI
[    70.946] (II) Initializing extension DRI2
[    70.947] (II) modeset(0): Damage tracking initialized
[    70.947] (II) modeset(0): Setting screen physical size to 317 x 508
[    71.719] (II) config/udev: Adding input device adc-keys (/dev/input/event1)
[    71.719] (**) adc-keys: Applying InputClass "evdev keyboard catchall"
[    71.719] (**) adc-keys: Applying InputClass "libinput keyboard catchall"
[    71.719] (**) adc-keys: Applying InputClass "keyboard-all"
[    71.719] (**) adc-keys: Applying InputClass "libinput keyboard catchall"
[    71.719] (II) LoadModule: "libinput"
[    71.721] (II) Loading /usr/lib64/xorg/modules/input/libinput_drv.so
[    71.745] (II) Module libinput: vendor="X.Org Foundation"
[    71.746]    compiled for 1.20.13, module version = 1.2.0
[    71.746]    Module class: X.Org XInput Driver
[    71.746]    ABI class: X.Org XInput driver, version 24.1
[    71.746] (II) Using input driver 'libinput' for 'adc-keys'
[    71.746] (**) adc-keys: always reports core events
[    71.746] (**) Option "Device" "/dev/input/event1"
[    71.746] (**) Option "_source" "server/udev"
[    71.777] (II) event1  - adc-keys: is tagged by udev as: Keyboard
[    71.777] (II) event1  - adc-keys: device is a keyboard
[    71.778] (II) event1  - adc-keys: device removed
[    71.821] (**) Option "config_info" "udev:/sys/devices/platform/adc-keys/input/input1/event1"
[    71.821] (II) XINPUT: Adding extended input device "adc-keys" (type: KEYBOARD, id 6)
[    71.821] (**) Option "xkb_layout" "us"
[    71.822] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    72.448] (II) event1  - adc-keys: is tagged by udev as: Keyboard
[    72.448] (II) event1  - adc-keys: device is a keyboard
[    72.450] (II) config/udev: Adding input device rk805 pwrkey (/dev/input/event0)
[    72.450] (**) rk805 pwrkey: Applying InputClass "evdev keyboard catchall"
[    72.450] (**) rk805 pwrkey: Applying InputClass "libinput keyboard catchall"
[    72.450] (**) rk805 pwrkey: Applying InputClass "keyboard-all"
[    72.450] (**) rk805 pwrkey: Applying InputClass "libinput keyboard catchall"
[    72.450] (II) Using input driver 'libinput' for 'rk805 pwrkey'
[    72.450] (**) rk805 pwrkey: always reports core events
[    72.450] (**) Option "Device" "/dev/input/event0"
[    72.450] (**) Option "_source" "server/udev"
[    72.452] (II) event0  - rk805 pwrkey: is tagged by udev as: Keyboard
[    72.452] (II) event0  - rk805 pwrkey: device is a keyboard
[    72.452] (II) event0  - rk805 pwrkey: device removed
[    72.473] (**) Option "config_info" "udev:/sys/devices/platform/fdd40000.i2c/i2c-0/0-0020/rk805-pwrkey/input/input0/event0"
[    72.474] (II) XINPUT: Adding extended input device "rk805 pwrkey" (type: KEYBOARD, id 7)
[    72.474] (**) Option "xkb_layout" "us"
[    72.474] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    72.480] (II) event0  - rk805 pwrkey: is tagged by udev as: Keyboard
[    72.481] (II) event0  - rk805 pwrkey: device is a keyboard
[    72.482] (II) config/udev: Adding input device rk-headset (/dev/input/event2)
[    72.482] (**) rk-headset: Applying InputClass "evdev keyboard catchall"
[    72.482] (**) rk-headset: Applying InputClass "libinput keyboard catchall"
[    72.482] (**) rk-headset: Applying InputClass "keyboard-all"
[    72.482] (**) rk-headset: Applying InputClass "libinput keyboard catchall"
[    72.482] (II) Using input driver 'libinput' for 'rk-headset'
[    72.482] (**) rk-headset: always reports core events
[    72.482] (**) Option "Device" "/dev/input/event2"
[    72.482] (**) Option "_source" "server/udev"
[    72.484] (II) event2  - rk-headset: is tagged by udev as: Keyboard
[    72.484] (II) event2  - rk-headset: device is a keyboard
[    72.484] (II) event2  - rk-headset: device removed
[    72.523] (**) Option "config_info" "udev:/sys/devices/platform/rk-headset/input/input2/event2"
[    72.523] (II) XINPUT: Adding extended input device "rk-headset" (type: KEYBOARD, id 8)
[    72.524] (**) Option "xkb_layout" "us"
[    72.524] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    72.529] (II) event2  - rk-headset: is tagged by udev as: Keyboard
[    72.530] (II) event2  - rk-headset: device is a keyboard
[   100.300] (II) event1  - adc-keys: device removed
[   100.333] (II) event0  - rk805 pwrkey: device removed
[   100.350] (II) event2  - rk-headset: device removed
[   100.392] (II) UnloadModule: "libinput"
[   100.392] (II) UnloadModule: "libinput"
[   100.393] (II) UnloadModule: "libinput"
[   100.516] (II) Server terminated successfully (0). Closing log file.
 
Old 12-20-2021, 12:27 PM   #2
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,156
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Can you please describe what you have tried?
a) installing an OS on a SD card on an hardware: which one? what GPU you had on it?.
b) you then try to boot another hardware (what type) with the SD card from above? what GPU on it?
Not sure if I understood, but personally, I would boot the target hardware with the target distro on a live USB and make the install on the SD. Moving cards from one hardware to another could become weird.
If you want to make an XORG optimal setup (if the target distro dont make it good on your target hardware), I would give a try to KNOPPIX which has a quite good hardware live recognition. Play around and find a setup.
 
Old 12-20-2021, 12:37 PM   #3
pscan
LQ Newbie
 
Registered: Dec 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by floppy_stuttgart View Post
Can you please describe what you have tried?
a) installing an OS on a SD card on an hardware: which one? what GPU you had on it?.
b) you then try to boot another hardware (what type) with the SD card from above? what GPU on it?
Not sure if I understood, but personally, I would boot the target hardware with the target distro on a live USB and make the install on the SD. Moving cards from one hardware to another could become weird.
If you want to make an XORG optimal setup (if the target distro dont make it good on your target hardware), I would give a try to KNOPPIX which has a quite good hardware live recognition. Play around and find a setup.
The RK3566 is an ARM SoC which includes a G52 GPU.
Excuse me if I'm wrong but Knoppix only works in Intel like CPUs not ARM devices doesn't it?

Anyway, since posting the question I think I am coming to the conclusion that xorg isn't the right answer anyway.
This is a tablet device so I'm probably better off going for Weston or something like that.
According to the postmarketOS wiki getting Weston to work is the first step in porting to phosh or plasma mobile.

That said if anyone can see a simple way to get xorg/xfce to start up on this tablet then that would still be cool.
 
Old 12-20-2021, 12:53 PM   #4
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
Hi pscan,
you were comparing the Xorg output from the production system?

you can also try replacing the xf86-input-libinput package with xf86-input-synaptics

Last edited by sndwvs; 12-20-2021 at 12:58 PM.
 
Old 12-20-2021, 01:18 PM   #5
pscan
LQ Newbie
 
Registered: Dec 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
Hi pscan,
you were comparing the Xorg output from the production system?

you can also try replacing the xf86-input-libinput package with xf86-input-synaptics
No, I haven't compared the xorg output from my tablet device (above) with that from an quartz64, which is a good point.

That said, my quartz64 is using HDMI output whereas the tablet is using DSI output so it wouldn't exactly be comparing like for like. To achieve like for like I would have to get an LCD screen and hook it up to the DSI port on the quartz64.

Is it possible that xorg choked only due to lack of a mouse?
 
Old 12-20-2021, 01:24 PM   #6
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
Quote:
Originally Posted by pscan View Post
No, I haven't compared the xorg output from my tablet device (above) with that from an quartz64, which is a good point.

That said, my quartz64 is using HDMI output whereas the tablet is using DSI output so it wouldn't exactly be comparing like for like. To achieve like for like I would have to get an LCD screen and hook it up to the DSI port on the quartz64.
comparison is expected on one and the same device.

Quote:
Originally Posted by pscan View Post
Is it possible that xorg choked only due to lack of a mouse?
just check.
 
Old 12-20-2021, 01:31 PM   #7
pscan
LQ Newbie
 
Registered: Dec 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
comparison is expected on one and the same device.

just check.
sorry I think I misunderstood you.

When you said
Quote:
Originally Posted by sndwvs View Post
comparing the Xorg output from the production system?
what did you mean by "production system"?
This tablet came to me with Android on it if that's what you meant, not xorg.

I just ran this command. No mouse or touch interface detected I think.

Code:
:~# libinput list-devices
Device:           adc-keys
Kernel:           /dev/input/event1
Group:            1
Seat:             seat0, default
Capabilities:     keyboard
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           rk805 pwrkey
Kernel:           /dev/input/event0
Group:            2
Seat:             seat0, default
Capabilities:     keyboard
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           rk-headset
Kernel:           /dev/input/event2
Group:            3
Seat:             seat0, default
Capabilities:     keyboard
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a
Is it possible to configure a dummy mouse to fool xorg into starting up?
 
Old 12-20-2021, 01:39 PM   #8
pscan
LQ Newbie
 
Registered: Dec 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
To answer my own question....

https://www.x.org/releases/X11R7.5/d...n4/void.4.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Quartz64 RK3566 (slarm64, aarch64) sndwvs Slackware - ARM 21 12-07-2021 09:11 AM
LXer: Pine64 unveils RK3566-powered SBC and reveals an upcoming RISC-V board LXer Syndicated Linux News 0 02-16-2021 05:16 PM
LXer: Dev boards showcase Rockchip’s new RK3568 and RK3566 LXer Syndicated Linux News 0 02-12-2021 03:03 AM
Why don't my mipi dsi display show up in dmesg? rhenriksen Linux - Embedded & Single-board computer 2 07-04-2017 08:28 AM
Android on the Nintendo DSi XL The_Gypsy Linux - Games 3 02-23-2012 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration