This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Power management - configuration files

Tags: None
(comma "," separated)
troulala
Registered Member
Posts
1
Karma
0
Hi all,

i need your help to configure a LiveCD with Opensuse / KDE 4.

I need to deactivate the power management at the boot of the laptop : no sleep after 5 min, no stop of the hard drive...
The user who will start the laptop has no skill in in computer (i mean, less than me :) ).
I want to ask him to start the laptop, and the, the device to be always up and running and to never come in a sleep mode.

I have found that the Power Management interface modifies the file :
~/.kde4/share/config/powermanagementprofilesrc

On the Suse studio interface (https://susestudio.com), i have written a script that modifies this file at the boot of the laptop with the correct parameters.

The result is that it doesn't work.

Does anyone know which file i need to modify or what do i have to do to deactivate the power management at the start of the laptop please ?
wolfi323
Registered Member
Posts
1129
Karma
11
OS
troulala wrote:On the Suse studio interface (https://susestudio.com), i have written a script that modifies this file at the boot of the laptop with the correct parameters.

The result is that it doesn't work.

If a script is run during boot, it is probably run as root. Therefore ~/.kde4/ would point to /root/.kde4/ i.e. root's configuration, not the user's. Changing a file there has of course absolutely no effect on the user's configuration.

Try to specify the full path, i.e. /home/user/.kde4/share/config/powermanagementprofiles and don't forget to set the correct permissions so that the user can read the file.

Does anyone know which file i need to modify or what do i have to do to deactivate the power management at the start of the laptop please ?

powermangementprofilesrc should be the correct file to modify.

But KDE looks for config files in several places, not only ~/.kde4/share/config/. Run this to get a list:
Code: Select all
kde4-config --path config

On openSUSE this should be "/home/wolfi/.kde4/share/config/:/usr/share/kde4/config/:/etc/kde4/share/config/", i.e. you can put system-wide config files to /usr/share/kde4/config/ and /etc/kde4/share/config/.

IMHO it is nicer to put a file to /etc/kde4/share/config/ f.e. to change the defaults, than to modify random files in user's home directories.
And adding such a config file is easy to do with SUSE Studio, too.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]