VectorLinux
November 22, 2014, 07:17:43 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2]
  Print  
Author Topic: threshold where HAL's performance hit is noticeable?  (Read 2753 times)
never_stop_learning
Vectorite
***
Posts: 263


WWW
« Reply #15 on: April 10, 2010, 04:23:02 pm »

Posting from my IBM X22 (PIIIm, 800mhz, 640mb RAM).

Tried switching from HAL to VL-Hot and back again. Don't see much, if any, change in speed.

I loaded VL 6.0 Light on an IBM 570 (PII, 300mhz, 320mb RAM) and found that VL-Hot seemed to be faster on that machine.
Logged

Laptop: IBM X60s (Centrino/Duo, 2gb ram, 80gb hd) VL 6.0 Std
Netbook: HP Mini (Intel Atom 1ghz, 2gb ram, 16gb SSD + 8gb flash ) VL 6.0 Std
Desktop: Dell Dimension 5150 (P4 3ghz, 2gb ram, 80gb hd) VL 6.0 Std
Wife's Desktop: Gateway (P4 2ghz, 1gb ram, 80gb hd) VL 6.0 Std
nightflier
Administrator
Vectorian
*****
Posts: 4029



« Reply #16 on: April 14, 2010, 10:10:47 am »

I made some changes to the explorer_cd script. It is set up for my own KDE3 desktop. You can easily specify which programs to use by editing the variables FILEMAN, PLAYCD, PLAYDVD and BURNDISC. Copy the code below and paste it into /usr/bin/explorer_cd (as root, and you should make a backup of the original script).  You do need zenity and gtkdialog installed. Run the script from a terminal so you can see any error messages.
Code:
#!/bin/sh
# Mount and view device
# License : GNU GPL
# (c) Eko M. Budi, 2004
# (c) Vector Linux, 2004
# Modified by Nightflier for Vector Linux 6.0

# Specify programs to use
FILEMAN="konqueror"
# note that some file managers, like pcmanfm, will not work
# as they don't stop the script when mounting, causing an immediate unmount
PLAYCD="xmms /mnt/cdrom"
PLAYDVD="xine -D -f -g dvd:/"
BURNDISC="k3b"

# Display options menu
export MAIN_DIALOG='
<window title="CD/DVD" icon-name="menu-Reload.png">
 <vbox>
  <hbox>
    <button>
      <label>"  Data Disc  "</label>
      <input file>/usr/share/icons/ROX-nuvola/filesystems/folder_blue.png</input>
      <action>echo DATA > /tmp/cd-dvd-choice</action>
      <action>killall gtkdialog</action>
    </button>
  </hbox>
  <hbox>
    <button>
      <label>"  Audio CD  "</label>
      <input file>/usr/share/icons/ROX-nuvola/apps/kscd.png</input>
      <action>echo AUDIO > /tmp/cd-dvd-choice</action>
      <action>killall gtkdialog</action>
    </button>
  </hbox>
  <hbox>
    <button>
      <label>" Video DVD "</label>
      <input file>/usr/share/icons/ROX-nuvola/apps/xine.png</input>
      <action>echo VIDEO > /tmp/cd-dvd-choice</action>
      <action>killall gtkdialog</action>
    </button>
  </hbox>
  <hbox>
    <button>
      <label>"     Burn       "</label>
      <input file>/usr/share/icons/ROX-nuvola/devices/cdwriter_mount.png</input>
      <action>echo BURN > /tmp/cd-dvd-choice</action>
      <action>killall gtkdialog</action>
    </button>
  </hbox>
  <hbox>
   <button cancel></button>
  </hbox>
 </vbox>
</window>
'

gtkdialog --program=MAIN_DIALOG

# what does user want to do?
choice=$(cat /tmp/cd-dvd-choice)
rm /tmp/cd-dvd-choice

# mount data disc and explore in file manager
if [ "$choice" = "DATA" ];then
for i in 5 4 3 2 1; do
DEVICES="$*"
[ -z "$DEVICES" ] && DEVICES="/dev/cdwriter /dev/dvd /dev/cdrom $(/sbin/probedisk |grep "|cdrom|"|cut -d "|" -f1)"

 for DEV in $DEVICES; do
  # Find entry in /etc/fstab
  echo Trying $DEV ...
  LINE=`grep -e "^\s*$DEV" /etc/fstab`
  if [ $? = 0 ]; then

    # Get the mount point
    MNT=`echo $LINE | cut -f2 -d ' '`

    # Test if mount point has being mounted
    df | grep "$MNT" > /dev/null
    if [ $? = 0 ]; then
       echo "$MNT has being mounted"
       DEV=""
    else
       echo "Going to mount it at $MNT"
       if ! mount $MNT; then
         continue;
       fi
       # Give time to settle
       sleep 3
    fi

    # explore it
# if [ -e /usr/bin/xfe ];then xfe $MNT;else xterm -e mc $MNT;fi
if [ ! -z $(which $FILEMAN) ];then $FILEMAN $MNT;else xterm -e mc $MNT;fi

    # unmount if necessary
    if [ "$DEV" ]; then
       umount $MNT
       if [ ! $? = 0 ]; then
          echo "WARNING" "Could not unmount $DEV."   
       fi
    fi
    exit 0
  fi
 done
 echo "Trying again.. ($i)"
 sleep 5
done
# If it goes this far, there is something amiss
zenity --error --title "Error" --text " Possible causes: \n - No disc in drive \n - Drive not ready \n - No drive found"
exit 1
fi

# play audio CD
if [ "$choice" == "AUDIO" ];then
if [ "$(wodim -toc | grep "track:" -o)" ];then
#    xmms /mnt/cdrom &
    $PLAYCD &
    exit 0
    else
      zenity --error --title "Error" --text " No audio CD found"
    fi
fi

# play video DVD
if [ "$choice" ==  "VIDEO" ];then
#  xine -D -f -g dvd:/ &
  $PLAYDVD &
  exit 0
fi

# burn (re)writable CD
if [ "$choice" == "BURN" ];then
  $BURNDISC &
  exit 0
fi
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!