Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kde backgroung slide show eating memory
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
esperto
Apprentice
Apprentice


Joined: 27 Dec 2004
Posts: 158
Location: Brazil

PostPosted: Tue Jan 09, 2007 12:03 am    Post subject: kde backgroung slide show eating memory Reply with quote

After a few hours all my memory is consumed, after some tests I discovered that it was caused by the slide show background that I use with KDE, anyone notice that bug too? is there a solution?
_________________
nasci pelado, careca e sem dente, o que vier é lucro
Back to top
View user's profile Send private message
esperto
Apprentice
Apprentice


Joined: 27 Dec 2004
Posts: 158
Location: Brazil

PostPosted: Sat Jan 13, 2007 3:57 pm    Post subject: Reply with quote

*bump*
_________________
nasci pelado, careca e sem dente, o que vier é lucro
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Sat Jan 13, 2007 4:42 pm    Post subject: Reply with quote

I guess the number of people using this feature is rather low. Have a look bugs.kde.org and file a bug maybe. Solution is simple: Don't use this feature.

edit: According to this dead old bug it may be a longstanding issue.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
esperto
Apprentice
Apprentice


Joined: 27 Dec 2004
Posts: 158
Location: Brazil

PostPosted: Mon Jan 15, 2007 11:07 pm    Post subject: Reply with quote

I did that, after a long period using this feature (really good in my opinion) I stopped using it, it just make me sad because I have a lot, I mean a lot, of wallpapers and cannot change it automatically anymore...

thanks for your help :wink:
_________________
nasci pelado, careca e sem dente, o que vier é lucro
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Jan 16, 2007 2:10 am    Post subject: Reply with quote

I don't think that that is a feature that anyone will miss. If you want, you can still use a bash script and feh or any other app to set it. A quick example (there might something wrong, this is not tested, but should work [tm] ):

Code:

#!/bin/bash
# Reads a given directory and set a random
# wallpaper using the images on that dir.

PARAM=$1

if [[ -z "${PARAM}" ]]
then
  echo No parameters given. Using default path:
  echo "[ * ]" ${HOME}/wallpapers/
  DIR="${HOME}/wallpapers"
  if [[ -d "${DIR}" ]]
  then
    echo Wallpapers directory found, using it.
    echo
  else
    echo Default directory not found, exiting.
    echo
    exit 1
  fi
else
  if [[ -d "${PARAM}" ]]
  then
    echo Parameter given and directory found. Using it:
    echo "[ * ]" "${PARAM}"
    DIR="${PARAM}"
  else
    echo The given parameter is not a directory. Using default path:
    echo "[ * ]" "${HOME}/wallpapers"
    DIR="${HOME}/wallpapers"
    if [[ -d "${DIR}" ]]
    then
      echo Wallpapers directory found, using it.
      echo
    else
      echo Default directory not found, exiting.
      echo
      exit 1
    fi
  fi
fi

while(true)
do
  files=$(ls ${DIR})
  file_matrix=($files)
  num_files=${#file_matrix[*]}
  feh --bg-scale "${DIR}/${file_matrix[$((RANDOM%num_files))]}"
  sleep 10m
done

exit 0


The while loop is the one that actually does something. By default the script looks into ~/wallpapers/, you can either put the pictures there, make a link, change the script for any other path, or specify the path as an argument, like random_wallpaper.sh /usr/share/pixmaps or whatever is your favourite place. Just make sure you have feh installed, or change feh for your favourite one in the while loop. Then save the script, chmod u+x it and put it into the ~/.kde/Autostart folder. You can adjust the time in the line that starts with sleep.

I know the script could be better, I can try to polish it a bit if you are interested and cannot do yourself. It was just a quick hack. For example, if feh fails to set the wallpapers it will just wait to the next loop, that could be sorted easily but I don't have the time right now.
Back to top
View user's profile Send private message
sertsa
n00b
n00b


Joined: 21 May 2002
Posts: 49
Location: High Desert

PostPosted: Tue Jan 16, 2007 6:13 am    Post subject: Reply with quote

Hmm,

Been using that feature for a long time here and have not noticed any problems. It goes for a week or more at a time, which doesn't seem to jibe with you having a problem in a few hours.

How did you determine the culprit.
Back to top
View user's profile Send private message
esperto
Apprentice
Apprentice


Joined: 27 Dec 2004
Posts: 158
Location: Brazil

PostPosted: Wed Jan 17, 2007 12:40 am    Post subject: Reply with quote

I just stop using an app per time that I always use, like amarok, kopete, etc. and then stopped features from kde, when I stop using the slideshow, the memory stand still, after started it again the problem came back, I tested it a few times and the results were the same... maybe is some parameter that I use with emerge, this problem just happen on gentoo and probably started after my last reinstallation a few months ago (I'm not absolutely sure)...
_________________
nasci pelado, careca e sem dente, o que vier é lucro
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum