This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request freebsd#14 from HenryHu/kde5-import
only remove part of powerdevilupowerbackend.cpp I think it would still be great if we implemented some proper backend =)
- Loading branch information
Showing
2 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
11 changes: 4 additions & 7 deletions
11
sysutils/plasma5-powerdevil/files/patch-daemon_backends_CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_powerdevilupowerbackend.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- daemon/backends/upower/powerdevilupowerbackend.cpp.orig 2017-12-10 06:14:30 UTC | ||
+++ daemon/backends/upower/powerdevilupowerbackend.cpp | ||
@@ -41,7 +41,7 @@ | ||
#include "ddcutilbrightness.h" | ||
#include "upowersuspendjob.h" | ||
#include "login1suspendjob.h" | ||
-#include "udevqt.h" | ||
+//#include "udevqt.h" | ||
|
||
#define HELPER_ID "org.kde.powerdevil.backlighthelper" | ||
|
||
@@ -200,8 +200,10 @@ void PowerDevilUPowerBackend::init() | ||
|
||
m_isLedBrightnessControl = m_syspath.contains(QLatin1String("/leds/")); | ||
if (!m_isLedBrightnessControl) { | ||
+ /* | ||
UdevQt::Client *client = new UdevQt::Client(QStringList("backlight"), this); | ||
connect(client, SIGNAL(deviceChanged(UdevQt::Device)), SLOT(onDeviceChanged(UdevQt::Device))); | ||
+ */ | ||
} | ||
|
||
Q_EMIT brightnessSupportQueried(m_brightnessMax > 0); | ||
@@ -358,6 +360,7 @@ void PowerDevilUPowerBackend::initWithBr | ||
|
||
void PowerDevilUPowerBackend::onDeviceChanged(const UdevQt::Device &device) | ||
{ | ||
+ /* | ||
qCDebug(POWERDEVIL) << "Udev device changed" << m_syspath << device.sysfsPath(); | ||
if (device.sysfsPath() != m_syspath) { | ||
return; | ||
@@ -373,6 +376,7 @@ void PowerDevilUPowerBackend::onDeviceCh | ||
m_cachedBrightnessMap[Screen] = newBrightness; | ||
onBrightnessChanged(Screen, newBrightness, maxBrightness); | ||
} | ||
+ */ | ||
} | ||
|
||
int PowerDevilUPowerBackend::brightnessKeyPressed(PowerDevil::BrightnessLogic::BrightnessKeyType type, BrightnessControlType controlType) |