https ://forums.developer.nvidia.com/t/external-monitor-not-detected-on-debian-11-with-rtx-3050-legion-5i-pro/198406
(I have the same problem as this guy, exact same issue.)
I have an hpec2075 ax laptop with AMD R5 APU and RTX 3050 eGPU.
My issue and problem is exact same except his got solved with optimus setting where as I don’t have optimus.
Preformatted text
Same as him when I remove the /etc/X11/xorg.conf , that I generated with nvidia-xconfig, then my external display starts to work that is connected with the HDMI, else if I delete those file, then only my intenal laptop display would work.
Here, as you can see my inix -G output,
Here, my xorg.conf :
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 535.86.05
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
nvidia-smi
Thu Jul 20 23:47:43 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.86.05 Driver Version: 535.86.05 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3050 ... Off | 00000000:01:00.0 On | N/A |
| N/A 46C P8 9W / 60W | 716MiB / 4096MiB | 44% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 951 G /usr/lib/Xorg 227MiB |
| 0 N/A N/A 1031 G /usr/bin/kwalletd5 1MiB |
| 0 N/A N/A 1097 G /usr/bin/ksmserver 1MiB |
| 0 N/A N/A 1099 G /usr/bin/kded5 1MiB |
| 0 N/A N/A 1100 G /usr/bin/kwin_x11 91MiB |
| 0 N/A N/A 1134 G /usr/bin/plasmashell 32MiB |
| 0 N/A N/A 1164 G ...b/polkit-kde-authentication-agent-1 1MiB |
| 0 N/A N/A 1166 G /usr/lib/xdg-desktop-portal-kde 1MiB |
| 0 N/A N/A 1317 G /usr/bin/kclockd 1MiB |
| 0 N/A N/A 1319 G /usr/lib/kdeconnectd 1MiB |
| 0 N/A N/A 1331 G /usr/bin/kaccess 1MiB |
| 0 N/A N/A 1337 G /usr/lib/DiscoverNotifier 1MiB |
| 0 N/A N/A 1338 G /usr/bin/kalendarac 1MiB |
| 0 N/A N/A 1350 G /usr/bin/kmix 1MiB |
| 0 N/A N/A 1451 G /usr/bin/akonadi_control 1MiB |
| 0 N/A N/A 1516 G /usr/bin/akonadi_akonotes_resource 1MiB |
| 0 N/A N/A 1517 G /usr/bin/akonadi_archivemail_agent 1MiB |
| 0 N/A N/A 1518 G /usr/bin/akonadi_birthdays_resource 1MiB |
| 0 N/A N/A 1519 G /usr/bin/akonadi_contacts_resource 1MiB |
| 0 N/A N/A 1520 G .../bin/akonadi_followupreminder_agent 1MiB |
| 0 N/A N/A 1521 G /usr/bin/akonadi_ical_resource 1MiB |
| 0 N/A N/A 1528 G /usr/bin/akonadi_indexing_agent 1MiB |
| 0 N/A N/A 1531 G /usr/bin/akonadi_maildir_resource 1MiB |
| 0 N/A N/A 1534 G /usr/bin/akonadi_maildispatcher_agent 1MiB |
| 0 N/A N/A 1535 G /usr/bin/akonadi_mailfilter_agent 1MiB |
| 0 N/A N/A 1536 G /usr/bin/akonadi_mailmerge_agent 1MiB |
| 0 N/A N/A 1537 G /usr/bin/akonadi_migration_agent 1MiB |
| 0 N/A N/A 1538 G /usr/bin/akonadi_newmailnotifier_agent 1MiB |
| 0 N/A N/A 1539 G /usr/bin/akonadi_notes_agent 1MiB |
| 0 N/A N/A 1544 G /usr/bin/akonadi_sendlater_agent 1MiB |
| 0 N/A N/A 1547 G /usr/bin/akonadi_unifiedmailbox_agent 1MiB |
| 0 N/A N/A 1712 G /usr/bin/kitty 2MiB |
| 0 N/A N/A 1758 G /usr/lib/firefox/firefox 131MiB |
| 0 N/A N/A 2392 G /usr/bin/spectacle 9MiB |
| 0 N/A N/A 2770 G ...,WinRetrieveSuggestionsOnlyOnDemand 89MiB |
| 0 N/A N/A 3013 G /usr/bin/dolphin 1MiB |
| 0 N/A N/A 3041 G /usr/bin/kate 1MiB |
+---------------------------------------------------------------------------------------+
xrandr
xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
Earlier when I deleted the xorg.conf, xrandr was detecting both my displays.