Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on a Macbook?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 22, 23, 24  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jamf1
n00b
n00b


Joined: 11 Nov 2003
Posts: 21

PostPosted: Sat May 20, 2006 3:19 pm    Post subject: Gentoo on a Macbook? Reply with quote

Hi!

I know it is very early for this question since the Apple MacBook was just released 1 Week ago, but has anybody yet tried to install gentoo on such a computer? It would be interesting which hardware is working and which not.

Thx,
Jamf.
Back to top
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Sat May 20, 2006 4:15 pm    Post subject: Reply with quote

I imagine it would be just like intalling on a Mac Mini, which works just fine using bootcamp and rEFIt. The video card drivers are still in CVS (there's a quick guide somewhere on the forum explaining how to install them) but they work. The audio works on the external interface but not on the internal speaker (not a problem on my Mini, but could be an issue with laptops I guess). The wireless is an Atheros chipset so it works with the Madwifi driver. The Remote is detected as a Raw HIDDEV device, but i have yet to work out how to use this information to get the remote to do anything useful. The built in LAN uses the sky2 driver. The only thing I don't know about would be the touchpad. Oh and I haven't looked into suspend stuff yet either.
Back to top
View user's profile Send private message
jamf1
n00b
n00b


Joined: 11 Nov 2003
Posts: 21

PostPosted: Sat May 20, 2006 4:35 pm    Post subject: Reply with quote

Thanks for the hint with the mac mini. Good idea.

Great, so internet connectivity works for sure either with wireless or with LAN.
I heard that there is a patch wich enables a synaptic mode for the touchpad - so hopefully this works too. I hope speakers will run soon. The suspend stuff would be interesting, couse that is a really comfortable thing, especially the suspend-to-ram feature.
Back to top
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Sat May 20, 2006 8:22 pm    Post subject: Reply with quote

For all I know suspend to RAM might work out of the box, I just haven't tried it yet. Oh, and the DVD burner works fine as well (tried it just now). :wink:

I have, however, discovered that I can't mount my OSX partition (get bad superblock errors) which is annoying.
Back to top
View user's profile Send private message
vanten
n00b
n00b


Joined: 08 Jan 2006
Posts: 44
Location: Sweden

PostPosted: Sat May 20, 2006 10:26 pm    Post subject: Reply with quote

Hope we get secure information soon about this with gentoo and macbook.
Not that i think it wouldn't go - the other way. Maybe i buy a macbook this summer :) and by then it certainly have been done.
But Im seeing forward to some interesting reading :D
_________________
.: GNU/Linux :: Gentoo :: Fluxbox :.
.: BSD :: OpenBSD :: Fluxbox :.
Back to top
View user's profile Send private message
maca
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2003
Posts: 83
Location: Sydney, Australia

PostPosted: Sat May 20, 2006 11:51 pm    Post subject: Reply with quote

Given the guts of the macbook is like any other PC now, Im assuming the graphics card driver works properly now ??
I own a G4 Powerbook and running gentoo on it suxs because of the issues with the graphics card.....
If i can get confirmation that it is no longer an issue, Ill be ordering my new macbook 2.0 ghz tommorow.
_________________
You can take nothing from me that I will more freely give, except my life

William Shakespeare
Hamlet
Back to top
View user's profile Send private message
vanten
n00b
n00b


Joined: 08 Jan 2006
Posts: 44
Location: Sweden

PostPosted: Sun May 21, 2006 11:39 am    Post subject: Reply with quote

maca wrote:
Given the guts of the macbook is like any other PC now, Im assuming the graphics card driver works properly now ??
I own a G4 Powerbook and running gentoo on it suxs because of the issues with the graphics card.....
If i can get confirmation that it is no longer an issue, Ill be ordering my new macbook 2.0 ghz tommorow.
Macbook have a Intel GMA 950 graphics processor. I surely runs smoother then my ati card, i guess. But they have also got problems, this is from last month. The Xorg intel drivers should work,link. Intel also got drivers for donwload.
_________________
.: GNU/Linux :: Gentoo :: Fluxbox :.
.: BSD :: OpenBSD :: Fluxbox :.
Back to top
View user's profile Send private message
jamf1
n00b
n00b


Joined: 11 Nov 2003
Posts: 21

PostPosted: Mon May 22, 2006 9:50 pm    Post subject: Reply with quote

Nice, so graphic should work, even hardware accelerated if i understand that correct.

Does anybody has news about the sound problem??

Here are a few Macbook (Pro) Linux links. If you have any other, pls post it too.

http://modular.math.washington.edu/macbook/
http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp
http://theweeklyrant.com/article/8/news-apple-bootcamp-boots-linux

good night,
Jamf
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 651
Location: Wisconsin

PostPosted: Mon May 22, 2006 11:05 pm    Post subject: Reply with quote

jamf1 wrote:
...
http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp
...

It might be worth noting that the person who made that HOWTO used Gentoo 2006.0. I think this will be a pretty good resource. Probably, once you get to into the LiveCD everything goes as expected.

Also note that the page points to the mactel-linux CVS which has both a kernel config and an Xorg.conf. Judging by the Xorg.conf my guess is that the touchpad is a Synaptics (no surprise). However I'd be surprised if the two-fingers-on-the-touchpad-equals-a-right-click works. [EDIT: Disregard the Xorg.conf, I guess, it seems to be automatically generated; the Synaptics driver is not enabled and the video driver probably is not what one would want for the Macbook. Bummer.]

Anyway, if the install is this painless, we're in business. :)
_________________
Website - All sorts of nonsense (some of it actually Linux related)
Back to top
View user's profile Send private message
Maintenant
n00b
n00b


Joined: 18 Jan 2005
Posts: 30

PostPosted: Thu May 25, 2006 1:29 pm    Post subject: Yes! We're in business! Reply with quote

I managed to get XOrg running with 1280x800 on my new MacBook!
This is what I did:

#1) Follow the guide at wiki.onmac.net and reduce your osx partition and create linux und linux swap partitions.
#2) Boot the Gentoo Live CD 2006.0 and install Gentoo on /dev/sda3 (/) and /dev/sda4 (swap) according to the Handbook, but use lilo instead of grub! When configuring the kernel, it's probably a good idea to activate agppart and all the intel graphics modules.
#3) That done, get yourself refit and install it in your root directory on the osx partition. That way, you can easily skip between OSX, Linux and the Gentoo LiveCD.
#4) Install modular XOrg according to the Gentoo Docs, but don't use XOrg 7.0, but unmask XOrg 7.1 RC2!!
XOrg 7.1 RC2 is the only x-server that recognizes 945GM. If you compile the 7.0 release, you will only get vesa with 1024x768

INPUT_DEVICES="keyboard mouse" VIDEO_CARDS="vesa i810"

Fortunately, compiling modular X on the new MacBook won't take too long ;)

#5) Get yourself 915resolution from www.geocities.com/stomljen/ and download the Gentoo Package with the ebuild for the 0.4 release. Install it and configure /etc/conf.d/915resolution that way:
replace[0]="5c"
width[0]="1280 800"

#6) Download the newest release of 915resolution, compile it, and copy the new "915release" over the old on in /usr/sbin
#7) rc-update add 915resolution default
#8) Configure your xorg.conf with "i810" as device and the necessary modelines:



    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    Modeline "1280x800" 107.21 1280 1360 1496 1712 800 801 804 835 -HSync +Vsync
    EndSection

    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "ShadowFB" # [<bool>]
    #Option "DefaultRefresh" # [<bool>]
    #Option "ModeSetClearScreen" # [<bool>]
    Identifier "Card0"
    Driver "i810"
    VendorName "Intel Corporation"
    BoardName "Mobile Integrated Graphics Controller"
    BusID "PCI:0:2:0"
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Modes "1280x800"
    Depth 24
    EndSubSection
    EndSection
    [/list|



#9) emerge kde and have fun :)

I haven't checked yet, whether dual-head works or whether I have direct rendering. Frankly speaking, right now I don't care about that.
I haven't managed to get sound working yet, and there still some keyboard issues (F1-F12...). But I'm positive that things will work out beautifully ... ;) It's a pleasure working with the MacBook!

The dump of my lspci:

    00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03)
    00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
    00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
    00:07.0 Performance counters: Intel Corporation Unknown device 27a3 (rev 03)
    00:1b.0 Class 0403: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
    00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
    00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
    00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
    00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
    00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
    00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
    00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controllers cc=IDE (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
    01:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 Gigabit Ethernet Controller (rev 22)
    02:00.0 Ethernet controller: Atheros Communications, Inc. Unknown device 001c (rev 01)
    03:03.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 61)



And my lsmod:

    Module Size Used by
    i915 20736 2
    drm 71956 3 i915
    eth1394 20996 0
    ohci_hcd 21892 0
    ohci1394 35632 0
    ieee1394 101944 2 eth1394,ohci1394
    wlan_scan_sta 15232 0
    ath_pci 100004 0
    ath_rate_sample 13696 1 ath_pci
    wlan 200924 4 wlan_scan_sta,ath_pci,ath_rate_sample
    ath_hal 189392 3 ath_pci,ath_rate_sample
    sky2 40580 0
    i2c_i801 11532 0
    i2c_core 24576 1 i2c_i801
    ehci_hcd 32776 0
    usbhid 40160 0
    uhci_hcd 33680 0
    snd_hda_intel 18960 0
    snd_hda_codec 130688 1 snd_hda_intel
    snd_pcm 91396 2 snd_hda_intel,snd_hda_codec
    snd_timer 25860 1 snd_pcm
    snd 49396 4 snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
    snd_page_alloc 11272 2 snd_hda_intel,snd_pcm
    intel_agp 23836 1
    agpgart 35400 3 drm,intel_agp
    rtc 14004 0
    usbcore 132356 5 ohci_hcd,ehci_hcd,usbhid,uhci_hcd
Back to top
View user's profile Send private message
jamf1
n00b
n00b


Joined: 11 Nov 2003
Posts: 21

PostPosted: Thu May 25, 2006 3:05 pm    Post subject: Reply with quote

GREAT!!! Thanks for the howto!!

Let us know if you get sound running!

What about 3D?? How much frames do you get with glxgears?? Has this graphic driver you choose in your xorg.conf already hardware acceleration??

Thx,
Jamf
Back to top
View user's profile Send private message
Maintenant
n00b
n00b


Joined: 18 Jan 2005
Posts: 30

PostPosted: Thu May 25, 2006 3:24 pm    Post subject: Reply with quote

Good question.... How can I check, whether direct rendering is activated or not?
This is what I get with glxgears:
6490 frames in 5.0 seconds = 1297.849 FPS
6509 frames in 5.0 seconds = 1301.664 FPS
6504 frames in 5.0 seconds = 1300.799 FPS
6514 frames in 5.0 seconds = 1302.760 FPS
6500 frames in 5.0 seconds = 1299.869 FPS
6501 frames in 5.0 seconds = 1300.198 FPS

Regarding sound: I gave up, it's just too confusing. Maybe it's just a kernel issue, but trying the kernel alsa modules as well as alsa-driver remained unsuccessful. Now I try to get the synaptics touchpad working ....
Back to top
View user's profile Send private message
jamf1
n00b
n00b


Joined: 11 Nov 2003
Posts: 21

PostPosted: Thu May 25, 2006 4:28 pm    Post subject: Reply with quote

Quote:
Good question.... How can I check, whether direct rendering is activated or not?

You can get information about the graphic device with glxinfo. There should be a line like "Direct Rendering: Yes" if it is activated.

Good luck with the touchpad, I heard there is a patch for MacBook Pro but I don't know if it works.
Back to top
View user's profile Send private message
vanten
n00b
n00b


Joined: 08 Jan 2006
Posts: 44
Location: Sweden

PostPosted: Fri May 26, 2006 1:18 am    Post subject: Reply with quote

damn! now i REALLY want an macbook! :twisted:
_________________
.: GNU/Linux :: Gentoo :: Fluxbox :.
.: BSD :: OpenBSD :: Fluxbox :.
Back to top
View user's profile Send private message
Maintenant
n00b
n00b


Joined: 18 Jan 2005
Posts: 30

PostPosted: Fri May 26, 2006 12:25 pm    Post subject: Reply with quote

Yes! I have direct rendering!

But still no sound and no right-mouse-click-with-two-fingers-on-the-touchpad :(
I patched appletouch.c with MacBook Pro patches from the net which are going to be included in the kernel sources soon. But xorg still refuses to load the synaptics driver, saying it didn't find any appopriate device.
Supposedly, the appletouch driver creates something like /dev/input/appletouch in the device tree. But I can't find any such device, and the debug information in /var/log/messages are practically non-existent. But I won't give up hope :)

Does anybody of you guys have any experience with the Intel HD Audio soundchip, the appletouch driver, and/or dual head?
Back to top
View user's profile Send private message
Maintenant
n00b
n00b


Joined: 18 Jan 2005
Posts: 30

PostPosted: Fri May 26, 2006 9:58 pm    Post subject: Reply with quote

Well, I've got news regarding the soundchip. I could get it working. However, the internal speakers don't work, you will external speakers which you need to connect to the Line In plug. Further, you need select in "Line In as Output" in alsamixer.

I managed to get the touchpard working with the help of the MacBook patch for appletouch.c and some xorg.conf I find in the threads about the MacBook Pro. However, the touchpad works ony very unreliably under Linux, requiring to restart X every now then, because the mouse cursor has been become out of control...
Back to top
View user's profile Send private message
vanten
n00b
n00b


Joined: 08 Jan 2006
Posts: 44
Location: Sweden

PostPosted: Sat May 27, 2006 11:15 pm    Post subject: Reply with quote

Maintenant wrote:
I managed to get the touchpard working with the help of the MacBook patch for appletouch.c and some xorg.conf I find in the threads about the MacBook Pro. However, the touchpad works ony very unreliably under Linux, requiring to restart X every now then, because the mouse cursor has been become out of control...
But does that means your "two fingers right-click" work?
Happy to hear about you other successes, keep it up! :)
_________________
.: GNU/Linux :: Gentoo :: Fluxbox :.
.: BSD :: OpenBSD :: Fluxbox :.
Back to top
View user's profile Send private message
jamf1
n00b
n00b


Joined: 11 Nov 2003
Posts: 21

PostPosted: Sun May 28, 2006 3:19 pm    Post subject: Reply with quote

Did anybody heard something about suspend to ram with linux, like mac os x does it when closing the macbook?


Quote:
I could get it working. However, the internal speakers don't work, you will external speakers which you need to connect to the Line In plug


Cool, more and more seams to be compatible with the macbook. I think i will buy one in the summer, if i can wait that long :-)
Back to top
View user's profile Send private message
Maintenant
n00b
n00b


Joined: 18 Jan 2005
Posts: 30

PostPosted: Sun May 28, 2006 7:29 pm    Post subject: Reply with quote

Quote:
But does that means your "two fingers right-click" work?
Code:


Yes! But it still needs some fine-tuning and stability...


Apart from that I managed to get cpufreq working. Using powernowd-0.97 for controling the userspace daemon has proven to be very reliable. Unfortunately, somebody still needs to write an ebuild for that.

Regarding suspend-to-ram: I haven't tried it yet, but a lot of people seem to using the suspend2-sources. Give me a few days to figure out, how well they work .... ;)

By the way: I could imagine that others are interested in what I/we are doing here. Would it be advisable to move this thread somewhere else (for example Gentoo PPC) ?
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 651
Location: Wisconsin

PostPosted: Sun May 28, 2006 8:49 pm    Post subject: Reply with quote

Maintenant wrote:
By the way: I could imagine that others are interested in what I/we are doing here. Would it be advisable to move this thread somewhere else (for example Gentoo PPC) ?

Well since the new Macbooks don't use PPC that'd be kind of silly. :)

Why not the wiki? The page I found on Macbook (Pro) is a bit old and seems to do some unnecessary things. Maybe a new page or cleaning up that one would be a good idea.

Hopefully I'll put my order in for my Macbook in a couple days, I'm looking forward to playing around with triple booting.
_________________
Website - All sorts of nonsense (some of it actually Linux related)
Back to top
View user's profile Send private message
jamf1
n00b
n00b


Joined: 11 Nov 2003
Posts: 21

PostPosted: Mon May 29, 2006 7:44 am    Post subject: Reply with quote

Quote:
Why not the wiki? The page I found on Macbook (Pro) is a bit old and seems to do some unnecessary things. Maybe a new page or cleaning up that one would be a good idea.


I started a new MacBook Page in the Gentoo Wiki: http://gentoo-wiki.com/HARDWARE_Apple_MacBook

Hope that helps :-)
Back to top
View user's profile Send private message
Maintenant
n00b
n00b


Joined: 18 Jan 2005
Posts: 30

PostPosted: Mon May 29, 2006 10:33 am    Post subject: Reply with quote

Quote:
I started a new MacBook Page in the Gentoo Wiki: http://gentoo-wiki.com/HARDWARE_Apple_MacBook


Splendid idea! I already posted, how to get a running X-Server. Please feel free to edit the stuff I wrote. I was in a hurry and didn't have much time for layout, grammar, spelling, etc.

Does anybody who to contact for new ebuilds? What we need for the MacBook is an ebuild for 915resolution-0.5.2 and powernowd-0.97. The latter has an improved support for multi-processor systems. And installing it was a pretty good choice, because now, both cores of my MacBook run at 1 GHz most of the time, which keeps the system quiet and the system temperature moderate.
Back to top
View user's profile Send private message
yahewitt
n00b
n00b


Joined: 20 Oct 2003
Posts: 12

PostPosted: Mon May 29, 2006 12:39 pm    Post subject: Reply with quote

What about heat under Gentoo? Do the fans kick in at appropriate temps? Can the temp borderlines be altered?

I currently have a linux iBook, but am thinking of an upgrade!
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 651
Location: Wisconsin

PostPosted: Mon May 29, 2006 4:08 pm    Post subject: Reply with quote

Maintenant wrote:
Does anybody who to contact for new ebuilds? What we need for the MacBook is an ebuild for 915resolution-0.5.2 and powernowd-0.97. The latter has an improved support for multi-processor systems. And installing it was a pretty good choice, because now, both cores of my MacBook run at 1 GHz most of the time, which keeps the system quiet and the system temperature moderate.

Search Bugzilla for existing ebuild requests, and if there are none, file them. I would file a version bump request for powernowd (since 0.96 is in Portage) and hopefully that would get resolved soon. Mention that the author considered 0.96 buggy on SMP (and of course Macbooks ;).

I'm not too sure about 915resolution, since it sounds like from the author's page that it will be wrapped into the X.org driver soon. Portage devs would probably say to just use an overlay for that one (small) ebuild until it's part of X.org proper. But you're free to file it. :)
_________________
Website - All sorts of nonsense (some of it actually Linux related)
Back to top
View user's profile Send private message
Maintenant
n00b
n00b


Joined: 18 Jan 2005
Posts: 30

PostPosted: Tue May 30, 2006 10:52 am    Post subject: Reply with quote

Quote:
What about heat under Gentoo? Do the fans kick in at appropriate temps? Can the temp borderlines be altered?


The heat development is the same as under OSX. The Macbook can get really hot in the upper left corner where the DC input is. That's why having something like powernowd is so important. It appears that the fans are BIOS controlled unlike the iBook where I needed adt_therm746x . I haven't checked, whether the borderlines can be altered. Since it appears that the fans are BIOS controlled, you will probably need to hack the BIOS. But please don't ask me, how to do that ... I have entered the EFI Bios only once. It appeared to be command driven like the OpenFirmware and not menu/dialog driven like the good old PC Bios.


Quote:
Search Bugzilla for existing ebuild requests, and if there are none, file them. I would file a version bump request for powernowd (since 0.96 is in Portage) and hopefully that would get resolved soon. Mention that the author considered 0.96 buggy on SMP (and of course Macbooks ;).


Thanks for the hint. I'll see what I can do.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2, 3 ... 22, 23, 24  Next
Page 1 of 24

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum