From dd410f1eb69e68f04cf26b6d3e6bca88f0987f71 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 23 Jan 2005 21:35:29 +0000 Subject: remove setSoftSuspend() from ODevice. this is a left-over from the old days --- (limited to 'libopie2/opiecore/device/odevice_ipaq.cpp') diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp index 9e01a0c..2ce38a9 100644 --- a/libopie2/opiecore/device/odevice_ipaq.cpp +++ b/libopie2/opiecore/device/odevice_ipaq.cpp @@ -336,27 +336,6 @@ void iPAQ::playAlarmSound() #endif } - -bool iPAQ::setSoftSuspend ( bool soft ) -{ - bool res = false; - int fd; - - if (( fd = ::open ( "/proc/sys/ts/suspend_button_mode", O_WRONLY )) >= 0 ) { - if ( ::write ( fd, soft ? "1" : "0", 1 ) == 1 ) - res = true; - else - ::perror ( "write to /proc/sys/ts/suspend_button_mode" ); - - ::close ( fd ); - } - else - ::perror ( "/proc/sys/ts/suspend_button_mode" ); - - return res; -} - - bool iPAQ::setDisplayBrightness ( int bright ) { bool res = false; -- cgit v0.9.0.2