diff options
author | Kristoffer Ericson <kristoffer_e1@hotmail.com> | 2006-08-07 18:03:46 +0000 |
---|---|---|
committer | Kristoffer Ericson <kristoffer_e1@hotmail.com> | 2006-08-07 18:03:46 +0000 |
commit | bd18dfdd273af1d42fb09e06efbcc356a1469de5 (patch) | |
tree | b2d25da0b7573ecb2a341c6bdce86302fc0fef7e /packages/libopie/libopie2 | |
parent | e46b9eb91fa93a94580e274719f4c7d713eae6e2 (diff) |
Some patches to add Jornada 6xx support and altera model 720 to 7xx. minor
alterations of the patches to fix typos.
Diffstat (limited to 'packages/libopie/libopie2')
-rw-r--r-- | packages/libopie/libopie2/odevice.h-jornada-fixup.patch | 13 | ||||
-rw-r--r-- | packages/libopie/libopie2/odevice_jornada.cpp-fixup.patch | 11 |
2 files changed, 13 insertions, 11 deletions
diff --git a/packages/libopie/libopie2/odevice.h-jornada-fixup.patch b/packages/libopie/libopie2/odevice.h-jornada-fixup.patch index d2e26a0b36..6b50f5de79 100644 --- a/packages/libopie/libopie2/odevice.h-jornada-fixup.patch +++ b/packages/libopie/libopie2/odevice.h-jornada-fixup.patch @@ -1,12 +1,13 @@ ---- libopie2/opiecore/device/odevice.h 2006-08-06 12:44:20.000000000 +0000 -+++ libopie2/opiecore/device/odevice.h_orig 2006-08-06 12:42:46.000000000 +0000 -@@ -73,8 +73,7 @@ +--- libopie2/opiecore/device/odevice.h_orig 2006-08-06 14:22:16.000000000 +0000 ++++ libopie2/opiecore/device/odevice.h 2006-08-06 14:22:58.000000000 +0000 +@@ -73,7 +73,9 @@ Model_iPAQ_HX4700 = ( Model_iPAQ | 0x000A ), Model_Jornada = ( 6 << 16 ), Model_Jornada_56x = ( Model_Jornada | 0x0001 ), -- Model_Jornada_6xx = ( Model_Jornada | 0x0002 ), -- Model_Jornada_7xx = ( Model_Jornada | 0x0003 ), -+ Model_Jornada_720 = ( Model_Jornada | 0x0002 ), +- Model_Jornada_720 = ( Model_Jornada | 0x0002 ), ++ Model_Jornada_6xx = ( Model_Jornada | 0x0003 ), ++ Model_Jornada_7xx = ( Model_Jornada | 0x0002 ), ++ Model_Zaurus = ( 2 << 16 ), diff --git a/packages/libopie/libopie2/odevice_jornada.cpp-fixup.patch b/packages/libopie/libopie2/odevice_jornada.cpp-fixup.patch index f3eff64b85..8481f0f419 100644 --- a/packages/libopie/libopie2/odevice_jornada.cpp-fixup.patch +++ b/packages/libopie/libopie2/odevice_jornada.cpp-fixup.patch @@ -1,5 +1,5 @@ ---- libopie2/opiecore/device/odevice_jornada.cpp_orig 2006-08-06 12:36:55.000000000 +0000 -+++ libopie2/opiecore/device/odevice_jornada.cpp 2006-08-06 12:53:45.000000000 +0000 +--- libopie2/opiecore/device/odevice_jornada.cpp_orig 2006-08-06 14:34:15.000000000 +0000 ++++ libopie2/opiecore/device/odevice_jornada.cpp 2006-08-06 14:34:53.000000000 +0000 @@ -125,9 +125,12 @@ if ( model == "HP Jornada 56x" ) { d->m_modelstr = "Jornada 56x"; @@ -27,19 +27,20 @@ return 255; else return 0; -@@ -185,9 +190,10 @@ +@@ -185,10 +190,11 @@ cmdline = QString::fromLatin1( "echo 4 > /sys/class/backlight/sa1100fb/power"); else cmdline = QString::fromLatin1( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %1 > /sys/class/backlight/sa1100fb/brightness" ).arg( bright ); - } else if ( d->m_model == Model_Jornada_720 ) { + } else if ( d->m_model == Model_Jornada_7xx ) { cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/e1356fb/brightness" ).arg( bright ); -- } + } else if ( d->m_model == Model_Jornada_6xx ) { + cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/hp680-bl/brightness" ).arg( bright ); - + } +- // No Global::shellQuote as we gurantee it to be sane res = ( ::system( QFile::encodeName(cmdline) ) == 0 ); + @@ -204,9 +210,11 @@ if ( d->m_model == Model_Jornada_56x ) { |