You are not logged in.

#1 2017-12-25 21:02:53

grayk79
Member
Registered: 2017-10-12
Posts: 9

Minecraft shaders don't work in Arch, worked in Ubuntu

https://i.imgur.com/pLUUWke.png

Specs:
Intel i7-7700k
AMD RX 580

Left Kubuntu for Arch 3 months ago and still can't find a solution to the problem. From what I read online it might be 'cause of out-dated drivers but from my mediocre experience with Linux(I've been using it for a little less than a year) the AMDGPU driver is baked into the Linux kernel, so it isn't a problem. I tried updating both Forge and Optifine, tried different shaders, shader settings etc. Nothing worked.

I really didn't want to write here but I've been struggling with it for the whole time I used Arch and googling had no result. Anyone?

Last edited by jasonwryan (2017-12-25 21:25:59)

Offline

#2 2017-12-25 21:05:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

What graphics drivers have you installed and how have you configured them?



Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-12-25 21:18:57

grayk79
Member
Registered: 2017-10-12
Posts: 9

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

jasonwryan wrote:

What graphics drivers have you installed and how have you configured them?

From Xorg.0.log:

[     3.369] (II) Module amdgpu: vendor="X.Org Foundation"
[     3.369]    compiled for 1.19.3, module version = 1.4.0

AMDGPU driver comes with the kernel, am I right? Thus I didn't install any video driver in particular. I don't know if it is important but I have both mesa and xf86-video-amdgpu packages installed.

I'm still learning so correct me if I'm wrong smile

Last edited by grayk79 (2017-12-25 21:28:26)

Offline

#4 2017-12-25 21:25:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Minecraft shaders don't work in Arch, worked in Ubuntu


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-12-25 21:26:02

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

What drivers were you using on Ubuntu?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2017-12-25 21:32:01

grayk79
Member
Registered: 2017-10-12
Posts: 9

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

ngoonee wrote:

What drivers were you using on Ubuntu?

I was using the latest AMDGPU Pro proprietary drivers but from what I heard they are almost completely no different from the open-source ones. And Arch has no official support for AMDGPU Pro drivers

Last edited by grayk79 (2017-12-25 21:35:19)

Offline

#7 2017-12-25 21:34:35

grayk79
Member
Registered: 2017-10-12
Posts: 9

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

I can't understand how hybrid graphics might help me in the situation as I don't have a laptop but rather a PC. And my graphics card works fine in other games or graphics intence programs.

By the way, sorry for not following the rules, it is pretty hard when there are so many smile

Last edited by grayk79 (2017-12-25 21:38:43)

Offline

#8 2017-12-25 21:57:09

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

Maybe you should try an older kernel version such as 4.10.13 or linux-lts. Amdgpu sometimes has bugs in certain kernel versions. E.g. with my old GCN 1 card, 4.11 and 4.12 did not work properly at all. Now I too have an RX 580 and everything seems to work fine with 4.14.8 so far. But I have not tested MC on it yet, so who knows.

Offline

#9 2017-12-25 22:22:48

grayk79
Member
Registered: 2017-10-12
Posts: 9

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

Morn wrote:

Maybe you should try an older kernel version such as 4.10.13 or linux-lts. Amdgpu sometimes has bugs in certain kernel versions. E.g. with my old GCN 1 card, 4.11 and 4.12 did not work properly at all. Now I too have an RX 580 and everything seems to work fine with 4.14.8 so far. But I have not tested MC on it yet, so who knows.

Just tried out linux-lts

[gray@gray-arch ~]$ uname -r
4.9.71-1-lts

Still doesn't work :c Thanks for the suggestion though

Offline

#10 2017-12-25 22:57:54

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

Do other apps that use shaders work for you? E.g. cool-retro-term. And which Java version are you running?

Which kernel and Java versions was Kubuntu using?

Offline

#11 2017-12-25 23:08:52

grayk79
Member
Registered: 2017-10-12
Posts: 9

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

Morn wrote:

Do other apps that use shaders work for you? E.g. cool-retro-term. And which Java version are you running?

Which kernel and Java versions was Kubuntu using?

Even games like CS:GO, Portal 2, The Sims 4 and Doom 2016(the latest 2 are run through wine) work but I still tested the terminal and it works too. I use java-8-openjdk but I also tried java-7-openjdk and oracle's proprietary Java(both 7 and 8). There was completely no difference. And yes, I did not forget to set the default Java version using

archlinux-java

Sadly, I can't remember what kernel and java was ubuntu using as it was 3 months ago but I set up the system even earlier.

Last edited by grayk79 (2017-12-25 23:10:08)

Offline

#12 2017-12-25 23:21:04

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

So maybe you should find a Java program that uses shaders and test if that works. I think the "javacpc" emulator from the AUR uses shaders if you enable the 3-D curved screen effect in display settings. It should look a bit like cool-retro-term basically, with scanlines, rounded corners, and screen curvature.

P.S. Now that I think about it, I don't remember the javacpc shader effects ever working correctly on Arch with OpenJDK. Maybe Kubuntu uses Oracle Java instead of OpenJDK and that explains the different behavior?

Last edited by Morn (2017-12-25 23:33:41)

Offline

#13 2017-12-26 13:47:49

grayk79
Member
Registered: 2017-10-12
Posts: 9

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

Morn wrote:

So maybe you should find a Java program that uses shaders and test if that works. I think the "javacpc" emulator from the AUR uses shaders if you enable the 3-D curved screen effect in display settings. It should look a bit like cool-retro-term basically, with scanlines, rounded corners, and screen curvature.

P.S. Now that I think about it, I don't remember the Javacpc shader effects ever working correctly on Arch with OpenJDK. Maybe Kubuntu uses Oracle Java instead of OpenJDK and that explains the different behavior?

I already said I had tested Oracle Java but I still decided to give it another try. Javacpc worked in both OpenJDK and Oracle Java, MC shaders didn't work in any of them.
I would have thought there was a specific Linux bug in either OptiFine or shaders themselves and 'cause of it shaders refuse to work properly. But they did work perfectly in Ubuntu and that's what drives me crazy.

I want to try to dual-boot Ubuntu once more. If everything works fine there I will try to analyze what kernel/driver/Java it uses. Because I'm just out of ideas

Last edited by grayk79 (2017-12-26 18:06:24)

Offline

#14 2017-12-26 15:34:59

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

I suppose you are not the only arch user playing minecraft and I don't recall seeing anyone else complaining so you may be missing something. If you were using the open stack I would guess you might be missing some library, either an optional library libtxc_dxtn orlib32-libtxc_dxtn come to mind, or some other 32bit library. These are my only guesses as I have zero experience with minecraft.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#15 2017-12-26 15:43:03

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

R00KIE wrote:

I suppose you are not the only arch user playing minecraft and I don't recall seeing anyone else complaining so you may be missing something.

Shader packs are made by users, they are like mods. Most people just play vanilla MC without shaders, so few people will notice if shaders are broken.

I know I have tested the SEUS shader pack on Windows once, but performance was just too bad with my old graphics card. So on Linux, I stuck to plain old vanilla MC without shaders.

Offline

#16 2017-12-30 23:25:19

grayk79
Member
Registered: 2017-10-12
Posts: 9

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

So, after some testing, I came to a conclusion that it is all because of the driver: AMDGPU-PRO driver fixed the issue. The thing is... I don't understand why. From what I've read there's almost no difference between AMDGPU and AMDGPU-PRO as the latest uses the first under the hood and only adds proprietary functions(like free sync) on top. AMDGPU-PRO support even for Ubuntu is very poor as it supports only the LTS release and it is even worse on Arch. Still, thanks to everyone who tried to help, it is very appreciated!

Last edited by grayk79 (2017-12-31 12:45:58)

Offline

#17 2017-12-30 23:48:43

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

If you want to try to find out a bit more, maybe the output of glxinfo can help you figure out if it is because of some extension that is supported by AMDGPU-PRO and not by the free drivers or AMDGP, at least that could help you check when the open stack might work properly.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#18 2017-12-31 12:31:14

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

And Linux 4.15 will merge most of the AMDGPU-PRO stuff into AMDGPU as far as I understand, so you might try with AMDGPU again when 4.15 is out on Arch.

Offline

#19 2018-01-31 20:51:32

grayk79
Member
Registered: 2017-10-12
Posts: 9

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

Update: I've just tried out linux 4.15 from testing and sadly it didn't fix the bug. AMDGPU-PRO it is then

Offline

#20 2018-01-31 21:25:51

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

There will be more AMDGPU-related merges in 4.16 and 4.17, so there is still hope that MC will work with the regular AMD driver at some point. I think the PRO driver is supposed to be phased out eventually.

https://www.phoronix.com/scan.php?page= … Linux-4.16

Offline

#21 2018-02-01 13:32:48

shera10001
Member
Registered: 2018-01-23
Posts: 34

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

Not related to the problem, but try minetest, an open source minecraft-like game which is much more lightweight, written in C++ instead of java, so you can imagine the speed difference, and has a lot of mods for it. It is built for modding, so mods are not hacks like they are in minecraft. It is available in the pacman database as 'minetest' so just

 pacman -S minetest 

to try it out and try out the multiplayer servers. It works exactly like minecraft in most ways.

Offline

#22 2018-02-01 15:20:37

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

Actually I started playing MC about a year or so after first playing Minetest on Arch. And actually I have created far more content (mods, maps, etc.) for MT than MC. So, yes, MT is definitely recommended from me too. Modding with Lua is pretty easy especially if you already know some Python.

Last edited by Morn (2018-02-01 15:21:04)

Offline

#23 2019-07-13 18:22:45

jaap aarts
Member
Registered: 2017-09-04
Posts: 31

Re: Minecraft shaders don't work in Arch, worked in Ubuntu

still the same issue using SEUS. continuum doesnt work at all(black screen)

Offline

#24 2019-07-13 18:31:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Minecraft shaders don't work in Arch, worked in Ubuntu


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB