Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Dec 2014, 13:41
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Drive Icons All Bunched Up In The Corner
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [47 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
Ghost Dog


Joined: 27 Jan 2012
Posts: 108

PostPosted: Tue 30 Apr 2013, 18:12    Post subject:  Drive Icons All Bunched Up In The Corner  

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
Back to top
View user's profile Send private message 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Tue 30 Apr 2013, 18:21    Post subject:  

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.

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 534
Location: El salvador

PostPosted: Tue 30 Apr 2013, 19:01    Post subject: did you try evenmanager in terminal  

eventmanager in terminal aling icons sections i dont remember when come at home i will see ok
cya
Back to top
View user's profile Send private message MSN Messenger 
Ghost Dog


Joined: 27 Jan 2012
Posts: 108

PostPosted: Tue 30 Apr 2013, 23:46    Post subject:  

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. Crying or Very sad
_________________
The Way of the Samurai
Back to top
View user's profile Send private message 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Wed 01 May 2013, 00:20    Post subject:  

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

Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Wed 01 May 2013, 11:31    Post subject:  

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 .
Back to top
View user's profile Send private message Visit poster's website 
nic007

Joined: 13 Nov 2011
Posts: 778

PostPosted: Wed 01 May 2013, 12:23    Post subject:  

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
Back to top
View user's profile Send private message 
Ghost Dog


Joined: 27 Jan 2012
Posts: 108

PostPosted: Wed 01 May 2013, 14:34    Post subject:  

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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Wed 01 May 2013, 16:28    Post subject:  

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 Razz
Back to top
View user's profile Send private message Visit poster's website 
Ghost Dog


Joined: 27 Jan 2012
Posts: 108

PostPosted: Wed 01 May 2013, 20:54    Post subject:  

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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Thu 02 May 2013, 08:07    Post subject:  pup_event_frontend_d free_coord
Subject description: simpler code DOWNSIDE:Places over existing non-drive-icons
 

I was thinking about it and I came to an idea, that works as first test :
Code:
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:

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
}
Back to top
View user's profile Send private message Visit poster's website 
Ghost Dog


Joined: 27 Jan 2012
Posts: 108

PostPosted: Fri 03 May 2013, 05:59    Post subject:  

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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Fri 03 May 2013, 06:31    Post subject:  

And don't forget to adjust the call to the free_coord function in the
add_pinboard_func function
as
Code:
 [ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" != "" ] && return #precaution.
 #free_coord
 free_coord_simple ${ONEDRVNAME}
 echo "<?xml version=\"1.0\"?>
Back to top
View user's profile Send private message Visit poster's website 
Ghost Dog


Joined: 27 Jan 2012
Posts: 108

PostPosted: Mon 06 May 2013, 04:47    Post subject:  

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
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Wed 08 May 2013, 13:33    Post subject:  

Hi Ghost Dog,

After booting your remaster on the computer where the icons get bunched up, what is the output of these commands?:
Code:
grep drive /initrd/pup_ro2/root/Choices/ROX-Filer/PuppyPin
grep -E "IDSTRING|PUPPYSFS" /etc/DISTRO_SPECS
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [47 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0872s ][ Queries: 12 (0.0058s) ][ GZIP on ]