summaryrefslogtreecommitdiff
authorhrw <hrw>2006-05-16 09:49:39 (UTC)
committer hrw <hrw>2006-05-16 09:49:39 (UTC)
commit46eab1f4cc65e464eba94d6e9965601f304cc1cf (patch) (unidiff)
tree01459182b6f7aed9868f58a52392c98b206c05e6
parent782a34192c2c879a80fd319153a2b2f48ded1c99 (diff)
downloadopie-46eab1f4cc65e464eba94d6e9965601f304cc1cf.zip
opie-46eab1f4cc65e464eba94d6e9965601f304cc1cf.tar.gz
opie-46eab1f4cc65e464eba94d6e9965601f304cc1cf.tar.bz2
Zaurus ODevice: fix brightness control for Collie/Poodle
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp
index 28a1ccf..4963f54 100644
--- a/libopie2/opiecore/device/odevice_zaurus.cpp
+++ b/libopie2/opiecore/device/odevice_zaurus.cpp
@@ -195,97 +195,97 @@ void Zaurus::init(const QString& cpu_info)
195 // check the Zaurus model 195 // check the Zaurus model
196 QString model; 196 QString model;
197 int loc = cpu_info.find( ":" ); 197 int loc = cpu_info.find( ":" );
198 if ( loc != -1 ) 198 if ( loc != -1 )
199 model = cpu_info.mid( loc+2 ).simplifyWhiteSpace(); 199 model = cpu_info.mid( loc+2 ).simplifyWhiteSpace();
200 else 200 else
201 model = cpu_info; 201 model = cpu_info;
202 202
203 if ( model == "SHARP Corgi" ) { 203 if ( model == "SHARP Corgi" ) {
204 d->m_model = Model_Zaurus_SLC7x0; 204 d->m_model = Model_Zaurus_SLC7x0;
205 d->m_modelstr = "Zaurus SL-C700"; 205 d->m_modelstr = "Zaurus SL-C700";
206 } else if ( model == "SHARP Shepherd" ) { 206 } else if ( model == "SHARP Shepherd" ) {
207 d->m_model = Model_Zaurus_SLC7x0; 207 d->m_model = Model_Zaurus_SLC7x0;
208 d->m_modelstr = "Zaurus SL-C750"; 208 d->m_modelstr = "Zaurus SL-C750";
209 } else if ( model == "SHARP Husky" ) { 209 } else if ( model == "SHARP Husky" ) {
210 d->m_model = Model_Zaurus_SLC7x0; 210 d->m_model = Model_Zaurus_SLC7x0;
211 d->m_modelstr = "Zaurus SL-C760 or SL-C860"; 211 d->m_modelstr = "Zaurus SL-C760 or SL-C860";
212 } else if ( model == "SHARP Boxer" ) { 212 } else if ( model == "SHARP Boxer" ) {
213 d->m_model = Model_Zaurus_SLC7x0; 213 d->m_model = Model_Zaurus_SLC7x0;
214 d->m_modelstr = "Zaurus SL-C760 or SL-C860"; 214 d->m_modelstr = "Zaurus SL-C760 or SL-C860";
215 } else if ( model == "SHARP Poodle" ) { 215 } else if ( model == "SHARP Poodle" ) {
216 d->m_model = Model_Zaurus_SLB600; 216 d->m_model = Model_Zaurus_SLB600;
217 d->m_modelstr = "Zaurus SL-B500 or SL-5600"; 217 d->m_modelstr = "Zaurus SL-B500 or SL-5600";
218 } else if ( model == "Sharp-Collie" || model == "Collie" ) { 218 } else if ( model == "Sharp-Collie" || model == "Collie" ) {
219 d->m_model = Model_Zaurus_SL5500; 219 d->m_model = Model_Zaurus_SL5500;
220 d->m_modelstr = "Zaurus SL-5500 or SL-5000d"; 220 d->m_modelstr = "Zaurus SL-5500 or SL-5000d";
221 } else if ( model == "SHARP Tosa" ) { 221 } else if ( model == "SHARP Tosa" ) {
222 d->m_model = Model_Zaurus_SL6000; 222 d->m_model = Model_Zaurus_SL6000;
223 d->m_modelstr = "Zaurus SL-6000"; 223 d->m_modelstr = "Zaurus SL-6000";
224 } else if ( model == "SHARP Spitz" ) { 224 } else if ( model == "SHARP Spitz" ) {
225 d->m_model = Model_Zaurus_SLC3000; 225 d->m_model = Model_Zaurus_SLC3000;
226 d->m_modelstr = "Zaurus SL-C3000"; 226 d->m_modelstr = "Zaurus SL-C3000";
227 } else if ( model == "SHARP Akita" ) { 227 } else if ( model == "SHARP Akita" ) {
228 d->m_model = Model_Zaurus_SLC1000; 228 d->m_model = Model_Zaurus_SLC1000;
229 d->m_modelstr = "Zaurus SL-C1000"; 229 d->m_modelstr = "Zaurus SL-C1000";
230 } else if ( model == "SHARP Borzoi" ) { 230 } else if ( model == "SHARP Borzoi" ) {
231 d->m_model = Model_Zaurus_SLC3100; 231 d->m_model = Model_Zaurus_SLC3100;
232 d->m_modelstr = "Zaurus SL-C3100"; 232 d->m_modelstr = "Zaurus SL-C3100";
233 } else { 233 } else {
234 d->m_model = Model_Zaurus_SL5500; 234 d->m_model = Model_Zaurus_SL5500;
235 d->m_modelstr = "Unknown Zaurus"; 235 d->m_modelstr = "Unknown Zaurus";
236 } 236 }
237 237
238 // set path to backlight device in kernel 2.6 238 // set path to backlight device in kernel 2.6
239 switch ( d->m_model ) 239 switch ( d->m_model )
240 { 240 {
241 case Model_Zaurus_SLB600: // fallthrough 241 case Model_Zaurus_SLB600: // fallthrough
242 case Model_Zaurus_SL5500: 242 case Model_Zaurus_SL5500:
243 m_backlightdev = "/sys/class/backlight/locomo-backlight/"; 243 m_backlightdev = "/sys/class/backlight/locomo-bl/";
244 break; 244 break;
245 default: 245 default:
246 m_backlightdev = "/sys/class/backlight/corgi-bl/"; 246 m_backlightdev = "/sys/class/backlight/corgi-bl/";
247 } 247 }
248 248
249 // set initial rotation 249 // set initial rotation
250 switch( d->m_model ) 250 switch( d->m_model )
251 { 251 {
252 case Model_Zaurus_SL6000: // fallthrough 252 case Model_Zaurus_SL6000: // fallthrough
253 case Model_Zaurus_SLA300: 253 case Model_Zaurus_SLA300:
254 d->m_rotation = Rot0; 254 d->m_rotation = Rot0;
255 break; 255 break;
256 case Model_Zaurus_SLC3100: // fallthrough 256 case Model_Zaurus_SLC3100: // fallthrough
257 case Model_Zaurus_SLC3000: // fallthrough 257 case Model_Zaurus_SLC3000: // fallthrough
258 case Model_Zaurus_SLC1000: // fallthrough 258 case Model_Zaurus_SLC1000: // fallthrough
259 case Model_Zaurus_SLC7x0: 259 case Model_Zaurus_SLC7x0:
260 initHingeSensor(); 260 initHingeSensor();
261 d->m_rotation = rotation(); 261 d->m_rotation = rotation();
262 d->m_direction = direction(); 262 d->m_direction = direction();
263 break; 263 break;
264 case Model_Zaurus_SLB600: // fallthrough 264 case Model_Zaurus_SLB600: // fallthrough
265 case Model_Zaurus_SL5000: // fallthrough 265 case Model_Zaurus_SL5000: // fallthrough
266 case Model_Zaurus_SL5500: // fallthrough 266 case Model_Zaurus_SL5500: // fallthrough
267 default: 267 default:
268 d->m_rotation = Rot270; 268 d->m_rotation = Rot270;
269 } 269 }
270 270
271 // set default qte driver 271 // set default qte driver
272 switch( d->m_model ) 272 switch( d->m_model )
273 { 273 {
274 case Model_Zaurus_SLC7x0: 274 case Model_Zaurus_SLC7x0:
275 d->m_qteDriver = "W100"; 275 d->m_qteDriver = "W100";
276 break; 276 break;
277 default: 277 default:
278 d->m_qteDriver = "Transformed"; 278 d->m_qteDriver = "Transformed";
279 } 279 }
280 280
281 m_leds[0] = Led_Off; 281 m_leds[0] = Led_Off;
282 282
283 if ( m_embedix ) 283 if ( m_embedix )
284 qDebug( "Zaurus::init() - Using the 2.4 Embedix HAL on a %s", (const char*) d->m_modelstr ); 284 qDebug( "Zaurus::init() - Using the 2.4 Embedix HAL on a %s", (const char*) d->m_modelstr );
285 else 285 else
286 qDebug( "Zaurus::init() - Using the 2.6 OpenZaurus HAL on a %s", (const char*) d->m_modelstr ); 286 qDebug( "Zaurus::init() - Using the 2.6 OpenZaurus HAL on a %s", (const char*) d->m_modelstr );
287} 287}
288 288
289void Zaurus::initButtons() 289void Zaurus::initButtons()
290{ 290{
291 qDebug( "Zaurus::initButtons()" ); 291 qDebug( "Zaurus::initButtons()" );