Xubuntu PPC issues

From FreekiWiki
Revision as of 18:18, 8 February 2013 by Dan.Bauer (talk | contribs) (Merged Nvidia fix from two sources)
Jump to navigation Jump to search


Plan of Action for Finalizing the Linux PPC Project
  • Fleshing out the Issues Matrix
    • Filling in all cells
    • Linking to existing documentation
  • Identifying and developing documentation and procedures for all known issues
    • Validating issues identified
  • Developing long-term/robust fixes over hacks
  • Developing Mac Build procedures, checklists

Issue Relevance Matrix

Relevance of configuration issue to Mac PPC models
G4 G5
iBook Powerbook Mini Lamp Tower iMac Tower
4,1 4,2 other 3,2 3,3

3,4 3,5

5,1

6,1 6,2 6,4

5,2

5,3 5,4 5,5

6,8 5,6

5,7 5,8 5,9

10,1 10,2
Video:Rage128 Y - Y - - - - - -
Video:Nvidia - - - - Y - Y - -
Video:Radeon - Y - Y - Y - Y Y
Audio:snd-aoa Y Y
Wireless:BCM4306
Power:Battery monitor Y Y Y Y Y Y Y Y
Power:CPU scaling/fan control
Power:Display sleep/suspend
Input:Right-click Y Y Y Y Y Y Y Y
Input:Single-touch scrolling Y Y Y Y Y Y Y Y
Input:Appletouch smoothing Y


Video

Rage128

(Source: https://wiki.ubuntu.com/PowerPCFAQ#ATI_Rage_128_cards)

Nvidia

(Source: https://wiki.ubuntu.com/PowerPCFAQ#Nvidia_cards, Linux_PPC_Testing#Video_Drivers_on_12.22_PowerBooks)

THIS METHOD NEEDS VALIDATION. Do either A or B:

A) Recompile xserver-xorg-video-nv package

1) Remove existing version:

 sudo apt-get purge xserver-xorg-video-nv

2) Edit /etc/apt/sources.list to add:

 deb http://ports.ubuntu.com/ubuntu-ports/ precise universe
 deb-src http://archive.ubuntu.com/ubuntu precise universe

3) Update build tools:

 sudo apt-get update
 sudo apt-get install build-essential fakeroot dpkg-dev

4) Setup build dir:

 mkdir nv-build
 cd nv-build

5) Download source:

 apt-get source xserver-xorg-video-nv

6) Compile:

 cd xserver-xorg-video-nv-2.1.17 <== VERIFY VERSION
 sudo apt-get build-dep xserver-xorg-video-nv
 dpkg-buildpackage -rfakeroot -b
 cd ..
 sudo dpkg -i ./*.deb

7) Re-edit /etc/apt/sources.list to remove lines added in step 2) 8) ?

 (sudo apt-get update)?
9) Remove nouveau driver:
 sudo apt-get remove xserver-xorg-video-nouveau

B) Installed pre-compiled nv package

1) Download driver from here

2) Edit /etc/modprobe.conf to add:

 blacklist nouveau


Radeon

(Source: https://wiki.ubuntu.com/PowerPCFAQ#Radeon_cards)

Audio

snd-aoa

Wireless

BCM4306

The BCM4306 wireless card is a known troublemaker. However, the b43 driver has vastly improved over the last couple of years and should support this chip without issue. We'll just need to add the appropriate repository. Run the following in a terminal:

 sudo -i
 cat << EOF >> /etc/apt/sources.list.d/b43.list
 deb http://ports.ubuntu.com/ubuntu-ports/ precise multiverse
 deb-src http://ports.ubuntu.com/ubuntu-ports/ precise multiverse
 EOF
 apt-get update && apt-get purge -y bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
 apt-get install b43-fwcutter firmware-b43-installer 

And reboot the system.

Power

Battery monitor

To enable the battery monitor for the current session:

 sudo modprobe pmu_battery

To enable it permanently for all sessions, edit the file /etc/modules:

 sudo nano /etc/modules

or

 gksudo gedit /etc/modules

and add the following line:

 pmu_battery

Save and exit, and battery monitor should work on reboot.

CPU frequency scaling

(Source: https://wiki.ubuntu.com/PowerPCFAQ#How_can_I_use_powernowd_for_CPU_frequency_scaling.3F)

To reduce CPU power consuption in G3 and G4 laptops, replace the default 'ondemand' kernel governor with 'powernowd'. First, install the powernowd package:

 sudo apt-get install laptop-detect
 wget -P/tmp http://ports.ubuntu.com/ubuntu-ports/pool/universe/p/powernowd/powernowd_1.00-1ubuntu5_powerpc.deb
 sudo dpkg -i /tmp/powernowd_1.00-1ubuntu5_powerpc.deb

The powernowd package is also available from the Ubuntu Software Center interface.

Finally, disable the ondemand governor:

 sudo update-rc.d ondemand disable

Display sleep

Input Devices

Right-click emulation

Ubuntu's default right-click is F12, which is unorthodox and inconvenient. To add the customary MacOSX key control-click, edit the file /etc/default/mouseemu:

 sudo nano /etc/default/mouseemu

and uncomment the line

 RIGHT_CLICK="-right 29 272"

Reboot to enable the new right-click mapping.

Single-touch scrolling

Appletouch smoothing