Comments (4)
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.
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)
from mbp-2016-linux.
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.
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)
- Error after make HOT 1
- 14,2: CPU Throttling HOT 4
- CIRRUS CS8409 introduced on kernel 5.13.rc5 HOT 2
- How Do i Use IT?
- USB 3 regression HOT 7
- Keyboard Mappings for 14,3 non US non-iso keyboard
- HOW DO I NOW IF MY MAC SUPPORTS IT HOT 3
- Would this driver work on an iMac retina mid-2017 HOT 2
- Battery charge/full charge/full charge design issue MBP 14.1 HOT 2
- Can't get touchbar to work with Ubuntu 21.04 & 21.10 on macbook pro 14,3 HOT 7
- External monitor with iGPU
- Not really an iusse HOT 1
- Patched touchbar driver not working in kernel 6.0 HOT 25
- commit
- l
- MacBook Pro Wi-Fi & Bluetooth instruction update
- WIFI on MBP 13,3 HOT 2
- r
- Please mention t2linux project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbp-2016-linux.