Coder Social home page Coder Social logo

Comments (4)

vjpr avatar vjpr commented on June 1, 2024

Update

When I boot into recovery mode, and then select "resume boot", it says some warning that "sometimes gpu drivers miay require a full reboot". However, when the OS loads, it does not crash anymore!

So it's probably the GPU drivers. However, the keyboard, trackpad drivers don't load either in this mode. So it could also be them.

It seems the amdgpu driver is causing it because in this boot from recovery mode, this driver doesn't load.

$ sudo lshw -c video

*-display
 ...
 configuration: latency=0
 ...

*-graphics
  product: EFI VGA

from mbp-2016-linux.

vjpr avatar vjpr commented on June 1, 2024

Solution

Use https://github.com/0xbb/gpu-switch.

Install rEFInd + apple_set_os.efi

From the Recovery Mode, follow Ubuntu instructions here: http://www.rodsbooks.com/refind/installing.html#packagefile.

NOTE: Refind's spoof_osx_version is not working after later macOS has been installed. So you need to use the https://github.com/0xbb/apple_set_os.efi approach. Just follow instructions.

Install gpu-switch

It's just a shell script. Just wget it's raw contents.

https://github.com/0xbb/gpu-switch

./gpu-switch -i

Update X config

See: #6 (comment)

$ cat /etc/X11/xorg.conf.d/20-intel.conf 
Section "Device"
	Identifier "Intel Graphics"
	Driver "intel"
	BusID "PCI:0:2:0"
	Option "TearFree" "true"
	Option "AccelMethod" "glamor"
EndSection

Blacklist amdgpu and radeon

See: https://askubuntu.com/questions/1080217/how-to-blacklist-amdgpu-driver

Other guides

This is a good guide (except we use refind instead of grub)

#6 (comment)

from mbp-2016-linux.

vjpr avatar vjpr commented on June 1, 2024

Wayland issues

Everything is working with iGPU. But to get the barrier tool working I had to disable wayland and use X11. When running sudo modprobe amdgpu I found that I could use the AMD driver and it wouldn't crash anymore.

So looks like Wayland was crashing amdgpu - which the symptoms seemed to indicate.

Built in monitor

When I unblacklisted the amdgpu it works. It loads a screen with a blinking _ in the top-left corner, but then it loads. I still have the X11 mods in place.

External monitor

When I unblacklisted the amdgpu and had my external monitor plugged in I got this:

[amdgpu] atombios stuck in loop for more than 20secs aborting

If I didn't run the osx_spoof thingy, then it would be blinking this message.

Nope

It didn't work. Still crashes when using amdgpu for X11 or Wayland.

So when amdgpu is used for the window manager, that is crashing the GPU.

amdgpu xorg config is here:

/usr/share/X11/xorg.conf.d/00-amdgpu.conf

Section "OutputClass"
	Identifier "AMDgpu"
	MatchDriver "amdgpu"
	Driver "amdgpu"
EndSection

Section "Files"
	ModulePath "/opt/amdgpu-pro/lib/xorg/modules"
	ModulePath "/opt/amdgpu/lib/xorg/modules"
	ModulePath "/usr/lib/xorg/modules"
EndSection
ls /opt/amdgpu/lib/xorg/modules/drivers

amdgpu_drv.so

Ideas

Could be an issue with the xorg amdgpu driver

https://man.archlinux.org/man/amdgpu.4
https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu

from mbp-2016-linux.

vjpr avatar vjpr commented on June 1, 2024

Just works now

After one last try, I removed the xorg intel config, used gpu-switch to enable discrete, and didn't run the osx_spoof thing, and it loaded with external monitor working, and it doesn't seem to crash.

I immediately tailed the logs of xorg. Everything seems normal.

So strange. Maybe it is a hardware issue.

At least I can now collect some logs from a fresh startup.

from mbp-2016-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.