Changes: Utilities KRegExpEditor * Create an application on its own from KRegExpEditor (several users have requested this) Jesper K. Pedersen * Add a verifier window where user can try his regular expression Jesper K. Pedersen * Add some warnings on invalid regular expressions (like $^) Jesper K. Pedersen * Ensure predefined regular expressions are correct i18n'ed Jesper K. Pedersen * Add support for Emacs style Regular Expression syntaxes Jesper K. Pedersen KJots * XMLUI-ify and improve the interface. Using a treeview for books and bookmarks for quick nav. Aaron J. Seigo * Printing and viewing of entire books. Aaron J. Seigo * Autosave. Aaron J. Seigo KMilo * NEW IN KDE: A generic framework to support special keyboards and hardware features, such as those found on laptops. George Staikos * KMilo support for PowerBooks via pbbuttonsd. George Staikos KLaptop * Full Linux ACPI support (suspend etc, throttling, performance profiles) Paul Campbell * Back panel brightness support for some laptops (Sony, Toshiba) Paul Campbell * Recode to run as a KDED daemon Paul Campbell * Better Thinkpad support Paul Campbell * Triggers from lid closure (suspend, powerdown etc) - on laptops with ACPI support Paul Campbell * Sony laptop extensions support (/dev/sonypi - scroll wheel, panel brightness) Paul Campbell * Added the ability to auto-disable suspend etc when the load average is high Paul Campbell * Display the state of individual batteries in ACPI systems Paul Campbell * Support for Linux kernel software suspend Paul Campbell * Added battery charged notification dialog Paul Campbell * Option to use blank screensaver when in battery mode George Staikos * Support for the Linux CPUFreq interface. Volker Krause Kgpg * NEW IN KDE: frontend for gpg. Jean-Baptiste Mardelle * Key editing in GUI (changing passphrase, trust, expiration) * Support for key groups * Speed up key manager * Gpg-agent support * Auto import missing signatures * improved editor (print, spell check, ...) * Manage photo id's * Revocation certificates (print, save) * Change dialogs to KBaseDialog for ui consistency * Implement the missing key editing commands in the GUI (adduid, deluid,..) * When encrypting a folder, give a choice of compression scheme (zip, tar,...) KHexEdit2 * NEW IN KDE: A hex edit widget library Friedrich W. H. Kossebau * move the lib of the new KHexEdit2 widget from kdenonbeta over to kdeutils/khexedit/lib Friedrich W. H. Kossebau * implement interfaces for the KBytesEdit widget part Friedrich W. H. Kossebau
92 lines
2.6 KiB
Text
92 lines
2.6 KiB
Text
$NetBSD: patch-an,v 1.4 2004/02/04 20:38:00 markd Exp $
|
|
|
|
--- klaptopdaemon/portable.cpp.orig 2003-11-30 22:50:47.000000000 +1300
|
|
+++ klaptopdaemon/portable.cpp
|
|
@@ -2414,10 +2414,14 @@ laptop_portable::software_suspend_set_ma
|
|
#include <sys/ioctl.h>
|
|
#include <sys/stat.h>
|
|
#include <machine/apmvar.h>
|
|
-#include <iostream.h>
|
|
+#include <iostream>
|
|
+#include <qpushbutton.h>
|
|
+#include <qobject.h>
|
|
+#include <kactivelabel.h>
|
|
+#include <kprocess.h>
|
|
|
|
//
|
|
-// klaptopdeamon interface to NetBSD 1.5 apm.
|
|
+// Klaptopdeamon interface to NetBSD 1.5 apm.
|
|
// Scott Presnell, srp@zgi.com, srp@tworoads.net
|
|
// Fri Jun 29 17:21:25 PDT 2001
|
|
// Tested on Dell I4K running NetBSD 1.5R
|
|
@@ -2439,6 +2443,7 @@ laptop_portable::has_power_management()
|
|
}
|
|
|
|
struct apm_power_info info;
|
|
+ memset(&info, 0, sizeof(info));
|
|
ret=ioctl(fd, APM_IOC_GETPOWER, &info);
|
|
::close(fd);
|
|
|
|
@@ -2466,6 +2471,7 @@ int laptop_portable::has_battery_time()
|
|
return 0;
|
|
|
|
struct apm_power_info info;
|
|
+ memset(&info, 0, sizeof(info));
|
|
ret=ioctl(fd, APM_IOC_GETPOWER, &info);
|
|
::close(fd);
|
|
|
|
@@ -2639,6 +2645,15 @@ laptop_portable::apm_set_mask(bool , boo
|
|
|
|
|
|
//
|
|
+// adds extra widgets to the battery panel
|
|
+//
|
|
+void
|
|
+laptop_portable::extra_config(QWidget *parent, KConfig *config, QVBoxLayout *layout)
|
|
+{
|
|
+}
|
|
+
|
|
+
|
|
+//
|
|
// return current battery state
|
|
//
|
|
struct power_result laptop_portable::poll_battery_state()
|
|
@@ -2652,6 +2667,7 @@ struct power_result laptop_portable::pol
|
|
goto bad;
|
|
|
|
struct apm_power_info info;
|
|
+ memset(&info, 0, sizeof(info));
|
|
ret=ioctl(fd, APM_IOC_GETPOWER, &info);
|
|
::close(fd);
|
|
|
|
@@ -2714,7 +2730,16 @@ laptop_portable::get_brightness()
|
|
}
|
|
|
|
bool
|
|
-laptop_portable::get_system_throttling(bool, int ¤t, QStringList &s) // do something to help get system throttling data from places like ACPI
|
|
+laptop_portable::get_system_performance(bool, int ¤t, QStringList &s, bool *&) // do something to help get system profiles from places like ACPI
|
|
+{
|
|
+ // INSERT HERE
|
|
+ current = 0;
|
|
+ s.clear();
|
|
+ return(0); // if no profiles are available
|
|
+}
|
|
+
|
|
+bool
|
|
+laptop_portable::get_system_throttling(bool, int ¤t, QStringList &s, bool *&) // do something to help get system throttling data from places like ACPI
|
|
{
|
|
// INSERT HERE
|
|
current = 0;
|
|
@@ -2772,6 +2797,12 @@ laptop_portable::get_battery_status(int
|
|
values.append(s);
|
|
}
|
|
|
|
+void
|
|
+laptop_portable::software_suspend_set_mask(bool hibernate)
|
|
+{
|
|
+ // software_suspend_is_preferred = hibernate;
|
|
+}
|
|
+
|
|
#else
|
|
|
|
/*
|