Please support VectorLinux!

Author Topic: threshold where HAL's performance hit is noticeable?  (Read 3076 times)


  • Vectorite
  • ***
  • Posts: 263
    • CigarWeekly
Re: threshold where HAL's performance hit is noticeable?
« 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.
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


  • Administrator
  • Vectorian
  • *****
  • Posts: 4072
Re: threshold where HAL's performance hit is noticeable?
« 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: [Select]
# 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
# 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:/"

# Display options menu
export MAIN_DIALOG='
<window title="CD/DVD" icon-name="menu-Reload.png">
      <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>
      <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>
      <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>
      <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 cancel></button>

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
[ -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"
       echo "Going to mount it at $MNT"
       if ! mount $MNT; then
       # Give time to settle
       sleep 3

    # 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."   
    exit 0
 echo "Trying again.. ($i)"
 sleep 5
# 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

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

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

# burn (re)writable CD
if [ "$choice" == "BURN" ];then
  exit 0