Nightmode is a kwin plugin that makes the entire screen darker. The reason behind this for when you are using the laptop at night, either outside or in bed - and find that even on the darkest screen backlight level the screen is way too bright.

The plugin can be turned on or off by a simple key combination, and the amount of dimming can be configured.

Does kwineffects.h no longer exist?

I get compiling breaking saying that kwineffects.h can't be found. In previous versions of Kubuntu this was in kdebase-workspace-dev. This is now replaced in 11.10 by kde-workspace-dev, but kwineffects.h doesn't seem to exist in that file. Helpfully apt-file no longer works either, so I have no idea how to get past this. Any ideas?

Re: Re: Can't compile since KDE-4.8

Since upgrading from Kubuntu 11.04 to 11.10, my Night Mode just stopped doing anything at all. I grabbed your new code above, recompiled and installed without a problem, but I still don't see any effect. I have darkness turned way down and I've tried changing the keyboard shortcut. No dice.

I am getting a "The following plugins can't be activated: Darken screen for night viewing" popup. This is odd as I've used Nightmode on Kubuntu+FGLRX on this machine before.

Can I do anything to get you more useful information? Night mode is such a crucial plugin to me. I still don't understand how the explode plugin is included by default but not this...

Re: Re: Can't compile since KDE-4.8

Since upgrading from Kubuntu 11.04 to 11.10, my Night Mode just stopped doing anything at all. I grabbed your new code above, recompiled and installed without a problem, but I still don't see any effect. I have darkness turned way down and I've tried changing the keyboard shortcut. No dice.

I am getting a "The following plugins can't be activated: Darken screen for night viewing" popup. This is odd as I've used Nightmode on Kubuntu+FGLRX on this machine before.

Can I do anything to get you more useful information? Night mode is such a crucial plugin to me. I still don't understand how the explode plugin is included by default but not this...

Using the version from:
git clone git://anongit.kde.org/scratch/davidedmundson/nightmode

Just

It's one of the first things I install each time I reinstall my distro(s).

Any chance the darkest setting could be made darker? Ideally the slider would go from 5% (yes, barely visible) brightness to 95%. I don't know the numbers, but right now it looks like it goes from about 25% to 90%

I tried to poke around in the code and find it myself, but having the coding experience of a walrus, it generally fell down in a blubbery heap.

Anyway, thanks for creating this must have, keeps-my-kids-asleep-and-my-spouse-happy plugin. It rocks! :D

Re: So beautiful... but broken again for KDE 4.10

My programming knowledge covers only M$ Windows systems, but I've been using Ubuntu 12.04 and Kubuntu KDE on my home system over the last year, and I find this plugin really useful. I don't know the KDE API, but after examining the header files, it seems that now the brightness member variable, which belongs to the class WindowPaintData can change value only if you use a member function. To solve this problem, the line 77 in source file nightmode.cpp :

data.brightness *= (m_brightness / 100.0);

should be changed to:

data.setBrightness(data.brightness() * (m_brightness / 100.0));

and the plugin will compile and work properly with KDE 4.10, but as I don't have the necessary qualifications, someone who knows the platform must verify my assumptions.

How do you like Plasma 5? The best KDE Desktop ever. Definitely a nice improvement. Not decided yet. Haven't tried it yet. I do not like some of the changes. KDE is taking the wrong way. I am still sticking with KDE 3.5. I have no opinion, but wanted to vote anyway.

Copyright 2003-2015 KDE-Apps.org Team All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.All contributors are responsible for the lawfulness of their uploads.KDE and K Desktop Environment are trademarks of KDE e.V.