LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-04-2022, 02:52 AM   #1
dubiousa
Member
 
Registered: Jul 2020
Location: Crete
Distribution: Slackware-current_x86-64
Posts: 72

Rep: Reputation: Disabled
Question Dual monitor setup


Hi guys, running -current with XFCE here, OMEN15, my second monitor is not being detected at all by xrandr.
It works perfectly fine in windows though.
What to do?

inxi -Gxx output:
Graphics:
Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q]
vendor: Hewlett-Packard driver: N/A pcie: speed: 8 GT/s lanes: 8
bus-ID: 01:00.0 chip-ID: 10de:249d
Device-2: AMD Cezanne vendor: Hewlett-Packard driver: amdgpu v: kernel
pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: none
bus-ID: 07:00.0 chip-ID: 1002:1638
Device-3: Cheng Uei Precision Industry (Foxlink) HP Wide Vision HD Camera
type: USB driver: uvcvideo bus-ID: 1-3:3 chip-ID: 05c8:03df
Display: server: X.Org v: 1.20.14 compositor: xfwm v: 4.16.1 driver: X:
loaded: amdgpu unloaded: modesetting,vesa alternate: fbdev gpu: amdgpu
display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96
Monitor-1: eDP-1 mapped: eDP model: AU Optronics 0x82ed res: 1920x1080
dpi: 142 diag: 394mm (15.5")
OpenGL: renderer: AMD RENOIR (DRM 3.44.0 5.17.1 LLVM 13.0.1)
v: 4.6 Mesa 21.3.8 direct render: Yes


xrandr:
bash-5.1$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 144.03*+ 60.08
1680x1050 144.03
1280x1024 144.03
1440x900 144.03
1280x800 144.03
1280x720 144.03
1024x768 144.03
800x600 144.03
640x480 144.03
EDIT:
So i see now i have to install the nvidia driver for the newest kernel, as nouveau is still not supporting the NV170 (as seen here https://nouveau.freedesktop.org/FeatureMatrix.html)

Sadly, both of the newest drivers from nvidia's website give me a NO.
I'll be trying installing these 2:
https://github.com/Ponce/slackbuilds.../nvidia-driver
https://github.com/Ponce/slackbuilds.../nvidia-kernel

Do i need anything else?

Last edited by dubiousa; 04-04-2022 at 09:40 AM. Reason: new info
 
Old 04-04-2022, 11:22 AM   #2
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Nouveau doesn't properly support even my old GTX 1070 Ti. It works but barely. In my room I have 4 active PCs all with nvidia - Quadro FX570M, GT 640, GT 760, and GTX 1070 Ti and all of them do dual monitor. The laptop with the Quadro I do enhance capability with a VGA-to-HDMI dingle for 1080p (it will even do 4K but not very smoothly). On all of them I install the proprietary nvidia driver from runlevel 3 via the NVIDIA.foo.run script. It did help to play around with nvidia-settings and xorg.conf to get size, resolution, and orientation exact but all of them just worked OTB. I've never had to employ xrander to get what I want (tried it, didn't like it). It seems really powerful but a bit "clunky" on newer gear. "Coolbits" is real deal. It has helped me a great deal to extract the NVIDIA-foo.run file to get at the docs right in my $HOME for fast access. Maybe that would help you.
 
Old 04-06-2022, 03:03 AM   #3
dubiousa
Member
 
Registered: Jul 2020
Location: Crete
Distribution: Slackware-current_x86-64
Posts: 72

Original Poster
Rep: Reputation: Disabled
Hi Enorbet.
Funnily nouveau is working OK on my son's laptop with the 2060 or 2070 (idk).
The nvidia driver worked OK on mine with the 5.16.something kernel, but i was on the road without access to my second monitor, so didn't test.

As i understand it, i would have to compile a new version of the 5.17 kernel with the Ponce's modules from the links i've posted to be able to install the nvidia drivers.
I do not consider myself to be a power user, so perhaps i'll just wait for the nouveau or nvidia driver update, and my next pc will be one with a iris XE graphic card, no dedicated stuff.
Thanks for the Coolbits tipp!
 
Old 04-06-2022, 03:14 AM   #4
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Display: server: X.Org v: 1.20.14 compositor: xfwm v: 4.16.1 driver: X: loaded: amdgpu
Am I wrong or it looks like X is currently using the AMD GPU?
 
Old 04-06-2022, 03:43 AM   #5
dubiousa
Member
 
Registered: Jul 2020
Location: Crete
Distribution: Slackware-current_x86-64
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ctrlaltca View Post
Am I wrong or it looks like X is currently using the AMD GPU?
Yes it is.
Too bad having nice hardware and not be able to use it lol.
I've had to disable nouveau, else i only had black screen and no way to start X:
Code:
sudo vim /etc/modprobe.d/blacklist.conf

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
So the nvidia driver still "works" in 5.16.13, but the second display is giving me this
https://imgur.com/gT5xNKj.png

With this kernel i get
Graphics:
Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q]
vendor: Hewlett-Packard driver: nvidia v: 510.54 pcie: speed: 8 GT/s
lanes: 8 bus-ID: 01:00.0 chip-ID: 10de:249d
Device-2: AMD Cezanne vendor: Hewlett-Packard driver: amdgpu v: kernel
pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: none
bus-ID: 07:00.0 chip-ID: 1002:1638
Device-3: Cheng Uei Precision Industry (Foxlink) HP Wide Vision HD Camera
type: USB driver: uvcvideo bus-ID: 1-3:3 chip-ID: 05c8:03df
Display: server: X.Org v: 1.20.14 compositor: xfwm v: 4.16.1 driver: X:
loaded: amdgpu,nvidia unloaded: modesetting,nouveau,nv,vesa
alternate: fbdev gpu: amdgpu display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 4480x1080 s-dpi: 96
Monitor-1: HDMI-1-0 size-res: N/A
Monitor-2: eDP pos: primary res: 1920x1080 dpi: 142 diag: 394mm (15.53")
OpenGL: renderer: AMD RENOIR (DRM 3.44.0 5.16.13 LLVM 13.0.1)
v: 4.6 Mesa 21.3.8 direct render: Yes

EDIT:
So i've activated the nvidia driver with assigning the monitor in 10-nvidia.conf and using the last working kernel 5-16-13,
now i am only able to use the external monitor, the normal monitor is not being seen now. This is the outputof my ls -l /usr/lib/libGL*
lrwxrwxrwx 1 root root 29 Mar 12 02:29 /usr/lib/libGLESv1_CM_nvidia.so.1 -> libGLESv1_CM_nvidia.so.510.54
-rwxr-xr-x 1 root root 71120 Mar 12 02:29 /usr/lib/libGLESv1_CM_nvidia.so.510.54
lrwxrwxrwx 1 root root 26 Mar 12 02:29 /usr/lib/libGLESv2_nvidia.so.2 -> libGLESv2_nvidia.so.510.54
-rwxr-xr-x 1 root root 128464 Mar 12 02:29 /usr/lib/libGLESv2_nvidia.so.510.54
lrwxrwxrwx 1 root root 23 Mar 12 02:29 /usr/lib/libGLX_indirect.so.0 -> libGLX_nvidia.so.510.54
lrwxrwxrwx 1 root root 23 Mar 12 02:29 /usr/lib/libGLX_nvidia.so.0 -> libGLX_nvidia.so.510.54
-rwxr-xr-x 1 root root 1082980 Mar 12 02:29 /usr/lib/libGLX_nvidia.so.510.54

Is there ANY possibility to use BOTH of them displays?
So let's say the original laptop display with the amdgpu driver and the second display with the nvidia?
I really need to have more than 3 windows open and visible, and this is not possible on only 1 monitor.

Thanks!

Last edited by dubiousa; 04-06-2022 at 06:16 AM.
 
Old 04-06-2022, 12:31 PM   #6
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
So this is a laptop with some sort of Optimus/Bumblebee type dual GPU with AMD and Nvidia? I suppose if that's so it's actually no weirder than Intel and Nvidia but it does sound funny since they are in heavy competition right now. Then again, Intel is starting to double-down on graphics even though they probably should be looking into ARM and RISC-V
 
Old 04-06-2022, 02:07 PM   #7
dubiousa
Member
 
Registered: Jul 2020
Location: Crete
Distribution: Slackware-current_x86-64
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enorbet View Post
So this is a laptop with some sort of Optimus/Bumblebee type dual GPU with AMD and Nvidia? I suppose if that's so it's actually no weirder than Intel and Nvidia but it does sound funny since they are in heavy competition right now. Then again, Intel is starting to double-down on graphics even though they probably should be looking into ARM and RISC-V
Yes, it is an HP Omen 15 with
AMD Ryzen7 5800H radeon graphics 3.2 Ghz
32GB RAM
and the devilish nvidia RTX 3070MQ discrete graphics card

Nouveau has a massive problem with the RTX3xxx, so i had to disable it (black screen, no X possible).
The amdgpu works very well, but the HDMI is plugged directly into the nvidia, so i can't get the second monitor to work without enabling the nvidia proprietary driver (which does not work with 5.17.1, but does work with 5.16.13). My problem is, that i can get the main laptop monitor to work with the amdgpu,
OR
the external monitor with the nvidia driver,
but not both (i would really need 2 monitors)

I was searching around for another laptop to buy, but yeah, also the ones with the intel iris xe card, or the one's with AMD only are now set in the higher price category than my machine would bring on selling it, so i would be buying less hardware for more money - and technically, this is a great piece of PC (i do own it for almost a year now and had NO PROBLEMS at all yet).

I hope i can resolve this issue, as i've planned on ditching windows completely, it is pushing me to update to Win11, which would mean i have to abandon linux (secure boot and all).

Funnily, my son has an older modell with AMD/RTX2060 combination, and the nouveau seems not to encounter problems, still, he also can't connect to his second monitor.
(disabled)

I've had the ASUS TUF pure AMD previously, only lasted 2 weeks till the mainboard gave up, and this was the next best thing to work on and carry it around once in a while.

EDIT:
I've ordered an USB->HDMI adapter, let's see how that will work out!

Last edited by dubiousa; 04-06-2022 at 02:26 PM.
 
Old 04-09-2022, 04:48 AM   #8
dubiousa
Member
 
Registered: Jul 2020
Location: Crete
Distribution: Slackware-current_x86-64
Posts: 72

Original Poster
Rep: Reputation: Disabled
Unhappy

OK
So i see having a second monitor through HDMI with my setup is not possible or nobody ever attempted it?
 
Old 05-10-2022, 01:53 PM   #9
dubiousa
Member
 
Registered: Jul 2020
Location: Crete
Distribution: Slackware-current_x86-64
Posts: 72

Original Poster
Rep: Reputation: Disabled
Hi guys,
EDIT - it works now!
Everybody with a relatively new laptop with amd onboard/nVIDIA 2060 - 3070:
you just have to stay at kernel 5.16.13 - it is the last one which works with the nVIDIA drivers.

install the nVIDIA Driver, create /etc/X11/xorg.conf.d/10-nvidia.conf like this (your data from):
Quote:
$inxi -Fxx
Quote:
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "Nvidia Corporation"
BoardName ""
EndSection
Then in the same folder
Quote:
#touch Xorg.conf
#vim Xorg.conf
like this:

Quote:
Section "ServerLayout"
Identifier "layout"
Screen 0 "TV"
EndSection

Section "Device"
Identifier "NVIDIA GA104M"
Driver "nvidia"
BusID "PCI:01:00:0"
Option "TripleBuffer" "true"
EndSection

Section "Screen"
Identifier "TV"
Device "NVIDIA GA104M"
Option "AllowEmptyInitialConfiguration"
Option "DPI" "96 x 96"
EndSection

Section "Device"
Identifier "AMD Cezanne"
Driver "amdgpu"
BusID "PCI:07:00:0"
EndSection

Section "Screen"
Identifier "Laptop"
Device "AMD Cezanne"
EndSection

Section "DRI"
# Device "amdgpu"
EndSection
Restart, log in, settings->display, enable and all is fine!

Thanks for every help i've got here!

Last edited by dubiousa; 05-10-2022 at 01:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu/GNOME dual monitor setup: Preferring the primary monitor Doc CPU Linux - Desktop 2 09-05-2011 04:58 AM
[SOLVED] Nvidia dual monitor setup problems getting second monitor to work tradet Slackware 2 08-12-2011 06:38 AM
default monitor on nvidia / dual monitor setup fenderog SUSE / openSUSE 3 05-01-2009 05:36 PM
How to automatically disable dual monitor setup when only one monitor is present NielsKM Linux - Laptop and Netbook 1 01-01-2008 11:17 AM
Booting to wrong Monitor (w/ dual monitor setup) NeoNostalgia Linux - General 1 06-30-2004 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration