Registered Member
|
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 ? |
Registered Member
|
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.
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:
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. |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]