mirror of
https://abf.rosa.ru/djam/kdebase4-workspace.git
synced 2025-02-24 10:12:50 +00:00
39 lines
2.2 KiB
Diff
39 lines
2.2 KiB
Diff
diff -urN kde-workspace-4.11.20/powerdevil/daemon/powerdevilprofilegenerator.cpp kde-workspace-4.11.20-patched/powerdevil/daemon/powerdevilprofilegenerator.cpp
|
|
--- kde-workspace-4.11.20/powerdevil/daemon/powerdevilprofilegenerator.cpp 2015-05-29 11:30:26.000000000 +1000
|
|
+++ kde-workspace-4.11.20-patched/powerdevil/daemon/powerdevilprofilegenerator.cpp 2015-12-30 20:50:04.843149093 +1000
|
|
@@ -89,7 +89,7 @@
|
|
// Show the dialog when power button is pressed and suspend on suspend button pressed and lid closed (if supported)
|
|
{
|
|
KConfigGroup handleButtonEvents(&acProfile, "HandleButtonEvents");
|
|
- handleButtonEvents.writeEntry< uint >("powerButtonAction", LogoutDialogMode);
|
|
+ handleButtonEvents.writeEntry< uint >("powerButtonAction", ToRamMode);
|
|
if (toRam) {
|
|
handleButtonEvents.writeEntry< uint >("lidAction", ToRamMode);
|
|
} else {
|
|
@@ -100,7 +100,7 @@
|
|
// And we also want to turn off the screen after another while
|
|
{
|
|
KConfigGroup dpmsControl(&acProfile, "DPMSControl");
|
|
- dpmsControl.writeEntry< uint >("idleTime", 600);
|
|
+ dpmsControl.writeEntry< uint >("idleTime", 5400);
|
|
}
|
|
|
|
// Easy part done. Now, any batteries?
|
|
@@ -138,7 +138,7 @@
|
|
// Show the dialog when power button is pressed and suspend on suspend button pressed and lid closed (if supported)
|
|
{
|
|
KConfigGroup handleButtonEvents(&batteryProfile, "HandleButtonEvents");
|
|
- handleButtonEvents.writeEntry< uint >("powerButtonAction", LogoutDialogMode);
|
|
+ handleButtonEvents.writeEntry< uint >("powerButtonAction", ToRamMode);
|
|
if (toRam) {
|
|
handleButtonEvents.writeEntry< uint >("lidAction", ToRamMode);
|
|
} else {
|
|
@@ -174,7 +174,7 @@
|
|
// Show the dialog when power button is pressed and suspend on suspend button pressed and lid closed (if supported)
|
|
{
|
|
KConfigGroup handleButtonEvents(&lowBatteryProfile, "HandleButtonEvents");
|
|
- handleButtonEvents.writeEntry< uint >("powerButtonAction", LogoutDialogMode);
|
|
+ handleButtonEvents.writeEntry< uint >("powerButtonAction", ToRamMode);
|
|
if (toRam) {
|
|
handleButtonEvents.writeEntry< uint >("lidAction", ToRamMode);
|
|
} else {
|