Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Second monitor without signal (Acer Nitro AN515-51)

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
marcusdavanco
Posts: 14
Joined: 2023-03-09 16:58
Location: São Paulo, Brazil
Has thanked: 2 times
Contact:

[Solved] Second monitor without signal (Acer Nitro AN515-51)

#1 Post by marcusdavanco »

Hello,

I recently had a problem with my Linux Mint installation, and decided to migrate to Debian 11 using a stable distribution, with nonfree drivers, and everything is working well except for the second monitor that I can't get to work properly. The issue I'm facing is quite similar to the one this guy is describing here, so I'm following the same structure he used.

I'm using an Acer Nitro AN515-51 laptop, and here's my devices:

Code: Select all

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
Alongside the laptop monitor, I have another that works on the login screen, but when the display manager start, the second monitor screen switches to black and xrandr show these providers:

Code: Select all

xrandr --listproviders 
Providers: number : 2
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink         Offload crtcs: 3 outputs: 1 associated providers: 0 name:modesetting
Provider 1: id: 0xd4 cap: 0xf, Source Output, Sink Output, Source Offload, Sink     Offload crtcs: 4 outputs: 1 associated providers: 0 name:modesetting
I thought it was something to do with the driver I'm using, I believe it's Nouveau too, but I already tried installing different versions of the Nvidia proprietary drivers, but nothing worked.

The closest I got to make the second screen working, was when I included a nvidia.conf inside /etc/X11/xorg.conf.d/, but then the laptop monitor screen gone black and I had to remove the file to revert it.

So, how can I get my second monitor working properly?

Thanks in advance

Obs.: zamek42, the guy from the other post is probably gonna benefit from the answers here, but as I said, it's slightly different, and you could take a look on his topic here
Last edited by marcusdavanco on 2023-03-20 17:18, edited 4 times in total.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Second Monitor

#2 Post by Aki »

Hello,
What is your the manufacturer and model of your computer ?
Can you modify the subject of the first message in the thread to make it more informative for other users who wishe to help you ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

marcusdavanco
Posts: 14
Joined: 2023-03-09 16:58
Location: São Paulo, Brazil
Has thanked: 2 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#3 Post by marcusdavanco »

Hello,

I'm using an Acer Nitro AN515-51.
The subject of this thread was updated to be more informative.

CynicalDebian
Posts: 263
Joined: 2023-03-02 05:26
Location: USA
Has thanked: 50 times
Been thanked: 60 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#4 Post by CynicalDebian »

but I already tried installing different versions of the Nvidia proprietary drivers
Only use the nvidia driver that Debian provides.

apt install nvidia-driver

Please read:

https://wiki.debian.org/NVIDIA%20Optimus


If you want to try getting this to work with Nouveau.
https://nouveau.freedesktop.org/Optimus.html
Be seeing you...

marcusdavanco
Posts: 14
Joined: 2023-03-09 16:58
Location: São Paulo, Brazil
Has thanked: 2 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#5 Post by marcusdavanco »

I've followed your suggestion and installed the nvidia drivers provided by Debian. My system now uses the NVIDIA PRIME Render Offload to handle which GPU should be used and when, but now my second screen doesn't receive any signal even during boot.

Here's the output of the command nvidia-smi, which I thought may be useful:

Code: Select all

nvidia-smi
Sat Mar 11 19:31:41 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.161.03   Driver Version: 470.161.03   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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 ...  On   | 00000000:01:00.0 Off |                  N/A |
| N/A   57C    P8    N/A /  N/A |      6MiB /  4040MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       774      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+
Shouldn't I be making any changes to xrandr or xorg.conf.d?
Last edited by marcusdavanco on 2023-03-11 22:44, edited 2 times in total.

CynicalDebian
Posts: 263
Joined: 2023-03-02 05:26
Location: USA
Has thanked: 50 times
Been thanked: 60 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#6 Post by CynicalDebian »

Please post the output of:

Code: Select all

$xrandr
and

Code: Select all

$xrandr --listproviders 
I know you did in your original post but I want to see if anything has changed. I may have a simple solution.
Be seeing you...

marcusdavanco
Posts: 14
Joined: 2023-03-09 16:58
Location: São Paulo, Brazil
Has thanked: 2 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#7 Post by marcusdavanco »

Sure, here it is:

Code: Select all

xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.02*+  60.01    59.97    59.96    59.93  
   ...
   320x180       59.84    59.32  

Code: Select all

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 1 associated providers: 0 name:modesetting
Provider 1: id: 0x248 cap: 0x2, Sink Output crtcs: 4 outputs: 1 associated providers: 0 name:NVIDIA-G0

CynicalDebian
Posts: 263
Joined: 2023-03-02 05:26
Location: USA
Has thanked: 50 times
Been thanked: 60 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#8 Post by CynicalDebian »

Ok, so your providers list looks correct. Try this command

Code: Select all

$xrandr --setprovideroffloadsink 1 0
Then run

Code: Select all

$xrandr 
Be seeing you...

marcusdavanco
Posts: 14
Joined: 2023-03-09 16:58
Location: São Paulo, Brazil
Has thanked: 2 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#9 Post by marcusdavanco »

The first command failed:

Code: Select all

xrandr --setprovideroffloadsink 1 0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  34 (RRSetProviderOffloadSink)
  Value in failed request:  0x248
  Serial number of failed request:  16
  Current serial number in output stream:  17

CynicalDebian
Posts: 263
Joined: 2023-03-02 05:26
Location: USA
Has thanked: 50 times
Been thanked: 60 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#10 Post by CynicalDebian »

My apologies, I was mistaken with that first command due to a misunderstanding.

I think this will work, from the debian wiki page I linked earlier.
(# means root)
*PRIME Render Offload with an External Display*
Some systems require the use of the NVIDIA driver as the output source provider when the EFI graphics configuration is set to 'Hybrid' mode. This can easily be configured with:

Code: Select all

#nvidia-xconfig --prime 
Be seeing you...

marcusdavanco
Posts: 14
Joined: 2023-03-09 16:58
Location: São Paulo, Brazil
Has thanked: 2 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#11 Post by marcusdavanco »

No worries,

I didn't had nvidia-xconfig installed, so I had to install it, and after running it, here's the output:

Code: Select all

nvidia-xconfig --prime

WARNING: Unable to locate/open X configuration file.

X Configuration file set up for PRIME. Please run "xrandr
--setprovideroutputsource modesetting NVIDIA-0" and "xrandr --auto" to enable.
See the README for more details.
Option "AllowEmptyInitialConfiguration" "True" added to Screen "Screen0".
New X configuration file written to '/etc/X11/xorg.conf'
I think this thing is outdated because I don't have a xorg.conf, but a xorg.conf.d, that's the reason it's not finding the configuration file.
I even tried to run the commands that it suggests, but the outcome is the same (which is somewhat different from what we were facing until now):

The second monitor works, but the laptop monitor goes black...

I think we're almost there...

----
Edit: I did it again and used NVIDIA-0 instead of NVIDIA-G0 as was displayed in the xrandr providers available, and that solved the problem, thanks CynicalDebian!

However, I have to type the following commands every time I reboot, and also make some tweaks on the display settings to get them to be displayed the correct way, is there a way to set those as default, so I don't have to?

Code: Select all

xrandr --setprovideroutputsource modesetting NVIDIA-0" 
xrandr --auto
-For those, I believe I could put them on .xinitc, is there a better way of doing that?

-And how about the cinammon layout settings? Is there a way of making the adjustments through cl, so that I could give them the same treatment as the commands above?
Last edited by marcusdavanco on 2023-03-14 17:37, edited 1 time in total.

CynicalDebian
Posts: 263
Joined: 2023-03-02 05:26
Location: USA
Has thanked: 50 times
Been thanked: 60 times
Contact:

Re: [Software] Second monitor without signal (Acer Nitro AN515-51)

#12 Post by CynicalDebian »

https://wiki.debian.org/NVIDIA%20Optimu ... rimary_GPU

How you configure Xrandr to start automatically will depend on your display manager configuration.
Be seeing you...

marcusdavanco
Posts: 14
Joined: 2023-03-09 16:58
Location: São Paulo, Brazil
Has thanked: 2 times
Contact:

Re: [Solved] Second monitor without signal (Acer Nitro AN515-51)

#13 Post by marcusdavanco »

I've followed those instructions and it worked like a charm, thank you!

Post Reply