-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
170 lines (126 loc) · 5.94 KB
/
README
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
README for pommed
-----------------
- Kernel version requirements
- Supported machines
- Using pommed
- Beeper feature
- When things go wrong
- Using gpomme and wmpomme
Kernel version requirements:
----------------------------
pommed requires at least a 2.6.25 kernel, due to the use of the new timerfd
interface that was released as stable with this version.
February and October 2008 machines require a 2.6.28 kernel for full support.
Supported machines:
-------------------
- Intel machines
* MacBook Pro Core Duo 15" (January 2006)
* MacBook Pro Core Duo 17" (April 2006)
* MacBook Pro Core2 Duo 15" (October 2006, June 2007, February 2008, October 2008)
* MacBook Pro Core2 Duo 17" (October 2006, June 2007, February 2008, October 2008)
* MacBook Pro 13", 15", 17" (June 2009)
* MacBook Pro Core i5/i7 15", 17" (April 2010)
* MacBook Pro Core2 Duo 13" (April 2010)
* MacBook Pro Core i5/i7 13", 15", 17" (Early 2011)
* MacBook Core Duo (May 2006)
* MacBook Core2 Duo (November 2006 & May 2007)
* MacBook Core2 Duo Santa Rosa (November 2007)
* MacBook Core2 Duo (February 2008, October 2008, October 2009, April 2010)
* MacBook Air Core2 Duo (January 2008, October 2008)
* MacBook Air Core2 Duo 11" & 13" (October 2010)
If your MacBook Pro/MacBook Air/MacBook is not listed here, please contact us
and include the content of /sys/class/dmi/id/product_name in your mail. Thanks.
- PowerMac machines
* PowerBook G4 Titanium 15" (December 2000)
* PowerBook G4 Titanium 15" (October 2001)
* PowerBook G4 Titanium 15" (April 2002)
* PowerBook G4 Titanium 15"
* PowerBook G4 Aluminium 17"
* PowerBook G4 Aluminium 15" (September 2003)
* PowerBook G4 Aluminium 17" (September 2003)
* PowerBook G4 Aluminium 15" (April 2004)
* PowerBook G4 Aluminium 17" (April 2004)
* PowerBook G4 Aluminium 15" (February 2005)
* PowerBook G4 Aluminium 17" (February 2005)
* PowerBook G4 Aluminium 15"
* PowerBook G4 Aluminium 17"
* PowerBook G4 12" (January 2003)
* PowerBook G4 12" (September 2003)
* iBook G4 (October 2003)
* PowerBook G4 12" (April 2004)
* iBook G4 (October 2004)
* iBook G4
* PowerBook G4 12"
If your PowerBook/iBook is not listed here, please contact us and include
the content of /proc/device-tree/model in your mail. Thanks.
Using pommed
------------
Launch pommed at startup, a simple init script will do. Your distribution
should take care of this.
Keyboard backlight on PowerMac machines
---------------------------------------
The keyboard backlight on PowerMac machines (except the very first ones) is
driven through i2c. You need the i2c-dev kernel module loaded on your system
for pommed to work properly; you can add i2c-dev to /etc/modules to have it
loaded automatically at system startup.
Beeper feature
--------------
The beeper feature relies on the uinput kernel module being loaded. You can
check for its availability by checking for the uinput device node, which is
either one of:
- /dev/input/uinput
- /dev/uinput
- /dev/misc/uinput
Or by checking the output of
$ lsmod | grep uinput
If the module is not loaded, load it manually with
# modprobe uinput
then restart pommed. You'll need to ensure the module is loaded before pommed
starts; to achieve that, add uinput to /etc/modules.
For the curious, as I've been asked a couple times already: pommed uses the
uinput facility to create a userspace input device which handles the console
beep. Once this device is set up, the kernel happily passes down beep events
to pommed through this device, and pommed only needs to ... well, *beep*.
When things go wrong
--------------------
First and foremost: don't panic!
If something doesn't work (or so it appears), there's usually a good reason to
that, and pommed should be able to provide some insight as to what is going
wrong if only you ask it.
By default, pommed uses syslog to log warnings and errors, so check your
system logs. If you can't find anything, running pommed in the foreground
will help a lot; in this mode, pommed will log everything to stderr instead
of syslog, so you'll see every message.
First, stop pommed. Then run
# pommed -f
Use Ctrl-C to stop pommed, fix the problem, and restart it.
If you still can't see what's wrong, ask for more output by running pommed in
debug mode. Be warned: in this mode, pommed is very chatty.
First, stop pommed. Then run
# pommed -d
Use Ctrl-C to stop pommed, fix the problem, and restart it.
If the debug mode doesn't offer any hint as to what's going on, then contact
me with the details of your problem and I'll be able to help.
Using gpomme and wmpomme
------------------------
- gpomme: launch gpomme at session startup, using whatever interface your
desktop environment provides for that.
- wmpomme: run wmpomme and add it to your dock.
Both gpomme and wmpomme are responsible for running a user-provided helper
when the video switch button is pressed. This helper is responsible for
activating/deactivating the external video output.
The helper can be set system-wide and overriden on a per-user basis:
- if $HOME/.videoswitch exists, is readable and executable by the running
user, it is executed;
- otherwise, if /etc/pommed/videoswitch exists, is readable and executable
by the running user, it is executed.
The program is invoked without arguments, and argv[0] is "videoswitch".
The videoswitch helper can be anything you want: shell script, perl/python
script or a plain binary; anything executable. It is up to the script or
program to perform any housekeeping/statekeeping that is necessary.
If you want to run urandr or grandr, you can just symlink it as
/etc/pommed/videoswitch or $HOME/.videoswitch.
As different machines require different scripts, pommed can't ship a default
script (there's no one-size-fits-all, unfortunately). If you write a nice
script for your machine and would like to have it shipped with pommed as an
example, mail it to me with a proper license and the machine model.