LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-05-2023, 04:13 AM   #1
lackware
LQ Newbie
 
Registered: Nov 2021
Posts: 5

Rep: Reputation: Disabled
Slackware 15 on a MacBook Pro 8.2 booting issue and fix


slackware grub boot macbook-pro 8.2

https://everymac.com/systems/apple/m...olt-specs.html

I was given an old 2011 MacBookPro not really my cup of tea but by far the best spec computer I have. This was the first UEFI machine I has so I was worried
about bricking it so I kept the EFI partiton and the apple recovery. I first tried Linux Mint on a live usb as I expected it to have all the crap I might need to install. It worked fine so I installed to a small partition on sda2. Everything worked so I installed Slackware to sda4. but I could only get it to boot from grub manually after holding down the alt key and selecting efi from the apple firmware . Anyway I found the fix on the Debian wiki and thought I'd post the symptoms and the fix.

Once booted I installed the broadcom, isight firmware and pommed-light from slackbuilds.org. Using xfce the function keys volume, screen brightness and keyboard backlight are working Ive not tried or worked out what the other keys are yet. Wifi, webcam all work.

slackbook

grub> set root=(hd1,gpt4)
grub> linux /boot/vmlinuz-huge-5.15.19
grub> initrd /boot/initrd.gz
grub> boot

sda1 EFI don't touch
sda2 mint (empty)
sda3 apple (recovery) don't touch
sda4 Slackware 15
sda5 arch (empty)
sda6 /home
sda7 swap

if I use grub-mkconfig -o /boot/grub/grub.cfg

grub-install /dev/sda

It hangs at "fbo: switching to radeon from EFI VGA"

Same if I use efibootmgr to list then set Slackware as the boot option.

If I hold down the alt after the chime and choose efi from the apple menu it fails to boot and falls back to a grub prompt. I can then run

grub> set root=(hd1,gpt4)
grub> linux /boot/vmlinuz-huge-5.15.19
grub> initrd /boot/initrd.gz
grub> boot

and it boots correctly past switching to radeon from EFI VGA and the screen is correctly setup

The fix: " https://wiki.debian.org/InstallingDe...MacBookPro/8-3

6. Edit the file /etc/grub.d/10_linux

Look for these lines:-

if ([ "$ubuntu_recovery" = 0 ] || [ x$type != xrecovery ]) && \
([ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 1 ]); then
echo " gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/"
fi

After these lines add in:- This was about line 130 on my slackware 15 install

echo " outb 0x728 1" | sed "s/^/$submenu_indentation/"
echo " outb 0x710 2" | sed "s/^/$submenu_indentation/"
echo " outb 0x740 2" | sed "s/^/$submenu_indentation/"
echo " outb 0x750 0" | sed "s/^/$submenu_indentation/"


These lines disable the AMD GPU leaving just the integrated Intel HD3000 graphics working

Run update-grub

Reboot "

---------------8<-----------8<-----------------8<--------------

On Slackware 15 it was:

else
if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then
echo " load_video" | sed "s/^/$submenu_indentation/"
fi
echo " set gfxpayload=$GRUB_GFXPAYLOAD_LINUX" | sed "s/^/$submenu_indentation/"
fi

I put his about line 130 on my slackware 15 install

echo " outb 0x728 1" | sed "s/^/$submenu_indentation/"
echo " outb 0x710 2" | sed "s/^/$submenu_indentation/"
echo " outb 0x740 2" | sed "s/^/$submenu_indentation/"
echo " outb 0x750 0" | sed "s/^/$submenu_indentation/"

save then

grub-mkconfig -o /boot/grub/grub.cfg

grub-install /dev/sda

Reboot


---------------8<-----------8<-----------------8<--------------


pinxi -bay

System:
Host: slackbook.local Kernel: 5.15.19 arch: x86_64 bits: 64 compiler: gcc
v: 2.37-slack15 parameters: BOOT_IMAGE=/boot/vmlinuz-huge-5.15.19
root=UUID=7a7a1189-b079-48c1-8f9f-7d0acad69797 ro
Desktop: catwm vt: 1 dm: startx Distro: Slackware 15.0
Machine:
Type: Laptop System: Apple product: MacBookPro8,2 v: 1.0
serial: <superuser required> Chassis: type: 10 v: Mac-94245A3940C91C80
serial: <superuser required>
Mobo: Apple model: Mac-94245A3940C91C80 v: MacBookPro8,2
serial: <superuser required> UEFI: Apple v: MBP81.88Z.0047.B27.1201241646
date: 01/24/12
Battery:
ID-1: BAT0 charge: 73.0 Wh (98.6%) condition: 74.0/75.2 Wh (98.3%)
volts: 12.5 min: 10.9 model: SMP bq20z451 type: Li-ion serial: N/A
status: full cycles: 145
CPU:
Info: quad core Intel Core i7-2720QM [MT MCP] arch: Sandy Bridge speed (MHz):
avg: 914 min/max: 800/3300
Graphics:
Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
vendor: Apple driver: i915 v: kernel arch: Gen-6 code: Sandybridge
process: Intel 32nm built: 2011 ports: active: LVDS-1
empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0126
class-ID: 0300
Device-2: Apple FaceTime HD Camera type: USB driver: uvcvideo usb: rev: 2.0
speed: 480 Mb/s lanes: 1 mode: legacy-2 bus-ID: 1-2:3 chip-ID: 05ac:8509
class-ID: 0e02 serial: DJHB1X0THVDH7HA0
Display: server: X.Org v: 1.20.14 with: Xwayland v: 21.1.4 driver: X:
loaded: modesetting unloaded: vesa alternate: fbdev dri: i965 gpu: i915
resolution: 1440x900~60Hz
API: OpenGL v: 3.3 Mesa 21.3.5 renderer: Mesa DRI Intel HD Graphics 3000
(SNB GT2) compat-v: 3.0 direct-render: Yes
Network:
Device-1: Broadcom NetXtreme BCM57765 Gigabit Ethernet PCIe driver: tg3
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 02:00.0
chip-ID: 14e4:16b4 class-ID: 0200
Device-2: Broadcom BCM4331 802.11a/b/g/n vendor: Apple AirPort Extreme
driver: bcma-pci-bridge v: N/A modules: bcma pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 bus-ID: 03:00.0 chip-ID: 14e4:4331 class-ID: 0280
Drives:
Local Storage: total: 698.64 GiB used: 32.82 GiB (4.7%)
Info:
Processes: 212 Uptime: 27m wakeups: 4 Memory: 7.67 GiB used: 1.27 GiB (16.6%)
Init: SysVinit v: 3.01 runlevel: 3 default: 3 tool: /etc/rc.d Compilers:
gcc: 11.2.0 alt: 11.2.0 clang: 13.0.0 Packages: pm: pkgtool pkgs: 1399
libs: 238 tools: slackpkg pm: rpm pkgs: 0 Shell: Bash v: 5.1.16
running-in: xterm pinxi: 3.3.26-41

=========================================================================

edit: As I was reminded after kernel upgrade to update grub again.

grub-mkconfig -o /boot/grub/grub.cfg

grub-install /dev/sda

Reboot

Last edited by lackware; 05-05-2023 at 10:42 AM. Reason: add info
 
Old 05-08-2023, 11:24 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
It sounds like it was real punishment to get going. On a point of order,
Quote:
Originally Posted by lackware
grub> linux /boot/vmlinuz-huge-5.15.19
is not the kernel to use due to security issues. I think the patches/ directory have the latest bugless 5.15.x kernel that's been approved & packaged. Use that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am inheriting a MacBook Pro (last year's model). What is the best Linux system for a MacBook? JMacSmith Linux - Desktop 4 02-27-2018 10:37 PM
Trouble Booting Linux Mint 9 KDE on Macbook Pro 5.1 johan1391 Linux - Laptop and Netbook 1 08-02-2010 07:35 PM
Trouble Booting Linux Mint 9 KDE on Macbook Pro 5.1 johan1391 Linux - Newbie 2 08-01-2010 03:08 AM
Linux on a macbook/macbook pro... any experiences/problems, or is it even necessary? enigma_0Z Linux - Laptop and Netbook 13 09-14-2007 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration