Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 295600 | Differences between
and this patch

Collapse All | Expand All

(-)trunk/KDE/kdebase/workspace/solid/hal/halpower.cpp (-1 / +5 lines)
Lines 393-399 Link Here
393
    if(m_halManager.call("FindDeviceByCapability", "keyboard_backlight").arguments().at(0).toStringList().contains(device))
393
    if(m_halManager.call("FindDeviceByCapability", "keyboard_backlight").arguments().at(0).toStringList().contains(device))
394
    {
394
    {
395
        QDBusInterface deviceInterface("org.freedesktop.Hal", device, "org.freedesktop.Hal.Device.KeyboardBacklight", QDBusConnection::systemBus()); //TODO - I do not have a backlight enabled keyboard, so I'm guessing a bit here. Could someone please check this.
395
        QDBusInterface deviceInterface("org.freedesktop.Hal", device, "org.freedesktop.Hal.Device.KeyboardBacklight", QDBusConnection::systemBus()); //TODO - I do not have a backlight enabled keyboard, so I'm guessing a bit here. Could someone please check this.
396
        brightness = deviceInterface.call("GetBrightness").arguments().at(0).toDouble();
396
397
        QDBusMessage getBrightnessDBusMessage = deviceInterface.call("GetBrightness");
398
        if(!deviceInterface.lastError().isValid())
399
            brightness = getBrightnessDBusMessage.arguments().at(0).toDouble();
400
397
        if(deviceInterface.lastError().isValid())
401
        if(deviceInterface.lastError().isValid())
398
        {
402
        {
399
            return 0;
403
            return 0;

Return to bug 295600