FreeBSDDesktop / kms-drm

the DRM part of the linuxkpi-based KMS
63 stars 26 forks source link

black screen on iMac late 2009 #117

Open rozle opened 5 years ago

rozle commented 5 years ago

Hi! My system is FreeBSD 12.0-RELEASE (amd64) installed on iMac 11,1 (late 2009) without OS X. It has UEFI boot. I have in /boot/loader.conf hw.syscons_disable=1 and in /etc/rc.conf kld_list="/boot/modules/radeonkms.ko" I have installed drm-legacy-kmod and xf86-video-ati-legacy but I tried also with install drm-kmod which pickup version fbsd12.0 and it was the same problem. On the FreeBSD 11.2 I kldload driver from kernel and I didn't have a problem but I had a problem with next-kmod or legacy-kmod (black screen). I cannot use Xorg with radeon driver but it works with scfb driver. Please check attached file. Thank you.

messages.log.txt

grahamperrin commented 5 years ago

When the blackness occurs, can you get a response to Control-Alt-F2?

Try drm-legacy-kmod without xf86-video-ati-legacy

Hint:

ls -hlrt /var/log/Xorg*.log

rozle commented 5 years ago

Yes, I get response because I am using it for "quit" xserver with ctrl-c and shutdown -r now. I will uinstall xf86-video-ati-legacy now. I found also those two links: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/597070 https://bugs.freedesktop.org/show_bug.cgi?id=98046

grahamperrin commented 5 years ago

https://everymac.com/ultimate-mac-lookup/?search_keywords=iMac11,1 both models have:

… ATI Radeon HD 4850 graphics processor with 512 MB of dedicated GDDR3 memory.

Xserver - black screen | The FreeBSD Forums for a 4850 refers to:

… ah, the freedesktop.org bug that you just found (comments crossing paths).

rozle commented 5 years ago

And what should I do now? If you read my first post I didn't have problem on FreeBSD 11.2 with kernel drivers but I had on 11.2 problem with whatever kmod I use. This mean that I will stay with scfb driver? ls -hlrt /var/log/Xorg*.log show: -rw-r--r-- 1 root wheel 8.0K Jan 1 17:15 /var/log/Xorg.0.log

grahamperrin commented 5 years ago

And what should I do now? …

With your 12.0, try drm-legacy-kmod without xf86-video-ati-legacy and if the black screen recurs, let us have the content of Xorg.0.log (you can add .txt to the filename for attachment to GitHub).


Also/alternatively you could try booting the iMac from a GhostBSD DVD, https://www.ghostbsd.org/download

I haven't tried any recent GhostBSD with a Mac, but GhostBSD 18.12 is based on 12.0-CURRENT, so … if you can get a GUI with the DVD live mode then we might reasonably assume that you will be able to get a GUI with a standard release of FreeBSD 12.

rozle commented 5 years ago

Xorg.log without ati-legacy drver.

xorg.log.txt

As I red GhostBSD has problem with UEFI. I hope the log will be helpful :).

Thank you.

rozle commented 5 years ago

tried today installe xf86-video ati and drm-kmod which install kmod for 12 but it doesn't workk. Please check attached xorg log and part of /var/log/mesages.

Thank you.

messageLog.txt xorg.log.ati.txt

rozle commented 5 years ago

New info: I did borrow dock station and connect mine old har drive and start FreeBSD 11.2. And everything works. I don't know what should be wrong with the FreeBSD 12.0. What is different I had on the old drive freebsd-boot and uefi partition but now I have just uefi. Thank you.