You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, July 5th 2007, 10:58am

Problems with programm 'history'-function [Workaround]

Hi,
I have a little problem with KDE. First, I will explain my setup. My workstation runs KDE and mounts a share via samba (cifs). The share is located on a server in my LAN. This server has an USB-drive which is shared over the samba-share. The USB-drive spins down after a defined time of inactivity.
Now the problem: Everytime I open a textfile in kate, kedit or I open a movie-file in kaffeine which is located on my workstations internal drive my whole systems hangs because the program (kate, kaffeine and so on) accesses some old files (history) on my "USB-drive-share". The disks wakes up, which takes a few secs, and then my system is usable again. I don't have a big problem with the system hanging while waiting for data form the USB-drive, but I have a problem with all my KDE-applications trying to read something from files which are somewhere in a history-list. Can I disable this "feature"? Is this a bug? I guess it is for my setup ;)

I have already posted this in the gentoo forums: https://forums.gentoo.org/viewtopic-t-568347-highlight-.html

My KDE-version is 3.5.7.

Thank you for your help.

This post has been edited 1 times, last edit by "ranger" (Aug 15th 2007, 11:28pm)


2

Wednesday, August 15th 2007, 10:35pm

I don't know a switch in KDE but you may prevent your USB-Drive to spin down with the following on your Samba-server as root:

hdparm -S 0 /dev/[USBDevice] ([USBDevice] means your USB-Disk)

I recommend reading the man-page of hdparm, too, because of some dangerous things with other options of hdparm
I don't know if it was part of your intent.
Debian Linux, mix of stable, testing and unstable; KDE with Compiz Fusion >=0.52 (git)

3

Wednesday, August 15th 2007, 11:27pm

I want to prevent that my USB-disk spins up if I do not read data from it. Kaffeine etc checks all files in the [Recent Files] sections in ~/.kde/share/config/kaffeinerc. I found no way to disable this. So I just cleared the entries and made the file read-only. So right now kaffeine prompts at startup that the config-file is read-only. That is fine for me since iI suspend my machine and kaffeine starts at login-time. So I get this message only once. Bad workaround... But.. works for me ;) I seldom have files in my kate etc recently-used-list which are located on my external drive, so the problem occurs here rarely.

Thanks anyway.

P.S. An option for the length of recently-used files would be nice. Including the length of zero, of course ;)

4

Thursday, August 16th 2007, 1:16pm

Maybe posting your desire to the developers? ;)
the options window doesn't have many leverages to set up kaffeine

Another possibility is to have a template kaffeinerc. Everytime you log in the template is copied to ~/.kde/share/config/ before kaffeine is started. You can make a script which does the copying an afterwards starting kaffeine. So the annoying pop up window doesn't appear because the kaffeinerc doesn't have to be read only with this method
Debian Linux, mix of stable, testing and unstable; KDE with Compiz Fusion >=0.52 (git)

This post has been edited 1 times, last edit by "mdcg2004" (Aug 16th 2007, 1:23pm)