summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.h2
-rw-r--r--libopie2/opiecore/device/odevice_ipaq.cpp13
2 files changed, 14 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h
index 0c78277..2566979 100644
--- a/libopie2/opiecore/device/odevice.h
+++ b/libopie2/opiecore/device/odevice.h
@@ -72,3 +72,3 @@ enum OModel {
Model_iPAQ_H1940 = ( Model_iPAQ | 0x0009 ),
-
+ Model_iPAQ_HX4700 = ( Model_iPAQ | 0x000A ),
Model_Jornada = ( 6 << 16 ),
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
@@ -155,2 +155,5 @@ void iPAQ::init(const QString& model)
d->m_model = Model_iPAQ_H1940;
+ else if ( d->m_modelstr == "HX4700" )
+ d->m_model = Model_iPAQ_HX4700;
+
else
@@ -167,2 +170,3 @@ void iPAQ::init(const QString& model)
case Model_iPAQ_H1940:
+ case Model_iPAQ_HX4700:
d->m_rotation = Rot0;
@@ -384,2 +388,10 @@ bool iPAQ::setDisplayBrightness ( int bright )
break;
+
+ case Model_iPAQ_HX4700:
+ cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/w100fb/brightness" ).arg( bright );
+ // No Global::shellQuote as we gurantee it to be sane
+ res = ( ::system( QFile::encodeName(cmdline) ) == 0 );
+ break;
+
+
default:
@@ -409,2 +421,3 @@ int iPAQ::displayBrightnessResolution() const
case Model_iPAQ_H5xxx:
+ case Model_iPAQ_HX4700:
return 255;