You are not logged in.

#1 2017-01-04 07:25:06

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

[SOLVED] AMD GPU driver/resolution problems (RX480 4k)

Hello,

My current setup is as follows:
Arch Linux-zen (4.8.14-1)
2x Asus Strix RX480 (should be crossfire automatically according to AMD and Asus)
Samsung 6290 (40" 4k TV)
Dell 24"

My primary Rx480 seems to be working in limited fashion, I have 3 connections:
1 DP to a 24" Dell.
1 DP>HDMI to 4k TV
1 HDMI>HDMI to 4k TV

All 3 screens detect, and 4k TV shows resolution up to 4096x2160 (9:5). I want 3840x2160 (16:9) which also shows up. However, when I select anything over 1600x1200 (4:3) I experience either horrible screen tearing/distortion, or black screen and my TV loses signal.

I've followed the documentation here in the wiki and have brushed up on all of the forum threads here as well as on reddit and the rest of the internet regarding Archlinux w/ AMD cards, I have amdgpu and mesa dependencies installed with the following configuration:

➜  ~ lspci |grep -e VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] (rev c7)
09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] (rev c7)

➜  ~ pacman -Q |grep amdgpu
xf86-video-amdgpu 1.2.0-1

➜  ~ sudo pacman -Q |grep mesa
lib32-mesa 13.0.2-1
lib32-mesa-libgl 13.0.2-1
lib32-mesa-vdpau 13.0.2-1
libva-mesa-driver 13.0.2-2
mesa 13.0.2-2
mesa-libgl 13.0.2-2
mesa-vdpau 13.0.2-2
opencl-mesa 13.0.2-2
deo-amdgpu 1.2.0-1

➜  ~ cat /etc/X11/xorg.conf.d/20-amdgpu.conf
Section "Device"
    Identifier "AMDGPU"
    Driver "amdgpu"
    Option "AccelMethod" "glamor"
    Option "DRI" "3"
EndSection

lxrandr is of limited use. It shows the screens I have and allows me to either choose what I have or set the value to nothing. Also xrandr has the following output:

➜  ~ xrandr
Screen 0: minimum 320 x 200, current 7360 x 2160, maximum 8192 x 8192
XWAYLAND0 connected 3840x2160+3520+0 890mm x 500mm
   3840x2160     59.96*+
XWAYLAND1 connected 1920x1080+1600+0 530mm x 300mm
   1920x1080     59.96*+
XWAYLAND2 connected 1600x1200+0+0 890mm x 500mm
   1600x1200     59.82*+

The 2 devices I'm looking at are XWAYLAND0 and XWAYLAND2

Crossfire is supposed to be configured automatically however I am unable to find any documentation online about confirming crossfire status with my setup. When I move one of my cables to the second card, I get no signal, however when the PC is powered up, both cards light up and the fans are spinning.

Ideally, I only want 1 cable plugged into my TV and one into my Dell monitor. I have the HDMI cable plugged in and set to 1600X1200 so I can at least get use out of this behemoth taking up my entire desk.

Thanks,

Last edited by arx (2017-01-06 11:45:54)

Offline

#2 2017-01-04 08:19:42

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

As a test I modified my 20-amdgpu.conf, removing Option flags and rebooted:

➜  ~ cat /etc/X11/xorg.conf.d/20-amdgpu.conf
Section "Device"
    Identifier "AMDGPU"
    Driver "amdgpu"
EndSection

Issue persists, however leaving this way, as the previous option flags are enabled on newer cards by default per: https://wiki.archlinux.org/index.php/ATI

Last edited by arx (2017-01-04 08:29:24)

Offline

#3 2017-01-04 09:32:20

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

I suppose this post relates, though I am not using ati radeon drivers.

http://unix.stackexchange.com/questions … solut?rq=1

Offline

#4 2017-01-04 23:21:39

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

bump

Offline

#5 2017-01-05 06:46:55

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

Xorg output:

http://sprunge.us/GZAY

Specs:
MB: ASUS ROG Crosshair V Formula-Z AM3+ AMD 990FX
CPU: AMD FX-9590 Vishera 8-Core 4.7 GHz Socket AM3+
GPU: 2x ASUS ROG Strix Radeon RX480 8GB GDDR5

Last edited by arx (2017-01-05 06:59:28)

Offline

#6 2017-01-05 07:01:21

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

I switched to tty3 and ran startx as root, then with lxrandr, I set both displays to 3840x2160. It worked with the HDMI connection but not on the diplayport->HDMI connection. That one went black and I was unable to recover.

lxrandr still only allows 1600x1200 when in GNOME.

Offline

#7 2017-01-05 08:40:37

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

Well I installed amdgpu-pro which downgraded xorg1.19 to xorg1.18 and switched to linux-4.8.13-1

During Inow get the following errorduring installation of linux-headers-4.8.13-1

==> dkms install amdgpu-pro-16.30.3/315407 -k 4.8.13-1-ARCH
Error! Bad return status for module build on kernel: 4.8.13-1-ARCH (x86_64)
Consult /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/make.log for more information.

make.log:
http://sprunge.us/YgeT

Edit:
Sorry for typos. This post is from my phone.

Also I'm living on the console again. Xorg isnt starting up again.

Thanks for the help!

Last edited by arx (2017-01-05 08:43:39)

Offline

#8 2017-01-05 08:50:01

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

New xorg.0.log:

http://sprunge.us/ciUa

Also completed pacman -Syu. Everything is up to date.

The boot process continues to stick at:

[ OK ] Reached target Graphical Interface

As usual with my set up, the 24" Dell screen flickers a few times then eventually my keystrokes take effect and I switch to one of the other ttys.

When I was testing with antergos and also testing on this build with startx, the screenwould detect perfectly at 4k resplution. Not sure what is the blocker here.

Keep the comments coming please I'd love to get this working.

Last edited by arx (2017-01-05 08:58:02)

Offline

#9 2017-01-05 13:43:37

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,069

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

2x Asus Strix RX480 (should be crossfire automatically according to AMD and Asus)

Crossfire support is very limited on linux, can you disable it in the mobo firmware ?

In case of troubles with setting up X, boot into multi-user.target [1], NOT graphical target.

The AUR amdgpu-pro packages are atleast 2 versions out-of-date, i suggest to remove them and switch to the open source xf86-video-amdgpu driver.


[1] https://wiki.archlinux.org/index.php/Sy … _boot_into


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#10 2017-01-06 07:21:02

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

Hey there Lone_Wolf,

Much thanks for the response. I meant to reply sooner but we had an outage at work and I couldn't take the time out of my day.

I've since wiped and am in the process of getting my machine all set up again. You'll notice however in my initial post, that I had been running xf86-video-amdgpu.

Since 4k was detecting when I was in the startx retro session, I'm leaning toward this being a gnome issue. I never have liked over-weight un-optimized gnome. I want a bare machine with just i3 running.

I'll keep posting on this thread til 4k is working. Cool stuff with openrc btw. I also want to get that set up but need my my displays first. ^^

Thanks,
Arx

Last edited by arx (2017-01-06 11:46:54)

Offline

#11 2017-01-06 11:32:10

arx
Member
From: 2730ft above sea level
Registered: 2016-04-30
Posts: 46

Re: [SOLVED] AMD GPU driver/resolution problems (RX480 4k)

Resolved. My initial setup was fine...

Solution: Gnome is the plague. Install i3.

Following fresh install:

$ sudo pacman -S xf86-video-amdgpu
$ sudo pacman -S xorg-server xorg-server-utils xorg-xinit xorg-twm xorg-xclock xterm gdm
$ sudo systemctl enable gdm.service
$ sudo pacman -S i3 i3-wm i3lock i3status
$ echo "exec i3 -V >> ~/.i3/i3-log-$(`date +%Y%m%d`) 2>&1" > ~/.xinitrc

configure /etc/X11/xorg.conf.d/20-amdgpu.conf

Section "Device"
    Identifier "AMDGPU"
    Driver "amdgpu"
    Option "AccelMethod" "glamor"
    Option "DRI" "3"
    Option "TearFree" "on"
    Option "ColorTiling" "on"
    Option "ColorTiling2D" "on"
EndSection

Finally, startx -- or reboot.

Last edited by arx (2017-01-06 11:50:37)

Offline

Board footer

Powered by FluxBB