Artifacts when changing resolution on Imac5k late 2015. Driver problems?

AaronTheIssueGuy

New Member
Credits
51
When changing the resolution on my iMac 5k late 2015, I am experiencing an artifact. Horizontal lines appear all over the screen. This happens for all resolutions under the maximum.

This happens on all Linux distros including both common display servers xorg and wayland.

I know that the system has one of those three GPU's inside:

"AMD Radeon R9 M380/M390/M395"

but neofetch/lspci reports:

"AMD ATI Firepro M6100"

and my settings:

"AMD Bonair"

I am using the "Radeon" driver.

I've been dealing with the issue very long and was unable to find an answer. Some users suggest using the AMDGPU driver instead of the radeon, but I was unable to achieve this. Considering this happens across all distributions, I suspect it is some kind of driver issue.

Can anyone help?
 

Attachments



Alexzee

Well-Known Member
Credits
8,841
Open your terminal and run this command:
lspci | grep -i VGA

Please post the output.

Does your iMac have dual graphics?
 

AaronTheIssueGuy

New Member
Credits
51
Afaik I do not have dual graphics.

Here is lspci:
Code:
[email protected]:~$ lspci | grep -i VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Saturn XT [FirePro M6100] (rev 80)
and here sudo lshw -numeric -C display:
Code:
[email protected]:~$ sudo lshw -numeric -C display
[sudo] Passwort für aaron:        
  *-display                
       Beschreibung: VGA compatible controller
       Produkt: Saturn XT [FirePro M6100] [1002:6640]
       Hersteller: Advanced Micro Devices, Inc. [AMD/ATI] [1002]
       Physische ID: 0
       Bus-Informationen: [email protected]:01:00.0
       Version: 80
       Breite: 64 bits
       Takt: 33MHz
       Fähigkeiten: pm pciexpress msi vga_controller bus_master cap_list rom
       Konfiguration: driver=radeon latency=0
       Ressourcen: irq:54 memory:a0000000-afffffff memory:b0000000-b07fffff ioport:3000(Größe=256) memory:d1600000-d163ffff memory:d1640000-d165ffff
 

Alexzee

Well-Known Member
Credits
8,841
Thanks for posting the output.
I wrote down what GPU that you have so I've got that, thanks.

Before I look for and help you install the AMD GPU driver we have to find out if the radeon driver is installed.

IF the fglrx driver is installed running fglrxinfo should produce some information.
OR> try running dpkg -L fglrx, if nothing shows than it's not installed.

You said that you are using the radeon driver. Did you install the AMD proprietary driver manually?

What Linux distro do you have installed on your iMac right now?
 

AaronTheIssueGuy

New Member
Credits
51
Thanks for posting the output.
I wrote down what GPU that you have so I've got that, thanks.

Before I look for and help you install the AMD GPU driver we have to find out if the radeon driver is installed.

IF the fglrx driver is installed running fglrxinfo should produce some information.
OR> try running dpkg -L fglrx, if nothing shows than it's not installed.

You said that you are using the radeon driver. Did you install the AMD proprietary driver manually?

What Linux distro do you have installed on your iMac right now?
fglrx does not seem to be installed. I assumed im using the radeon driver because "lshw" tells me i am. I did not install any other drivers manually and I am running ZorinOS 16 which is based on Ubuntu 20.04 LTS.
 

f33dm3bits

Gold Member
Gold Supporter
Credits
24,380
Your graphics card should work using the opensource kernel drivers or fglrx as @Alexzee mentioned. It's worth trying the opensource kernel driver to see if you get the same problem there, I think the fglrx is the amd proprietary amd driver but repackaged but you can try both to see if it fixes your problem.
I have a Radeon RX 6700XT in my system which is a newer graphics card and am using the opensource kernel drivers together with mesa, so that should most likely also work for your graphics card.
 
Last edited:

AaronTheIssueGuy

New Member
Credits
51
Your graphics card should work using the opensource kernel drivers or fglrx as @Alexzee mentioned. It's worth trying the opensource kernel driver to see if you get the same problem there, I think the fglrx is the amd proprietary amd driver but repackaged but you can try both to see if it fixes your problem.
I have a Radeon RX 6700XT in my system which is a newer graphics card and am using the opensource kernel drivers together with mesa, so that should most likely also work for your graphics card.
Yesterday I tried installing the amdgpupro driver. The installation was succesfull but after a reboot I was greeted with a blackscreen and some screensnow lines (The display looked like it was broken). I uninstalled everything through recovery and I am back where I started.

@f33dm3bits when you are talking about kernel drivers you mean the radeon and amdgpu pro driver right? What exactly do you mean when you say you use it with mesa.

fglrx doesnt seem to be maintained for newer Ubuntu versions anymore
 

f33dm3bits

Gold Member
Gold Supporter
Credits
24,380
It might be worth mentioning that fglrx is the proprietary Linux binary-only driver and that the opensource driver is part of the kernel and the firmware comes with the linux-firmware package. In order to use 3d grahics implementations such as OpenGL, Vulkan and others you need the mesa package which is installed by default with on most Linux distributions.
 
Last edited:

f33dm3bits

Gold Member
Gold Supporter
Credits
24,380
Yesterday I tried installing the amdgpupro driver. The installation was succesfull but after a reboot I was greeted with a blackscreen and some screensnow lines (The display looked like it was broken). I uninstalled everything through recovery and I am back where I started.

@f33dm3bits when you are talking about kernel drivers you mean the radeon and amdgpu pro driver right? What exactly do you mean when you say you use it with mesa.

fglrx doesnt seem to be maintained for newer Ubuntu versions anymore
You need to remove the radeon driver first, I am not talking about the amdgpupro driver. I'm talking about this one which is part of the kernel.
Code:
[email protected]:~$ modinfo amdgpu
filename:       /lib/modules/5.8.0-55-generic/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko
license:        GPL and additional rights
description:    AMD GPU
author:         AMD linux driver team
Basically this is what you should do.
1. Remove radeon driver and amdgpupro driver.
2. Install the needed mesa packages but they are most likely already installed.
Code:
ii  mesa-utils                            8.4.0-1build1                       amd64        Miscellaneous Mesa GL utilities
ii  mesa-va-drivers:amd64                 20.2.6-0ubuntu0.20.04.1             amd64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:amd64              20.2.6-0ubuntu0.20.04.1             amd64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:amd64             20.2.6-0ubuntu0.20.04.1             amd64        Mesa Vulkan graphics drivers
3. linux-firmware should already be installed.
4. Then reboot, if you still get a black screen, then press ctrl+alt+f6, log into your system and then try installing one of these but one by one.
Code:
1. xserver-xorg-video-amdgpu
2. xserver-xorg-video-ati
3. xserver-xorg-video-radeon
So first install 1, then reboot if your still get a black screen press ctrl +alt+f6 again, then login again and remove 1. Then install 2 and then reboot, if you still get a black screen press ctrl+alt+f6 again. Then login and remove 2 and then try 3.

In short if after removing the amdgpu-pro driver and installing the mesa packages your still get a blackscreen after having rebooted, one of the xserver-xorg-video packages should fix that problem. If not you can login into the system as I explained earlier(which you probably already know or else you wouldn't have been able to recover before), and then we can try to see what we can find in your syslog, dmesg and xorg log files. Do you know if your installation is using xorg or wayland?
 

AaronTheIssueGuy

New Member
Credits
51
You need to remove the radeon driver first, I am not talking about the amdgpupro driver. I'm talking about this one which is part of the kernel.
Code:
[email protected]:~$ modinfo amdgpu
filename:       /lib/modules/5.8.0-55-generic/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko
license:        GPL and additional rights
description:    AMD GPU
author:         AMD linux driver team
Basically this is what you should do.
1. Remove radeon driver and amdgpupro driver.
2. Install the needed mesa packages but they are most likely already installed.
Code:
ii  mesa-utils                            8.4.0-1build1                       amd64        Miscellaneous Mesa GL utilities
ii  mesa-va-drivers:amd64                 20.2.6-0ubuntu0.20.04.1             amd64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:amd64              20.2.6-0ubuntu0.20.04.1             amd64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:amd64             20.2.6-0ubuntu0.20.04.1             amd64        Mesa Vulkan graphics drivers
3. linux-firmware should already be installed.
4. Then reboot, if you still get a black screen, then press ctrl+alt+f6, log into your system and then try installing one of these but one by one.
Code:
1. xserver-xorg-video-amdgpu
2. xserver-xorg-video-ati
3. xserver-xorg-video-radeon
So first install 1, then reboot if your still get a black screen press ctrl +alt+f6 again, then login again and remove 1. Then install 2 and then reboot, if you still get a black screen press ctrl+alt+f6 again. Then login and remove 2 and then try 3.

In short if after removing the amdgpu-pro driver and installing the mesa packages your still get a blackscreen after having rebooted, one of the xserver-xorg-video packages should fix that problem. If not you can login into the system as I explained earlier(which you probably already know or else you wouldn't have been able to recover before), and then we can try to see what we can find in your syslog, dmesg and xorg log files. Do you know if your installation is using xorg or wayland?
My system is using xorg. I followed the procedure you explained. Unfortunately I always seemed to run into the same error I was experiencing with the AMDGPU-PRO driver. (I attached an Image)
 

Attachments

f33dm3bits

Gold Member
Gold Supporter
Credits
24,380
Can you share your grub configuration, so share /etc/default/grub with code tags here in the topic?
 

AaronTheIssueGuy

New Member
Credits
51
Can you share your grub configuration, so share /etc/default/grub with code tags here in the topic?

This is my default config. I did not change it when I installed AMDGPU-PRO drivers:

Code:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_THEME=/usr/share/grub/themes/zorin/theme.txt
This is the config I use to make my system use the AMDGPU (OpenSource) drivers instead of radeon (also Opensource) drivers.

Code:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_THEME=/usr/share/grub/themes/zorin/theme.txt
 

f33dm3bits

Gold Member
Gold Supporter
Credits
24,380
Try using the first grub configuration when using amdgpu and then generate a new grub configuration. If you still a black screen login as you did before by using ctrl+alt+f6, Then run the following command.
Code:
dmesg | grep -i amdgpu > dmesg.txt
Then share attach it as a file here, if not post it with code tags and share your Xorg.0.log log file(the one from the time where you get a black screen when trying to use amdgpu) as well.

Also there seem to be an Ubuntu package for fglrx which contains some drivers, it may be worth a try installing that: fglrx-pxpress.
 
Last edited:
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Latest posts

Top