Differences between revisions 23 and 24
Revision 23 as of 2015-07-03 07:18:45
Size: 5339
Editor: ?DanDeVoto
Comment: Added Yaboot, restore OS9, and webkit entries
Revision 24 as of 2015-07-11 06:21:56
Size: 8965
Editor: ?DanDeVoto
Comment: Added several entries
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
=== How do I right and middle click? === === Wireless is not working ===
Line 8: Line 8:
As Macs have one-button mice and trackpads, Debian PowerPC addresses this by installing ''mouseemu'', a daemon that emulates middle and right clicking to the keyboard. By default, ''mouseemu'' maps middle and right click to F10 and F11, respectively (On Powerbook keyboards it can be F11 and F12). These defaults can be changed by editing /etc/defaults/mouseemu.

Note: you can find your Mac's keycodes with the ''showkey'' command, but it must be run in a console (ctrl + alt + F1).

=== Will my hotkeys work? ===

Yes. ''Pbbuttonsd'', a daemon that governs hotkeys on laptops, is installed by default. Depending on your model, your hotkeys will either work alone or in conjunction with the ''fn'' key. ''Pbbuttonsd'' also governs many other laptop functions, including energy saving. You may edit /etc/pbbuttonsd.conf to change the default settings.

As with mouseemu, you can find your keyboard's keycodes with the ''showkey'' command in a console.

=== wireless is not working ===
'''''Airport Extreme:'''''
Line 28: Line 18:
=== How to get Graphics working: ATI/Radeon === '''''Airport:'''''

First generation Airport cards, such as those found in G3 laptops, G4 Titanium Powerbooks, and pre-FW 800 Power Macs, also require firmware from the non-free repository. To install, add ''non-free'' to your apt sources in /etc/apt/sources.list, then install the package ''firmware-linux-nonfree''.

Unfortunately, first generation Airport cards do not support WPA2 encryption, only WPA. When you set your router to WPA, also set "WPA Algorithms" to TKIP, as AES also does not work with early Airport cards.

=== How do I get Graphics working? ===

'''''ATI/Radeon:'''''
Line 49: Line 47:
'''''Rage 128:'''''

Rage 128 cards may render text garbled. As a workaround, generate a xorg.conf file, and under the Device section, set the option "RenderAccel" to false.
Line 51: Line 53:
If sound isn't working out of the box, it may be muted by default. Open a volume utility like alsamixer and unmute the Master Volume as well as any speakers or headphones. Then turn up the Master Volume, and also the PCM level (to be kept at or below 75% to avoid distortion). If sound isn't working, it may be muted by default. Open a volume utility like alsamixer and unmute the Master Volume as well as any speakers or headphones. Then turn up the Master Volume, and also the PCM level (to be kept at or below 75% to avoid distortion).
Line 55: Line 57:
A handful of Mac models (seems to be mostly G3 & G4 iBooks) have sound disabled due to a bug in the 3.16 kernel. A patch that fixes this has been submitted to the kernel development team and will likely show up in a 4.xx kernel. As a temporary workaround, users experiencing this bug can downgrade to the 3.2.0-4 kernel found in ''oldstable''. A handful of Mac models (seems to be mostly G3 & G4 iBooks) have sound broken due to a bug in the 3.16 kernel. A patch that fixes this has been submitted to the kernel development team and will likely show up in a 4.xx kernel. As a temporary workaround, users experiencing this bug can downgrade to the 3.2.0-4 kernel found in ''oldstable''.

=== How do I right and middle click? ===

As Macs have one-button mice and trackpads, Debian PowerPC addresses this by installing ''mouseemu'', a daemon that emulates middle and right clicking to the keyboard. By default, ''mouseemu'' maps middle and right click to F10 and F11, respectively (or sometimes F11 and F12). These defaults can be changed by editing /etc/defaults/mouseemu.

Note: you can find your Mac's keycodes with the ''showkey'' command, but it must be run in a console (ctrl + alt + F1).

Also note: ''mouseemu'' will disable your Powerbook's caps lock light.

=== Will my hotkeys work? ===

Yes. ''Pbbuttonsd'', a daemon that governs hotkeys on laptops, is installed by default. Depending on your model, your hotkeys will either work alone or in conjunction with the ''fn'' key. ''Pbbuttonsd'' also governs many other laptop functions, including energy saving. You may edit /etc/pbbuttonsd.conf to change the default settings.

As with mouseemu, you can find your keyboard's keycodes with the ''showkey'' command in a console.

=== How about two-finger scrolling? ===

Sure, provided you have compatible hardware (only late Powerbooks and iBooks). See the [[https://wiki.debian.org/SynapticsTouchpad|SynapticsTouchpad]] page for a start. Succinctly, create the directory /etc/X11/xorg.conf.d and add to it a synaptics.conf file with all your preferred options.

=== How do I enable my keyboard backlight? ===

You can enable your keyboard backlight by using a text editor to add ''i2c-dev'' to /etc/modules and reboot. At least one user reports, though, that this causes their Powerbook to start up with the screen brightness turned all the way down.

=== Can I "reverse" my Command and control keys to be like a Mac? ===

Yes. Create a hidden file in your home folder called ".Xmodmap" and save the following text inside it:

remove Mod4 = Super_L Super_R<<BR>>
remove Control = Control_L Control_R<<BR>>
keysym Control_L = Super_L<<BR>>
keysym Control_R = Super_R<<BR>>
keysym Super_L = Control_L<<BR>>
keysym Super_R = Control_R<<BR>>
add Mod4 = Super_L Super_R<<BR>>
add Control = Control_L Control_R<<BR>>

Then run the command: ''xmodmap ~/.Xmodmap''

If this doesn't work, you may have an iBook where both Command keys are mapped as a single (Super_L) key. In that case, use the following instead:

remove Mod4 = Super_L<<BR>>
remove Control = Control_L<<BR>>
keysym Control_L = Super_L<<BR>>
keysym Super_L = Control_L<<BR>>
add Mod4 = Super_L<<BR>>
add Control = Control_L<<BR>>

Once everything is to your liking, arrange for ''xmodmap ~/.Xmodmap'' to autostart on login.

=== What's this Yaboot thing? ===

Yaboot is a PowerPC bootloader which determines the system you boot into. If you dual or tri-boot, the settings in /etc/yaboot.conf determine which system is the default, which keys let you choose which system, etc.

Some circumstances, such as setting the startup disk while in OS X or Mac OS 9, can cause Yaboot to "disappear." Resetting the PRAM (starting your Mac while pressing Command + Option + p + r until a second chime sounds) usually restores it. If not, starting up while pressing the Option key will take you to a graphical chooser where you can click on the penguin and boot into Linux. From there, run ''sudo ybin -v'' to reinitialize Yaboot.
Line 62: Line 118:

=== What's this Yaboot thing? ===

Yaboot is a PowerPC bootloader which determines the system you boot into. If you dual or tri-boot, the settings in /etc/yaboot.conf determine which system is the default, which keys let you choose which system, etc.

Some circumstances, such as setting the startup disk while in OS X or Mac OS 9, can cause Yaboot to "disappear." Resetting the PRAM (starting your Mac while pressing Command + Option + p + r until a second chime sounds) usually restores it. If not, starting up while pressing the Option key will take you to a graphical chooser where you can click on the penguin and boot into Linux. From there, run ''sudo ybin -v'' to reinitialize Yaboot.
Line 78: Line 128:

=== Are there any software limitations? ===

Almost no closed-source software is compiled for PowerPC. One exception was Bittorrent Sync which supported PowerPC through [[http://syncapp.bittorrent.com/1.4.111/|version 1.4.111]]. However, many other closed-source titles have never supported PowerPC, including Adobe Flash, Chrome, Dropbox, Skype, and Spotify.

Also, closed-source graphics drivers released by Nvidia and AMD are not available, so you will have to use the open source drivers.

Additionally, some open source software in Debian's repositories may be broken on PowerPC. It's thankfully rare, but titles that may be affected are jackd2 and Clementine (jackd1 can be used instead of jackd2 if you need a JACK audio server).

=== Are there any Mac OS emulators? ===

[[http://www.gryphel.com/c/minivmac/index.html|Mini vMac]] emulates early compact Macs and has a PowerPC binary available for download. Basilisk II emulates 68k Macs such as Quadras and the II series, and is in the Debian contrib repository as ''basilisk2''. Sheepshaver emulates PowerPC Macs, but the Linux PowerPC version suffers memory access problems and appears unuseable.

Mac-on-Linux was a long-dormant project that seems to have revived.

This is the FAQ for the PowerPC port.

Wireless is not working

Airport Extreme:

Apple G4 iBooks and ?PowerBooks come with Broadcom chips. You will need to determine the model before you install the proper driver. Run the command lscpi |grep Wireless to find out.

You will also need the contrib and non-free repositories in your sources.list file. If you have the BCM4318 chip, for example, you would install the following package,

apt-get install firmware-b43-installer

For more help, see bcm43xx

Airport:

First generation Airport cards, such as those found in G3 laptops, G4 Titanium Powerbooks, and pre-FW 800 Power Macs, also require firmware from the non-free repository. To install, add non-free to your apt sources in /etc/apt/sources.list, then install the package firmware-linux-nonfree.

Unfortunately, first generation Airport cards do not support WPA2 encryption, only WPA. When you set your router to WPA, also set "WPA Algorithms" to TKIP, as AES also does not work with early Airport cards.

How do I get Graphics working?

ATI/Radeon:

Since Jessie KMS is on by default, now these parameters are needed at boot to get accelerated graphics working,

Linux radeon.modeset=1 video=offb:off video=radeonfb:off radeon.agpmode=-1

Once you login add these to the yaboot.conf file and update using the command ybin -v as root. See example

image=/boot/vmlinux

  • label=Linux
    read-only
    initrd=/boot/initrd.img
    append="quiet splash radeon.modeset=1 video=radeonfb:off video=offb:off video=1024x768-32 radeon.agpmode=-1"

Radeon 9000 graphics cards, however, freezes with accelerated graphics enabled. This requires turning off acceleration when KMS is enabled. This is done by enable this option in xorg.conf

Option "?NoAccel" "True"

For more help on Radeon graphics see Dan DeVoto's blog

Rage 128:

Rage 128 cards may render text garbled. As a workaround, generate a xorg.conf file, and under the Device section, set the option "?RenderAccel" to false.

Why doesn't sound work?

If sound isn't working, it may be muted by default. Open a volume utility like alsamixer and unmute the Master Volume as well as any speakers or headphones. Then turn up the Master Volume, and also the PCM level (to be kept at or below 75% to avoid distortion).

If you still don't have sound, you may need to add snd-aoa-i2sbus to /etc/modules.

A handful of Mac models (seems to be mostly G3 & G4 iBooks) have sound broken due to a bug in the 3.16 kernel. A patch that fixes this has been submitted to the kernel development team and will likely show up in a 4.xx kernel. As a temporary workaround, users experiencing this bug can downgrade to the 3.2.0-4 kernel found in oldstable.

How do I right and middle click?

As Macs have one-button mice and trackpads, Debian PowerPC addresses this by installing mouseemu, a daemon that emulates middle and right clicking to the keyboard. By default, mouseemu maps middle and right click to F10 and F11, respectively (or sometimes F11 and F12). These defaults can be changed by editing /etc/defaults/mouseemu.

Note: you can find your Mac's keycodes with the showkey command, but it must be run in a console (ctrl + alt + F1).

Also note: mouseemu will disable your Powerbook's caps lock light.

Will my hotkeys work?

Yes. Pbbuttonsd, a daemon that governs hotkeys on laptops, is installed by default. Depending on your model, your hotkeys will either work alone or in conjunction with the fn key. Pbbuttonsd also governs many other laptop functions, including energy saving. You may edit /etc/pbbuttonsd.conf to change the default settings.

As with mouseemu, you can find your keyboard's keycodes with the showkey command in a console.

How about two-finger scrolling?

Sure, provided you have compatible hardware (only late Powerbooks and iBooks). See the SynapticsTouchpad page for a start. Succinctly, create the directory /etc/X11/xorg.conf.d and add to it a synaptics.conf file with all your preferred options.

How do I enable my keyboard backlight?

You can enable your keyboard backlight by using a text editor to add i2c-dev to /etc/modules and reboot. At least one user reports, though, that this causes their Powerbook to start up with the screen brightness turned all the way down.

Can I "reverse" my Command and control keys to be like a Mac?

Yes. Create a hidden file in your home folder called ".Xmodmap" and save the following text inside it:

remove Mod4 = Super_L Super_R
remove Control = Control_L Control_R
keysym Control_L = Super_L
keysym Control_R = Super_R
keysym Super_L = Control_L
keysym Super_R = Control_R
add Mod4 = Super_L Super_R
add Control = Control_L Control_R

Then run the command: xmodmap ~/.Xmodmap

If this doesn't work, you may have an iBook where both Command keys are mapped as a single (Super_L) key. In that case, use the following instead:

remove Mod4 = Super_L
remove Control = Control_L
keysym Control_L = Super_L
keysym Super_L = Control_L
add Mod4 = Super_L
add Control = Control_L

Once everything is to your liking, arrange for xmodmap ~/.Xmodmap to autostart on login.

What's this Yaboot thing?

Yaboot is a PowerPC bootloader which determines the system you boot into. If you dual or tri-boot, the settings in /etc/yaboot.conf determine which system is the default, which keys let you choose which system, etc.

Some circumstances, such as setting the startup disk while in OS X or Mac OS 9, can cause Yaboot to "disappear." Resetting the PRAM (starting your Mac while pressing Command + Option + p + r until a second chime sounds) usually restores it. If not, starting up while pressing the Option key will take you to a graphical chooser where you can click on the penguin and boot into Linux. From there, run sudo ybin -v to reinitialize Yaboot.

Why is my Mac OS 9 partition unbootable?

If you're dual-booting Mac OS 9, you may notice it can no longer boot after installing Debian. This is due to a bug in debian-installer, which can be fixed with Drive Setup on your OS 9 install CD.

Specifically, boot from your OS 9 CD, run Drive Setup, highlight your hard drive in the main window, and finally choose "Update Driver" from the Functions menu. Your OS 9 partition will now be bootable.

Are there special disk tools for PowerPC Macs?

Yes. Most Linux users are familiar with fdisk, a command line utility for managing disk partitions. The Mac equivalent is mac-fdisk.

If you plan on mounting hfsplus disk partitions or external drives, you may also install hfsprogs and hfsutils, which include several command line utilities for managing and repairing hfsplus partitions.

Are there any Webkit browsers like Safari?

?QupZilla and Midori are two web browsers that run on the Webkit engine. Users of these browsers must be aware, though, that they are not updated regularly with security updates. For PowerPC users, only Iceweasel receives regular security updates (Chromium does as well, but it's not available for PowerPC).

Are there any software limitations?

Almost no closed-source software is compiled for PowerPC. One exception was Bittorrent Sync which supported PowerPC through version 1.4.111. However, many other closed-source titles have never supported PowerPC, including Adobe Flash, Chrome, Dropbox, Skype, and Spotify.

Also, closed-source graphics drivers released by Nvidia and AMD are not available, so you will have to use the open source drivers.

Additionally, some open source software in Debian's repositories may be broken on PowerPC. It's thankfully rare, but titles that may be affected are jackd2 and Clementine (jackd1 can be used instead of jackd2 if you need a JACK audio server).

Are there any Mac OS emulators?

Mini vMac emulates early compact Macs and has a PowerPC binary available for download. Basilisk II emulates 68k Macs such as Quadras and the II series, and is in the Debian contrib repository as basilisk2. Sheepshaver emulates PowerPC Macs, but the Linux PowerPC version suffers memory access problems and appears unuseable.

Mac-on-Linux was a long-dormant project that seems to have revived.