MacBookPro
Differences between revisions 99 and 465 (spanning 366 versions)
Size: 27830
Comment:
|
← Revision 465 as of 2008-08-06 17:00:24 ⇥
Size: 56
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Ubuntu Gutsy on MacBook Pro - UPDATED! = == Preface == This page describes installing Ubuntu 7.10 (Gutsy Gibbon) on MacBook Pro generation 1(CoreDuo) & 2(Core2Duo), and MacBook. For the MacBook Pro generation 3(SantaRosa) you will need to read the wiki page https://wiki.ubuntu.com/MacBookPro/SantaRosa first for additional information and instructions. == For more information : == https://help.ubuntu.com/community/MacBook Thanks to Ubuntu forum members for their feedback and the people providing drivers for Linux on Macbook especially Nicolas Boichat, Ronald S. Bultje, Jan Bernhardt, Ludovic Rousseau ... and me :) Contact: Ubuntu community nickname Fuz2y / Fuz2yPt ; email/msn - fuz2y@netcabo.pt Following is a list of other wiki's which provide details on running Linux on Macbook: * The [http://gentoo-wiki.com/HARDWARE_Apple_MacBook Gentoo Macbook wiki] - Partitioning, access to ext2/3 and UID sync'ing are covered quite well there (and somewhat sparse in this document) * The [http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp OnMac wiki] has triple-boot instructions, and also some details on restoring things to their initial state (removing bootcamp, linux, etc.). == Mac OS X Installation == 1. It may be useful to check for firmware update or run the hardware check... 2. Boot from the Mac OS X DVD by holding the Alt key on the gray screen. 3. Follow installation instruction. == Boot Menu installation == 1. Boot from Mac OS X 2. Install/Run BootCamp 3. Install rEFIt (http://refit.sf.net) Note: the following manual steps are not necessary with the latest version of rEFIt. Simply running the rEFIt.mpkg will take care of the details automatically. 1. Install mac image 2. Copy EFI to root directory (drag EFI folder to MacOS disk) 3. Open a mac OS terminal (in utilities) 4. cd /efi/refit 5. ./enable-always.sh == Partitioning == Note: I've also managed to do this automatically by using DiskUtil from Mac OS X DVD, but if you do this, leave the partitions partitioned but unformated except for Mac OS X partition, because Bootcamp installation requires single Mac partition!; and you also going to have to reboot after installation on to Ubuntu Live CD again and update grub mannualy. In a Mac os X terminal, partition the disc : {{{ sudo diskutil resizeVolume disk0s2 49G }}} That sets 49G for MacOsX and the rest for Linux For triple boot: {{{ sudo diskutil resizeVolume disk0s2 49G Linux Linux 35G "MS-DOS FAT32" Windows 63G }}} == Install Windows Vista == 1. Boot, in refit, choose the Windows DVD. 2. Launch Install, format Bootcamp partition with NTFS file system and procede with the installer, at reboot choose the Windows Hard Disk. 3. Install drivers from Apple Mac OS X 10.5 DVD == Install Linux Ubuntu == 1. Boot on Ubuntu Live CD (Question: Which one? 32bit or 64bit? Core2* are 64 bit CPUs) 2. Click install on disk in Ubuntu 3. Choose a manual partition : Select Linux Partition and check out the format box option (as ext3 filesystem) - Do not erase or format anything else!!! 4. Define mount : - If possible, do not mount /mount/EFI (select white item in list) - Mount Linux partition as: / - Mount Windows partition as: /media/Windows 5. Click on Advanced Options before proceding with the installaton and modify Grub to install on (hd0,2) == Suspend / Hibernate / Resume & Swap File in Main Partition == !This is useful if you want to enable Suspend and Hibernate and also to turn off the main display when the lid is closed, without having to build a custom kernel :) Also useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition. Code: {{{ sudo /bin/bash dd if=/dev/zero of=/swapfile bs=1024 count=2048000 mkswap /swapfile swapon /swapfile }}} Edit /etc/fstab: {{{ /swapfile swap swap defaults 0 0 }}} Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/<partition> resume_offset=<offset to the swapfile in blocks> : {{{ sudo filefrag -v /swapfile #output : First block: 102300 #... }}} Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst : {{{ defoptions=quiet splash resume=/dev/sda3 resume_offset=102300 }}} On this example, the swapfile is on partition /dev/sda3. You are now able to use suspend on disk (hibernate) / resume ; and also turn off the main display when the lid is closed :) == Optional Suspend method with Custom Kernel == See the end of this file (I've separated it from this part so people don't get confused) == Video == See http://wiki.cchtml.com/index.php/Ubuntu_Gutsy_Installation_Guide#Method_2:_Install_the_Catalyst_7.11_Driver_Manually for up to date binary AMD driver installation. Also if you got the error of "LibGL.so.1" do this : {{{ sudo ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1 sudo ln -sf /usr/lib32/libGL.so.1.2 /usr/lib32/libGL.so.1 }}} Note: use ATI Catalyst Control Center > Applications > Accessories > to change any of this mods(clone,single,big desktop) or to change screen resolution or to disable/enable monitors. == Screen Colors == I've noticed that many MacBooks really need this tweak in order to visualize correctly screen colors. To calibrate the screen colors (in order to match OS X), you need to install xcalib. This isn't available in the Ubuntu repositories, so you'll have to download it. Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running i386) download the newest Linux binary; save it to the Desktop. (If you are running amd64, you'll need to compile it from source; make sure to install libxxf86vm-dev and libxext-dev first, and then simply make xcalib in the extracted source directory. Take the resulting xcalib binary and continue with these instructions.) To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for x in /dev/sdax, 2 being the first standard partition): {{{ sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib sudo chmod 755 /usr/local/bin/xcalib sudo mount -t hfsplus /dev/sdax /mnt sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc }}} Then, do an "ls /usr/local/etc" and note the name of the profile (for the next step). Finally, add the following line to the end of either /etc/gdm/Init/Default (for standard Ubuntu/Gnome) or /etc/kde3/kdm/Xsetup (for Kubuntu/KDE), before the final "exit" statement: {{{ /usr/local/bin/xcalib "/usr/local/etc/<insert name of profile here>" }}} Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts. == Audio == 1. Double click on the Volume icon (it opens Volume Control), Select Edit > Preferences > check Front . 2. Increase the volume (Front and PCM) (both using the key combination and the system tray applet) to its maximum possible value. 3. Right-click on the volume applet and choose Preferences. Select "PCM" as the device to control. 4. Open the Sound preferences (System-Preferences-Sound in GNOME). Select "PCM" as the device to control. == Wireless == To install: {{{ sudo aptitude install build-essential wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz tar -zxvf madwifi<tab> cd madwifi<tab> make sudo make install }}} If you want you can alternatively get the sources by SVN {{{ svn checkout http://svn.madwifi.org/madwifi/trunk madwifi) }}} At this point the driver should work and wifi will be enabled after reboot. Alternatively you can use these commands to insert the driver into the running kernel: {{{ sudo modprobe ath_pci sudo modprobe wlan_scan_sta }}} == Temperatures & Fan Speed == === Hard Disk Temperature === {{{ sudo apt-get install hddtemp sudo hddtemp /dev/sda }}} That prints the temperature of your harddisk === CPUs Temperature === add this to /etc/rc.local : {{{ modprobe coretemp sensors -s }}} In terminal console type : {{{ sudo apt-get install lm-sensors sensors }}} That prints temperatures of both CPUs and Fan Speed === Fan Speed Control === I Recommend not setting fan speed to manual control, I've noticed an Increase of the Hardwares Temperature. To do so: {{{ sudo modprobe applesmc echo applesmc | sudo tee -a /etc/modules }}} and then add the following line to /fan_speed : {{{ echo 1 > /sys/devices/platform/applesmc.768/fan1_manual echo 3000 > /sys/devices/platform/applesmc.768/fan1_output echo 1 > /sys/devices/platform/applesmc.768/fan2_manual echo 3000 > /sys/devices/platform/applesmc.768/fan2_output echo "Setting Fan Speed to manual Control!" }}} Then: sudo chmod +x /fan_speed And to execute: sudo ./fan_speed Note: 3000 = 3000RPM , type "sensors" on a terminal to see the resulting temperatures, you can also set it between 2000 (almost noise-less) and a max of 6000 (very noisy), I recommend setting fans to a minimum of 4000RPM when playing Games and so. == Reducing power consumption == Install the powertop package : {{{ sudo apt-get install powertop }}} and run with "sudo powertop" in a terminal. Follow the instructions given as to reducing power consumption. == Keyboard Fixes == MacBook Pro Keyboard doesn't have a Alt GR / Right Alt key, so you have no way to type "@" ; also F1 & F2 keys are bound to brightness control so Alt+F1(Run command) and Alt+F2(Show pannel) doesn't work, here's what you can do: Go to System > Preferences > Keyboard Shortcuts : On the Desktop tab, change "Show the panel run application dialog" to "Alt+R" and change "Show the panel menu" to "Alt+P" Go to System > Preferences > Keyboard : On the Layouts tab, select the keyboard model: Apple and also set your Keyboard language. On the Layout Options tab, select Third Level Choosers and check "Press Enter key on keypad to choose 3rd level". Now you can use the Left Enter key(on macbook pro keyboard) to type @ :) == Touchpad Fixes == edit /etc/X11/xorg.conf and replace : Sections "InputDevice" Identifiers "Synaptics Touchpad" ... ... EndSection with : {{{ Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "LeftEdge" "150" Option "RightEdge" "1070" Option "TopEdge" "100" Option "BottomEdge" "310" Option "FingerLow" "25" Option "FingerHigh" "30" Option "MaxTapTime" "180" Option "MaxTapMove" "220" Option "MaxDoubleTapTime" "180" Option "HorizEdgeScroll" "0" Option "VertEdgeScroll" "0" Option "TapButton1" "0" Option "TapButton2" "0" Option "TapButton3" "0" Option "LockedDrags" "off" Option "VertScrollDelta" "20" Option "HorizScrollDelta" "50" Option "VertTwoFingerScroll" "1" Option "HorizTwoFingerScroll" "1" Option "MinSpeed" "1.10" Option "MaxSpeed" "1.30" Option "AccelFactor" "0.08" Option "Emulate3Buttons" "true" Option "SHMConfig" "on" # corner buttons Option "RTCornerButton" "0" Option "RBCornerButton" "2" Option "LTCornerButton" "0" Option "LBCornerButton" "3" EndSection }}} == WebCam (iSight) & aMSN == Install v4l2 plugin: {{{ sudo apt-get install libpt-plugins-v4l2 }}} See Below in Desktop Tab how to install aMSN with tk/tcl-8.5 from sources, then go to aMSN > Preferences > Other > Edit audio and video settings. == Access Mac OS X & Windows Partition == To do so edit /etc/fstab , here's mine : {{{ # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 ## Linux ################################################################# /dev/sda3 / ext3 defaults,errors=remount-ro 0 1 ## Swap ################################################################## /swapfile swap swap defaults 0 0 ## EFI ################################################################### #/dev/sda1 /media/EFI vfat defaults,utf8,umask=007,gid=46 0 1 ## DVD-ROM ############################################################### /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0 ## Macintosh ############################################################# /dev/sda2 /media/Macintosh hfsplus defaults 0 0 ## Windows ############################################################### /dev/sda4 /media/Windows ntfs defaults 0 0 ## Network ############################################################### # Servidor //192.168.96.5/public /media/Servidor-public smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0 //192.168.96.5/public2 /media/Servidor-public2 smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0 # Lacie2T1 //192.168.96.10/public /media/Lacie2T1-public smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0 }}} Then do the following in terminal: {{{ sudo /bin/bash mkdir /media/Macintosh mkdir /media/Windows chmod 777 /media/Macintosh chmod 777 /media/Windows umount -a mount -a }}} == Apple Remote Control == Apple's Remote Control is working by default in Ubuntu 7.10, but only allows you to control the Volume. So here's the tweaks to get it working on with other applications: {{{ sudo apt-get install inputlirc lirc lirc-x }}} And edit /etc/rc.local and add: {{{ /etc/init.d/inputlirc start /etc/init.d/inputlirc restart }}} Then go to > System > Preferences > Sessions , and add the following to the Startup list by this order: {{{ sudo irexec & /home/YOURACCOUNT/.lircrc sudo irxevent & /home/YOURACCOUNT/.lircrc sudo /etc/rc.local }}} To make it work on the startup you have to edit sudoers and set the main user as no password requirement for the use of sudo command, here's how to: {{{ sudo /bin/bash nano /etc/sudoers }}} Here's what to change in /etc/sudoers : {{{ # User privilege specification root ALL=(ALL) ALL YOURACCOUNT ALL=(ALL) NOPASSWD: ALL # Members of the admin group may gain root privileges #%admin ALL=(ALL) ALL }}} Note: YOURACCOUNT = your user name. And Finally copy the following to /home//.lircrc file : Note : YOURACCOUNT = your user name {{{ ################################################## # LIRC Config for the following Applications: ################################################## ############# #### VLC #### ############# begin prog = vlc button = KEY_PLAYPAUSE config = key-play-pause repeat = 0 end begin prog = vlc button = KEY_MENU config = key-aspect-ratio repeat = 0 end begin prog = vlc button = KEY_PREVIOUSSONG config = key-jump-medium repeat = 1 end begin prog = vlc button = KEY_NEXTSONG config = key-jump+medium repeat = 1 end begin prog = vlc button = KEY_VOLUMEUP config = repeat = 1 end begin prog = vlc button = KEY_VOLUMEDOWN config = repeat = 1 end ################# #### MPlayer #### ################# #begin mplayer begin prog = mplayer button = KEY_PLAYPAUSE config = pause repeat = 15 end begin prog = mplayer button = KEY_MENU config = stop repeat = 15 end begin prog = mplayer button = KEY_PREVIOUSSONG config = seek -10 repeat = 10 end begin prog = mplayer button = KEY_NEXTSONG config = seek +10 repeat = 10 end begin prog = mplayer button = KEY_VOLUMEUP config = volume 1 repeat = 1 end begin prog = mplayer button = KEY_VOLUMEDOWN config = volume -1 repeat = 1 end #end mplayer ################## #### Kaffeine #### ################## #begin kaffeine begin prog = irexec button = config = dcop kaffeine MainApplication-Interface end begin prog = irexec button = KEY_PLAYPAUSE config = if `dcop kaffeine KaffeineIface isPlaying`; then dcop kaffeine KaffeineIface pause; dcop kaffeine kaffeine_mainview hide; else dcop kaffeine KaffeineIface play; dcop kaffeine kaffeine_mainview hide; fi end begin prog = irexec button = KEY_MENU repeat = 1 config = dcop kaffeine KaffeineIface stop end begin prog = irexec button = KEY_NEXTSONG repeat = 1 config = dcop kaffeine KaffeineIface posPlus end begin prog = irexec button = KEY_PREVIOUSSONG repeat = 1 config = dcop kaffeine KaffeineIface posMinus end begin prog = irexec button = KEY_VOLUMEUP repeat = 1 config = dcop kaffeine KaffeineIface volUp end begin prog = irexec button = KEY_VOLUMEDOWN repeat = 1 config = dcop kaffeine KaffeineIface volDown end #end kaffeine ################ #### Amarok #### ################ #begin amarok begin prog = irexec button = KEY_PLAYPAUSE config = dcop amarok player playPause end begin prog = irexec button = KEY_MENU config = dcop amarok player stop end begin prog = irexec button = KEY_NEXTSONG config = dcop amarok player next end begin prog = irexec button = KEY_PREVIOUSSONG config = dcop amarok player prev end begin prog = irexec button = KEY_VOLUMEUP repeat = 1 config = dcop amarok player volumeUp end begin prog = irexec button = KEY_VOLUMEDOWN repeat = 1 config = dcop amarok player volumeDown end #end amarok ############### #### Totem #### ############### begin prog = irxevent button = KEY_PLAYPAUSE config = Key p Totem repeat = 0 end begin prog = irexec button = KEY_MENU config = stop repeat = 0 end begin prog = Totem button = KEY_NEXTSONG config = seek_forward repeat = 0 end begin prog = Totem button = KEY_PREVIOUSSONG config = seek_backward repeat = 0 end begin prog = irexec button = KEY_VOLUMEUP repeat = 10 config = end begin prog = irexec button = KEY_VOLUMEDOWN repeat = 10 config = end ################### #### Audacious #### ################### begin prog = audacious button = KEY_PLAYPAUSE config = PAUSE repeat = 16 end begin prog = audacious button = KEY_MENU config = STOP repeat = 0 end begin prog = audacious button = KEY_NEXTSONG config = NEXT repeat = 16 end begin prog = audacious button = KEY_PREVIOUSSONG config = PREV repeat = 16 end ############## #### XMMS #### ############## begin prog = xmms button = KEY_PLAYPAUSE config = pause end begin prog = xmms button = KEY_MENU config = stop end begin prog = xmms button = KEY_NEXTSONG config = next repeat = 16 end begin prog = xmms button = KEY_PREVIOUSSONG config = prev repeat = 16 end begin prog = xmms button = KEY_VOLUMEUP config = fwd 5 repeat = 10 end begin prog = xmms button = KEY_VOLUMEDOWN config = bwd 5 repeat = 10 end ############### ##### XdTV #### ############### begin prog = irexec button = KEY_PLAYPAUSE config = record repeat = 0 end begin prog = irexec button = KEY_PREVIOUSSONG config = setstation prev repeat = 0 end begin prog = irexec button = KEY_PNEXTSONG config = setstation next repeat = 0 end ################ #### TVtime #### ################ #begin tvtime begin prog = irexec button = KEY_PLAYPAUSE config = tvtime-command ENTER end begin prog = irexec button = KEY_MENU config = tvtime-command TOGGLE_FULLSCREEN end begin prog = irexec button = KEY_NEXTSONG config = tvtime-command UP repeat = 1 end begin prog = irexec button = KEY_PREVIOUSSONG config = tvtime-command DOWN repeat = 1 end begin prog = irexec button = KEY_VOLUMEUP config = tvtime-command RIGHT repeat = 2 end begin prog = irexec button = KEY_VOLUMEDOWN config = tvtime-command LEFT repeat = 2 end #begin # prog = irexec # button = middle # config = tvtime-command CHANNEL_JUMP # repeat = 1 #end #end tvtime ############################################## #### Evince y OpenOffice (Presentations) #### ############################################## begin prog = irxevent button = KEY_PLAYPAUSE config = Key F11 CurrentWindow config = Key F5 CurrentWindow repeat = 0 end begin prog = irxevent button = KEY_MENU config = Key Escape CurrentWindow repeat = 0 end begin prog = irxevent button = KEY_PREVIOUSSONG config = Key Prior CurrentWindow repeat = 1 end begin prog = irxevent button = KEY_NEXTSONG config = Key Next CurrentWindow repeat = 1 end begin prog = irxevent button = KEY_VOLUMEUP config = Key ctrl-plus CurrentWindow repeat = 0 end begin prog = irxevent button = KEY_VOLUMEDOWN config = Key ctrl-minus CurrentWindow repeat = 0 end }}} Note: If it doesnt work at the first time, execute the commands mannualy using Alt+R: {{{ gksu irexec & /home/fuz2y/.lircrc gksu irxevent & /home/fuz2y/.lircrc gksu /etc/rc.local }}} Also if you use VLC, go to Settings > Preferences > Interface > Control interfaces > Enable Infrared remote control interface; and Video > Output modules > click Advanced options > Select OpenGL video output. Restart VLC. == Desktop == === Fonts like Mac OS X === By default, Ubuntu uses a style of font rendering different than that used on Mac OS X. You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following: 1. Open the Appearance preference panel (System-Preferences-Appearance) 1. Click Fonts, and select the "Subpixel smoothing" option. 1. Click Details, and select "Slight" hinting. 1. Enjoy! === Compiz Fusion Icon and Emerald === To install Emerald go to Synaptic Software Sources. To enable Compiz Fusion Icon do this: {{{ sudo apt-get install git git-core compiz-dev git-clone git://anongit.opencompositing.org/users/crdlb/fusion-icon cd fusion-icon make sudo make install }}} Go to System > Preferences > Sessions and add "fusion-icon" to the Startup === Avant Window Navigator === To install AWN with nice Skins and Curves Effect follow this guide: http://ubuntuforums.org/showthread.php?t=572019 === aMSN SVN with Tcl & TK 8.5 === Follow this guide, it's not my native language but i think anyone understands it: http://sevencapitalsins.wordpress.com/2007/08/28/amsn-svn/ if you get this error when amsn is opening "can't find package msgcat 1.4", do this: {{{ wget http://ufpr.dl.sourceforge.net/sourceforge/tcl/tcl8.5b2-src.tar.gz tar -vxf tcl8.5b2-src.tar.gz sudo cp tcl8.5b2/library/msgcat/msgcat.tcl /usr/lib/tcl8.5 sudo cp tcl8.5b2/library/msgcat/pkgIndex.tcl /usr/lib/tcl8.5 }}} == VMwarer Server & Bootcamp partitions == Installing VMWare Server on Ubuntu 7.10 1. Download VMware Server source from the VMware website: http://vmware.com/download/server/ 2. Download this installer patch: http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update113.tar.gz ( source reference: http://igordevlog.blogspot.com/2007/07/vmware-in-ubuntu-gutsy-kernel-2622.html ) 3. Extract all the archives to some location on your system (tar -zxvf VMware-server* ; tar -zxvf vmware*) 4. Ensure that you have build-essential installed in order to compile these sources (sudo aptitude install build-essential) 5. Install the xinetd server (sudo aptitude install xinetd) 6. Run sudo ./vmware-install.pl located within the vmware-server-* unpacked archive. 7. Select all the default options *EXCEPT* do not compile the modules at this point. (Do you want this program to try to build the vmmon module for your system? NO) 8. Run sudo ./runme.pl located within the vmware-any* archive. This will launch step 8. 9. Select the default options and this time answer YES to compile the proper modules. 10. Run vmware-server using the command vmware or via your Applications Menu. Note: if you update your kernel you will need to re-run the scripts to regenerate and recompile VMware Server for your updated kernel. == Optional Suspend method with Custom Kernel == I personally use Swapfile in main partition with Suspend on Disk, but you can also use this method but you have to build a Custom Kernel! The reason why is because the default Suspend Method does not work with the default Gutsy kernel due to the use of the SLUB allocator. === Kernel === In order to get suspend working with this method you will need to compile your own version of the Gutsy kernel and choose the SLAB allocator. I'm sure there are 'Debian' ways to do this, maybe someone else can modify this section. {{{ sudo apt-get install linux-source libncurses5-dev build-essential cd /usr/src/ sudo tar -xvjpf linux-source-2.6.22.tar.bz2 sudo ln -sf linux-source-2.6.22 linux cd linux sudo cp /boot/config-2.6.22-14-generic .config sudo make menuconfig }}} In the menu, browse to 'General setup', then select 'Choose SLAB allocator' at the last entry. Change this from SLUB to SLAB (you could also change the CPU from 586 to Prescott/Core2 if you like). Exit and save your changes. Now, build the kernel: {{{ sudo make -j2 sudo make modules -j2 sudo make modules_install sudo make install }}} You should now have a new vmlinuz entry under /boot/ and kernel modules under /lib/modules/ (version at time of writing is 2.6.22.9). === Initramfs === Build your initramfs for this kernel {{{ sudo ln -sf /lib/firmware/2.6.22-14-generic /lib/firmware/2.6.22.9 sudo update-initramfs -c -k 2.6.22.9 }}} === Boot loader === Simply copy the current entry for the Gutsy kernel and change the initramfs and kernel from '2.6.22-14-generic' to '2.6.22.9'. You might also like to give it a different title, like 'Ubuntu, custom kernel 2.6.22.9'. Everything else can stay the same! If you want to boot this by default, also modify the 'default' entry in menu.lst. === External modules === You will need to build new drivers for ATI and alsa, but first boot to your new kernel. Once you are running your new kernel you can build these drivers. First get the required packages. {{{ sudo apt-get install module-assistant fakeroot dh-make debhelper debconf libstdc++5 linux-headers-generic sudo m-a prepare }}} Alsa: {{{ sudo apt-get install alsa-source sudo m-a build,install alsa }}} FGLRX: Follow the instructions that worked for you, either above, or from the unofficial ATI wiki at http://wiki.cchtml.com/index.php/Ubuntu_Gutsy_Installation_Guide#Method_2:_Install_the_Catalyst_7.11_Driver_Manually Update modules db: {{{ sudo depmod -a }}} Now, you should have the FGLRX and alsa drivers under your new /lib/modules/2.6.22.9/ location. === ACPI configuration === You will need to make a slight change to the acpi-support config files to get resume to work correctly. Open ''/etc/default/acpi-support'' your favourite text editor and change to POST_VIDEO variable to false, i.e. {{{ POST_VIDEO=false }}} You should now be able to successfully suspend and resume with your custom Kernel! == Troubleshooting == 1. Compiz as some issues with ATI drivers, and also ATI drivers have huge issues, so when compiz is enabled, i've notice that there's really huge bugs (black screen flickering) when watching movies or playing games, so disable compiz for any of those. |
#REFRESH 0 https://help.ubuntu.com/community/MacBookPro |
MacBookPro (last edited 2008-08-06 17:00:24 by localhost)