Re: Two graphics cards? Intel and AMD/ATI? What xserver-xorg-* I can uninstall?

2020-04-07 Thread Felix Miata
Felix Miata composed on 2020-04-07 16:13 (UTC-0400):

> Marcelo Laia composed on 2020-04-07 12:53 (UTC-0300):

>> 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT 
>> Integrated Graphics Controller [8086:0a16] (rev 0b)
>> 03:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] 
>> Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 
>> Mobile] [10...

>> inxi -GSxxza command output

>> marcelo@marcelo:~$ inxi -Gxx

>> Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell 
>> driver: i915 v: kernel bus ID: 00:02.0 
>>chip ID: 8086:0a16 
>>Display: x11 server: X.Org 1.20.7 driver: i915 compositor: 
>> gnome-shell resolution: 1920x1080~60Hz, 1920x1080~60Hz 
>>OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 
>> 19.3.3 compat-v: 3.0 direct render: Yes 

> This is inxi output unlike any I have ever seen.

>   driver: i915 v: kernel

> is normal and expected, a result of using the i915 kernel module.

>   X.Org 1.20.7 driver: i915 compositor

> is unexpected. i915 is not an X graphics driver. Compositor is normally on the
> next line. Normally one would expect that output to resemble this:

>   X.Org 1.20.7 driver: modesetting unloaded: fbdev,vesa alternate: intel

> Of course, these are for systems with only one GPU. Your laptop has dual 
> GPUs, so
> there should be a Device-2, which is missing from inxi output

Should you desire to know the expected output from inxi -Gxx, and share it, the
inxi author has implemented a tentative fix to the recently discovered 6 year 
old
problem. This is his instruction:

cd /usr/local/bin && wget -O pinxi smxi.org/pinxi && chmod +x pinxi

Probably this requires a root login to correctly execute. pinxi is the beta
version of inxi, so your test would be:

pinxi -Gxx

The author is likely interested to see your result should you proceed.

https://github.com/smxi/inxi/issues/214 is the relevant bug report about this.
-- 
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



Re: Two graphics cards? Intel and AMD/ATI? What xserver-xorg-* I can uninstall?

2020-04-07 Thread Felix Miata
Marcelo Laia composed on 2020-04-07 12:53 (UTC-0300):

> 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT 
> Integrated Graphics Controller [8086:0a16] (rev 0b)
> 03:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] 
> Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 
> Mobile] [10...

> inxi -GSxxza command output
> 
> marcelo@marcelo:~$ inxi -Gxx

> Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell 
> driver: i915 v: kernel bus ID: 00:02.0 
>chip ID: 8086:0a16 
>Display: x11 server: X.Org 1.20.7 driver: i915 compositor: 
> gnome-shell resolution: 1920x1080~60Hz, 1920x1080~60Hz 
>OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 19.3.3 
> compat-v: 3.0 direct render: Yes 

This is inxi output unlike any I have ever seen.

driver: i915 v: kernel

is normal and expected, a result of using the i915 kernel module.

X.Org 1.20.7 driver: i915 compositor

is unexpected. i915 is not an X graphics driver. Compositor is normally on the
next line. Normally one would expect that output to resemble this:

X.Org 1.20.7 driver: modesetting unloaded: fbdev,vesa alternate: intel

Of course, these are for systems with only one GPU. Your laptop has dual GPUs, 
so
there should be a Device-2, which is missing from inxi output

> marcelo@marcelo:~$ xrandr --listproviders
> Providers: number : 3
> Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, 
> Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting
> Provider 1: id: 0x10a cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated 
> providers: 0 name:modesetting
> Provider 2: id: 0xe8 cap: 0xd, Source Output, Source Offload, Sink Offload 
> crtcs: 0 outputs: 0 associated providers: 0 name:AMD Radeon R7 M260 @ 
> pci::03:00.0

but not from xrandr.

> marcelo@marcelo:~$ DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
> OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
> 
> marcelo@marcelo:~$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
> OpenGL renderer string: AMD Radeon R7 M260 (ICELAND, DRM 3.35.0, 
> 5.4.0-4-amd64, LLVM 9.0.1)
> 
> marcelo@marcelo:~$ DRI_PRIME=2 glxinfo | grep "OpenGL renderer"
> OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 

Apparently prime is in use to manage GPU use. As I have no experience with 
laptops
with dual graphics, and thus none with using prime, and neither with 
DisplayLink,
there is probably no more assistance for me to attempt here.
-- 
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



Re: Re: Two graphics cards? Intel and AMD/ATI? What xserver-xorg-* I can uninstall?

2020-04-07 Thread Marcelo Laia
Hi Felix and Greg, Thank you so much!

Here is more information.

I'm try to got 3 monitors in my debian bullseye. In this days/ weeks,
months, I have googled a lot to find any rule to tell me how I could to
put my third monitor to work. It is plugged in a DisplayLink FY
USB-DVI in this manner:

notebook usb3.0 port -> cable -> DisplayLink FY USB-DVI -> DVItoVGA
Adapter -> VGA cable -> Monitor AOC 511vw

I try this with the this instructions https://is.gd/Ijp1k1 and with the
DisplyLink install script (https://git.io/JvADQ). Not success.

So, I read in some place that can be a possible conflict with xorg
module. To figure out the solution, I'm try to uninstall all
unnecessary module. I'm in this point/step now.

lsusb output:

marcelo@marcelo:~$ lsusb
Bus 001 Device 006: ID 0bda:5754 Realtek Semiconductor Corp. 
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card 
Reader Controller
Bus 001 Device 004: ID 04f3:034f Elan Microelectronics Corp. 
Bus 001 Device 003: ID 0cf3:e005 Qualcomm Atheros Communications 
Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0bda:0409 Realtek Semiconductor Corp. 4-Port USB 3.0 Hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 009: ID 17e9:019e DisplayLink FY USB-DVI
Bus 002 Device 006: ID 1a2c:0e24 China Resource Semico Co., Ltd 
Bus 002 Device 004: ID 1c4f:0034 SiGma Micro 
Bus 002 Device 002: ID 0bda:5409 Realtek Semiconductor Corp. 4-Port USB 2.0 Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
marcelo@marcelo:~$ 

lspci -nn output command:

marcelo@marcelo:~$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller 
[8086:0a04] (rev 0b)
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT 
Integrated Graphics Controller [8086:0a16] (rev 0b)
00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller 
[8086:0a0c] (rev 0b)
00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC 
[8086:9c31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 
[8086:9c3a] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller 
[8086:9c20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 3 
[8086:9c14] (rev e4)
00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 4 
[8086:9c16] (rev e4)
00:1c.4 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 5 
[8086:9c18] (rev e4)
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series USB EHCI #1 
[8086:9c26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller 
[8086:9c43] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 
[AHCI mode] [8086:9c03] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] 
(rev 04)
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE 
PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
02:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless 
Network Adapter [168c:0036] (rev 01)
03:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Topaz 
XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] 
[10...
marcelo@marcelo:~$

inxi -GSxxza command output

marcelo@marcelo:~$ inxi -GSxxza
System:Kernel: 5.4.0-4-amd64 x86_64 bits: 64 compiler: gcc v: 9.2.1 
   parameters: BOOT_IMAGE=/boot/vmlinuz-5.4.0-4-amd64 
root=UUID=fa1db682-d14a-4ab4-bfed-9562392ca134 ro quiet 
   Desktop: Gnome 3.34.4 wm: gnome-shell dm: GDM3 3.34.1 Distro: Debian 
GNU/Linux bullseye/sid 
Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell driver: 
i915 v: kernel bus ID: 00:02.0 
   chip ID: 8086:0a16 
   Display: x11 server: X.Org 1.20.7 driver: i915 compositor: 
gnome-shell resolution: 1920x1080~60Hz, 1920x1080~60Hz 
   OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 19.3.3 
compat-v: 3.0 direct render: Yes 
marcelo@marcelo:~$ 

marcelo@marcelo:~$ xrandr --listproviders
Providers: number : 3
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink 
Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting
Provider 1: id: 0x10a cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated 
providers: 0 name:modesetting
Provider 2: id: 0xe8 cap: 0xd, Source Output, Source Offload, Sink Offload 
crtcs: 0 outputs: 0 associated providers: 0 name:AMD Radeon R7 M260 @ 
pci::03:00.0

marcelo@marcelo:~$ DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 

marcelo@marcelo:~$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon R7 M260 (ICELAND, DRM 3.35.0, 5.4.0-4-amd64, 
LLVM 9.0.1)

marcelo@marcelo:~$ DRI_PRIME=2 glxinfo | grep "OpenGL 

Re: Two graphics cards? Intel and AMD/ATI? What xserver-xorg-* I can uninstall?

2020-04-07 Thread Felix Miata
Greg Wooledge composed on 2020-04-07 10:20 (UTC-0400):
...
> 2) dmesg | grep -i firmware

> See if the kernel is trying to load any firmware and failing.  If so,
> you will probably want to install some of the non-free firmware packages
> to support your hardware.  This may involve adding contrib and non-free
> to your sources.list.

I forgot about the subject of firmware. It could be firmware-amd-graphics has 
not
been installed. Also needed are libdrm-amdgpu1 and xserver-xorg-video-amdgpu for
optimal operation with a Topaz XT.
-- 
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



Re: Two graphics cards? Intel and AMD/ATI? What xserver-xorg-* I can uninstall?

2020-04-07 Thread Greg Wooledge
On Tue, Apr 07, 2020 at 10:40:10AM -0300, Marcelo Laia wrote:
> 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated 
> Graphics Controller (rev 0b)
> 03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT 
> [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile]

OK.

> The lspci -nnk | grep -iA2 vga commands shows:
> 
> marcelo@marcelo:~$ lspci -nnk | grep -iA2 vga 
> 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT 
> Integrated Graphics Controller [8086:0a16] (rev 0b)
>   Subsystem: Dell Haswell-ULT Integrated Graphics Controller [1028:0640]
>   Kernel driver in use: i915
> marcelo@marcelo:~$ 
> 
> I'm totally confused!

That command only shows one of your cards, and not the other.  It's
simply not a command that gives you much useful information in this
situation.

> What xorg package I can uninstall?

What on earth makes you think you need to REMOVE software in order to get
the results you desire?

What even makes you think you're not already using the AMD card?

You need to check your X or Wayland logs before doing anything else.
Maybe you're already using the card and driver that you want to use.

If it turns out that you're not using the desired card, then there are
a few things you can look into next:

1) lspci -nn

Don't try to grep it or anything, because one of the cards doesn't show
up with the characters "VGA" in its output.  Just post both of the lines
from this command, one for each card, which will give us the PCI ID
to identify the hardware.

2) dmesg | grep -i firmware

See if the kernel is trying to load any firmware and failing.  If so,
you will probably want to install some of the non-free firmware packages
to support your hardware.  This may involve adding contrib and non-free
to your sources.list.

3) Google your PCI ID together with keywords like "debian" to see if there
   are any success stories for using your hardware on Debian.

Usually you are not the first person to attempt something.  Learn from
those who came before.



Re: Two graphics cards? Intel and AMD/ATI? What xserver-xorg-* I can uninstall?

2020-04-07 Thread Felix Miata
Marcelo Laia composed on 2020-04-07 10:40 (UTC-0300):
...
> Am I not using the dedicated AMD/ATI video card? Why? How I could starting 
> using it?

What is output from:

inxi -GSxxza

What type cable is connected to which physical connector on the PC?

What is the Dell BIOS setting for video?

> What xorg package I can uninstall?

You can probably uninstall all of them and still be fine. Most likely the only
ones to keep would be xserver-xorg-video-amdgpu (probable preference) and
xserver-xorg-video-vesa (for rescue purposes). The intel doesn't require
xserver-xorg-video-intel, as it usually works as well or better with the only 
DDX
you don't see installed, modesetting, since as default it's not in a separate 
package.
-- 
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



Two graphics cards? Intel and AMD/ATI? What xserver-xorg-* I can uninstall?

2020-04-07 Thread Marcelo Laia
Hi,

I have a Dell Inspiron I15-5547-A20 with a dedicated video card.

marcelo@marcelo:~$ lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated 
Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI 
mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI 
Express Fast Ethernet controller (rev 07)
02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network 
Adapter (rev 01)
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT 
[Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile]
marcelo@marcelo:~$ 

The above output shows:

00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated 
Graphics Controller (rev 0b)
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT 
[Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile]

The command dpkg -l xserver-xorg-video* shows:

marcelo@marcelo:~$ dpkg -l xserver-xorg-video*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Nome   Versão   Arquitectura 
Descrição
+++-==---=
ii  xserver-xorg-video-all 1:7.7+20 amd64X.Org 
X server -- output driver metapackage
ii  xserver-xorg-video-amdgpu  19.1.0-1 amd64X.Org 
X server -- AMDGPU display driver
ii  xserver-xorg-video-ati 1:19.1.0-1   amd64X.Org 
X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-fbdev   1:0.5.0-1amd64X.Org 
X server -- fbdev display driver
ii  xserver-xorg-video-intel   2:2.99.917+git20190815-1 amd64X.Org 
X server -- Intel i8xx, i9xx display driver
un  xserver-xorg-video-mach64  
(nenhuma descrição disponível)
un  xserver-xorg-video-modesetting 
(nenhuma descrição disponível)
ii  xserver-xorg-video-nouveau 1:1.0.16-1   amd64X.Org 
X server -- Nouveau display driver
ii  xserver-xorg-video-qxl 0.1.5-2+b1   amd64X.Org 
X server -- QXL display driver
un  xserver-xorg-video-r128
(nenhuma descrição disponível)
ii  xserver-xorg-video-radeon  1:19.1.0-1   amd64X.Org 
X server -- AMD/ATI Radeon display driver
ii  xserver-xorg-video-vesa1:2.4.0-2amd64X.Org 
X server -- VESA display driver
ii  xserver-xorg-video-vmware  1:13.3.0-2   amd64X.Org 
X server -- VMware display driver
marcelo@marcelo:~$ 

The lspci -nnk | grep -iA2 vga commands shows:

marcelo@marcelo:~$ lspci -nnk | grep -iA2 vga 
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT 
Integrated Graphics Controller [8086:0a16] (rev 0b)
Subsystem: Dell Haswell-ULT Integrated Graphics Controller [1028:0640]
Kernel driver in use: i915
marcelo@marcelo:~$ 

I'm totally confused!

Am I not using the dedicated AMD/ATI video card? Why? How I could starting 
using it?

What xorg package I can uninstall?

Thank you very much!

-- 
Marcelo