LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-02-2015, 10:20 PM   #1
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Slackware-Current on a MacBook Pro 2015 Report


Works great after a couple of tweaks.

First, I built kernel 4.2, as that's the first version to support the trackpad.

Getting the keyboard to work properly took a few module options.

In /etc/modprobe.d/hid_apple.conf:

Code:
options hid_apple fnmode=2 swap_opt_cmd=1 iso_layout=0
  • fnmode=2 sets Fn mode to be off by default
  • swap_opt_cmd=1 swaps the position of the Alt and Apple keys
  • iso_layout=0 makes my tilde produce tildes when pressed

The documentation for these settings (including how to set them without rebooting or reloading kernel modules) is here:

https://help.ubuntu.com/community/AppleKeyboard

There was also the issue of the HDMI output being seen as the first and default audio device. I fixed that so that sound would go out the speakers and headphone port instead.

In ~/.asoundrc:

Code:
defaults.pcm.card 1
defaults.ctl.card 1
I also had screen corruption in Firefox until I forced UXA (thanks ponce):

http://www.linuxquestions.org/questi...2/#post5411624

In /etc/X11/xorg.conf.d/20-intel.conf:

Code:
Section "Device"
        Identifier "Intel Graphics"
        Driver "intel"
        Option "AccelMethod" "uxa"
EndSection
UPDATE: I noticed that my clock was wrong every time I booted into OS X and then booted back into Linux. So I ran timeconfig and told it that my hardware clock is in UTC and not in local time. We'll see if that helps.

Last edited by dugan; 09-05-2015 at 01:19 AM.
 
Old 09-03-2015, 12:04 AM   #2
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Bet it's a nice machine. What resolution is the screen?

Any difference in the battery life between Slack and iOs?
 
Old 09-03-2015, 12:35 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Original Poster
Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
It's a 2560x1600 display. I haven't checked the battery life differences (and I won't, since draining the battery shortens its life).

Last edited by dugan; 09-05-2015 at 12:18 AM. Reason: Corrected the resolution.
 
Old 09-03-2015, 02:14 AM   #4
tano70
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Rep: Reputation: Disabled
dugan can you send me (also privately) a step to step guide to install Slackware on macbook 2015?
 
Old 09-03-2015, 12:14 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Original Poster
Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by tano70 View Post
dugan can you send me (also privately) a step to step guide to install Slackware on macbook 2015?
No, I'm not going to send that to you privately. First the point of forums is to share knowledge publicly, and asking to be contacted privately misses that point. Second, if I'd written a step-by-step guide (I haven't) then I'd put it either on SlackDocs or my personal homepage.

On a high level, the steps were:

1. shrink the hard drive partition from OS X.

2. install rEFIND on the Mac. It's a matter of downloading it and running the installer.

3. Download slackware64-current. I used lftp and its "mirror" command on another machine.

4. Create an EFI-bootable USB installer from the slackware64-current directory tree you downloaded. rkelsen was kind enough to provide me with step-by-step instructions. Copy the slackware64-current/slackware64 directory tree to the partition on the boot USB that you've created to have it (not the boot partition).

5. Plug the USB stick into the Mac and turn it on. Choose the USB stick's from the rEFIND menu and start installing Slackware. Make sure the USB stick is booted in UEFI mode. When prompted, do not install LILO or ELILO; your boot loader is rEFIND, and it will see the kernels that you can boot from.

Then once it's installed, you do post-installation steps such as what I described in the top post (if needed, of course), and what's described in the Arch Wiki's HiDPI page.

Last edited by dugan; 09-03-2015 at 02:06 PM.
 
2 members found this post helpful.
Old 09-21-2015, 02:27 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Original Poster
Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by dugan View Post
Code:
Section "Device"
        Identifier "Intel Graphics"
        Driver "intel"
        Option "AccelMethod" "uxa"
EndSection
This is now handled by the Slackware package, and does not need to be added manually.
 
Old 01-06-2016, 02:16 PM   #7
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
Quote:
Originally Posted by dugan View Post
It's a 2560x1600 display. I haven't checked the battery life differences (and I won't, since draining the battery shortens its life).

i too be interested in battery life.

about "shortens their life" - not all that simple. you may have seen dead li batteries with only 30 - 50 cycles in them - worked by
years without discharge, from wall psu.
also is a known, li batteries take most wear from big currents, and deep discharge. as so, discharge up to say, 25 - 30 percent is very small stress for that.
on apple.com is also a recommendation to discharge battery at least once in month, if you work from wall electricity all the time.
btw, i have 2011 map with 1626 cycles on it! cannot imagine, how previously user can do such number of cycles in 5 years - looks like more than one cycle each day?
in any way, my battery has 84% health on stat pro, and last about 5 hours...:-O
 
1 members found this post helpful.
Old 01-12-2016, 07:00 PM   #8
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 257

Rep: Reputation: 147Reputation: 147
I was having problem to have the special key working as expected (fn+Fx) for screen brightness and sound volume control with pommed-light. After upgrade kernel to 4.4 (from 4.2.13), everything works as expected. I did not try the 4.2 or 4.3 series.
 
Old 01-15-2016, 02:39 PM   #9
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
Smile

Quote:
Originally Posted by qunying View Post
I was having problem to have the special key working as expected (fn+Fx) for screen brightness and sound volume control with pommed-light. After upgrade kernel to 4.4 (from 4.2.13), everything works as expected. I did not try the 4.2 or 4.3 series.
readed, win 10 is better than win7 on macbooks by energy saving features - work time from battery.
yet i can say, win10 is absolutely terrible OS. get some touch with it in work....

btw, if not a secret, what is your reason to put linux on mac ?
as i found, i can get native imagemagic, and even freeciv, and ffmpeg, and ufraw, and even moon-buggy on mac (throught homebrew and mac ports) , i think, i not need there slackware on dualboot...
 
Old 01-15-2016, 05:10 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by WiseDraco View Post
btw, if not a secret, what is your reason to put linux on mac ?
Some people just prefer to run Linux (Slackware, in my case) over Windows or OSX. It's all personal preference. I feel hindered running Windows, because the issues I see are easily fixed with Linux. I don't have much experience running OSX, but I am extremely happy with Slackware, so I see no reason to pay the "Mac tax" just to find out I'm not impressed with OSX and would rather run Slackware.
 
Old 01-15-2016, 05:39 PM   #11
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 257

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by WiseDraco View Post
btw, if not a secret, what is your reason to put linux on mac ?
I like to do development under Linux.
 
1 members found this post helpful.
Old 01-15-2016, 07:25 PM   #12
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Been contemplating installing -current on my MacBook Pro Retina, might have to pull the trigger this weekend.
 
Old 01-15-2016, 07:32 PM   #13
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Original Poster
Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Linux is the target platform for all of the software I'm developing these days. Some of it (like SlackBuild scripts) can be tested in VMs, but some of it (like anything that requires OpenGL 3) cannot.

Last edited by dugan; 01-15-2016 at 07:36 PM.
 
1 members found this post helpful.
Old 01-16-2016, 10:18 AM   #14
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
Quote:
Originally Posted by bassmadrigal View Post
Some people just prefer to run Linux (Slackware, in my case) over Windows or OSX. It's all personal preference. I feel hindered running Windows, because the issues I see are easily fixed with Linux. I don't have much experience running OSX, but I am extremely happy with Slackware, so I see no reason to pay the "Mac tax" just to find out I'm not impressed with OSX and would rather run Slackware.
personal preferences most of situations based on rational or not - but things, and almost anything have basement - "why".

when i switched from windows fully in desktops about in 2005 - i mostly use winxp on desktop. winxp tense my nerves, and in one evening, when it again got in swappy and almost unresponsible state, i said "enought is enought"! - and switches fully to slackware \ mandriva - at home, and at work too. and be happy - much less time to manage computer. no viruses, no "system reaches his half-life and must be reinstalled", no viruses and other things.

and now i become to Mac OS X with similar thing - that is even easier and more light than linux. in the same time looks like, i can get my linux habits there too - i have midnight commander, imagemagick, ufraw and gimp, and lot of another familiar thing, as so as a console.
that is great.
surely, i too, as you, be careful and doubt if there is reason for me to "pay mac tax", for that i about year ago purchased old and cheap apple powerbook g4 1.67 gHz/ 1 Gb / 80 gb PPC notebook with Mac OS X 10.5.8 ( leopard) for a 55 euro. that i can afford to spend without big sad in any case - even i get in final to not to move to mac world.
and yet that is really slow machine, especially in todays web, and many programms cannot be get for that old OS, and OS itself too not supported anymore, i get a thing, mac os x looks like very interesting and progressive - even today, not to look, that is OS developed in about 2007...
as so, some weeks ago i purchase more or less modern macbook pro 13" ( i5 sandy bridge, latest mac os x - el capitan), and very happy at this moment. really fast and very beautiful. yet i spend almost as 10x price as for my testing powerbook

btw, if someone interested in all that topic, i can recommend book of

Mac for Linux Geeks
Authors: Steidler-Dennison

looks interesting. now reading it.
also very good is series of David Pogue - "Missing manual" series...


2dugan and qunying: thanks for clarification....
 
Old 01-18-2016, 01:42 PM   #15
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 257

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by WiseDraco View Post
personal preferences most of situations based on rational or not - but things, and almost anything have basement - "why".
That all boils down to price/performance. With similar hardware specification, (compare it with Dell XPS13, Lenovo X1 Carbon), Macbook Pro edge out a little bit, IMHO. And we got OS X in stead of MS Windows. Linux support maybe lacking for the latest model.
 
  


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
[SOLVED] Slackware on a 17" Macbook Pro ger579 Slackware 6 12-29-2013 07:23 AM
Installing Slackware on a macbook pro quietguy47 Slackware 14 03-15-2012 09:42 AM
Slackware 12 on MacBook Pro geoff.cardamone Slackware 14 01-19-2012 08:44 AM
New member, Slackware 13.0 on a 15" Macbook Pro macslack LinuxQuestions.org Member Intro 1 11-25-2009 06:58 PM
Slackware 13.0 Apple MacBook Pro Zackney Linux - Laptop and Netbook 2 10-24-2009 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:25 PM.

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