1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
This text describes how to install pmud and what configuration actions
you might need to take after installation.
New installation
----------------
Binary installation
-------------------
As root copy the pmud*ppc.rpm package to /usr/src/redhat/RPMS/ppc/
Then issue the command:
# rpm -iv /usr/src/redhat/RPMS/ppc/pmud*ppc.rpm
If all went well, pmud is now installed.
Source installation
-------------------
As root copy the pmud*src.rpm package to /usr/src/redhat/SRPMS/
Then issue the command:
# rpm -i /usr/src/redhat/SRPMS/pmud*src.rpm
Next build the package with:
# rpm -bb --rmsource /usr/src/redhat/SPEC/pmud*spec
After a successfull build the binary package is put in
/usr/src/redhat/RPMS/ppc/
Following this, you can continue the steps described in the
'Binary installation' section.
Upgrade installation
--------------------
Binary installation
-------------------
As root copy the pmud*ppc.rpm package to /usr/src/redhat/RPMS/ppc/
Then issue the command:
# rpm -Uv /usr/src/redhat/RPMS/ppc/pmud*ppc.rpm
If all went well, pmud is now upgraded.
Source installation
-------------------
See the description at 'New installation'; 'Source installation'.
Then continue as described here above at 'Binary installation'.
Configuration
-------------
You might want to edit the file
/etc/sysconfig/power
in order to set some startup flags for pmud.
Then check with:
[root@terra /root]# chkconfig --list pmud
pmud 0:off 1:off 2:on 3:on 4:on 5:on 6:off
if pmud starts at the levels you desire. If you want to change this,
then please see:
man chkconfig
In /usr/doc/pmud*/ there is a pwrctl-local example script, which you
might want to edit and put in /etc/power/ in order to have local actions
performed on power events detected by pmud. The file /etc/power/pwrctl-local
will never be upgraded on installation of new pmud releases. This is the
file in which you can restore your trackpad settings, for example. As the
second argument (new) is the current power source, you can issue commands
when for example ac is disconnected (the second argument will be "battery"
while the first will be one of {"minimum", "medium", "maximum"}. You (Adam
Price <ami@greta.ami.home>) could start Batmon if you see that you're
running X on that moment ;-)
Video issues
------------
If after a sleep your screen does not activate it's backlight, then you're
not using the correct video driver. You can activate the backlight by
pressing the contrast key of your screen (to a higher contrast). If you
want to use automatic activation of the screen, then you'll need to use
the (on powerbooks G3 that is, I don't know about 3400's) atyfb driver.
To do this you'll need to uncheck the BootX 'no video driver' checkbox and
to put the following kernel argument in the input box:
video=atyfb:cmode:32,vmode:14
Then press 'save to prefs' if you want this always to happen. Now if the
powerbook is in sleep and you'll press a key, the screen is also activated.
Note that if you use the offb driver (The BootX 'no video driver' is checked)
then the screen contents seems to desintegrate. You'll need to refresh youre
X screen by the window manager's refresh option (put it in a menu) or the
vty's by switching from the current vty to another and back.
Files needed
------------
Pmud needs two files:
crw-r--r-- 1 root root 56, 0 Mar 6 09:30 /dev/adb
crw------- 1 root root 10, 154 Mar 6 09:30 /dev/pmu
If one of them is not present (pmud-0.4 will install these for you if
you use the binary rpm), then you can make them with:
# mknod /dev/pmu c 10 154
# mknod /dev/adb c 56 0
Note that you'll need a kernel with powermanagement for the powerbook.
Conclusion
----------
Have fun and less powerfailure crashes,
Stephan Leemburg
<stephan@jvc.nl>
|