Solved: Second monitor is not detected

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
minty_tea
Level 1
Level 1
Posts: 8
Joined: Sat Jul 17, 2021 9:36 pm

Solved: Second monitor is not detected

Post by minty_tea »

Hello. I have just done a fresh install of Linux Mint and I have a monitor that is not working. I can't see to figure out how to fix it.

Here are the details:

First the monitor is this monitor is the ASUS MB168B 15.6" HD Portable USB-Powered Monitor

output of inxi -Frxzc0

System:
Kernel: 5.4.0-77-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
Desktop: Cinnamon 5.0.5 Distro: Linux Mint 20.2 Uma
base: Ubuntu 20.04 focal
Machine:
Type: Laptop System: Acer product: Aspire A515-51 v: V1.21
serial: <filter>
Mobo: KBL model: Charmander_KL v: V1.21 serial: <filter>
UEFI [Legacy]: Insyde v: 1.21 date: 08/08/2018
Battery:
ID-1: BAT1 charge: 40.9 Wh condition: 45.3/48.9 Wh (93%)
model: LG 004B384234314341 status: Discharging
CPU:
Topology: Dual Core model: Intel Core i3-8130U bits: 64 type: MT MCP
arch: Kaby Lake rev: A L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 17599
Speed: 900 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 847 2: 855
3: 838 4: 857
Graphics:
Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI
driver: i915 v: kernel bus ID: 00:02.0
Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa
resolution: 1366x768~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.2.6
direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel bus ID: 00:1f.3
Sound Server: ALSA v: k5.4.0-77-generic
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000
bus ID: 01:00.1
IF: enp1s0f1 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: Lite-On driver: ath10k_pci v: kernel port: 3000 bus ID: 02:00.0
IF: wlp2s0 state: up mac: <filter>
Drives:
Local Storage: total: 931.51 GiB used: 31.71 GiB (3.4%)
ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-21Z10T0
size: 931.51 GiB temp: 37 C
Partition:
ID-1: / size: 273.72 GiB used: 7.34 GiB (2.7%) fs: ext4 dev: /dev/sda9
ID-2: /boot size: 1.85 GiB used: 212.7 MiB (11.3%) fs: ext4 dev: /dev/sda6
ID-3: /home size: 274.66 GiB used: 12.08 GiB (4.4%) fs: ext4
dev: /dev/sda7
ID-4: swap-1 size: 15.26 GiB used: 780 KiB (0.0%) fs: swap dev: /dev/sda8
Sensors:
System Temperatures: cpu: 29.8 C mobo: 27.8 C
Fan Speeds (RPM): N/A
Repos:
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
Processes: 219 Uptime: 1h 22m Memory: 7.65 GiB used: 3.12 GiB (40.7%)
Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17
inxi: 3.0.38

I'm not sure if I need a different driver, or what I can do to fix this, any insight?

Much appreciated, thank you.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: Second monitor is not detected

Post by 1000 »

I found info that it use USB
Then I found this - other hardware https://www.youtube.com/watch?v=JJua1bBIl6g
And he used driver from from the manufacturer's website for his own hardware.
I found something like that https://www.asus.com/supportonly/MB168B ... _download/
And I see there drivers for Linux.

Why this drivers are not inside Linux Kernel ?
In kernel I not found about MB168B --> nothing https://github.com/torvalds/linux/search?q=MB168B
In kernel bugzilla also I not found --> nothing https://bugzilla.kernel.org/buglist.cgi ... =%20MB168B
I don't know this why. You can ask your own hardware manufacturer. ( asus.com )
minty_tea
Level 1
Level 1
Posts: 8
Joined: Sat Jul 17, 2021 9:36 pm

Re: Second monitor is not detected

Post by minty_tea »

ok thankyou, I installed that driver from asus and now the screen is detected, however it looks all wonky. Here is a picture of what the external monitor looks like:

https://postimg.cc/d71sYzN5

although my computer doesnt know it looks like that because if I press print screen it shows this:

https://postimg.cc/2VrfYsVn/7098576a

the left half of the picture is the external monitor that is appearing all wonky.
User avatar
SMG
Level 25
Level 25
Posts: 31766
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Second monitor is not detected

Post by SMG »

minty_tea wrote: Sun Jul 18, 2021 10:00 amI installed that driver from asus and now the screen is detected, however it looks all wonky.
Perhaps that might be related to the cable you are using? Make sure the cable is securely attached at both ends. You may also want to try a different cable.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
minty_tea
Level 1
Level 1
Posts: 8
Joined: Sat Jul 17, 2021 9:36 pm

Re: Second monitor is not detected

Post by minty_tea »

it turned out I was able to fix it by lowering the resolution on it from 1366x768 to 1024x768.

That's 90% satisfying.

I'm just wondering if there is a way to run it at its full resolution of 1366x768 (which is its full resolution according to amazon) and the randr command.
User avatar
SMG
Level 25
Level 25
Posts: 31766
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Second monitor is not detected

Post by SMG »

minty_tea wrote: Sun Jul 18, 2021 10:54 amI'm just wondering if there is a way to run it at its full resolution of 1366x768 (which is its full resolution according to amazon) and the randr command.
Please supply the output of xrandr --verbose. That should let us know what Mint is picking up as its capabilities.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
minty_tea
Level 1
Level 1
Posts: 8
Joined: Sat Jul 17, 2021 9:36 pm

Re: Second monitor is not detected

Post by minty_tea »

ok here is that output of xrandr --verbose:

Screen 0: minimum 320 x 200, current 2384 x 768, maximum 16384 x 16384
eDP-1 connected primary 1360x768+1024+0 (0x47) normal (normal left inverted right x axis y axis) 344mm x 193mm
Identifier: 0x42
Timestamp: 77681
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff0006afec7000000000
01190104952213780250259358579229
22505400000001010101010101010101
010101010101ce1d56c050003030080a
310058c1100000180000000f00000000
00000000000000000020000000fe0041
554f0a202020202020202020000000fe
004231353658544e30372e30200a0014
scaling mode: Full aspect
supported: Full, Center, Full aspect
max bpc: 12
range: (6, 12)
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 86
supported: 86
non-desktop: 0
range: (0, 1)
1366x768 (0x45) 76.300MHz -HSync -VSync +preferred
h: width 1366 start 1374 end 1384 total 1558 skew 0 clock 48.97KHz
v: height 768 start 771 end 772 total 816 clock 60.02Hz
1360x768 (0x46) 84.750MHz -HSync +VSync
h: width 1360 start 1432 end 1568 total 1776 skew 0 clock 47.72KHz
v: height 768 start 771 end 781 total 798 clock 59.80Hz
1360x768 (0x47) 72.000MHz +HSync -VSync *current
h: width 1360 start 1408 end 1440 total 1520 skew 0 clock 47.37KHz
v: height 768 start 771 end 781 total 790 clock 59.96Hz
1280x720 (0x48) 156.125MHz -HSync +VSync DoubleScan
h: width 1280 start 1376 end 1512 total 1744 skew 0 clock 89.52KHz
v: height 720 start 721 end 724 total 746 clock 60.00Hz
1280x720 (0x49) 120.750MHz +HSync -VSync DoubleScan
h: width 1280 start 1304 end 1320 total 1360 skew 0 clock 88.79KHz
v: height 720 start 721 end 724 total 740 clock 59.99Hz
1280x720 (0x4a) 74.500MHz -HSync +VSync
h: width 1280 start 1344 end 1472 total 1664 skew 0 clock 44.77KHz
v: height 720 start 723 end 728 total 748 clock 59.86Hz
1280x720 (0x4b) 63.750MHz +HSync -VSync
h: width 1280 start 1328 end 1360 total 1440 skew 0 clock 44.27KHz
v: height 720 start 723 end 728 total 741 clock 59.74Hz
1024x768 (0x4c) 133.475MHz -HSync +VSync DoubleScan
h: width 1024 start 1100 end 1212 total 1400 skew 0 clock 95.34KHz
v: height 768 start 768 end 770 total 794 clock 60.04Hz
1024x768 (0x4d) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
960x720 (0x4e) 117.000MHz -HSync +VSync DoubleScan
h: width 960 start 1024 end 1128 total 1300 skew 0 clock 90.00KHz
v: height 720 start 720 end 722 total 750 clock 60.00Hz
928x696 (0x4f) 109.150MHz -HSync +VSync DoubleScan
h: width 928 start 976 end 1088 total 1264 skew 0 clock 86.35KHz
v: height 696 start 696 end 698 total 719 clock 60.05Hz
896x672 (0x50) 102.400MHz -HSync +VSync DoubleScan
h: width 896 start 960 end 1060 total 1224 skew 0 clock 83.66KHz
v: height 672 start 672 end 674 total 697 clock 60.01Hz
1024x576 (0x51) 98.500MHz -HSync +VSync DoubleScan
h: width 1024 start 1092 end 1200 total 1376 skew 0 clock 71.58KHz
v: height 576 start 577 end 580 total 597 clock 59.95Hz
1024x576 (0x52) 78.375MHz +HSync -VSync DoubleScan
h: width 1024 start 1048 end 1064 total 1104 skew 0 clock 70.99KHz
v: height 576 start 577 end 580 total 592 clock 59.96Hz
1024x576 (0x53) 46.500MHz -HSync +VSync
h: width 1024 start 1064 end 1160 total 1296 skew 0 clock 35.88KHz
v: height 576 start 579 end 584 total 599 clock 59.90Hz
1024x576 (0x54) 42.000MHz +HSync -VSync
h: width 1024 start 1072 end 1104 total 1184 skew 0 clock 35.47KHz
v: height 576 start 579 end 584 total 593 clock 59.82Hz
960x600 (0x55) 96.625MHz -HSync +VSync DoubleScan
h: width 960 start 1028 end 1128 total 1296 skew 0 clock 74.56KHz
v: height 600 start 601 end 604 total 622 clock 59.93Hz
960x600 (0x56) 77.000MHz +HSync -VSync DoubleScan
h: width 960 start 984 end 1000 total 1040 skew 0 clock 74.04KHz
v: height 600 start 601 end 604 total 617 clock 60.00Hz
960x540 (0x57) 86.500MHz -HSync +VSync DoubleScan
h: width 960 start 1024 end 1124 total 1288 skew 0 clock 67.16KHz
v: height 540 start 541 end 544 total 560 clock 59.96Hz
960x540 (0x58) 69.250MHz +HSync -VSync DoubleScan
h: width 960 start 984 end 1000 total 1040 skew 0 clock 66.59KHz
v: height 540 start 541 end 544 total 555 clock 59.99Hz
960x540 (0x59) 40.750MHz -HSync +VSync
h: width 960 start 992 end 1088 total 1216 skew 0 clock 33.51KHz
v: height 540 start 543 end 548 total 562 clock 59.63Hz
960x540 (0x5a) 37.250MHz +HSync -VSync
h: width 960 start 1008 end 1040 total 1120 skew 0 clock 33.26KHz
v: height 540 start 543 end 548 total 556 clock 59.82Hz
800x600 (0x5b) 81.000MHz +HSync +VSync DoubleScan
h: width 800 start 832 end 928 total 1080 skew 0 clock 75.00KHz
v: height 600 start 600 end 602 total 625 clock 60.00Hz
800x600 (0x5c) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
800x600 (0x5d) 36.000MHz +HSync +VSync
h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz
v: height 600 start 601 end 603 total 625 clock 56.25Hz
840x525 (0x5e) 73.125MHz -HSync +VSync DoubleScan
h: width 840 start 892 end 980 total 1120 skew 0 clock 65.29KHz
v: height 525 start 526 end 529 total 544 clock 60.01Hz
840x525 (0x5f) 59.500MHz +HSync -VSync DoubleScan
h: width 840 start 864 end 880 total 920 skew 0 clock 64.67KHz
v: height 525 start 526 end 529 total 540 clock 59.88Hz
864x486 (0x60) 32.500MHz -HSync +VSync
h: width 864 start 888 end 968 total 1072 skew 0 clock 30.32KHz
v: height 486 start 489 end 494 total 506 clock 59.92Hz
864x486 (0x61) 30.500MHz +HSync -VSync
h: width 864 start 912 end 944 total 1024 skew 0 clock 29.79KHz
v: height 486 start 489 end 494 total 500 clock 59.57Hz
800x512 (0x62) 51.562MHz +HSync +VSync DoubleScan
h: width 800 start 800 end 828 total 832 skew 0 clock 61.97KHz
v: height 512 start 512 end 514 total 515 clock 60.17Hz
700x525 (0x63) 61.000MHz +HSync +VSync DoubleScan
h: width 700 start 744 end 820 total 940 skew 0 clock 64.89KHz
v: height 525 start 526 end 532 total 541 clock 59.98Hz
800x450 (0x64) 59.125MHz -HSync +VSync DoubleScan
h: width 800 start 848 end 928 total 1056 skew 0 clock 55.99KHz
v: height 450 start 451 end 454 total 467 clock 59.95Hz
800x450 (0x65) 48.750MHz +HSync -VSync DoubleScan
h: width 800 start 824 end 840 total 880 skew 0 clock 55.40KHz
v: height 450 start 451 end 454 total 463 clock 59.82Hz
640x512 (0x66) 54.000MHz +HSync +VSync DoubleScan
h: width 640 start 664 end 720 total 844 skew 0 clock 63.98KHz
v: height 512 start 512 end 514 total 533 clock 60.02Hz
720x450 (0x67) 53.250MHz -HSync +VSync DoubleScan
h: width 720 start 760 end 836 total 952 skew 0 clock 55.93KHz
v: height 450 start 451 end 454 total 467 clock 59.89Hz
700x450 (0x68) 51.750MHz -HSync +VSync DoubleScan
h: width 700 start 740 end 812 total 924 skew 0 clock 56.01KHz
v: height 450 start 451 end 456 total 467 clock 59.96Hz
700x450 (0x69) 43.250MHz +HSync -VSync DoubleScan
h: width 700 start 724 end 740 total 780 skew 0 clock 55.45KHz
v: height 450 start 451 end 456 total 463 clock 59.88Hz
640x480 (0x6a) 54.000MHz +HSync +VSync DoubleScan
h: width 640 start 688 end 744 total 900 skew 0 clock 60.00KHz
v: height 480 start 480 end 482 total 500 clock 60.00Hz
640x480 (0x6b) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
720x405 (0x6c) 22.500MHz -HSync +VSync
h: width 720 start 744 end 808 total 896 skew 0 clock 25.11KHz
v: height 405 start 408 end 413 total 422 clock 59.51Hz
720x405 (0x6d) 21.750MHz +HSync -VSync
h: width 720 start 768 end 800 total 880 skew 0 clock 24.72KHz
v: height 405 start 408 end 413 total 419 clock 58.99Hz
684x384 (0x6e) 42.625MHz -HSync +VSync DoubleScan
h: width 684 start 720 end 788 total 892 skew 0 clock 47.79KHz
v: height 384 start 385 end 390 total 399 clock 59.88Hz
684x384 (0x6f) 36.125MHz +HSync -VSync DoubleScan
h: width 684 start 708 end 724 total 764 skew 0 clock 47.28KHz
v: height 384 start 385 end 390 total 395 clock 59.85Hz
680x384 (0x70) 42.375MHz -HSync +VSync DoubleScan
h: width 680 start 716 end 784 total 888 skew 0 clock 47.72KHz
v: height 384 start 385 end 390 total 399 clock 59.80Hz
680x384 (0x71) 36.000MHz +HSync -VSync DoubleScan
h: width 680 start 704 end 720 total 760 skew 0 clock 47.37KHz
v: height 384 start 385 end 390 total 395 clock 59.96Hz
640x400 (0x72) 41.750MHz -HSync +VSync DoubleScan
h: width 640 start 676 end 740 total 840 skew 0 clock 49.70KHz
v: height 400 start 401 end 404 total 415 clock 59.88Hz
640x400 (0x73) 35.500MHz +HSync -VSync DoubleScan
h: width 640 start 664 end 680 total 720 skew 0 clock 49.31KHz
v: height 400 start 401 end 404 total 411 clock 59.98Hz
576x432 (0x74) 40.810MHz -HSync +VSync DoubleScan
h: width 576 start 608 end 668 total 760 skew 0 clock 53.70KHz
v: height 432 start 432 end 434 total 447 clock 60.06Hz
640x360 (0x75) 37.250MHz -HSync +VSync DoubleScan
h: width 640 start 672 end 736 total 832 skew 0 clock 44.77KHz
v: height 360 start 361 end 364 total 374 clock 59.86Hz
640x360 (0x76) 31.875MHz +HSync -VSync DoubleScan
h: width 640 start 664 end 680 total 720 skew 0 clock 44.27KHz
v: height 360 start 361 end 364 total 370 clock 59.83Hz
640x360 (0x77) 18.000MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 22.50KHz
v: height 360 start 363 end 368 total 376 clock 59.84Hz
640x360 (0x78) 17.750MHz +HSync -VSync
h: width 640 start 688 end 720 total 800 skew 0 clock 22.19KHz
v: height 360 start 363 end 368 total 374 clock 59.32Hz
512x384 (0x79) 32.500MHz -HSync -VSync DoubleScan
h: width 512 start 524 end 592 total 672 skew 0 clock 48.36KHz
v: height 384 start 385 end 388 total 403 clock 60.00Hz
512x288 (0x7a) 23.250MHz -HSync +VSync DoubleScan
h: width 512 start 532 end 580 total 648 skew 0 clock 35.88KHz
v: height 288 start 289 end 292 total 299 clock 60.00Hz
512x288 (0x7b) 21.000MHz +HSync -VSync DoubleScan
h: width 512 start 536 end 552 total 592 skew 0 clock 35.47KHz
v: height 288 start 289 end 292 total 296 clock 59.92Hz
480x270 (0x7c) 20.375MHz -HSync +VSync DoubleScan
h: width 480 start 496 end 544 total 608 skew 0 clock 33.51KHz
v: height 270 start 271 end 274 total 281 clock 59.63Hz
480x270 (0x7d) 18.625MHz +HSync -VSync DoubleScan
h: width 480 start 504 end 520 total 560 skew 0 clock 33.26KHz
v: height 270 start 271 end 274 total 278 clock 59.82Hz
400x300 (0x7e) 20.000MHz +HSync +VSync DoubleScan
h: width 400 start 420 end 484 total 528 skew 0 clock 37.88KHz
v: height 300 start 300 end 302 total 314 clock 60.32Hz
400x300 (0x7f) 18.000MHz +HSync +VSync DoubleScan
h: width 400 start 412 end 448 total 512 skew 0 clock 35.16KHz
v: height 300 start 300 end 301 total 312 clock 56.34Hz
432x243 (0x80) 16.250MHz -HSync +VSync DoubleScan
h: width 432 start 444 end 484 total 536 skew 0 clock 30.32KHz
v: height 243 start 244 end 247 total 253 clock 59.92Hz
432x243 (0x81) 15.250MHz +HSync -VSync DoubleScan
h: width 432 start 456 end 472 total 512 skew 0 clock 29.79KHz
v: height 243 start 244 end 247 total 250 clock 59.57Hz
320x240 (0x82) 12.587MHz -HSync -VSync DoubleScan
h: width 320 start 328 end 376 total 400 skew 0 clock 31.47KHz
v: height 240 start 245 end 246 total 262 clock 60.05Hz
360x202 (0x83) 11.250MHz -HSync +VSync DoubleScan
h: width 360 start 372 end 404 total 448 skew 0 clock 25.11KHz
v: height 202 start 204 end 206 total 211 clock 59.51Hz
360x202 (0x84) 10.875MHz +HSync -VSync DoubleScan
h: width 360 start 384 end 400 total 440 skew 0 clock 24.72KHz
v: height 202 start 204 end 206 total 209 clock 59.13Hz
320x180 (0x85) 9.000MHz -HSync +VSync DoubleScan
h: width 320 start 332 end 360 total 400 skew 0 clock 22.50KHz
v: height 180 start 181 end 184 total 188 clock 59.84Hz
320x180 (0x86) 8.875MHz +HSync -VSync DoubleScan
h: width 320 start 344 end 360 total 400 skew 0 clock 22.19KHz
v: height 180 start 181 end 184 total 187 clock 59.32Hz
HDMI-1 disconnected (normal left inverted right x axis y axis)
Identifier: 0x43
Timestamp: 77681
Subpixel: unknown
Clones:
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
max bpc: 12
range: (8, 12)
content type: No Data
supported: No Data, Graphics, Photo, Cinema, Game
Colorspace: Default
supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater
aspect ratio: Automatic
supported: Automatic, 4:3, 16:9
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 92
supported: 92
non-desktop: 0
range: (0, 1)
DVI-I-4-4 disconnected (normal left inverted right x axis y axis)
Identifier: 0x124
Timestamp: 32831
Subpixel: unknown
Clones:
CRTCs: 3
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
PRIME Synchronization: 1
supported: 0, 1
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 34
supported: 34
non-desktop: 0
range: (0, 1)
DVI-I-3-3 disconnected (normal left inverted right x axis y axis)
Identifier: 0x102
Timestamp: 32831
Subpixel: unknown
Clones:
CRTCs: 4
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
PRIME Synchronization: 1
supported: 0, 1
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 34
supported: 34
non-desktop: 0
range: (0, 1)
DVI-I-2-2 disconnected (normal left inverted right x axis y axis)
Identifier: 0xe0
Timestamp: 32831
Subpixel: unknown
Clones:
CRTCs: 5
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
PRIME Synchronization: 1
supported: 0, 1
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 34
supported: 34
non-desktop: 0
range: (0, 1)
DVI-I-1-1 connected 1024x768+0+0 (0xba) normal (normal left inverted right x axis y axis) 344mm x 193mm
Identifier: 0xb7
Timestamp: 77681
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 6
CRTCs: 6
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff000469102140e20100
0d170103812213782ac3f59155549429
2550542fce0001010101010101010101
010101010101da1d56e250002030442d
470058c11000001e000000ff00414349
31363431202020202020000000fd000f
f00f7f11000a202020202020000000fc
004d4231363842202020202020200069
PRIME Synchronization: 0
supported: 0, 1
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 34
supported: 34
non-desktop: 0
range: (0, 1)
1366x768 (0xb9) 76.420MHz +HSync +VSync +preferred
h: width 1366 start 1434 end 1479 total 1592 skew 0 clock 48.00KHz
v: height 768 start 772 end 779 total 800 clock 60.00Hz
1024x768 (0xba) 78.750MHz +HSync +VSync *current
h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz
v: height 768 start 769 end 772 total 800 clock 75.03Hz
1024x768 (0xbb) 75.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.48KHz
v: height 768 start 771 end 777 total 806 clock 70.07Hz
1024x768 (0x4d) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0xbc) 50.000MHz +HSync +VSync
h: width 800 start 856 end 976 total 1040 skew 0 clock 48.08KHz
v: height 600 start 637 end 643 total 666 clock 72.19Hz
800x600 (0xbd) 49.500MHz +HSync +VSync
h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz
v: height 600 start 601 end 604 total 625 clock 75.00Hz
800x600 (0x5c) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
800x600 (0x5d) 36.000MHz +HSync +VSync
h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz
v: height 600 start 601 end 603 total 625 clock 56.25Hz
640x480 (0xbe) 31.500MHz -HSync -VSync
h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz
v: height 480 start 481 end 484 total 500 clock 75.00Hz
640x480 (0xbf) 31.500MHz -HSync -VSync
h: width 640 start 664 end 704 total 832 skew 0 clock 37.86KHz
v: height 480 start 489 end 492 total 520 clock 72.81Hz
640x480 (0x6b) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
1024x768 (0x4d) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x5c) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
800x600 (0x5d) 36.000MHz +HSync +VSync
h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz
v: height 600 start 601 end 603 total 625 clock 56.25Hz
640x480 (0x6b) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
User avatar
SMG
Level 25
Level 25
Posts: 31766
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Second monitor is not detected

Post by SMG »

minty_tea wrote: Sun Jul 18, 2021 10:00 amalthough my computer doesnt know it looks like that because if I press print screen it shows this:

https://postimg.cc/2VrfYsVn/7098576a
Did you try changing the refresh rate when you had the 1366x768 resolution? It should be ~60Hz per the xrandr output, but the 1024x768 should be ~75Hz per xrandr. Is the latter what you have when you get an image onscreen?

The 1366x768 is picked up as the preferred resolution with the 1024x768 as the current.

Code: Select all

DVI-I-1-1 connected 1024x768+0+0 (0xba) normal (normal left inverted right x axis y axis) 344mm x 193mm

1366x768 (0xb9) 76.420MHz +HSync +VSync +preferred
h: width 1366 start 1434 end 1479 total 1592 skew 0 clock 48.00KHz
v: height 768 start 772 end 779 total 800 clock 60.00Hz

1024x768 (0xba) 78.750MHz +HSync +VSync *current
h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz
v: height 768 start 769 end 772 total 800 clock 75.03Hz
I found this thread USB Monitor/Display link issue where the person was mentioning the same type of issue with that monitor, but on Windows 10. The person does mention the DisplayLink driver was automatically downloaded for Win10.

There is a DisplayLink driver for Linux-based distros, however, people have had to use some modifications to get it to work properly. I do not know if the driver you downloaded from ASUS is a DisplayLink one, but I assume it probably is.

At this point, I'm not sure if this is a driver issue or if it is a cable issue. Usually, if the DisplayLink driver does not work, there is no image, but that is not the case in this situation.

Let us know if changing the refresh rate gives you an image with 1366x768. If you have another cable, I suggest trying it to see if there is a difference.

If not, here is DisplayLink information in a post from someone whose manufacturer did not have a driver for them to download so they used the publicly available DisplayLink driver with some patches.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
minty_tea
Level 1
Level 1
Posts: 8
Joined: Sat Jul 17, 2021 9:36 pm

Re: Second monitor is not detected

Post by minty_tea »

The refresh rate of 60 was already the one provided using the display gui tool, so yes I did use that. I have now attempted switching also to 75.00 and 75.03 using the command line at the higher resolution and that didnt work.

I did

xrandr --output DVI-I-1-1 --mode 1366x768 --rate 75.03

and

xrandr --output DVI-I-1-1 --mode 1366x768 --rate 75.00

just gave all the same wonky effects.
User avatar
SMG
Level 25
Level 25
Posts: 31766
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Second monitor is not detected

Post by SMG »

minty_tea wrote: Tue Jul 20, 2021 9:14 am The refresh rate of 60 was already the one provided using the display gui tool, so yes I did use that. I have now attempted switching also to 75.00 and 75.03 using the command line at the higher resolution and that didnt work.
The other resolutions did not show in the drop-down? I thought the would since they did show in the verbose output.

Given you have an 8th-gen Intel and many have found better performance with those using a newer kernel, perhaps the newer kernel might update the i915 driver and help this situation.

Open Update Manager. Select View > Linux Kernels and click Continue. Make sure 5.11 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear. Install the kernel and then reboot for it to become active.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
minty_tea
Level 1
Level 1
Posts: 8
Joined: Sat Jul 17, 2021 9:36 pm

Re: Second monitor is not detected

Post by minty_tea »

Ok, so I updated the kernel from 5.4 to 5.11 and then it was no longer able to detect the screen, I guess because I installed the asus driver to the old kernel, and not the new kernel, so I tried to reinstall it again, but I am not able to on the 5.11 Kernel.

I ran the install script on, rebooted, and it didn't work. So I tried running the script with uninstall and the install and it gave an error. So I tried running it again with uninstall, rebooting and then with install and it is still giving an error.

When I run sudo ./displaylink-driver-5.3.1.34.run install

I see:

Verifying archive integrity... 100% All good.
Uncompressing DisplayLink Linux Driver 5.3.1.34 100%
DisplayLink Linux Software 5.3.1.34 install script called: install
Distribution discovered: Linux Mint 20.2

Installing

[ Installing EVDI ]
[[ Installing EVDI DKMS module ]]

Creating symlink /var/lib/dkms/evdi/1.7.0/source ->
/usr/src/evdi-1.7.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.11.0-25-generic all INCLUDEDIR=/lib/modules/5.11.0-25-generic/build/include KVERSION=5.11.0-25-generic DKMS_BUILD=1.......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.11.0-25-generic (x86_64)
Consult /var/lib/dkms/evdi/1.7.0/build/make.log for more information.
ERROR: Failed to install evdi/5.3.1.34 to the kernel tree.

And when I look in /var/lib/dkms/evdi/1.7.0/build/make.log, I see this:

DKMS make.log for evdi-1.7.0 for kernel 5.11.0-25-generic (x86_64)
.....
make KBUILD_VERBOSE=1 M=/var/lib/dkms/evdi/1.7.0/build SUBDIRS=/var/lib/dkms/evdi/1.7.0/build SRCROOT=/var/lib/dkms/evdi/1.7.0/build CONFIG_MODULE_SIG= -C /lib/modules/5.11.0-25-generic/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-25-generic'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
make -f ./scripts/Makefile.build obj=/var/lib/dkms/evdi/1.7.0/build \
single-build= \
need-builtin=1 need-modorder=1
gcc -Wp,-MMD,/var/lib/dkms/evdi/1.7.0/build/.evdi_drv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_drv"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/1.7.0/build/evdi_drv.o /var/lib/dkms/evdi/1.7.0/build/evdi_drv.c
gcc -Wp,-MMD,/var/lib/dkms/evdi/1.7.0/build/.evdi_modeset.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_modeset"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/1.7.0/build/evdi_modeset.o /var/lib/dkms/evdi/1.7.0/build/evdi_modeset.c
gcc -Wp,-MMD,/var/lib/dkms/evdi/1.7.0/build/.evdi_connector.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_connector"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/1.7.0/build/evdi_connector.o /var/lib/dkms/evdi/1.7.0/build/evdi_connector.c
gcc -Wp,-MMD,/var/lib/dkms/evdi/1.7.0/build/.evdi_encoder.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_encoder"' -DKBUILD_MODNAME='"evdi"' -c -o /var/lib/dkms/evdi/1.7.0/build/evdi_encoder.o /var/lib/dkms/evdi/1.7.0/build/evdi_encoder.c
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:87:3: error: ‘struct drm_driver’ has no member named ‘preclose’; did you mean ‘postclose’?
87 | .preclose = evdi_driver_preclose,
| ^~~~~~~~
| postclose
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:87:14: error: initialization of ‘void (*)(struct drm_device *)’ from incompatible pointer type ‘void (*)(struct drm_device *, struct drm_file *)’ [-Werror=incompatible-pointer-types]
87 | .preclose = evdi_driver_preclose,
| ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:87:14: note: (near initialization for ‘driver.release’)
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:92:3: error: ‘struct drm_driver’ has no member named ‘gem_free_object’; did you mean ‘gem_create_object’?
92 | .gem_free_object = evdi_gem_free_object,
| ^~~~~~~~~~~~~~~
| gem_create_object
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:92:21: error: initialization of ‘void (*)(struct drm_device *)’ from incompatible pointer type ‘void (*)(struct drm_gem_object *)’ [-Werror=incompatible-pointer-types]
92 | .gem_free_object = evdi_gem_free_object,
| ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:92:21: note: (near initialization for ‘driver.lastclose’)
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:93:3: error: ‘struct drm_driver’ has no member named ‘gem_vm_ops’
93 | .gem_vm_ops = &evdi_gem_vm_ops,
| ^~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:93:16: error: initialization of ‘void (*)(struct drm_device *)’ from incompatible pointer type ‘const struct vm_operations_struct *’ [-Werror=incompatible-pointer-types]
93 | .gem_vm_ops = &evdi_gem_vm_ops,
| ^
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:93:16: note: (near initialization for ‘driver.unload’)
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:107:3: error: ‘struct drm_driver’ has no member named ‘gem_prime_export’; did you mean ‘gem_prime_import’?
107 | .gem_prime_export = drm_gem_prime_export,
| ^~~~~~~~~~~~~~~~
| gem_prime_import
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:107:22: error: initialization of ‘int (*)(struct drm_device *, struct drm_file *, int, uint32_t *)’ {aka ‘int (*)(struct drm_device *, struct drm_file *, int, unsigned int *)’} from incompatible pointer type ‘struct dma_buf * (*)(struct drm_gem_object *, int)’ [-Werror=incompatible-pointer-types]
107 | .gem_prime_export = drm_gem_prime_export,
| ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:107:22: note: (near initialization for ‘driver.prime_fd_to_handle’)
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:108:3: error: ‘struct drm_driver’ has no member named ‘gem_prime_get_sg_table’; did you mean ‘gem_prime_import_sg_table’?
108 | .gem_prime_get_sg_table = evdi_prime_get_sg_table,
| ^~~~~~~~~~~~~~~~~~~~~~
| gem_prime_import_sg_table
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:108:28: error: initialization of ‘struct drm_gem_object * (*)(struct drm_device *, struct dma_buf *)’ from incompatible pointer type ‘struct sg_table * (*)(struct drm_gem_object *)’ [-Werror=incompatible-pointer-types]
108 | .gem_prime_get_sg_table = evdi_prime_get_sg_table,
| ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:108:28: note: (near initialization for ‘driver.gem_prime_import’)
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:111:3: error: ‘struct drm_driver’ has no member named ‘enable_vblank’
111 | .enable_vblank = evdi_enable_vblank,
| ^~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:111:19: error: initialization of ‘int (*)(struct drm_gem_object *, struct vm_area_struct *)’ from incompatible pointer type ‘int (*)(struct drm_device *, unsigned int)’ [-Werror=incompatible-pointer-types]
111 | .enable_vblank = evdi_enable_vblank,
| ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:111:19: note: (near initialization for ‘driver.gem_prime_mmap’)
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:112:3: error: ‘struct drm_driver’ has no member named ‘disable_vblank’
112 | .disable_vblank = evdi_disable_vblank,
| ^~~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:112:20: error: initialization of ‘int (*)(struct drm_file *, struct drm_device *, struct drm_mode_create_dumb *)’ from incompatible pointer type ‘void (*)(struct drm_device *, unsigned int)’ [-Werror=incompatible-pointer-types]
112 | .disable_vblank = evdi_disable_vblank,
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:112:20: note: (near initialization for ‘driver.dumb_create’)
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c: In function ‘evdi_platform_probe’:
/var/lib/dkms/evdi/1.7.0/build/evdi_drv.c:173:20: error: ‘struct dev_archdata’ has no member named ‘iommu’
173 | pdev->dev.archdata.iommu = INTEL_IOMMU_DUMMY_DOMAIN;
| ^
/var/lib/dkms/evdi/1.7.0/build/evdi_modeset.c: In function ‘evdi_crtc_cursor_set’:
/var/lib/dkms/evdi/1.7.0/build/evdi_modeset.c:133:2: error: implicit declaration of function ‘drm_gem_object_put_unlocked’; did you mean ‘drm_gem_object_put_locked’? [-Werror=implicit-function-declaration]
133 | drm_gem_object_put_unlocked(obj);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| drm_gem_object_put_locked
/var/lib/dkms/evdi/1.7.0/build/evdi_modeset.c: At top level:
/var/lib/dkms/evdi/1.7.0/build/evdi_modeset.c:164:20: error: initialization of ‘void (*)(struct drm_crtc *, struct drm_atomic_state *)’ from incompatible pointer type ‘void (*)(struct drm_crtc *, struct drm_crtc_state *)’ [-Werror=incompatible-pointer-types]
164 | .atomic_flush = evdi_crtc_atomic_flush,
| ^~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/evdi/1.7.0/build/evdi_modeset.c:164:20: note: (near initialization for ‘evdi_helper_funcs.atomic_flush’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/evdi/1.7.0/build/evdi_drv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/evdi/1.7.0/build/evdi_modeset.o] Error 1
if objdump -h /var/lib/dkms/evdi/1.7.0/build/evdi_encoder.o | grep -q __ksymtab; then gcc -E -D__GENKSYMS__ -Wp,-MMD,/var/lib/dkms/evdi/1.7.0/build/.evdi_encoder.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_encoder"' -DKBUILD_MODNAME='"evdi"' /var/lib/dkms/evdi/1.7.0/build/evdi_encoder.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_encoder.ver; ld -m elf_x86_64 -r -o /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_encoder.o /var/lib/dkms/evdi/1.7.0/build/evdi_encoder.o -T /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_encoder.ver; mv -f /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_encoder.o /var/lib/dkms/evdi/1.7.0/build/evdi_encoder.o; rm -f /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_encoder.ver; fi
if objdump -h /var/lib/dkms/evdi/1.7.0/build/evdi_connector.o | grep -q __ksymtab; then gcc -E -D__GENKSYMS__ -Wp,-MMD,/var/lib/dkms/evdi/1.7.0/build/.evdi_connector.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -Iinclude/drm -DMODULE -DKBUILD_BASENAME='"evdi_connector"' -DKBUILD_MODNAME='"evdi"' /var/lib/dkms/evdi/1.7.0/build/evdi_connector.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_connector.ver; ld -m elf_x86_64 -r -o /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_connector.o /var/lib/dkms/evdi/1.7.0/build/evdi_connector.o -T /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_connector.ver; mv -f /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_connector.o /var/lib/dkms/evdi/1.7.0/build/evdi_connector.o; rm -f /var/lib/dkms/evdi/1.7.0/build/.tmp_evdi_connector.ver; fi
make[1]: *** [Makefile:1848: /var/lib/dkms/evdi/1.7.0/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-25-generic'
make: *** [Makefile:22: all] Error 2
User avatar
SMG
Level 25
Level 25
Posts: 31766
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Second monitor is not detected

Post by SMG »

I just went back and checked the ASUS driver you installed and it indicates "Support Ubuntu 20.04, 19.04 and 18.04 & Linux Kernel version range is from 4.15 to 5.5." which is apparently why it didn't work on the 5.11 kernel. Sorry, I did not think of that before suggesting the newer kernel.

I went and checked the DisplayLink USB Graphics Software for Ubuntu and release 5.4 according its release notes "- Added support for kernel 5.11 and 5.12.".

However, as I indicated earlier in this thread (below), some people had to make adjustments to get the drivers from the DisplayLink website to work.
SMG wrote: Sun Jul 18, 2021 1:00 pmIf not, here is DisplayLink information in a post from someone whose manufacturer did not have a driver for them to download so they used the publicly available DisplayLink driver with some patches.
That post links to some other posts and there was a little trial and error in several of those threads, so I am not able to give you specific instructions (although there is the possibility it will work right out of the box for you since you would be the first person I know to test it with the 5.11 kernel). I suggest taking a Timeshift snapshot before working with the newer driver and any patches. You would also want to remove the ASUS driver before installing the newer driver.

Or you can just switch back to the 5.4 kernel and use what you currently have installed. Let me know if you want to do that and need instructions to do so.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
minty_tea
Level 1
Level 1
Posts: 8
Joined: Sat Jul 17, 2021 9:36 pm

Re: Second monitor is not detected

Post by minty_tea »

First before seeing this reply, I went back to my original kernel and reinstalled the driver there.

After seeing this reply, I went back to kernel 5.11, and installed the displaylink driver you pointed to in the link, and yeah, it works with the newer kernel, but I still have the same problem of only being able to use the screen at 1024x768 instead of 1366x768 which I have realized is quite sub optimal - as I can't even have 2 side by side pieces of code with 80 columns of text, on it at 1024 wide.

Maybe those links you pointed to will have info on how to tinker with it to get it to work at full resolution.
User avatar
SMG
Level 25
Level 25
Posts: 31766
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Second monitor is not detected

Post by SMG »

minty_tea wrote: Thu Jul 22, 2021 9:09 amMaybe those links you pointed to will have info on how to tinker with it to get it to work at full resolution.
You can check those, but my understanding is they needed to make those changes to get a display on their external monitor. I do not recall any of them having issues with the resolution of what was displayed.

One of those links led to a post on the DisplayLink forum and that is where the patches was described. Here is the Threads in Forum : Linux and Open Source section. Maybe something there will be of help since you apparently do not need the patch to get a display (although maybe it might help the issue you are experiencing). I recommend using Timeshift snapshots when experimenting.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
minty_tea
Level 1
Level 1
Posts: 8
Joined: Sat Jul 17, 2021 9:36 pm

Re: Second monitor is not detected

Post by minty_tea »

I found a solution that allows me to have near full resolution, at 1360x768 instead of 1366x768 and that seems to be good enough, it does allow for 2 vim windows with 80 columns side by side on the screen.

The solution was a script by Jei from this link, where having basically the same problem of a sckewed screen when using full resolution with display link driver: https://displaylink.org/forum/showthread.php?t=66356

I used that script and added it as a startup app, to automate it at the beginning.

After that, there was one little improvement I added, to better handle another program I was running, called Synergy by Symless

Synergy by Symless for sharing my mouse and keyboard with other computers; I discovered a problem where upon changing screen resolution with synergy going, there would be a weird problem where synergy wouldn't know that the total screen width for my computer had changed and would not let me access the far right of my laptop, but instead skip it to the next screen. I found someone else who had the same problem here:

https://forums.symless.com/topic/5431-s ... mand-line/

And I combined the first script with UniTrader's solution along with "-c configuration_file_path" as an option on synergys (synergys is for synergy server and synergyc is for synergy client - the computer that has had this second screen problem is running synergy as the server).

The combined script I created looked like this:

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

#!/bin/bash

killall synergys

# Adjust these parameters to your needs.
# These worked for me (AOC E1659Fwu)
OUTPUT="DVI-I-1-1"
HORIZONTAL_RES="1360"
VERTICAL_RES="768"

MODELINE="$(cvt ${HORIZONTAL_RES} ${VERTICAL_RES} | tail -n 1 | awk '{for (i=3; i<=NF; i++) print $i}')"
MODELINE_NAME=$(echo ${MODELINE} | awk '{print $1}' | sed -e 's/^"//' -e 's/"$//')

echo "Modeline:"
echo ${MODELINE_NAME} ${MODELINE}
echo

echo "[*] xrandr --newmode"
xrandr -d :0 --newmode ${MODELINE_NAME} ${MODELINE}

echo "[*] xrandr --addmode (${OUTPUT})"
xrandr -d :0 --addmode "${OUTPUT}" ${MODELINE_NAME}

echo "[*] Set new resolution"
xrandr -d :0 --output "${OUTPUT}" --mode ${MODELINE_NAME}

synergys -c ~/.local/share/Synergy/Synergy/LastConfig.cfg

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

I made a directory called Scripts under my home directory, and called this script fixscreen and made it executable.

I put this script in Linux's mint start up application, and tested with rebooting, and all seems to be working, pretty well.
User avatar
SMG
Level 25
Level 25
Posts: 31766
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Second monitor is not detected

Post by SMG »

minty_tea wrote: Thu Jul 22, 2021 11:07 amI put this script in Linux's mint start up application, and tested with rebooting, and all seems to be working, pretty well.
If you are satisfied with that solution, please go to your first post in this thread, click the pencil icon, and add [SOLVED] to the title so others know there is a solution in this thread.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Hardware Support”