summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_jornada.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp
index e4f8510..bcde425 100644
--- a/libopie2/opiecore/device/odevice_jornada.cpp
+++ b/libopie2/opiecore/device/odevice_jornada.cpp
@@ -164,33 +164,33 @@ int Jornada::displayBrightnessResolution() const
164 164
165bool Jornada::setDisplayBrightness( int bright ) 165bool Jornada::setDisplayBrightness( int bright )
166{ 166{
167 bool res = false; 167 bool res = false;
168 168
169 if ( bright > 255 ) 169 if ( bright > 255 )
170 bright = 255; 170 bright = 255;
171 if ( bright < 0 ) 171 if ( bright < 0 )
172 bright = 0; 172 bright = 0;
173 173
174 QString cmdline; 174 QString cmdline;
175 175
176 if ( d->m_model == Model_Jornada_56x ) { 176 if ( d->m_model == Model_Jornada_56x ) {
177 if ( !bright ) 177 if ( !bright )
178 cmdline = QString::fromLatin1( "echo 4 > /sys/class/backlight/sa1100fb/power"); 178 cmdline = QString::fromLatin1( "echo 4 > /sys/class/backlight/sa1100fb/power");
179 else 179 else
180 cmdline = QString::fromLatin1( "echo 0 > /sys/class/backlight/sa1100/power; echo %1 > /sys/class/backlight/sa1100/brightness" ).arg( bright ); 180 cmdline = QString::fromLatin1( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %1 > /sys/class/backlight/sa1100fb/brightness" ).arg( bright );
181 } else if ( d->m_model == Model_Jornada_720 ) { 181 } else if ( d->m_model == Model_Jornada_720 ) {
182 cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/e1356fb/brightness" ).arg( bright ); 182 cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/e1356fb/brightness" ).arg( bright );
183 } 183 }
184 184
185 // No Global::shellQuote as we gurantee it to be sane 185 // No Global::shellQuote as we gurantee it to be sane
186 res = ( ::system( QFile::encodeName(cmdline) ) == 0 ); 186 res = ( ::system( QFile::encodeName(cmdline) ) == 0 );
187 187
188 return res; 188 return res;
189} 189}
190 190
191 191
192bool Jornada::setDisplayStatus ( bool on ) 192bool Jornada::setDisplayStatus ( bool on )
193{ 193{
194 bool res = false; 194 bool res = false;
195 195
196 QString cmdline; 196 QString cmdline;