You are not logged in.

#26 2012-07-12 11:24:04

OhneHerren
Member
Registered: 2012-07-09
Posts: 32

Re: problems booting archlinux on a MacBook Air Mid 2012

My mistake AHCI works without any additional GRUB config.

Offline

#27 2012-07-21 08:09:06

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

Re: problems booting archlinux on a MacBook Air Mid 2012

0x530302 wrote:

I figured out what the problem is.

The i915 driver can't correctly identify my screens. When i wait until the system has booted and then blindly login, open a terminal and type

$ xrandr --output eDP1 --off
$ xrandr --output eDP1 --auto

everything seems to work!

I am planning on buying the same machine. Everything works ok? Suspend to RAM? Touchpad? Battery life?

Are you doing dual boot with Mac and Linux?

Offline

#28 2012-07-21 18:54:31

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

Janhouse wrote:

Yes, it worked with grub2-efi without any problems for me.

I am having trouble getting this machine to boot.  Are you dual booting?  I left an OSX partition for firmware updates, so that I have /dev/sda4 as /boot (ext2) and /dev/sda5 as /.

I attempted to install grub2-efi using:

grub-install --directory=/usr/lib/grub/x86_64-efi --target=x86_64-efi --efi-directory=/install/boot/efi --bootloader-id=arch_grub --boot-directory=/install/boot

Is chrooting necessary here?

I am using rEFIt.  Rebooting and choosing Linux from the menu tells me that I need to "no bootable device -- insert boot disk and press any key to continue".

So now I'm stuck.  Any help would be very much appreciated!

Last edited by tinte (2012-07-21 18:55:01)

Offline

#29 2012-07-22 18:07:25

Janhouse
Member
Registered: 2010-10-02
Posts: 28

Re: problems booting archlinux on a MacBook Air Mid 2012

Yes, I have dual boot setup.
I am not using rEFIt (why would I?).

2012-07-22-210040_1440x900_scrot.png

I think I already mentioned that I set it up using Archboot iso, so I did not have to do anything, the install was pretty much automatic all the way.
So, get the latest Archboot and try again.

Offline

#30 2012-07-23 13:39:51

savar
Member
Registered: 2012-07-23
Posts: 9

Re: problems booting archlinux on a MacBook Air Mid 2012

I've got the same Problem as 0x530302.
I've bootet and installed archlinux with archboot from a usb stick and i can boot with noapic but than my screen goes dark. If i use i915.modeset=0 i can boot to bash but no X. sad
So the i915 ist not recognizing my screen correctly. I also installed linux-git with a patch to the i915 driver (like http://www.almostsure.com/mba42/fix-i915.sh), but nothing helped.

Anyboby an idea what I missed?
@Janhouse: is yours an 11" or 13" Display?

Offline

#31 2012-07-23 13:42:06

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

0x530302 wrote:
$ xrandr --output eDP1 --off
$ xrandr --output eDP1 --auto

savar: Did you try this thing?

Offline

#32 2012-07-23 13:49:59

savar
Member
Registered: 2012-07-23
Posts: 9

Re: problems booting archlinux on a MacBook Air Mid 2012

hi tinte,

no because i cant see anything after the modeswitch.
And there have to be a way seeing at leased the display manger after booting....

Offline

#33 2012-07-23 14:04:24

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

savar wrote:

no because i cant see anything after the modeswitch.

Hello,

How about putting it in your .xinitrc?  Replace `openbox` with your wm.

#!/bin/bash

openbox & wmpid=$!
xrandr --output eDP1 --off
xrandr --output eDP1 --auto
wait $wmpid

I found this here: https://wiki.archlinux.org/index.php/Xinitrc

Offline

#34 2012-07-23 14:20:16

Janhouse
Member
Registered: 2010-10-02
Posts: 28

Re: problems booting archlinux on a MacBook Air Mid 2012

Mine is the 13 inch one.
What kernel version do you have? I had the problem with screen going dark because the first time I set it up, I installed the LTS kernel and it doesn't have the latest video drivers.

So I got the LATEST Archboot (I mean really, the latest) and it worked just fine. Now I am running Linux 3.4.4 and it works great.

Last edited by Janhouse (2012-07-23 14:25:08)

Offline

#35 2012-07-23 14:36:32

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

Janhouse: so by latest you mean 2012.06-1?

Offline

#36 2012-07-23 14:48:15

Janhouse
Member
Registered: 2010-10-02
Posts: 28

Re: problems booting archlinux on a MacBook Air Mid 2012

Yes, if I remember correctly.
Just do not boot from the LTS kernel.
When you insert the Archboot USB flash, you edit the boot parameters (add noapic), so you would boot the install normally.

Offline

#37 2012-07-23 15:47:04

savar
Member
Registered: 2012-07-23
Posts: 9

Re: problems booting archlinux on a MacBook Air Mid 2012

@janhouse:
Mine is also the 13 inch one. Hmm.
I used also archlinux-2012.06-1-archboot-x86_64.iso booted with noapic and installed arch with grub2 efi. that worked. But i can't boot with i915 modeset enabled. I wonder whats the difference between my setup and yours.
Today I tried the new shiny 3.5 Kernel from git but nothing changed.

Last edited by savar (2012-07-23 15:51:50)

Offline

#38 2012-07-23 21:13:58

Janhouse
Member
Registered: 2010-10-02
Posts: 28

Re: problems booting archlinux on a MacBook Air Mid 2012

http://pastebin.com/C5MZvirx - /etc/mkinitcpio.conf
http://pastebin.com/mhGdsddc - /boot/grub/grub.cfg
Anything else?

Offline

#39 2012-07-23 21:29:35

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

Janhouse wrote:

I am not using rEFIt (why would I?).

So that you can choose a boot device without holding alt.  But I think you can boot straight to grub as well.

I uninstalled rEFIt, and tried again from archiso + grub2-efi with no problems this time.

I haven't gotten to the display issues savar has been having since I'm having internet troubles.  I am using:

wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplication.conf
dhcpcd wlan0

I get an IP address and I have internet access (tested with wget).  It lasts long enough to get the package list, but not long enough to upgrade pacman.  I tried rebooting and had the same problem.  Has anyone else had problems?  I haven't had any issues in the mac os x partition, and I didn't have the same issues when I was using archboot.  Which log files should I look in?

Offline

#40 2012-07-24 09:27:25

savar
Member
Registered: 2012-07-23
Posts: 9

Re: problems booting archlinux on a MacBook Air Mid 2012

@Janhouse: Thanks, but that didn't help. I've nearly the same setup.
@Janhouse @tinte could you tell me whats your Display? i.g. by running "ioreg -lw0 | grep IODisplayEDID | sed "/[^<]*</s///" | xxd -p -r | strings -6"  in OS X?

I managed to get the display working by setting

xrandr --output eDP1 --off
xrandr --output eDP1 --auto
xrandr --output eDP1 --mode 1440x900

in /etc/gdm/Init/Default
Thats ok, but thats still not what I hoped for. Cause you guys got running out of the box.

The version with .xinitrc didn't work although using lxde with openbox.

@tine: i used the ethernet usb adpater for the installation, but my wlan0 works perfekt with wpa_supplicant too. Maybe do not use -B and look at the output? Maybe its also a setting in the wlan router you could change....

Do you know how to get F1-F12 to work correctly? Without using Fn?

Last edited by savar (2012-07-24 09:28:00)

Offline

#41 2012-07-24 09:32:10

Janhouse
Member
Registered: 2010-10-02
Posts: 28

Re: problems booting archlinux on a MacBook Air Mid 2012

I think that archwiki had info on that.
https://wiki.archlinux.org/index.php/Apple_Keyboard

Offline

#42 2012-07-24 10:29:56

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

@savar here's the ioreg output:

LTH133BT01A03
Color LCD

Offline

#43 2012-07-24 12:01:43

savar
Member
Registered: 2012-07-23
Posts: 9

Re: problems booting archlinux on a MacBook Air Mid 2012

@janhouse: thx

@tinte: ah ok thx. I've an LP133WP1-TJA3. So thats the difference than. @janhouse is yours the same as tintes?

Offline

#44 2012-07-24 12:02:45

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

@savar: That might not be the cause... I haven't tested my display yet.  I'll let you know once I get there.

Offline

#45 2012-07-24 12:22:43

savar
Member
Registered: 2012-07-23
Posts: 9

Re: problems booting archlinux on a MacBook Air Mid 2012

@tinte: if you can boot to command line with out any extra grub settings (except noapic) your display works fine. You've an Samsung Display mine is an LG.
I can't boot to command line (and still can't).

Last edited by savar (2012-07-24 12:23:34)

Offline

#46 2012-07-24 13:28:48

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

@savar: Oh I see.  That makes sense.

I am curious -- do the Fn+Alt+F2..6 terminals work after your /etc/gdm/Init/Default runs?

Offline

#47 2012-07-24 19:58:47

savar
Member
Registered: 2012-07-23
Posts: 9

Re: problems booting archlinux on a MacBook Air Mid 2012

@tinte yes they are working afterwords

Offline

#48 2012-07-24 20:02:37

tinte
Member
Registered: 2012-07-20
Posts: 15

Re: problems booting archlinux on a MacBook Air Mid 2012

@savar OK, thanks for the info.  Too bad it doesn't work out of the box.

Offline

#49 2012-07-25 07:55:37

dreamvalley
Member
Registered: 2012-07-25
Posts: 3

Re: problems booting archlinux on a MacBook Air Mid 2012

I have a 11.6" MacBook Air Mid 2012 and also have the problem to get the display to work, despite trying various suggestions here.

I put the following lines in /etc/gdm/Init/Default :

xrandr --output eDP1 --off
xrandr --output eDP1 --auto
xrandr --output eDP1 --mode 1366x768

But that doesn't seem to help, both with or without i915.diescreaming=1 in the kernel line. I found that even the LCD shows nothing without i915.diescreaming=1, connecting it to an external display works properly. I could see text in the external screen and log in properly. But in both cases, running xrandr gives the output "Can't open display". I wonder if anyone else has the same problem or it's just because I didn't install the display drivers correctly? Is it possible to simply use the vesa driver?

@saver How did you put the few lines in /etc/gdm/Init/Default ? It would be helpful if you could provide the file.

I also checked that my panel is "LP133WP1-TJA3". I think this panel was also used in the 2011 models.

Offline

#50 2012-07-25 10:10:35

savar
Member
Registered: 2012-07-23
Posts: 9

Re: problems booting archlinux on a MacBook Air Mid 2012

@dreamvalley: are you using gdm as displaymanager? is gdm installed and started in rc.conf? You could also use kdm oder any other displaymanger but than you've to put the commands in other config files.

I've put the lines at the end of the file befor the exit 0.

My LCD is also showing nothing until gdm comes up and the xrandr lines get to work. (could take more than a minutes cause of applesmc errors)

I tried also many times booting with external display this always worked for me. Try to boot with external display (without i915.die). Start your Desktop. And than try using lxrandr or krandr or xrandr to setup your internal display. Than put that steps in your gdm/kdm/slim config file.

HTH

Last edited by savar (2012-07-25 10:11:51)

Offline

Board footer

Powered by FluxBB