ports/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_powerdevilupowerbackend.cpp
Tobias C. Berner ef944cd353 Import the KDE Plasma5 ports
This is an import of the Plasma5 ports that we have had in the development
repository for quite some time now.

Please note:
 * Plasma5 cannot be installed at the same time as KDE SC4.
 * Qt5 assumes /etc/localtime to be a symlink to a tz file, not a regular file.
 * To start plasma5, it is recommended to use something like
       exec ck-launch-session startkde
 * Powermanagement and such is not working :-)

I would like to thank all the people that have helped test it in the past years.

Reviewed by:	adridg
Differential Revision:	https://reviews.freebsd.org/D15096
2018-04-27 20:29:36 +00:00

38 lines
1.7 KiB
C++

--- 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)