You are not logged in.

#1 2014-07-21 19:01:09

Phoss_k
Member
Registered: 2014-07-20
Posts: 8

[Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Hi, I recently decided to give Arch a go, after having wanted an Arch setup for years but never dared to take the leap.

I followed the Beginner's_Guide closely for the main installation and then The_MBP_8.2_Install_Guide to get past the following errors:

radeon 0000:01:00.0: >Invalid ROM contents
i915 0000:00:02.0: Invalid ROM contents

However, in the process of setting up drivers and window/desktop managers, (more specifically, I was installing SLiM, with Awesome, which worked for a day or so until I started configuring the conf-files. Now I've been stuck on this for a few days ) I started getting  errors from the X11 configuration. Below is the error lines from Xorg :0 -configure

(II) [KMS] drm report modesetting isn't supported.
Number of created screens does not match number of detected devices.
  Configuration failed.
(EE) Server terminated with error (2). Closing log file.

Full /var/log/Xorg.0.log output.

~/xorg.conf.new
~/xorg.conf.new after "aticonfig --initial"

I have installed the following video drivers: intel, ati, radeon, fglrx, vesa, fbdev.
This is my output from lspci | grep VGA

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]

Full lspci output

dmesg output


These error logs were produced with the following kernel parameter: nomodeset

With radeon.modeset=0, I get the following when I run Xorg :0 --configure

Fatal server error:
(EE)  Caught signal 11 (Segmentation fault). Server aborting

I've been actively googling my errors, but now it just feels like I'm jumping from error to error. I've had to rescue my grub.cfg file a couple of times as well after trying to disable the radeon driver during boot with the gfxmode settings from the MBP_8.2_Install_Guide (Link above.)

Edit: I should also mention that I've been referencing these forum posts:
[SOLVED] ATI driver stopped to work.
[SOLVED]Problem with graphic driver after updating system
As well as the wiki pages AMD_Catalyst, Xorg, Kernel_Parameters

I'm not sure what to do at this point, so if anyone could point me in the right direction, it would be greatly appreciated.
Thank you,

Phoss_k

Last edited by Phoss_k (2014-08-11 19:35:43)

Offline

#2 2014-07-22 11:35:12

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

don't use Xorg --configure, it's useless except in a few very special cases.

Using radeon.modeset=0 (as the MBP wiki page says you have to to get it to boot) efffectively disables KMS for the AMD card completely.
Without KMS the opensource radeon driver can do very little , uninstall it. (pacman -Rns xf86-video-ati should be useful for that).

Also clean the /etc/X11/ & etc/X11/xorg.conf.d/ folders of any files except 10-quirks & 10-evdev .

reboot, start X , save logs

run aticonfig --initial , reboot, start X, save logs

post both logs


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2014-07-22 19:45:38

Phoss_k
Member
Registered: 2014-07-20
Posts: 8

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Using radeon.modeset=0 and after uninstalling the xf86-video-ati driver and cleaning out the folders, these are the logs:

Reboot, Running X:
/var/log/Xorg.0.log

Reboot, aticonfig --initial, Running X (on this one I got a black screen with an underscore at the very top left):
/var/log/Xorg.0.log (after aticonfig --initial)

Offline

#4 2014-07-23 10:46:42

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Ok, the first log confirms that your system is setup to use the amd card for output, not the intel one.


the 2nd log shows several errors i don't understand, however

[   100.162] (EE) fglrx(0): Failed to obtain VBIOS from Kernel!
[   100.162] (--) fglrx(0): Video RAM: 0 kByte, Type:

This suggests your problem is related to the kernel .

Can you try booting with the linux-lts kernel ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2014-07-24 17:08:21

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

I have installed the following video drivers: intel, ati, radeon, fglrx, vesa, fbdev.

Huh? Stop here. You seem to be messing things around. What are you actually trying to achieve?
Have you read the ATI wiki?
It's pretty clear: There are two drivers for ATI the open source package named xf86-video-ati (providing kernel module radeon) and the closed source catalyst (providing kernel module fglrx). Catalyst is not in the official repos, how did you install it ? And more importantly catalyst does not support Xorg 1.15 (the warning in the wiki). This will not work.
Moreover this seems to be a hybrid graphics setup so you may read up about this and what your options are...

Last edited by rebootl (2014-07-24 17:54:10)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#6 2014-07-25 10:39:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

rebootl, OP did mention he read those wiki pages in hist first post.
To be on the safe side, i asked him to remove xf86-video-ati with -Rns.

Also latest catalyst does support Xorg 1.15, if  an arch wiki page states it doesn't , it's outdated.
The AMD_Catalyst wiki page has all the corect info.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2014-07-25 14:28:46

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Ok, my post was a bit harsh, sorry.

What I'm not convinced of is whether catalyst is really needed here, therefor my question of what the OP is actually trying to achieve. For me using catalyst would be the only very very very last resort. And I'm not sure the other options are exhausted... Actually for me I believe there is no reason at all to ever use catalyst (again). (Edit: Even if that means not using the DGP at all, which is possible in this case since there is an Intel IGP present, the procedure as outlined under https://wiki.archlinux.org/index.php/Ma … leshooting)
That said.

Also latest catalyst does support Xorg 1.15, if  an arch wiki page states it doesn't , it's outdated.
The AMD_Catalyst wiki page has all the corect info.

Ok, my bad again, though it is on this very AMD_Catalyst wiki page:
https://wiki.archlinux.org/index.php/AM … repository
Warning: [ ... ] Catalyst does not support Xorg Server 1.15, [ ... ]

Last edited by rebootl (2014-07-25 14:33:21)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#8 2014-07-26 10:15:30

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

rebootl wrote:

Also latest catalyst does support Xorg 1.15, if  an arch wiki page states it doesn't , it's outdated.
The AMD_Catalyst wiki page has all the corect info.

Ok, my bad again, though it is on this very AMD_Catalyst wiki page:
https://wiki.archlinux.org/index.php/AM … repository
Warning: [ ... ] Catalyst does not support Xorg Server 1.15, [ ... ]


I reread that page, and you're right.
It seems the amd_catalyst wiki page itself is out of date,  my info comes from following The AMD/ATI Bar & Grill thread, but i'm not a catalyst user myself.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2014-07-26 11:45:41

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Ok, I hope I didn't scare off the OP :C, I tend to overact sometimes. If they (the catalyst devs) can manage to keep up with Xorg that would surely be great.


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#10 2014-07-27 20:07:46

Phoss_k
Member
Registered: 2014-07-20
Posts: 8

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

I'm still here ! This response is way over due so my apologies for keeping you guys waiting, but my school studies has kept me busy. I've also been reading up on the wiki pages and I came to the conclusion that my system was beyond repair (in the sense that a fresh install would just be a whole lot easier, and a lot of this is simply beyond my level of skill atm), as I had done a little too much troubleshooting. So I ended up doing a complete wipe and a fresh install as it seemed like the only reasonable thing to do.

Which leads me to this. I installed xf86-video-ati, xf86-video-intel xf86-video-vesa along with the X11 packages listed on the Xorg wiki page for a "standalone" Xorg. Now, I'll try to do this as safely as possible (hence this post) , before I take any hasty conclusions on my own.
When I try to run X or xinit now, I get the following error:

Fatal server error:
[  1799.413] (EE) no screens found(EE)

/var/log/Xorg.0.log

Without the kernel parameter "radeon.modeset=0", the boot fails to get me to the point where I'm presented with a login prompt. (I get past grub, and I see the arch loading screen, where it checks the system, and then it stalls). With the parameter "radeon.modeset=0", I get to the login prompt.

- Should I still remove xf86-video-ati at this point?

- What package is the aticonfig associated with? I can't seem to find which package to install. That is, if I would even need it in the first place.

And no, you didn't scare me off, rebootl smile . I really appreciate the "uncensored" feedback I've been getting! It helps to clarify things on my end.

Offline

#11 2014-07-28 10:47:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

aticonfig comes with the catalyst package.

I've re-read the posts, and it seems you have to make a choice :

1. use bios emulation to boot instead of EFI , that should make the amd card usable with either the opensource radeon or proprietary catalyst driver
  the intel card will do nothing in this setup

2. switch the laptop to use the intel card, this will likely mean you can't use the amd card
2a. use grub to make the intel card active, your earlier attempts to do this failed
2b. Assuming you still have OSX installed , you can use a utility to switch the intel card on from OSX
      this looks tricky, as you could forget to make the switch easily when dual booting

3. boot with efi / nomodeset and use the proprietary catalyst driver.
    It's unclear whether you can use the intel card in this mode.

Last edited by Lone_Wolf (2014-07-28 10:48:32)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#12 2014-07-28 12:55:23

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

I have a RV100 that the catalyst package doesn't recognize.  I think I've tried telling it that it is a PCI card instead of an AGP, and it ignores the ATI card all together.  Does nomodeset cause it to recognize it?  It seems as if some of these XP era video cards don't work so well under the latest Linux.

Last edited by nomorewindows (2014-07-28 12:56:54)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#13 2014-07-29 11:17:46

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Nomorewindows,

OP issues are with a MacBook Pro 8.2 system, i think it's best if you start  a new thread.

Phoss_k , please change the title of the first post to reflect this is a MBP specific issue.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#14 2014-07-29 13:50:31

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

I thought they all used the same hardware anymore.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#15 2014-07-29 16:50:25

Phoss_k
Member
Registered: 2014-07-20
Posts: 8

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Lone_Wolf wrote:

1. use bios emulation to boot instead of EFI , that should make the amd card usable with either the opensource radeon or proprietary catalyst driver
  the intel card will do nothing in this setup

This seems like a reasonable setup, but how would I actually implement this in a post-install environment? Would it still be the same as what I did when I set the system up for EFI boot? And also, should I make a new partition for this, in order to keep my EFI setup intact?

2. switch the laptop to use the intel card, this will likely mean you can't use the amd card

I am planning on installing a few 3D heavy applications later on, and I'd guess it would be to my advantage to keep the amd card usable for this purpose alone. If my plan would work at all, that is. Still haven't gotten to that point yet.

2a. use grub to make the intel card active, your earlier attempts to do this failed

I tried with radeon.modeset=0 i915.modeset=1. Right now I'm just using radeon.modeset=0. I also tried with nomodeset. I'm still trying to wrap my head around how the mkinitcpio comes into play here though. Would it override the Grub boot parameters if set in mkinitcpio?

2b. Assuming you still have OSX installed , you can use a utility to switch the intel card on from OSX
      this looks tricky, as you could forget to make the switch easily when dual booting

Nope smile Complete wipe. Took a backup image of the recovery partition if I were to change my mind though.

3. boot with efi / nomodeset and use the proprietary catalyst driver.
    It's unclear whether you can use the intel card in this mode.

So if I install the proprietary catalyst driver, should I uninstall the ati driver I've installed so far? (xf86-video-ati), then install the catalyst driver and set nomodeset?

Offline

#16 2014-07-29 17:07:28

Andy_Crowd
Member
From: 延雪平縣 Sweden
Registered: 2013-12-28
Posts: 119

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Remove all unnecessary video drivers and leave only them that needs for your graphic card. If will not help then you can also rename the '/etc/X11 and reinstall xorg-xinit and xorg-server.


Help to make Arora bug free!!
日不落 | Year 2081 | 笑傲江湖 | One more a really good book in my collection the Drystoll.

Offline

#17 2014-07-29 17:57:01

Phoss_k
Member
Registered: 2014-07-20
Posts: 8

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Andy_Crowd wrote:

Remove all unnecessary video drivers and leave only them that needs for your graphic card. If will not help then you can also rename the '/etc/X11 and reinstall xorg-xinit and xorg-server.

$ pacman -Qs xf86-video
local/xf86-video-ati
local/xf86-video-intel
local/xf86-video-vesa (fallback driver?) Should I remove it?

$ sudo mv /etc/X11 /etc/X11.old
$ sudo pacman -S xorg-xinit xorg-server
$ xinit

(EE) Server terminated with error (1). Closing log file.. local/share/xorg/Xorg.0.log" for additional information

~/.local/share/xorg/Xorg.0.log

EDIT:

Looking at the MBP8.2 Wiki It said I should have the fbdev driver installed, so I did (there were also a lot of references to that driver in my error logs).
$ sudo pacman -S xf86-video-fbdev
$ X
Which gives me the following from~/.local/share/xorg/Xorg.0.log:

Fatal server error:
(EE) xf86OpenConsole: Cannot open /dev/tty0 (no such file or directory)

/var/log/Xorg.0.log

Then I did:
$ sudo X
And got a blank screen, so i did a blind "$ reboot" and booted back up checked /var/log/Xorg.0.log

(EE) Caught signal 11 (Segmentation fault). Server aborting

mkinitcpio: I tried both with and without the module i915 in mkinitcpio and it seems to have no difference.
grub: Everything so far has been done with radeon.modeset=0, but I also tried with radeon.modeset=0 i915.modeset=1 i915.lvds_channel_mode=2 as mentioned in the wiki. Here is the /var/log/Xorg.0.log if you're interested. I didn't see much difference in this one from the ones with just radeon.modeset=0 as kernel parameter.
As far as the error logs are concerned. I'm really not sure which of /var/log/Xorg.0.log or ~/.local/share/xorg/Xorg.0.log is more/less relevant. In the failed $ X outputs, they've been referred to interchangeably, so I've tried giving you both.

EDIT2:
Kernel parameter nomodeset instead of radeon.modeset=0:
$ X
Gave me a blank screen with the following log output from the ~/.local/share/xorg log:

Fatal server error:
[   275.574] (EE) no screens found(EE) 

/var/log/Xorg.0.log
~/.local.share/xorg/Xorg.0.log

Last edited by Phoss_k (2014-07-30 18:00:42)

Offline

#18 2014-07-30 07:06:48

Skyalmian
Member
Registered: 2009-06-28
Posts: 121

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

I'm having this issue as well. The second-to-last X.org and xf86 [testing] package updates (July 18) appear to have broken X, keeping stuck in the terminal upon xinit.

[    42.908] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    42.908] (II) FBDEV: driver for framebuffer: fbdev
[    42.908] (II) VESA: driver for VESA chipsets: vesa
[    42.908] (EE) 
Fatal server error:
[    42.908] (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)

(I'm stuck with Windows for the time being.)

Last edited by Skyalmian (2014-07-31 06:41:52)

Offline

#19 2014-07-30 20:27:48

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Phoss_k wrote:
Lone_Wolf wrote:

1. use bios emulation to boot instead of EFI , that should make the amd card usable with either the opensource radeon or proprietary catalyst driver
  the intel card will do nothing in this setup

This seems like a reasonable setup, but how would I actually implement this in a post-install environment? Would it still be the same as what I did when I set the system up for EFI boot? And also, should I make a new partition for this, in order to keep my EFI setup intact?

Unless your current bootloader supports both uefi & bios emulation, you would need to change bootloaders .
a separate boot partition seems best option to allow your system to be booted both ways.

Phoss_k wrote:
Lone_Wolf wrote:

2. switch the laptop to use the intel card, this will likely mean you can't use the amd card

I am planning on installing a few 3D heavy applications later on, and I'd guess it would be to my advantage to keep the amd card usable for this purpose alone. If my plan would work at all, that is. Still haven't gotten to that point yet.

Lone_Wolf wrote:

2a. use grub to make the intel card active, your earlier attempts to do this failed

I tried with radeon.modeset=0 i915.modeset=1. Right now I'm just using radeon.modeset=0. I also tried with nomodeset. I'm still trying to wrap my head around how the mkinitcpio comes into play here though. Would it override the Grub boot parameters if set in mkinitcpio?

Lone_Wolf wrote:

2b. Assuming you still have OSX installed , you can use a utility to switch the intel card on from OSX
      this looks tricky, as you could forget to make the switch easily when dual booting

Nope smile Complete wipe. Took a backup image of the recovery partition if I were to change my mind though.

looks like option 2 is not useful for you then.

Phoss_k wrote:
Lone_Wolf wrote:

3. boot with efi / nomodeset and use the proprietary catalyst driver.
    It's unclear whether you can use the intel card in this mode.

So if I install the proprietary catalyst driver, should I uninstall the ati driver I've installed so far? (xf86-video-ati), then install the catalyst driver and set nomodeset?

yes, if you use option 3 xf86-video-ati has no use at all so should be uninstalled.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#20 2014-07-30 23:21:56

SilverOne
Member
From: Portugal
Registered: 2013-08-22
Posts: 69

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

This might not be of much help but i have the same computer you do and do have always had these errors:

[    5.399841] radeon 0000:01:00.0: Invalid ROM contents
[    5.399896] radeon 0000:01:00.0: Invalid ROM contents

I have awesome and gnome installed, gdms giving me some issues but everything works atm.

I use refind to boot with the default kernel parameters.When i used a custom kernel for gpu switching i used some custom parameters but these days i just live with the amd setup.

if there's someway you think i can help you, let me know.

Last edited by SilverOne (2014-07-30 23:34:35)


Best Regards,
SilverOne

Offline

#21 2014-07-31 23:07:05

Skyalmian
Member
Registered: 2009-06-28
Posts: 121

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

I tried 'startx' today after more [testing] updates. That works, and I am back in my window manager. 'xinit' still did not.

Offline

#22 2014-08-05 02:53:48

Phoss_k
Member
Registered: 2014-07-20
Posts: 8

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

SilverOne wrote:

This might not be of much help but i have the same computer you do and do have always had these errors:

[    5.399841] radeon 0000:01:00.0: Invalid ROM contents
[    5.399896] radeon 0000:01:00.0: Invalid ROM contents

I have awesome and gnome installed, gdms giving me some issues but everything works atm.

I use refind to boot with the default kernel parameters.When i used a custom kernel for gpu switching i used some custom parameters but these days i just live with the amd setup.

if there's someway you think i can help you, let me know.

Well, yes. Thank you for posting this first of all. Good to have someone else with the same hardware around.

I assume you're talking about radeon.modeset=0 (I am using this) for your custom kernel and set gfxmode (this one failed to work for me). If not, please correct me.
As for the amd setup, how did you go about setting this up ? And also, how does your xorg.conf look like? Did you customize this file at all?

Skyalmian wrote:

I tried 'startx' today after more [testing] updates. That works, and I am back in my window manager. 'xinit' still did not.

What did you install from the [testing] repository?

Offline

#23 2014-08-06 21:21:57

SilverOne
Member
From: Portugal
Registered: 2013-08-22
Posts: 69

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

Hello,

I did not customize xorg.conf

I'm just going to post the grub2s i used:

I used this one when i had a custom kernel on ubuntu:

 
menuentry "Ubuntu - IG" {
record fail
        insmod gzio
        insmod part_gpt
        insmod ext2
        set gfxpayload=keep
        outb 0x728 1
        outb 0x710 2
        outb 0x740 2
        set root='hd0,hpt4'
        search --no-floppy --fs-uuid --set=root 36a95a24-b710-43f7-9cec-d2ed409a4f5f
        linux   /boot/vmlinuz-3.8.0-custom root=UUID=36a95a24-b710-43f7-9cec-d2ed409a4f5f ro   quiet splash i915.lvds_use_ssc=0 
        initrd  /boot/initrd.img-3.8.0-custom
}

I used this on arch; i only used grub when i wanted to use the intel graphics , otherwise i'd just boot straight from arch via refind. The outbs in the config below, turn off the amd and pass graphics to the intel gpu.

menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-ad4103fa-d940-47ca-8506-301d8071d467' {
	load_video
	set gfxpayload=keep
	outb 0x728 1
	outb 0x710 2
	outb 0x740 2
	outb 0x750 0
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt5'
	search --no-floppy --fs-uuid --set=root b5fce0a8-a000-42b7-ad5e-92f30a018c28
	echo	'Loading Linux core repo kernel ...'
	linux	/boot/vmlinuz-linux root=UUID=b5ice0a8-a000-42b7-ad5e-92f30a018c28 rw  quiet radeon.modeset=0 i915.modeset=1 i915.lvds_channel_mode=2 acpi_backlight=vendor libaci.ignore_sss=1 irqpoll
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-linux.img
}

Today i don't use anything, i sometimes pass off radeon.dpm=1 but everything works out of the box. I've been wanting to get grub2 going again so i can get intel graphics and thus decent battery life, but i haven't had the free time.

Here's a thread detailing on how i got gpu switching working: http://ubuntuforums.org/showthread.php?t=2115317

Edit:
i installed grub, i can boot with the integrated graphics just fine but can only boot with the AMD card from refind. Attempting to boot without turning off the discrete card lands me on a black canvas.

Last edited by SilverOne (2014-08-08 00:10:41)


Best Regards,
SilverOne

Offline

#24 2014-08-11 19:34:20

Phoss_k
Member
Registered: 2014-07-20
Posts: 8

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

SilverOne wrote:

I used this on arch; i only used grub when i wanted to use the intel graphics , otherwise i'd just boot straight from arch via refind. The outbs in the config below, turn off the amd and pass graphics to the intel gpu.

menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-ad4103fa-d940-47ca-8506-301d8071d467' {
	load_video
	set gfxpayload=keep
	outb 0x728 1
	outb 0x710 2
	outb 0x740 2
	outb 0x750 0
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt5'
	search --no-floppy --fs-uuid --set=root b5fce0a8-a000-42b7-ad5e-92f30a018c28
	echo	'Loading Linux core repo kernel ...'
	linux	/boot/vmlinuz-linux root=UUID=b5ice0a8-a000-42b7-ad5e-92f30a018c28 rw  quiet radeon.modeset=0 i915.modeset=1 i915.lvds_channel_mode=2 acpi_backlight=vendor libaci.ignore_sss=1 irqpoll
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-linux.img
}

Today i don't use anything, i sometimes pass off radeon.dpm=1 but everything works out of the box. I've been wanting to get grub2 going again so i can get intel graphics and thus decent battery life, but i haven't had the free time.

Here's a thread detailing on how i got gpu switching working: http://ubuntuforums.org/showthread.php?t=2115317

Edit:
i installed grub, i can boot with the integrated graphics just fine but can only boot with the AMD card from refind. Attempting to boot without turning off the discrete card lands me on a black canvas.

Thank you! I finally got X11 working! I used your kernel parameters for the boot image, and with some minor tweaking, everything runs as it should! I copied the pre-existing grub2 boot entry for arch, applied the kernel parameters in your post, added achi and libahci to my mkinitcpio modules, and now when I run #startx, it shows the minimal gui with 3 terminal windows and a clock. I'll mark this thread as solved!

Offline

#25 2014-08-12 00:08:15

SilverOne
Member
From: Portugal
Registered: 2013-08-22
Posts: 69

Re: [Solved] X11 configuration, Radeon+Intel. [KMS] error. MBP 8.2 HW.

No problem, i should take care of the 8.2 MBP wiki to reflect my findings. You should also notice your macbook runs quite cooler because the first three outbs switch to intel gpu, then the last outb switches the discrete gpu off.  You should know it is not possible to run an external screen this way, even in mac os.

I do not use achi and libahci, what do they do ? I read the arch wiki and see grub might produce a "root fs not found" error but i have not had this happen to me so i do not use them.


Best Regards,
SilverOne

Offline

Board footer

Powered by FluxBB