Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evdi driver not working with USB3 to VGA Adapter on Yocto 24.0-release (kirkstone) #493

Open
yuchinchenTW opened this issue Oct 1, 2024 · 1 comment

Comments

@yuchinchenTW
Copy link

yuchinchenTW commented Oct 1, 2024

Are you using the latest driver? Yes.
Are you using the latest EVDI version? Yes.
If you are using a DisplayLink device, have you checked 'troubleshooting' on DisplayLink's website? Yes.
Is this issue related to evdi/kernel? Yes
Linux distribution and its version: Yocto 24.0-release (kirkstone)
Linux kernel version: 5.15.47
Xorg version (if used): no Im using Wayland
Desktop environment in use: Weston

have checked:

 zcat /proc/config.gz  | grep -i udl
CONFIG_DRM_UDL=y
CONFIG_FB_UDL=y

So Im using DisplayLink UVG2

Bus 001 Device 005: ID 17e9:4301 DisplayLink UVG2

try to show VGA output on the monitor

after

insmod /lib/modules/5.15.47-mtk+modified/kernel/drivers/gpu/drm/evdi/evdi.ko

and replug DisplayLink UVG2`

insmod /lib/modules/5.15.47-mtk+modified/kernel/drivers/gpu/drm/evdi/evdi.ko
root@genio-510-evk:~# dmesg | tail -n 10

[   95.230524] evdi: [I] Initialising logging on level 4
[   95.230547] evdi: [I] Atomic driver: yes
[  166.796276] usb 1-1.3: USB disconnect, device number 3
[  170.285963] usb 1-1.3: new high-speed USB device number 4 using xhci-mtk
[  170.416845] usb 1-1.3: Warning! Unlikely big volume range (=511), cval->res is probably wrong.
[  170.416868] usb 1-1.3: [13] FU [UVG2 Audio Playback Volume] ch = 2, val = -8176/0/16

it seems like nothing happened

so I tried

root@genio-510-evk:/sys/devices/evdi# echo 6 > loglevel
root@genio-510-evk:/sys/devices/evdi# echo 1 > count
-sh: count: Permission denied
root@genio-510-evk:/sys/devices/evdi# echo 1 > add
root@genio-510-evk:/sys/devices/evdi# cat count
1

root@genio-510-evk:/sys/devices/evdi# dmesg | tail -n 25
[  166.796276] usb 1-1.3: USB disconnect, device number 3
[  170.285963] usb 1-1.3: new high-speed USB device number 4 using xhci-mtk
[  170.416845] usb 1-1.3: Warning! Unlikely big volume range (=511), cval->res is probably wrong.
[  170.416868] usb 1-1.3: [13] FU [UVG2 Audio Playback Volume] ch = 2, val = -8176/0/16
[  216.899871] evdi: [I] Setting loglevel to 6
[  229.739342] evdi: [I] Increasing device count to 1
[  229.740825] evdi: [V] evdi_platform_device_probe:61
[  229.740945] evdi: [V] evdi_drm_device_init:171
[  229.740962] evdi: [V] evdi_painter_init:1225
[  229.740976] evdi: [V] evdi_modeset_init:516
[  229.741084] evdi: [V] evdi_crtc_init:476
[  229.741126] evdi: [D] evdi_crtc_init:499 drm_crtc_init: 0 p000000002a195edd
[  229.741198] evdi: [I] (card1) Opened by Task 1223 (sh) of process 1223 (sh)
[  229.741223] evdi: [V] evdi_detect:128
[  229.741235] evdi: [V] evdi_detect:134 (card1) Connector state: disconnected
[  229.741277] evdi evdi.0: [drm] Cannot find any crtc or sizes
[  229.741340] evdi: [V] evdi_painter_set_vblank:664
[  229.741353] evdi: [V] evdi_painter_set_vblank:667 Painter lock
[  229.741364] evdi: [V] evdi_painter_send_vblank:651
[  229.741374] evdi: [V] evdi_painter_set_vblank:678 Painter unlock
[  229.741385] evdi: [V] evdi_painter_send_update_ready_if_needed:686
[  229.741395] evdi: [V] evdi_painter_send_update_ready_if_needed:688 Painter lock
[  229.741405] evdi: [V] evdi_painter_send_update_ready_if_needed:698 Painter unlock
[  229.742770] [drm] Initialized evdi 1.14.7 20240920 for evdi.0 on minor 1
[  229.742818] evdi: [I] Evdi platform_device create
root@genio-510-evk:/sys/devices/evdi#

It seems like there is a new node created under drm

so I tried to turn it on

root@genio-510-evk:/sys/class/drm# ls
card0  card0-DSI-1  card0-HDMI-A-1  card1  card1-DVI-I-1  renderD128  version
root@genio-510-evk:/sys/class/drm# cd card1-DVI-I-1
root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# ls
device  dpms  edid  enabled  modes  power  status  subsystem  uevent
root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# cat status
disconnected
root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# echo on > status
root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# cat status
connected
root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# dmesg | tail -n 25
[  170.416868] usb 1-1.3: [13] FU [UVG2 Audio Playback Volume] ch = 2, val = -8176/0/16
[  216.899871] evdi: [I] Setting loglevel to 6
[  229.739342] evdi: [I] Increasing device count to 1
[  229.740825] evdi: [V] evdi_platform_device_probe:61
[  229.740945] evdi: [V] evdi_drm_device_init:171
[  229.740962] evdi: [V] evdi_painter_init:1225
[  229.740976] evdi: [V] evdi_modeset_init:516
[  229.741084] evdi: [V] evdi_crtc_init:476
[  229.741126] evdi: [D] evdi_crtc_init:499 drm_crtc_init: 0 p000000002a195edd
[  229.741198] evdi: [I] (card1) Opened by Task 1223 (sh) of process 1223 (sh)
[  229.741223] evdi: [V] evdi_detect:128
[  229.741235] evdi: [V] evdi_detect:134 (card1) Connector state: disconnected
[  229.741277] evdi evdi.0: [drm] Cannot find any crtc or sizes
[  229.741340] evdi: [V] evdi_painter_set_vblank:664
[  229.741353] evdi: [V] evdi_painter_set_vblank:667 Painter lock
[  229.741364] evdi: [V] evdi_painter_send_vblank:651
[  229.741374] evdi: [V] evdi_painter_set_vblank:678 Painter unlock
[  229.741385] evdi: [V] evdi_painter_send_update_ready_if_needed:686
[  229.741395] evdi: [V] evdi_painter_send_update_ready_if_needed:688 Painter lock
[  229.741405] evdi: [V] evdi_painter_send_update_ready_if_needed:698 Painter unlock
[  229.742770] [drm] Initialized evdi 1.14.7 20240920 for evdi.0 on minor 1
[  229.742818] evdi: [I] Evdi platform_device create
[  337.134207] evdi: [V] evdi_painter_get_edid_copy:245
[  337.134243] evdi: [V] evdi_painter_get_edid_copy:247 Painter lock
[  337.134256] evdi: [V] evdi_painter_get_edid_copy:258 Painter unlock
root@genio-510-evk:/sys/class/drm/card1-DVI-I-1#

but when i check lsmod seems like no one is using evdi

root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# lsmod
Module                  Size  Used by
evdi                   77824  0

so i tried to switch the monitor by modifying the weston.ini to DVI-I-1 which is the node just created

output]
name=DVI-I-1
mode=1920x1080

and restart weston
systemctl restart weston

now seems like evdi driver is been used howerver the monitor still does not have any display

root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# systemctl restart weston
root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# lsmod
Module                  Size  Used by
evdi                   77824  1

when I see the log it shows that it just keep spamming :

root@genio-510-evk:/sys/class/drm/card1-DVI-I-1# dmesg | tail -n 30
[  608.805918] evdi: [V] evdi_painter_send_update_ready_if_needed:688 Painter lock
[  608.805921] evdi: [V] evdi_painter_send_update_ready_if_needed:698 Painter unlock
[  608.809452] evdi: [V] evdi_painter_set_scanout_buffer:1280 Painter lock
[  608.809461] evdi: [V] evdi_painter_set_scanout_buffer:1285 Painter unlock
[  608.809466] evdi: [V] evdi_painter_mark_dirty:608 Painter lock
[  608.809469] evdi: [V] evdi_painter_mark_dirty:619 (card1) 0,0-1024,768
[  608.809474] evdi: [V] evdi_painter_mark_dirty:634 Painter unlock
[  608.809476] evdi: [V] evdi_painter_get_num_dirts:560 Painter lock
[  608.809479] evdi: [V] evdi_painter_get_num_dirts:564 Painter unlock
[  608.809482] evdi: [V] evdi_painter_set_vblank:664
[  608.809485] evdi: [V] evdi_painter_set_vblank:667 Painter lock
[  608.809488] evdi: [V] evdi_painter_send_vblank:651
[  608.809499] evdi: [V] evdi_painter_set_vblank:678 Painter unlock
[  608.809503] evdi: [V] evdi_painter_send_update_ready_if_needed:686
[  608.809506] evdi: [V] evdi_painter_send_update_ready_if_needed:688 Painter lock
[  608.809509] evdi: [V] evdi_painter_send_update_ready_if_needed:698 Painter unlock
[  608.812993] evdi: [V] evdi_painter_set_scanout_buffer:1280 Painter lock
[  608.813001] evdi: [V] evdi_painter_set_scanout_buffer:1285 Painter unlock
[  608.813006] evdi: [V] evdi_painter_mark_dirty:608 Painter lock
[  608.813009] evdi: [V] evdi_painter_mark_dirty:619 (card1) 0,0-1024,768
[  608.813014] evdi: [V] evdi_painter_mark_dirty:634 Painter unlock
[  608.813017] evdi: [V] evdi_painter_get_num_dirts:560 Painter lock
[  608.813020] evdi: [V] evdi_painter_get_num_dirts:564 Painter unlock
[  608.813023] evdi: [V] evdi_painter_set_vblank:664
[  608.813026] evdi: [V] evdi_painter_set_vblank:667 Painter lock
[  608.813029] evdi: [V] evdi_painter_send_vblank:651
[  608.813040] evdi: [V] evdi_painter_set_vblank:678 Painter unlock
[  608.813044] evdi: [V] evdi_painter_send_update_ready_if_needed:686
[  608.813046] evdi: [V] evdi_painter_send_update_ready_if_needed:688 Painter lock
[  608.813049] evdi: [V] evdi_painter_send_update_ready_if_needed:698 Painter unlock

So what did i miss

@yuchinchenTW yuchinchenTW changed the title evdi driver not working on Yocto 24.0-release (kirkstone) evdi driver not working with USB3 to VGA Adapter on Yocto 24.0-release (kirkstone) Oct 1, 2024
@synaptics-lspintzyk
Copy link
Contributor

Did you installed displaylink-driver service?
It is required to drive displaylink devices, evdi kernel module is not enough.

https://www.synaptics.com/products/displaylink-graphics/downloads/ubuntu

You can use standalone installer for this.
This may be useful to you as well:
https://support.displaylink.com/knowledgebase/articles/679060-porting-the-displaylink-ubuntu-driver-to-other-lin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants