Drive Icons All Bunched Up In The Corner

Using applications, configuring, problems
Message
Author
User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

Drive Icons All Bunched Up In The Corner

#1 Post by Ghost Dog »

Hi,

I'd like to know why on one of my computers (the one I remastered on) the drives are neatly iconified in a line, but on other computers (with different resolutions) the drives all show up in the corner on top of each other.

And is there a fix?

Thanx.
The Way of the Samurai

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#2 Post by R-S-H »

Hi Ghost Dog.

I don't know, what's the cause of this.

But puppy has the event manager which contains a tab called Desktop Icons. It has a check box down below in the gui, "Tick box to erase then redraw and realign existing icons". Activate this option, confirm with ok and restart X. The drive icons should be Ok then.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

did you try evenmanager in terminal

#3 Post by nilsonmorales »

eventmanager in terminal aling icons sections i dont remember when come at home i will see ok
cya

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#4 Post by Ghost Dog »

I started eventmanager in a terminal, checked "Tick box to erase then redraw and realign existing icons", saved, and restarted X. But the drive icons are still all bunched together like that. :cry:
The Way of the Samurai

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#5 Post by rjbrewer »

On my netbook, 1024x600 res., the drive icons would
overlap and were too low on screen.

Went to "etc/event manager."
Scrolled to bottom.
ICON-PLACE-EDGE GAP=64.
Changed 64 to 80.

Solved both problems.

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#6 Post by Karl Godt »

You can also try to adjust the pin_grid_step value in the rox filer pinboard options [ fine | medium | coarse ] .

[ pinboard_grid_step" $HOME/.config/rox.sourceforge.net/ROX-Filer/Options ]

When I first played with /sbin/pup_event_frontend_d , such stacking on one place appeared many times .
Even yesterday .
Cause was that i made a script to transform lots of strings like VALUE="`command`" to VALUE=`command` and at one place a * was translated as \* , causing the pup_event_frontend_d to grep wrong ( no ) values .

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#7 Post by nic007 »

Try to drag and drop the icons as close as possible to the positions you want and then use the allignment tools as mentioned in the above posts. Usually works for me. Better still - Adjust the grid step to fine before drag and dropping

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#8 Post by Ghost Dog »

So nobody knows why it does this, and nobody know any way to fix it other than "drag the icons where you want them"?
The Way of the Samurai

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#9 Post by Karl Godt »

pup_event_frontend_d has nifty but heavy code to grep the already placed icons in the PuppyPin file .
The problem is, that rox aligns the icons nearest possible to the grid step , which is 2=fine, 16=medium and 32=coarse ,
NOT by the values given to him by pup_event_frontend_d .
These different values show up in the Choices/ROX-Filer/PuppyPin file,
while pup_event_fronted_d still thinks, that the current place is not occupied .

I don't actually know how to sync these correctly or easily .
Have played with the code, but could not supersede shinobar's code .
BTW : 4.3 and 4.3.1 are different !
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#10 Post by Ghost Dog »

Maybe it's a timing issue, maybe PuppyPin is being overwritten?

In any case, I think it's the biggest thing making remasters look silly right now - all those drive icons sitting in a big pile on top of each other.
The Way of the Samurai

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

pup_event_frontend_d free_coord

#11 Post by Karl Godt »

I was thinking about it and I came to an idea, that works as first test :

Code: Select all

free_coord_simple(){
 DRIVE_NAME="$1"
 [ "$OLD_DRV_NAME" ] && LAST_PLACE=`grep -m1 -w "\\.pup_event/drive_${OLD_DRV_NAME}" /root/Choices/ROX-Filer/PuppyPin`
 [ "$LAST_PLACE" ] && { COORD_X=`echo "$LAST_PLACE" | cut -f2 -d'"'`; COORD_Y=`echo "$LAST_PLACE" | cut -f4 -d'"'`; }
 echo "'$OLD_DRV_NAME' $DRIVE_NAME
'$LAST_PLACE'
$COORD_X $COORD_Y"
 case $ICON_PLACE_ORIENTATION in #see /etc/eventmanager
  bottom)
   [ "$COORD_Y" ] || COORD_Y=`expr $SCRN_Y - $ICON_PLACE_EDGE_GAP` #default 64, see /etc/eventmanager
   COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*' $PIN_GRID_STEP`
   [ "$COORD_X" ] && COORD_X=$((COORD_X + ICON_PLACE_SPACING)) || COORD_X=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   [ "$COORD_X" -gt $MAX_X ] && { COORD_Y=$((COORD_Y - ICON_PLACE_SPACING)) ; COORD_X=$ICON_PLACE_START_GAP ; }
   echo COORD_X=$COORD_X COORD_Y=$COORD_Y #DEBUG
  ;;
  top)
   [ "$COORD_Y" ] || COORD_Y=$ICON_PLACE_EDGE_GAP
   COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*' $PIN_GRID_STEP`
   [ "$COORD_X" ] && COORD_X=$((COORD_X + ICON_PLACE_SPACING)) || COORD_X=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   [ "$COORD_X" -gt $MAX_X ] && { COORD_Y=$((COORD_Y + ICON_PLACE_SPACING)) ; COORD_X=$ICON_PLACE_START_GAP ; }
   echo COORD_X=$COORD_X COORD_Y=$COORD_Y #DEBUG
  ;;
  left)
   [ "$COORD_X" ] || COORD_X=$ICON_PLACE_EDGE_GAP #default 64, see /etc/eventmanager
   [ "$COORD_Y" ] && COORD_Y=$((COORD_Y + ICON_PLACE_SPACING)) || COORD_Y=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   COORD_Y=$((((COORD_Y+PIN_GRID_STEP2)/PIN_GRID_STEP)*PIN_GRID_STEP))
   [ "$COORD_Y" -gt $MAX_Y ] && { COORD_X=$((COORD_X + ICON_PLACE_SPACING)) ; COORD_Y=$ICON_PLACE_START_GAP ; }
   echo COORD_X=$COORD_X COORD_Y=$COORD_Y #DEBUG
  ;;
  right)
   [ "$COORD_X" ] || COORD_X=`expr $SCRN_X - $ICON_PLACE_EDGE_GAP` #default 64, see /etc/eventmanager
   [ "$COORD_Y" ] && COORD_Y=$((COORD_Y + ICON_PLACE_SPACING)) || COORD_Y=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*' $PIN_GRID_STEP`
   [ "$COORD_Y" -gt $MAX_Y ] && { COORD_X=$((COORD_X - ICON_PLACE_SPACING)) ; COORD_Y=$ICON_PLACE_START_GAP ; }
   echo COORD_X=$COORD_X COORD_Y=$COORD_Y #DEBUG
  ;;
   esac
OLD_DRV_NAME="$DRIVE_NAME"
}
It shouldn't be a timing problem cos I run on 2coresX2,6GHz for the time that ROX writes to PuppyPin and grep into it presents usable values .

OLD CODE THAT WOULD BE REPLACED :

Code: Select all

free_coord_normal(){
 #find a free place on desktop. v410 avoid exact overlapping icons...
 #091208 finetune placement, also any side of screen...
 #read the coords grid, code from shinobar...
 COORDSGRID=`grep -o -e ' x="[0-9]*" y="[0-9]*" ' /root/Choices/ROX-Filer/PuppyPin | sed 's/[0-9]"/"/g'`
 case $ICON_PLACE_ORIENTATION in #see /etc/eventmanager
  bottom)
   COORD_Y=`expr $SCRN_Y - $ICON_PLACE_EDGE_GAP` #default 64, see /etc/eventmanager
   COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*' $PIN_GRID_STEP`
   COORD_X=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   xyCNT=0 #precaution.
   while [ 1 ];do
    xgPATTERN=`echo -n "$xPATTERN" |  sed 's/[0-9]"/"/g'`
    [ "`echo "$COORDSGRID" | grep "$xgPATTERN"`" = "" ] && break
    COORD_X=`expr $COORD_X + $ICON_PLACE_SPACING`
    if [ $COORD_X -gt $MAX_X ];then #start next line up.
     xyCNT=`expr $xyCNT + 1`
     [ $xyCNT -gt 1 ] && break
     COORD_Y=`expr $COORD_Y - $ICON_PLACE_SPACING`
     COORD_X=$ICON_PLACE_START_GAP
    fi
    xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   done
  ;;
  top|left|right)
[ ... ]
  ;;
esac
}

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#12 Post by Ghost Dog »

Well, that sounds really promising. There's usually no icons where the drives show up anyway, and if this fixes Puppy's problem that would be really good.

I'll test it soon.
The Way of the Samurai

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#13 Post by Karl Godt »

And don't forget to adjust the call to the free_coord function in the
add_pinboard_func function
as

Code: Select all

 [ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" != "" ] && return #precaution.
 #free_coord
 free_coord_simple ${ONEDRVNAME}
 echo "<?xml version=\"1.0\"?>

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#14 Post by Ghost Dog »

Hey Karl, I don't seem to have a free_coord_normal section in my /sbin/pup_event_frontend_d.

I'm on Slacko 3.3.

Sorry I can't confirm if this works. Anybody else?
The Way of the Samurai

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#15 Post by npierce »

Hi Ghost Dog,

After booting your remaster on the computer where the icons get bunched up, what is the output of these commands?:

Code: Select all

grep drive /initrd/pup_ro2/root/Choices/ROX-Filer/PuppyPin
grep -E "IDSTRING|PUPPYSFS" /etc/DISTRO_SPECS

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#16 Post by Smithy »

+1 on a fix for this, It really lets Puppy down when you stick a stick in another computer and the icons are all bunched up!

Jasper

#17 Post by Jasper »

Hi,

I use desksetup-.0.4.pet from 01micko so that when I have
my icons as I want I cam easily save them and restore them
if necessary (which I have personally only needed after a
Puppy version number upgrade).

However, I haven't experienced the bunching problem, but
perhaps someone with the problem might try it.

My regards

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#18 Post by Ghost Dog »

Hi npierce,

It doesn't seem to just be on remasters, but also on standard Puppies, maybe just certain resolutions?

Karl Godt replied to the PM I sent him, saying:
"of course there is no free_coord_normal" ..

there are two or three free_coord functions and ash seems to pick the latest one south if something calls free_coord .

I would suggest to rename the free_coord 's to uniqe names like
free_coord_orig ,
free_coord_2 and
free_coord_normal

and put in my free_coord function with whatever uniqe name underneath the closing bracket of the latest free_coord function and call it with the name given .
I haven't gotten around to exploring this. But it really sounded like he had fixed the problem for a minute there...
The Way of the Samurai

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

Come on, you guys!

#19 Post by Ghost Dog »

Come on, you guys! This has the potential to benefit all Puppies!

If Karl is right (Karl, where did you go?), then the problem of drive icons all bunching together on top of each other (and making Puppy look bad) might be fixed.

Don't let this die, just because I'm not smart enough to understand the implementation. I never said I was smart, so you can't expect much from me. I just pointed out a problem that I would like to see fixed, and will help if I can.

Others have joined this thread adding their support for such a solution.

Karl, can you make a working version of /sbin/pup_event_frontend_d for us to play with? I would very much appreciate it, and I know some of the others here would, too.
The Way of the Samurai

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#20 Post by Karl Godt »

This is from wary-5.5 .

free command output is different from older Lupu Puppies.
path to /tmp/pup_event_icon_change_flag has changed.

EDIT > Fixed missing PIN_GRID_STEP, PIN_GRID_STEP2, MAX_X, MAX_Y
Attachments
pup_event_frontend_d-w5.5.gz
no comment since i had some severe
aufs whiteout problems installing that on slacko-5.3 non-pae
(10.6 KiB) Downloaded 200 times
Last edited by Karl Godt on Thu 23 May 2013, 17:05, edited 1 time in total.

Post Reply