summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_ipaq.cpp
Unidiff
Diffstat (limited to 'libopie2/opiecore/device/odevice_ipaq.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_ipaq.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp
index a221e23..e6e3145 100644
--- a/libopie2/opiecore/device/odevice_ipaq.cpp
+++ b/libopie2/opiecore/device/odevice_ipaq.cpp
@@ -153,6 +153,9 @@ void iPAQ::init(const QString& model)
153 d->m_model = Model_iPAQ_H191x; 153 d->m_model = Model_iPAQ_H191x;
154 else if ( d->m_modelstr == "H1940" ) 154 else if ( d->m_modelstr == "H1940" )
155 d->m_model = Model_iPAQ_H1940; 155 d->m_model = Model_iPAQ_H1940;
156 else if ( d->m_modelstr == "HX4700" )
157 d->m_model = Model_iPAQ_HX4700;
158
156 else 159 else
157 d->m_model = Model_Unknown; 160 d->m_model = Model_Unknown;
158 161
@@ -165,6 +168,7 @@ void iPAQ::init(const QString& model)
165 case Model_iPAQ_H22xx: 168 case Model_iPAQ_H22xx:
166 case Model_iPAQ_H191x: 169 case Model_iPAQ_H191x:
167 case Model_iPAQ_H1940: 170 case Model_iPAQ_H1940:
171 case Model_iPAQ_HX4700:
168 d->m_rotation = Rot0; 172 d->m_rotation = Rot0;
169 break; 173 break;
170 case Model_iPAQ_H36xx: 174 case Model_iPAQ_H36xx:
@@ -382,6 +386,14 @@ bool iPAQ::setDisplayBrightness ( int bright )
382 // No Global::shellQuote as we gurantee it to be sane 386 // No Global::shellQuote as we gurantee it to be sane
383 res = ( ::system( QFile::encodeName(cmdline) ) == 0 ); 387 res = ( ::system( QFile::encodeName(cmdline) ) == 0 );
384 break; 388 break;
389
390 case Model_iPAQ_HX4700:
391 cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/w100fb/brightness" ).arg( bright );
392 // No Global::shellQuote as we gurantee it to be sane
393 res = ( ::system( QFile::encodeName(cmdline) ) == 0 );
394 break;
395
396
385 default: 397 default:
386 if (( fd = ::open ( "/dev/touchscreen/0", O_WRONLY )) >= 0 ) { 398 if (( fd = ::open ( "/dev/touchscreen/0", O_WRONLY )) >= 0 ) {
387 FLITE_IN bl; 399 FLITE_IN bl;
@@ -407,6 +419,7 @@ int iPAQ::displayBrightnessResolution() const
407 case Model_iPAQ_H39xx: 419 case Model_iPAQ_H39xx:
408 return 64; 420 return 64;
409 case Model_iPAQ_H5xxx: 421 case Model_iPAQ_H5xxx:
422 case Model_iPAQ_HX4700:
410 return 255; 423 return 255;
411 case Model_iPAQ_H191x: 424 case Model_iPAQ_H191x:
412 return 7; 425 return 7;