Quirky fixes

There were some absolute symlinks that cause trouble when building the live-CD in Woof, for example /usr/lib/xorg is a symlink to /usr/X11R7/lib/xorg. I have changed these to relative, in the 'zzt2_fixup_hack' PET package.

I have added a menu entry (in Setup menu) for the 'nvidia-settings' GUI setup tool, in my full Nvidia PET package.


Posted on 1 May 2010, 10:13


Comments:

Posted on 1 May 2010, 12:23 by bigpup
What about ATI cards?
Anything about ATI drivers?


Posted on 1 May 2010, 13:35 by BarryK
Re ATI
The Xorg drivers are there, the latest, they should work.



Posted on 1 May 2010, 21:05 by bigpup
ATI-settings GUI setup tool
What about an ATI-settings GUI setup tool?
ATI cards have settings too!


Posted on 2 May 2010, 4:06 by aarf
syminks
the problem that i have detailed in the q21 bug reports occurs with both absolute and relative symlinks


Posted on 3 May 2010, 6:30 by technosaurus
partview speedup
http://www.murga-linux.com/puppy/viewtopic.php?p=415135

I have posted a modification to the partview script that generates xpm images using ash/bash instead of gif images using ppmrough... ppmtogif

I have my unmodified generic version of the genhbar (& genvbar) functions that will generate similar images of varying sizes and colors based on input for batter monitor etc...

Here's the full code for genhbar
#!/bin/ash

FILENAME=barimage
FGCOLOR=\#000
BGCOLOR=None
PERCENT=50
WIDTH=100
HEIGHT=24
BARSTRING=""
q=0 #should have used for loops
y=0 #not while loops - oops
#get values from input
for x in $@; do
case $x in
width*)
WIDTH=`echo $x |cut -d = -f 2`
;;
height*)
HEIGHT=`echo $x |cut -d = -f 2`
;;
fgcolor*)
FGCOLOR=`echo $x |cut -d = -f 2`
[ "$FGCOLOR" != "None" ] && FGCOLOR=\#$FGCOLOR
;;
bgcolor*)
BGCOLOR=`echo $x |cut -d = -f 2`
[ "$BGCOLOR" != "None" ] && BGCOLOR=\#$BGCOLOR
;;
name*)
FILENAME=`echo $x |cut -d = -f 2`
;;
*%)
PERCENT=`echo $x |cut -d % -f 1`
;;
*)
echo "usage "$0" XX% name=filename fgcolor=XXX bgcolor=XXX height=XXX width=XXX
colors can be 3 or 6 digit hexadecimal or None" && exit
;;
esac
done


#write header to file
echo '/* XPM */' >${FILENAME}.xpm
echo 'static char *'$FILENAME'_xpm[] = {' >>${FILENAME}.xpm
echo '"'$WIDTH $HEIGHT '2 1",' >>${FILENAME}.xpm
echo '"0 c '$BGCOLOR'",' >>${FILENAME}.xpm
echo '"1 c '$FGCOLOR'",' >>${FILENAME}.xpm

#generate one line of the image
BARMAX=$(($WIDTH*$PERCENT/100))
while [ "$q" -lt $BARMAX ]; do
q=$(($q + 1))
BARSTRING=${BARSTRING}1
done
while [ "$q" -le $WIDTH ]; do
BARSTRING=${BARSTRING}0
q=$(($q + 1))
done
#write a line for each pixel of height
while [ "$y" -le $HEIGHT ]; do
echo '"'$BARSTRING'"' >>${FILENAME}.xpm
y=$(($y + 1))
done

echo '};' >>${FILENAME}.xpm
#defaultimageeditor ${FILENAME}.xpm



Posted on 3 May 2010, 8:35 by BarryK
Re Partview
The latest Quirky has a Partview created by Ecube, which is a Perl script and has some other way of creating a bar graph.

That's great what you've done, on-the-fly xpm bar graph, useful for future consideration.