Second Monitor not detected, but works fine with Windows

nvidia-smi : command not found.
Dont know why, I downloaded the drivers from mhwd and also from the GUI utility.Both times, couldn’t get nvidia-smi

yes i already recognized the mess, your nvidia-drivers are missing completely. i don’t understand how this happened but okay ■■■■ happens. please install “linux519-nvidia” package. if it doesn’t work it’s propably because of some missing headers. if so please report but first try to install this package and try if it installs without additional headers.

edit: the additional headerpackage is called “linux519-headers”

This worked, thanks

nvidia-smi
Sat Aug 20 13:46:57 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   46C    P0    N/A /  N/A |      0MiB /  4096MiB |      1%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

well okay let’s recheck before reboot the following outputs

cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
echo $XDG_SESSION_TYPE
systemctl status optimus-manager

AND you run this 2 commands again ? (you said it stopped at first try, so rerun them)

sudo update-grub
sudo mkinitcpio -P

cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT

GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor udev.log_priority=3 optimus-manager.startup=nvidia nvidia_drm.modeset=1"

echo $XDG_SESSION_TYPE

x11


● optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; preset: disabled)
     Active: active (running) since Sat 2022-08-20 13:27:55 CEST; 25min ago
   Main PID: 941 (python3)
      Tasks: 1 (limit: 9321)
     Memory: 18.0M
        CPU: 392ms
     CGroup: /system.slice/optimus-manager.service
             └─941 /usr/bin/python3 -u -m optimus_manager.daemon

Aug 20 13:27:55 kramer-nitroan51552 python3[829]:     _load_module(available_modules, "nvidia", options=nvidia_options)
Aug 20 13:27:55 kramer-nitroan51552 python3[829]:   File "/usr/lib/python3.10/site-packages/optimus_manager/kernel.py", line 241, in _load_module
Aug 20 13:27:55 kramer-nitroan51552 python3[829]:     raise KernelSetupError(
Aug 20 13:27:55 kramer-nitroan51552 python3[829]: optimus_manager.kernel.KernelSetupError: module nvidia is not available for current kernel. Is the corresponding package installed ?
Aug 20 13:27:55 kramer-nitroan51552 python3[829]: [158] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
Aug 20 13:27:55 kramer-nitroan51552 python3[829]: [159] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20220820T132755', 'requested_mode': 'nvidia'}
Aug 20 13:27:55 kramer-nitroan51552 systemd[1]: Started Optimus Manager Commands Daemon.
Aug 20 13:27:55 kramer-nitroan51552 python3[941]: [2] INFO: # Commands daemon
Aug 20 13:27:55 kramer-nitroan51552 python3[941]: [2] INFO: Opening UNIX socket
Aug 20 13:27:55 kramer-nitroan51552 python3[941]: [2] INFO: Awaiting commands

you did a rerun of

sudo update-grub
sudo mkinitcpio -P

???

and what about

systemctl status optimus-manager

!?

updated above. Please check.

and you rerun

sudo update-grub
sudo mkinitcpio -P

?

Yes, this worked. Thanks a lot. My second monitor worked. My laptop screen does not though.
Did this too.
sudo systemctl enable nvidia-persistenced

1 Like

this is a question of the system settings now ! you can activate both, or only one of them ! but this is only a system-setting of the used graphical-user-enviroment. since i’m not running i3 (i use plasma) you should check tutorials how to activate/deactivate and setup the displays on i3.

P.S.: just to make sure

glxinfo | grep server

is nvidia now ? right ?

I figured this out through ARandR. Both monitors are working now. Thanks a lot. I really appreciate it. :smiling_face:
Spent one whole day figuring this out. You have been a god-sent

Yes,


> glxinfo | grep server

server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:

so enjoy your acer- :poop: :rofl:
and your weekend

:rofl: :rofl:
You too

I’m agree with it is why when I 've recently changed my old Acer laptop taken a …Asus.
And Nice/great that you are an expert with Nvidia Card. :yum:

I’m glad to see that your problem is solved thanks to the expert nvidia Olli.

Just to know, could you pass again this commands now that all is working for seeing the differences:

xrandr --listmonitors
xrandr --listproviders
sudo lspci -nnk | grep -i vga
sudo ddcutil detect

xrandr --listmonitors


Monitors: 2
 0: +*eDP1 1920/340x1080/190+0+0  eDP1
 1: +HDMI-0 1920/510x1080/287+0+0  HDMI-0

> xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x1b7 cap: 0x1, Source Output crtcs: 4 outputs: 1 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x200 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:Intel

> sudo lspci -nnk | grep -i vga

00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] [10de:1c8c] (rev a1)

> sudo ddcutil detect

Unable to open directory /sys/bus/i2c/devices/i2c--1: No such file or directory
Device /dev/i2c-255 does not exist. Error = ENOENT(2): No such file or directory
/sys/bus/i2c buses without /dev/i2c-N devices: /sys/bus/i2c/devices/i2c-255
Driver i2c_dev must be loaded or builtin
See https://www.ddcutil.com/kernel_module
Invalid display
   I2C bus:  /dev/i2c-7
   DRM connector:           card0-eDP-1
   EDID synopsis:
      Mfg id:               LGD - UNK
      Model:                
      Product code:         1496  (0x05d8)
      Serial number:        
      Binary serial number: 0 (0x00000000)
      Manufacture year:     2018,  Week: 0
   DDC communication failed
   This is an eDP laptop display. Laptop displays do not support DDC/CI.

Invalid display
   I2C bus:  /dev/i2c-9
   DRM connector:           card1-HDMI-A-1
   EDID synopsis:
      Mfg id:               MED - Messeltronik Dresden GmbH
      Model:                MD 20144
      Product code:         13876  (0x3634)
      Serial number:        
      Binary serial number: 16843009 (0x01010101)
      Manufacture year:     2011,  Week: 0
   DDC communication failed
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.