From d3da21c01659c68dc2cf1dfff1608649977b6e05 Mon Sep 17 00:00:00 2001 From: chicken Date: Mon, 11 Oct 2004 13:42:02 +0000 Subject: remove jornada 56x brightness hack --- (limited to 'libopie2/opiecore/device') diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp index 60736a1..2cab0c8 100644 --- a/libopie2/opiecore/device/odevice_jornada.cpp +++ b/libopie2/opiecore/device/odevice_jornada.cpp @@ -162,11 +162,10 @@ bool Jornada::setDisplayBrightness( int bright ) QString cmdline; - int value = 255 - bright; if ( !bright ) cmdline = QString().sprintf( "echo 4 > /sys/class/backlight/sa1100fb/power"); else - cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/brightness", value ); + cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/brightness", bright ); res = ( ::system( (const char*) cmdline ) == 0 ); -- cgit v0.9.0.2