Package Base Details: linux-macbook

Git Clone URL: https://aur.archlinux.org/linux-macbook.git (read-only)
Submitter: m3thodic
Maintainer: annguyenfoss
Last Packager: annguyenfoss
Votes: 35
Popularity: 2.005237
First Submitted: 2016-07-05 23:22
Last Updated: 2019-05-29 03:29

Pinned Comments

annguyenfoss commented on 2019-05-29 03:33

Built and tested 5.1.5.arch1-1. Released. However, there are differences between this build's config and official kernel build's. I'll review and address those differences in next builds.

Latest Comments

« First ‹ Previous ... 2 3 4 5 6 7 8 9 10 11 12 ... Next › Last »

notjacktall commented on 2017-05-30 13:43

@m3thodic Yeah thats what I was thinking and I do dual boot. Its just arch and mac linux. I am using efi. Just looked into refind that does look like it will solve my problems. I have never used refind though, is there any more additional set up other than installing it using the arch package manager?

m3thodic commented on 2017-05-30 04:40

@notjacktall I'm guessing it has something to do with your partition setup re: EFI. Do you dual-boot at all? I personally install refind on all my EFI-based systems (refind-efi-bin in the AUR). For me it's the quickest and easiest solution that supports every type of EFI setup (or lack there-of) I've come across.

notjacktall commented on 2017-05-29 22:45

I did that and the two are identical. I've pasted the grub.cgf below if you want to take a look at it. But the good news is the kernel dix fix the suspend for me and made the laptop a lot more usable. So, thanks a ton for that :)

[code]
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 c113c01e-6b64-40fe-a8e9-1d43524fb01f
else
search --no-floppy --fs-uuid --set=root c113c01e-6b64-40fe-a8e9-1d43524fb01f
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c113c01e-6b64-40fe-a8e9-1d43524fb01f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 76ed38c7-2c83-42c9-ad99-2e78614710df
else
search --no-floppy --fs-uuid --set=root 76ed38c7-2c83-42c9-ad99-2e78614710df
fi
echo 'Loading Linux linux-macbook ...'
linux /vmlinuz-linux-macbook root=UUID=c113c01e-6b64-40fe-a8e9-1d43524fb01f rw BOOT_IMAGE=/vmlinuz-linux-macbook disable_mode=1 quiet splash rootflags=data=writeback ipv6.disable=1
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-macbook.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-c113c01e-6b64-40fe-a8e9-1d43524fb01f' {
menuentry 'Arch Linux, with Linux linux-macbook' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-macbook-advanced-c113c01e-6b64-40fe-a8e9-1d43524fb01f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 76ed38c7-2c83-42c9-ad99-2e78614710df
else
search --no-floppy --fs-uuid --set=root 76ed38c7-2c83-42c9-ad99-2e78614710df
fi
echo 'Loading Linux linux-macbook ...'
linux /vmlinuz-linux-macbook root=UUID=c113c01e-6b64-40fe-a8e9-1d43524fb01f rw BOOT_IMAGE=/vmlinuz-linux-macbook disable_mode=1 quiet splash rootflags=data=writeback ipv6.disable=1
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-macbook.img
}
menuentry 'Arch Linux, with Linux linux-macbook (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-macbook-fallback-c113c01e-6b64-40fe-a8e9-1d43524fb01f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 76ed38c7-2c83-42c9-ad99-2e78614710df
else
search --no-floppy --fs-uuid --set=root 76ed38c7-2c83-42c9-ad99-2e78614710df
fi
echo 'Loading Linux linux-macbook ...'
linux /vmlinuz-linux-macbook root=UUID=c113c01e-6b64-40fe-a8e9-1d43524fb01f rw BOOT_IMAGE=/vmlinuz-linux-macbook disable_mode=1 quiet splash rootflags=data=writeback ipv6.disable=1
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-macbook-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-c113c01e-6b64-40fe-a8e9-1d43524fb01f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 76ed38c7-2c83-42c9-ad99-2e78614710df
else
search --no-floppy --fs-uuid --set=root 76ed38c7-2c83-42c9-ad99-2e78614710df
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=c113c01e-6b64-40fe-a8e9-1d43524fb01f rw BOOT_IMAGE=/vmlinuz-linux-macbook disable_mode=1 quiet splash rootflags=data=writeback ipv6.disable=1
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-c113c01e-6b64-40fe-a8e9-1d43524fb01f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 76ed38c7-2c83-42c9-ad99-2e78614710df
else
search --no-floppy --fs-uuid --set=root 76ed38c7-2c83-42c9-ad99-2e78614710df
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=c113c01e-6b64-40fe-a8e9-1d43524fb01f rw BOOT_IMAGE=/vmlinuz-linux-macbook disable_mode=1 quiet splash rootflags=data=writeback ipv6.disable=1
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
[/code]

m3thodic commented on 2017-05-29 22:20

@notjacktall disable_mode isn't required anymore, but wouldn't hurt anything if you still had it in your grub config.

m3thodic commented on 2017-05-29 22:19

@notjacktall try running grub-mkconfig -o /tmp/grub.cfg and diff the two configs, but before that it wouldn't hurt running the following as root also: mkinitcpio -p linux-macbook

notjacktall commented on 2017-05-29 22:19

Am I adding the wrong thing in the grub file or is there something else that I'm missing? I tried doing the disable_mode=1, but that had no effect also.

notjacktall commented on 2017-05-29 21:54

@m3thodic yeah i've tried that, but it didn't work. I checked the /boot/grub/grub.cgf and it looks like it is writing to it, but I just can't choose it in the GRUB on boot

m3thodic commented on 2017-05-29 21:45

@notjacktall after changing /etc/default/grub you have to run the following command as root: grub-mkconfig -o /boot/grub/grub.cfg

notjacktall commented on 2017-05-29 21:36

@m3thodic for some weird reason I am never able to boot straight into the kernel. I have to manually edit the GRUB every boot. I check my grub.cgf and it seems fine, but it just won't boot or give me the option to boot into the linux-macbook kernel. I change my GRUB_CMDLINE_DEFAULT in /etc/default/grub to BOOT_IMAGE=vmlinuz-linux-macbook, but that doesn't seem to be working.

Vokinloksar33 commented on 2017-05-28 17:23

Many thanks to m3thodic! I'm finally able to work on my mid-2015 mbp with arch linux.

Just the wake-up from a suspend status needs a few extra seconds. would be perfect to fix that. not a big problem tho.