You are not logged in.

#1 2014-10-18 13:21:35

TheFoo
Member
Registered: 2014-10-18
Posts: 2

iMac 27" RadeonHD4850 modesetting problem

Hello!
I've been a Arch user for a couple of years, and recently installed it on my iMac (2007 model). Everything went well, except when I try to use the free ATI driver.

From lspci:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV770/M98L [Mobility Radeon HD 4850]

The problem is as follow. Unless I pass the kernel parameter "nomodeset" or "radeon.modeset=0" the screen goes black immedeatly after initializing "Virtual Console". Though I can do a blind login and reboot after this, so it apprears to just be a video problem.

So. I set "radeon.modeset=0"

However I then get the following error:

[    0.000000] Kernel command line: initrd=\initramfs-linux.img root=/dev/sda3 rw radeon.modeset=0
[    5.861485] [drm:radeon_init] *ERROR* No UMS support in radeon module!

Upon, some digging I found that UMS support is indeed deprecated in the radeon module. And if I try to start X11 with the 20-radeon.conf I get the following error:

[  1859.457] (II) [KMS] drm report modesetting isn't supported.
[  1859.457] (EE) Screen 0 deleted because of no matching config section.
[  1859.457] (II) UnloadModule: "radeon"
[  1859.457] (EE) Device(s) detected, but none match those in the config file.
[  1859.457] (EE) 
Fatal server error:
[  1859.457] (EE) no screens found(EE) 

I tried early KMS by adding the radeon module to /etc/mkinitpico.conf and running "mkinitpico -p linux", had no effect.

I have seen someone posting that running "modprobe -r drm" and then  "modprobe -v radeon modeset=1" would work, and did it as described in https://bbs.archlinux.org/viewtopic.php?id=158161  however, the screen goes black again when the radeon module is inserted.

So, to summarize, my problem is as follows:
1. Unless I boot with kernel option nodemodesett or radeon.modeset = 0, screen goes black during init.
2. If I disable modesetting the radeon module won't load properly.


Any ideas?

Last edited by TheFoo (2014-10-18 14:30:30)

Offline

#2 2015-02-12 16:27:13

Echo2654
Member
Registered: 2014-01-21
Posts: 5

Re: iMac 27" RadeonHD4850 modesetting problem

I'm having the exact same issue you describe. I'm on an iMac 27 with radeon 4850 GPU, only difference is mines the 2011 model. The crazy part is I've actually tried Arch Linux, Debian (testing and stable), and Ubuntu and got the same result. That Debian stable is using a 3.2 kernel and still wont boot correctly is baffling.

I'm starting to think this issue could be related to the Yosemite upgrade in OSX fiddling with display firmware or something but I could be way off. I'm about to reinstall arch so I can post some error logs; If anyone has insight into what could be going on here or would like to see specific log output let me know... Really don't want to be stuck in OSX

Offline

#3 2015-02-12 22:59:20

Echo2654
Member
Registered: 2014-01-21
Posts: 5

Re: iMac 27" RadeonHD4850 modesetting problem

SSHed in while it was KMS-blackscreened, module seemed to load ok but theres a problem with EDID checksum...
Journal Log: http://pastie.org/private/xnrchhewj8hweclrkwrbtg

I also blindly logged in and started X to see what Xorg.0.log had to say about everything
Xorg Log: http://pastie.org/private/oiv8iccphr7lmkftrpatnw

I've also tried booting using the default edid overrides from the kernel command line but it didnt seem to make a difference besides a screen flicker before it went black on some resolutions.

Offline

#4 2015-02-26 09:55:26

TheFoo
Member
Registered: 2014-10-18
Posts: 2

Re: iMac 27" RadeonHD4850 modesetting problem

Hello fellow traveler.

Wasted a few more hours on this today., still no luck, but perhaps some progress.
I get the same EDID error (though with complaint that checksum remainder is 249).

I used DarwinDumper while in OSX to generate a EDID.bin, which i copied to /lib/firmware/edid then I booted with: drm_kms_helper.edid_firmware=edid/EDID.bin

That made the EDID complaints go away, but still the screen goes black. Here's the log:http://pastebin.com/vn49v5M6

Could it be as stupidly simple as the backlight somehow being turned off?

Offline

#5 2015-03-01 23:39:09

Echo2654
Member
Registered: 2014-01-21
Posts: 5

Re: iMac 27" RadeonHD4850 modesetting problem

Also tried the edid thing and got the same effect. Things got interesting once I plugged in an external monitor via the mini displayport. When the radeon module loads the display output is moving itself to the externel screen, and works fine from there including X. Im under the impression that its moving output to the display port whether or not theres anything plugged into it. So it's sending video output to a nonexistent externel display if nothing is plugged into the displayport.

Even weirder, the internel displays backlight stays on if an external display is connected but just shows flickering whitenoise (cant think of a better description) instead of a tty or login manager. I assume this rules out a simple backlighting issue.

I have a working but nonoptimal setup now by having the internal monitor turned off in my desktop environment's settings. So an HDMI monitor + MiniDisplay adapter should be a decent workaround if missing out on the apple display isnt a dealbreaker for you.

Last edited by Echo2654 (2015-03-01 23:46:30)

Offline

#6 2015-03-23 14:12:34

hxc900930
Member
Registered: 2014-03-14
Posts: 3

Re: iMac 27" RadeonHD4850 modesetting problem

I had the exactly same issue last weekend when I tried to install Arch on my late 2009 iMac with ATI 4850 512MB graphical card. After hours of work,  I still not able to boot into graphical interface by the exactly same methods used by OP. I did some research that someone saying the perpoitery Catalyst driver may work. However, the HD2.3.4xxx series are no longer supported by the latest catalyst driver and had to choose the legacy driver at AUR. The legacy driver requires kernel version older than 3.19 and xorg-server version older than 1,13, and also some other dependencies.  It is worth trying, but I won't have a try on it any more, I've spent too much time on that. Let me know if that method will work.

Offline

#7 2015-03-23 20:39:42

Echo2654
Member
Registered: 2014-01-21
Posts: 5

Re: iMac 27" RadeonHD4850 modesetting problem

No luck with the catalyst legacy driver (too many moving parts to get that thing working), but downgrading to the current 3.14 linux-lts kernel just solved the issue for me! The internal monitor and HDMI external monitor both working as intended. Its a bit strange because Ive tried debian wheezy with its even older kernel and it did the same thing as arch on the 3.19 kernel. Im not sure if this will work without an external monitor plugged in as I havent had the chance to try it.

Upstream just declared kernel 3.18 LTS though, so Arch may be moving to it soon. If thats the case, and the 2009 iMac doesnt get fixed in 3.18, an aur package tracking 3.14 should be fine as well. If/when linux-lts moves to 3.18 ill test it and post results.

Offline

#8 2015-03-24 21:54:07

hxc900930
Member
Registered: 2014-03-14
Posts: 3

Re: iMac 27" RadeonHD4850 modesetting problem

Echo2654 wrote:

No luck with the catalyst legacy driver (too many moving parts to get that thing working), but downgrading to the current 3.14 linux-lts kernel just solved the issue for me! The internal monitor and HDMI external monitor both working as intended. Its a bit strange because Ive tried debian wheezy with its even older kernel and it did the same thing as arch on the 3.19 kernel. Im not sure if this will work without an external monitor plugged in as I havent had the chance to try it.

Upstream just declared kernel 3.18 LTS though, so Arch may be moving to it soon. If thats the case, and the 2009 iMac doesnt get fixed in 3.18, an aur package tracking 3.14 should be fine as well. If/when linux-lts moves to 3.18 ill test it and post results.

Thanks for your information. Are you saying that the radeon module could work without problem under LTS kernel? I remembered I tried but still end up with no luck. I will have it a try again when I am back home. Do I need to do the edid stuff?

Offline

#9 2015-03-24 22:14:30

Echo2654
Member
Registered: 2014-01-21
Posts: 5

Re: iMac 27" RadeonHD4850 modesetting problem

Yeah the linux-lts kernel is working for me with the open radeon drivers, but only when an external monitor is plugged into the minidisplay port. If I try to boot that setup with the displayport unplugged I get the black screen on the internal monitor, but when plugged in both monitors work perfectly. You can even disable the external monitor in your Desktop Environment settings post-boot if you dont want/need it.

The edid stuff is unecessary for this workaround, though ide wager the dmesg complaints about the edid are somehow related to the problem.

Offline

#10 2015-03-25 03:24:10

hxc900930
Member
Registered: 2014-03-14
Posts: 3

Re: iMac 27" RadeonHD4850 modesetting problem

Echo2654 wrote:

Yeah the linux-lts kernel is working for me with the open radeon drivers, but only when an external monitor is plugged into the minidisplay port. If I try to boot that setup with the displayport unplugged I get the black screen on the internal monitor, but when plugged in both monitors work perfectly. You can even disable the external monitor in your Desktop Environment settings post-boot if you dont want/need it.

The edid stuff is unecessary for this workaround, though ide wager the dmesg complaints about the edid are somehow related to the problem.

Thanks for the reply, I am actually doing that right now. I don't have an external monitor with me , so I think that is the reason why I still got black screen with the LTS kernel installed. Your reply answers my questions, because I initially thought it would work just because of the kernel version.

Anyway, I give up. Thanks for the work and reply buddy. I will go back to Mac OS for my iMac and enjoy Arch on my C720 and Dell M4700.

Cheers!

Offline

#11 2017-09-03 05:33:38

oech3
Member
Registered: 2017-09-03
Posts: 9

Re: iMac 27" RadeonHD4850 modesetting problem

I had the same issue.I have been used an iMac 11,2 with nomodeset paramater.I saw a report https://bugzilla.kernel.org/show_bug.cgi?id=100301 about the issue.I was able to boot without nomodeset.

I replaced nomodoset paramater to video=DP-1:1920x1080.I made a service to echo 'on' > '/sys/class/drm/card0-DP-1/status'(I don't know when I shound launch it exactly).tty appeared.

I launched MATE Desktop.I added a1902x1080 resolution referring to https://wiki.archlinux.org/index.php/Xr … esolutions. 10-monitor.conf is here.

#/etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
    Identifier "DisplayPort-0"
    Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
    Option "PreferredMode" "1920x1080_60.00"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "DisplayPort-0"
    DefaultDepth 24
    SubSection "Display"
        Modes "1920x1080_60.00"
    EndSubSection
EndSection

Section "Device"
    Identifier "Radeon"
    Driver "radeon"
    Option "TearFree" "ON"
EndSection

mate-display-properties detected 2 displays without real external displays,Display-Port-0 and eDP.Mirroring then worked well.weston worked well without adding resolution.

xbacklight says "No outputs have backlight property." and it doesn't work even if I add "Backlight" section to xorg.confhttps://wiki.archlinux.org/index.php/Ba … xbacklight.But I can edit /sys/class/backlight/radeon_bl0/brightness to change brightness.

If I launch compton,My PC freezes.But I can use "TearFree" option for xorg.conf.

Offline

Board footer

Powered by FluxBB