Missing Documentation for kernel26/laptop_mode.txt

Since the kernel26 package is stripped of all documentation, I can't get the laptop_mode script for 2.6.7. Do you compile your own kernel? Could you post the laptop_mode.txt on this thread please?

How to conserve battery power using laptop-mode
Document Author: Bart Samwel (bart at samwel.tk)
Date created: January 2, 2004
Last modified: April 3, 2004
Introduction
Laptopmode is used to minimize the time that the hard disk needs to be spun up,
to conserve battery power on laptops. It has been reported to cause significant
power savings.
Contents
* Introduction
* The short story
* Caveats
* The details
* Tips & Tricks
* Control script
* ACPI integration
* Monitoring tool
The short story
To use laptop mode, you don't need to set any kernel configuration options
or anything. You simply need to run the laptop_mode control script (which
is included in this document) as follows:
# laptop_mode start
Then set your harddisk spindown time to a relatively low value with hdparm:
hdparm -S 4 /dev/hda
The value -S 4 means 20 seconds idle time before spindown. Your harddisk will
now only spin up when a disk cache miss occurs, or at least once every 10
minutes to write back any pending changes.
To stop laptop_mode, run "laptop_mode stop".
Caveats
* The downside of laptop mode is that you have a chance of losing up
  to 10 minutes of work. If you cannot afford this, don't use it! It's
  wise to turn OFF laptop mode when you're almost out of battery --
  although this will make the battery run out faster, at least you'll
  lose less work when it actually runs out. I'm still looking for someone
  to submit instructions on how to turn off laptop mode when battery is low,
  e.g., using ACPI events. I don't have a laptop myself, so if you do and
  you care to contribute such instructions, please do.
* Most desktop hard drives have a very limited lifetime measured in spindown
  cycles, typically about 50.000 times (it's usually listed on the spec sheet).
  Check your drive's rating, and don't wear down your drive's lifetime if you
  don't need to.
* If you mount some of your ext3/reiserfs filesystems with the -n option, then
  the control script will not be able to remount them correctly. You must set
  DO_REMOUNTS=0 in the control script, otherwise it will remount them with the
  wrong options -- or it will fail because it cannot write to /etc/mtab.
* If you have your filesystems listed as type "auto" in fstab, like I did, then
  the control script will not recognize them as filesystems that need remounting.
* It has been reported that some versions of the mutt mail client use file access
  times to determine whether a folder contains new mail. If you use mutt and
  experience this, you must disable the noatime remounting in the control script
  by setting DO_REMOUNT_NOATIME=0.
The details
Laptop-mode is controlled by the flag /proc/sys/vm/laptop_mode. This flag is
present for all kernels that have the laptop mode patch, regardless of any
configuration options. When the flag is set, any physical disk read operation
(that might have caused the hard disk to spin up) causes Linux to flush all dirty
blocks. The result of this is that after a disk has spun down, it will not be spun
up anymore to write dirty blocks, because those blocks had already been written
immediately after the most recent read operation.
To increase the effectiveness of the laptop_mode strategy, the laptop_mode
control script increases dirty_expire_centisecs and dirty_writeback_centisecs in
/proc/sys/vm to about 10 minutes (by default), which means that pages that are
dirtied are not forced to be written to disk as often. The control script also
changes the dirty background ratio, so that background writeback of dirty pages
is not done anymore. Combined with a higher commit value (also 10 minutes) for
ext3 or ReiserFS filesystems (also done automatically by the control script),
this results in concentration of disk activity in a small time interval which
occurs only once every 10 minutes, or whenever the disk is forced to spin up by
a cache miss. The disk can then be spun down in the periods of inactivity.
If you want to find out which process caused the disk to spin up, you can
gather information by setting the flag /proc/sys/vm/block_dump. When this flag
is set, Linux reports all disk read and write operations that take place, and
all block dirtyings done to files. This makes it possible to debug why a disk
needs to spin up, and to increase battery life even more. The output of
block_dump is written to the kernel output, and it can be retrieved using
"dmesg". When you use block_dump, you may want to turn off klogd, otherwise
the output of block_dump will be logged, causing disk activity that is not
normally there.
If 10 minutes is too much or too little downtime for you, you can configure
this downtime as follows. In the control script, set the MAX_AGE value to the
maximum number of seconds of disk downtime that you would like. You should
then set your filesystem's commit interval to the same value. The dirty ratio
is also configurable from the control script.
If you don't like the idea of the control script remounting your filesystems
for you, you can change DO_REMOUNTS to 0 in the script.
Thanks to Kiko Piris, the control script can be used to enable laptop mode on
both the Linux 2.4 and 2.6 series.
Tips & Tricks
* Bartek Kania reports getting up to 50 minutes of extra battery life (on top
  of his regular 3 to 3.5 hours) using very aggressive power management (hdparm
  -B1) and a spindown time of 5 seconds (hdparm -S1).
* You can spin down the disk while playing MP3, by setting the disk readahead
  to 8MB (hdparm -a 16384). Effectively, the disk will read a complete MP3 at
  once, and will then spin down while the MP3 is playing. (Thanks to Bartek
  Kania.)
* Drew Scott Daniels observed: "I don't know why, but when I decrease the number
  of colours that my display uses it consumes less battery power. I've seen
  this on powerbooks too. I hope that this is a piece of information that
  might be useful to the Laptop Mode patch or it's users."
* One thing which will cause disks to spin up is not-present application
  and dynamic library text pages.  The kernel will load program text off disk
  on-demand, so each time you invoke an application feature for the first
  time, the kernel needs to spin the disk up to go and fetch that part of the
  application.
  So it is useful to increase the disk readahead parameter greatly, so that
  the kernel will pull all of the executable's pages into memory on the first
  pagefault.
  The supplied script does this.
* In syslog.conf, you can prefix entries with a dash ``-'' to omit syncing the
  file after every logging. When you're using laptop-mode and your disk doesn't
  spin down, this is a likely culprit.
* Richard Atterer observed that laptop mode does not work well with noflushd
  (http://noflushd.sourceforge.net/), it seems that noflushd prevents laptop-mode
  from doing its thing.
Control script
Please note that this control script works for the Linux 2.4 and 2.6 series.
--------------------CONTROL SCRIPT BEGIN------------------------------------------
#!/bin/bash
# start or stop laptop_mode, best run by a power management daemon when
# ac gets connected/disconnected from a laptop
# install as /sbin/laptop_mode
# Contributors to this script:   Kiko Piris
#                 Bart Samwel
#                 Micha Feigin
#                 Andrew Morton
#                 Herve Eychenne
#                 Dax Kelson
# Original Linux 2.4 version by: Jens Axboe
# Age time, in seconds. should be put into a sysconfig file
MAX_AGE=600
# Read-ahead, in kilobytes
READAHEAD=4096
# Shall we remount journaled fs. with appropiate commit interval? (1=yes)
DO_REMOUNTS=1
# And shall we add the "noatime" option to that as well? (1=yes)
DO_REMOUNT_NOATIME=1
# Dirty synchronous ratio.  At this percentage of dirty pages the process which
# calls write() does its own writeback
DIRTY_RATIO=40
# Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
# exceeded, the kernel will wake pdflush which will then reduce the amount
# of dirty memory to dirty_background_ratio.  Set this nice and low, so once
# some writeout has commenced, we do a lot of it.
DIRTY_BACKGROUND_RATIO=5
# kernel default dirty buffer age
DEF_AGE=30
DEF_UPDATE=5
DEF_DIRTY_BACKGROUND_RATIO=10
DEF_DIRTY_RATIO=40
DEF_XFS_AGE_BUFFER=15
DEF_XFS_SYNC_INTERVAL=30
DEF_XFS_BUFD_INTERVAL=1
# This must be adjusted manually to the value of HZ in the running kernel
# on 2.4, until the XFS people change their 2.4 external interfaces to work in
# centisecs. This can be automated, but it's a work in progress that still needs
# some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for external
# interfaces, and that is currently always set to 100. So you don't need to
# change this on 2.6.
XFS_HZ=100
KLEVEL="$(uname -r |
           IFS='.' read a b c
           echo $a.$b
case "$KLEVEL" in
    "2.4"|"2.6")
        echo "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2
        exit 1
esac
if [ ! -e /proc/sys/vm/laptop_mode ] ; then
    echo "Kernel is not patched with laptop_mode patch." >&2
    exit 1
fi
if [ ! -w /proc/sys/vm/laptop_mode ] ; then
    echo "You do not have enough privileges to enable laptop_mode." >&2
    exit 1
fi
# Remove an option (the first parameter) of the form option=<number> from
# a mount options string (the rest of the parameters).
parse_mount_opts () {
    OPT="$1"
    shift
    echo ",$*," | sed       
     -e 's/,'"$OPT"'=[0-9]*,/,/g'   
     -e 's/,,*/,/g'           
     -e 's/^,//'           
     -e 's/,$//'
# Remove an option (the first parameter) without any arguments from
# a mount option string (the rest of the parameters).
parse_nonumber_mount_opts () {
    OPT="$1"
    shift
    echo ",$*," | sed       
     -e 's/,'"$OPT"',/,/g'       
     -e 's/,,*/,/g'           
     -e 's/^,//'           
     -e 's/,$//'
# Find out the state of a yes/no option (e.g. "atime"/"noatime") in
# fstab for a given filesystem, and use this state to replace the
# value of the option in another mount options string. The device
# is the first argument, the option name the second, and the default
# value the third. The remainder is the mount options string.
# Example:
# parse_yesno_opts_wfstab /dev/hda1 atime atime defaults,noatime
# If fstab contains, say, "rw" for this filesystem, then the result
# will be "defaults,atime".
parse_yesno_opts_wfstab () {
    L_DEV="$1"
    OPT="$2"
    DEF_OPT="$3"
    shift 3
    L_OPTS="$*"
    PARSEDOPTS1="$(parse_nonumber_mount_opts $OPT $L_OPTS)"
    PARSEDOPTS1="$(parse_nonumber_mount_opts no$OPT $PARSEDOPTS1)"
    # Watch for a default atime in fstab
    FSTAB_OPTS="$(awk '$1 == "'$L_DEV'" { print $4 }' /etc/fstab)"
    if echo "$FSTAB_OPTS" | grep "$OPT" > /dev/null ; then
        # option specified in fstab: extract the value and use it
        if echo "$FSTAB_OPTS" | grep "no$OPT" > /dev/null ; then
            echo "$PARSEDOPTS1,no$OPT"
        else
            # no$OPT not found -- so we must have $OPT.
            echo "$PARSEDOPTS1,$OPT"
        fi
    else
        # option not specified in fstab -- choose the default.
        echo "$PARSEDOPTS1,$DEF_OPT"
    fi
# Find out the state of a numbered option (e.g. "commit=NNN") in
# fstab for a given filesystem, and use this state to replace the
# value of the option in another mount options string. The device
# is the first argument, and the option name the second. The
# remainder is the mount options string in which the replacement
# must be done.
# Example:
# parse_mount_opts_wfstab /dev/hda1 commit defaults,commit=7
# If fstab contains, say, "commit=3,rw" for this filesystem, then the
# result will be "rw,commit=3".
parse_mount_opts_wfstab () {
    L_DEV="$1"
    OPT="$2"
    shift 2
    L_OPTS="$*"
    PARSEDOPTS1="$(parse_mount_opts $OPT $L_OPTS)"
    # Watch for a default commit in fstab
    FSTAB_OPTS="$(awk '$1 == "'$L_DEV'" { print $4 }' /etc/fstab)"
    if echo "$FSTAB_OPTS" | grep "$OPT=" > /dev/null ; then
        # option specified in fstab: extract the value, and use it
        echo -n "$PARSEDOPTS1,$OPT="
        echo ",$FSTAB_OPTS," | sed
         -e 's/.*,'"$OPT"'=//'   
         -e 's/,.*//'
    else
        # option not specified in fstab: set it to 0
        echo "$PARSEDOPTS1,$OPT=0"
    fi
if [ $DO_REMOUNT_NOATIME -eq 1 ] ; then
    NOATIME_OPT=",noatime"
fi
case "$1" in
    start)
        AGE=$((100*$MAX_AGE))
        XFS_AGE=$(($XFS_HZ*$MAX_AGE))
        echo -n "Starting laptop_mode"
        if [ -d /proc/sys/vm/pagebuf ] ; then
            # (For 2.4 and early 2.6.)
            # This only needs to be set, not reset -- it is only used when
            # laptop mode is enabled.
            echo $XFS_AGE > /proc/sys/vm/pagebuf/lm_flush_age
            echo $XFS_AGE > /proc/sys/fs/xfs/lm_sync_interval
        elif [ -f /proc/sys/fs/xfs/lm_age_buffer ] ; then
            # (A couple of early 2.6 laptop mode patches had these.)
            # The same goes for these.
            echo $XFS_AGE > /proc/sys/fs/xfs/lm_age_buffer
            echo $XFS_AGE > /proc/sys/fs/xfs/lm_sync_interval
        elif [ -f /proc/sys/fs/xfs/age_buffer ] ; then
            # (2.6.6)
            # But not for these -- they are also used in normal
            # operation.
            echo $XFS_AGE > /proc/sys/fs/xfs/age_buffer
            echo $XFS_AGE > /proc/sys/fs/xfs/sync_interval
        elif [ -f /proc/sys/fs/xfs/age_buffer_centisecs ] ; then
            # (2.6.7 upwards)
            # And not for these either. These are in centisecs,
            # not USER_HZ, so we have to use $AGE, not $XFS_AGE.
            echo $AGE > /proc/sys/fs/xfs/age_buffer_centisecs
            echo $AGE > /proc/sys/fs/xfs/xfssyncd_centisecs
            echo 3000 > /proc/sys/fs/xfs/xfsbufd_centisecs
        fi
        case "$KLEVEL" in
            "2.4")
                echo 1                    > /proc/sys/vm/laptop_mode
                echo "30 500 0 0 $AGE $AGE 60 20 0"    > /proc/sys/vm/bdflush
            "2.6")
                echo 5                    > /proc/sys/vm/laptop_mode
                echo "$AGE"                > /proc/sys/vm/dirty_writeback_centisecs
                echo "$AGE"                > /proc/sys/vm/dirty_expire_centisecs
                echo "$DIRTY_RATIO"            > /proc/sys/vm/dirty_ratio
                echo "$DIRTY_BACKGROUND_RATIO"        > /proc/sys/vm/dirty_background_ratio
        esac
        if [ $DO_REMOUNTS -eq 1 ]; then
            cat /etc/mtab | while read DEV MP FST OPTS DUMP PASS ; do
                PARSEDOPTS="$(parse_mount_opts "$OPTS")"
                case "$FST" in
                    "ext3"|"reiserfs")
                        PARSEDOPTS="$(parse_mount_opts commit "$OPTS")"
                        mount $DEV -t $FST $MP -o remount,$PARSEDOPTS,commit=$MAX_AGE$NOATIME_OPT
                    "xfs")
                        mount $DEV -t $FST $MP -o remount,$OPTS$NOATIME_OPT
                esac
                if [ -b $DEV ] ; then
                    blockdev --setra $(($READAHEAD * 2)) $DEV
                fi
            done
        fi
        echo "."
    stop)
        U_AGE=$((100*$DEF_UPDATE))
        B_AGE=$((100*$DEF_AGE))
        echo -n "Stopping laptop_mode"
        echo 0 > /proc/sys/vm/laptop_mode
        if [ -f /proc/sys/fs/xfs/age_buffer -a ! -f /proc/sys/fs/xfs/lm_age_buffer ] ; then
            # These need to be restored, if there are no lm_*.
            echo $(($XFS_HZ*$DEF_XFS_AGE_BUFFER))         > /proc/sys/fs/xfs/age_buffer
            echo $(($XFS_HZ*$DEF_XFS_SYNC_INTERVAL))     > /proc/sys/fs/xfs/sync_interval
        elif [ -f /proc/sys/fs/xfs/age_buffer_centisecs ] ; then
            # These need to be restored as well.
            echo $((100*$DEF_XFS_AGE_BUFFER))    > /proc/sys/fs/xfs/age_buffer_centisecs
            echo $((100*$DEF_XFS_SYNC_INTERVAL))    > /proc/sys/fs/xfs/xfssyncd_centisecs
            echo $((100*$DEF_XFS_BUFD_INTERVAL))    > /proc/sys/fs/xfs/xfsbufd_centisecs
        fi
        case "$KLEVEL" in
            "2.4")
                echo "30 500 0 0 $U_AGE $B_AGE 60 20 0"    > /proc/sys/vm/bdflush
            "2.6")
                echo "$U_AGE"                > /proc/sys/vm/dirty_writeback_centisecs
                echo "$B_AGE"                > /proc/sys/vm/dirty_expire_centisecs
                echo "$DEF_DIRTY_RATIO"            > /proc/sys/vm/dirty_ratio
                echo "$DEF_DIRTY_BACKGROUND_RATIO"    > /proc/sys/vm/dirty_background_ratio
        esac
        if [ $DO_REMOUNTS -eq 1 ] ; then
            cat /etc/mtab | while read DEV MP FST OPTS DUMP PASS ; do
                # Reset commit and atime options to defaults.
                case "$FST" in
                    "ext3"|"reiserfs")
                        PARSEDOPTS="$(parse_mount_opts_wfstab $DEV commit $OPTS)"
                        PARSEDOPTS="$(parse_yesno_opts_wfstab $DEV atime atime $PARSEDOPTS)"
                        mount $DEV -t $FST $MP -o remount,$PARSEDOPTS
                    "xfs")
                        PARSEDOPTS="$(parse_yesno_opts_wfstab $DEV atime atime $OPTS)"
                        mount $DEV -t $FST $MP -o remount,$PARSEDOPTS
                esac
                if [ -b $DEV ] ; then
                    blockdev --setra 256 $DEV
                fi
            done
        fi
        echo "."
        echo "Usage: $0 {start|stop}" 2>&1
        exit 1
esac
exit 0
--------------------CONTROL SCRIPT END--------------------------------------------
ACPI integration
Dax Kelson submitted this so that the ACPI acpid daemon will
kick off the laptop_mode script and run hdparm.
---------------------------/etc/acpi/events/ac_adapter BEGIN-------------------------------------------
event=ac_adapter
action=/etc/acpi/actions/battery.sh
---------------------------/etc/acpi/events/ac_adapter END-------------------------------------------
---------------------------/etc/acpi/actions/battery.sh BEGIN-------------------------------------------
#!/bin/sh
# cpu throttling
# cat /proc/acpi/processor/CPU0/throttling for more info
ACAD_THR=0
BATT_THR=2
# spindown time for HD (man hdparm for valid values)
# I prefer 2 hours for acad and 20 seconds for batt
ACAD_HD=244
BATT_HD=4
# ac/battery event handler
status=`awk '/^state: / { print $2 }' /proc/acpi/ac_adapter/AC/state`
case $status in
        "on-line")
                echo "Setting HD spindown for AC mode."
                /sbin/laptop_mode stop
                /sbin/hdparm -S $ACAD_HD /dev/hda > /dev/null 2>&1
                /sbin/hdparm -B 255 /dev/hda > /dev/null 2>&1
                #echo -n $ACAD_CPU:$ACAD_THR > /proc/acpi/processor/CPU0/limit
                exit 0
        "off-line")
                echo "Setting HD spindown for battery mode."
                /sbin/laptop_mode start
                /sbin/hdparm -S $BATT_HD /dev/hda > /dev/null 2>&1
                /sbin/hdparm -B 1 /dev/hda > /dev/null 2>&1
                #echo -n $BATT_CPU:$BATT_THR > /proc/acpi/processor/CPU0/limit
                exit 0
esac
---------------------------/etc/acpi/actions/battery.sh END-------------------------------------------
Monitoring tool
Bartek Kania submitted this, it can be used to measure how much time your disk
spends spun up/down.
---------------------------dslm.c BEGIN-------------------------------------------
* Simple Disk Sleep Monitor
*  by Bartek Kania
* Licenced under the GPL
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <time.h>
#include <string.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <linux/hdreg.h>
#ifdef DEBUG
#define D(x) x
#else
#define D(x)
#endif
int endit = 0;
/* Check if the disk is in powersave-mode
* Most of the code is stolen from hdparm.
* 1 = active, 0 = standby/sleep, -1 = unknown */
int check_powermode(int fd)
    unsigned char args[4] = {WIN_CHECKPOWERMODE1,0,0,0};
    int state;
    if (ioctl(fd, HDIO_DRIVE_CMD, &args)
    && (args[0] = WIN_CHECKPOWERMODE2) /* try again with 0x98 */
    && ioctl(fd, HDIO_DRIVE_CMD, &args)) {
    if (errno != EIO || args[0] != 0 || args[1] != 0) {
        state = -1; /* "unknown"; */
    } else
        state = 0; /* "sleeping"; */
    } else {
    state = (args[2] == 255) ? 1 : 0;
    D(printf(" drive state is:  %dn", state));
    return state;
char *state_name(int i)
    if (i == -1) return "unknown";
    if (i == 0) return "sleeping";
    if (i == 1) return "active";
    return "internal error";
char *myctime(time_t time)
    char *ts = ctime(&time);
    ts[strlen(ts) - 1] = 0;
    return ts;
void measure(int fd)
    time_t start_time;
    int last_state;
    time_t last_time;
    int curr_state;
    time_t curr_time = 0;
    time_t time_diff;
    time_t active_time = 0;
    time_t sleep_time = 0;
    time_t unknown_time = 0;
    time_t total_time = 0;
    int changes = 0;
    float tmp;
    printf("Starting measurementsn");
    last_state = check_powermode(fd);
    start_time = last_time = time(0);
    printf("  System is in state %snn", state_name(last_state));
    while(!endit) {
    sleep(1);
    curr_state = check_powermode(fd);
    if (curr_state != last_state || endit) {
        changes++;
        curr_time = time(0);
        time_diff = curr_time - last_time;
        if (last_state == 1) active_time += time_diff;
        else if (last_state == 0) sleep_time += time_diff;
        else unknown_time += time_diff;
        last_state = curr_state;
        last_time = curr_time;
        printf("%s: State-change to %sn", myctime(curr_time),
           state_name(curr_state));
    changes--; /* Compensate for SIGINT */
    total_time = time(0) - start_time;
    printf("nTotal running time:  %lusn", curr_time - start_time);
    printf(" State changed %d timesn", changes);
    tmp = (float)sleep_time / (float)total_time * 100;
    printf(" Time in sleep state:   %lus (%.2f%%)n", sleep_time, tmp);
    tmp = (float)active_time / (float)total_time * 100;
    printf(" Time in active state:  %lus (%.2f%%)n", active_time, tmp);
    tmp = (float)unknown_time / (float)total_time * 100;
    printf(" Time in unknown state: %lus (%.2f%%)n", unknown_time, tmp);
void ender(int s)
    endit = 1;
void usage()
    puts("usage: dslm [-w <time>] <disk>");
    exit(0);
int main(int ac, char **av)
    int fd;
    char *disk = 0;
    int settle_time = 60;
    /* Parse the simple command-line */
    if (ac == 2)
    disk = av[1];
    else if (ac == 4) {
    settle_time = atoi(av[2]);
    disk = av[3];
    } else
    usage();
    if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) {
    printf("Can't open %s, because: %sn", disk, strerror(errno));
    exit(-1);
    if (settle_time) {
    printf("Waiting %d seconds for the system to settle down to "
           "'normal'n", settle_time);
    sleep(settle_time);
    } else
    puts("Not waiting for system to settle down");
    signal(SIGINT, ender);
    measure(fd);
    close(fd);
    return 0;
---------------------------dslm.c END---------------------------------------------
I edited it slightly, changed the @ to "at" and made the ### lines shorter. it's also from 2.6.8-rc1, but according to the file it didn't change since April anyway.

Similar Messages

  • Missing Documentation for error in SQL.

    Hi,
    In my application when i try to connect to my .mdf file I got the below error. When I checked for documentation on this error @
    http://technet.microsoft.com/en-us/library/cc645603(v=sql.100).aspx
    I couldn't find the same in the list.
    Error Details : "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow
    remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
    Is this missed to document? Can you please confirm.
    Please help me in finding documentation on this error.
    Thanks
    Swapna

    Hi,
    Thank you for posting in SQL Server Forum.
    “SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified” is a common error message when connecting to a SQL Server.
    Is it a local instance or remote instance? Default instance or Named instance? What’s the SQL Server version and edition?
    The possible cause of this issue could be SQL Server Database Engine is not running, when the server name was typed incorrectly, or when there are network problems or firewalls.
    Please check the following suggestions for troubleshooting this issue:
    1. Make sure SQL Server Service is running
    2. If a named instance, make sure SQL Server browser service is running
    3. Make sure SQL Server is configured to allow remote connections
    4. Check the SQL Server error log. View the SQL Server error log by using SQL Server Management Studio or any text editor. By default, the error log is located at Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\LOG\ERRORLOG
    and ERRORLOG.n files.
    Here is the document regarding how to troubleshoot the error message.
    http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx
    http://technet.microsoft.com/en-us/library/ms190181(v=sql.105).aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Javax.servlet.jsp.JspException: Missing message for key common.business.Ban

    Hi All,
              I'm a System Engineer. My application code in Java and using JDK 1.3.1.
              My Application deploy in IBM iSeries V5R2 and not error. But after I upgrade to iSeries V5R3, my application encounter missing message error such as "javax.servlet.jsp.JspException: Missing message for key common.business.BankAddress".
              I already downgrade for iSeries V5R3 to JDk 1.3.1.
              Did Weblogic 6.1 support IBM iSeries V5R3?
              Do you have any ideas?
              Thank you.

    hi siewmun ,
              weblogic 6.1 does't support IBM iSeries V5R3 .
              IBM iSeries V5R3 is supported by IBM products mostly.
              go through the link, you can find the documention on IBM iSeries v5r3
              http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
              Anilkumar kari

  • Network Protocol Documentation for ARD or ANA?

    Is anyone aware of any documentation on the network protocols used by ARD? I have plenty of docs on RFB/VNC, but Apple is doing something more with ARD than standard RFB. It looks like they are still making some use of Apple Network Assistant (UDP port 3283) protocol and clearly performing other tasks that aren't part of the RFB standards. Could anyone point to any documentation for this?
    I'm trying to develop some utilities that will make working with ARD in a multi-thousand Mac environment a bit more tolerable. I'm not very interested in remote desktop control; this is about asset management and patch management. Once you have more than a couple-thousand Macs in ARD, it seems to slow to a crawl.
    For example, we have a very large number of large (21-bit) subnets, and the ARD scanner takes forever to scan them. I've written a small utility that will scan a subnet in seconds, and provide a text file containing only active computers that are Macs. This output loads into ARD much, much faster. I did this after discovering that a UDP packet sent to port 3283 will cause a Mac to respond with its name, ethernet address, etc. I'm trying to figure out what else is in that response packet, and what more I can do. I'd rather have an ARD API that allows me to add/remove computers into ARD (anyone?) but that appears to be the one area that Apple forgot. I'm still new to the Mac world, so I could have missed any number of things. Pointers would be welcome.
    Thanks!

    Ok, I've figured out why I dropped the AppleScript route. The ARD dictionary command to "add" a computer to a list appears to require a computer descriptor for a machine that is already in ARD. So, doesn't look like it can actually add a computer to ARD via that route.
    Regarding import from file:
    I've used the scanner to scan IP addresses from a text file that is the output from my utility. While manual, this does work. I then have to "add" the computers to the "All Computer" list manually, specifying the credentials. This has been my process to date. Better than nothing, but very manually intensive. It also appears that the scanner is limited to scanning only the first 4096 addresses from a text file, we have about 20x that number of Macs.
    I have not tried writing a plist from my utility and importing directly (bypassing the scanner). I'll give that a shot. Assuming this works, it might take one manual step out of the process. Still not sure if I can automate list import any further.
    I'd still like to find some protocol-level documentation so that I can improve the precision of my scanner utility. I'd like to verify my credentials on each system discovered, and verify that the ARD client-upgrade is an authorized task before going to the trouble of adding them into ARD only to find these problems later. So far, a significant percentage of my Macs are still running ARD 2.x and 1.x so the upgrade process is important. On a related note, it doesn't look like the "Upgrade Client" task can be relegated to the local task server. Wonder why...
    Thanks again.

  • Documentation for doc literal processing

    I'm struggling with an existing that uses doc literal services, but I can't get it to work in oc4j 10g preview.
    I've tried the doc_lit demo that Oracle provides -- loading the WSDL from the original source (ws-i.org) works fine, but trying to load it locally produces errors. The first error is a complaint that the WSDL doesn't define a service, so I added the service as suggested in another thread. However, at that point although the first pass through wsa generates things, it does not generate the correct type classes, so the second pass (update-impl) through wsa fails.
    I'm confused as to why the WSDL processing is different depending on whether it's loaded from ws-i.org or the filesystem. And I'm confused about how the WSDL should properly look to generate the type classes.
    Any pointers to documentation I may have missed, or any other clues or help would be very much appreciated.

    I'm looking for the same thing -
    Were you able to location any documentation?
    I've been trying to get my hands on the documentation
    for the C4. Sun's doc site does not have this product
    listed at all. The product documentation link
    (http://docs.sun.com/app/docs/prod/1878#hic) just
    returns " The requested item could not be found."
    I've even tried opening up a case with Sun. First,
    the support people had no idea what the C4 was. After
    3 days and 3 support engineers, I finally found one
    who understood what this product was, but I was then
    told that getting the documentation would be on a
    time and materials basis. I'd rather not have to pay
    $400+ for documentation that should be on their
    website, just like all their other equipment. I'm
    currently using the Quantum PX502 documentation as a
    reference, but I'd really like to see Sun specific
    documentation.
    Any ideas?
    Thanks.I'm looking for the same thing -
    Were you able to location any documentation?

  • The Missing Sync for Palm OS v6.0.4 won't run with my Palm Tungsten E2

    Having problems with Palm iSync on My iBook with 10.4.11 I bought The Missing Sync.
    I removed Palm Desktop and installed Missing Sync. However sync won't start when I press the HotSync button.
    Is my Palm Tungsten E2, running Palm OS Garnet v. 3.1.1 too old? 
    If so, can I upgrade it? 
    Post relates to: Tungsten E2
    Post relates to: Tungsten E2

    No, there is nothing published - that I am aware of - other than the Missing Sync User Guide that you received [as portable document format file] when you purchased the Missing Sync for Palm OS.
    There is some developer documentation available from Apple, but it has little direct bearing on anything like the issue you are seeing. Your crash logs should have provided an indication of what was going on, and - using them - Mark/Space should have been able to identify your issue pretty easily.
    It's very difficult to troubleshoot unusual issues remotely. Common problems - which can be easily identified - are readily corrected just by following the instructions posted by some knowledgable person here in the Apple Discussions forums. Given the unique circumstances you report of total failure following the installation of the Missing Sync, it's very likely that the actual culprit in your configuration is NOT the Palm desktop, iSync, .Mac Sync, the Missing Sync for Palm OS or your Treo 600. Something unique about your configuration is likely responsible. Trying to eliminate the variables, though, is not an easy task.
    One relatively easy way to troubleshoot such issues is to create a new user, reinstall the Missing Sync and attempt to synchronize using that new user account. If that process is successful, you'll immediately know that something involving your existing user account is responsible for the issue.

  • Documentation for objects, properties, methods

    Hi there,
    I'm sure this is quite simple, but I can't find it.
    Where do I find documentation for properties and methods of objects?
    Specifically, I am looking for the properties and methods of FindGrepPreferences.
    I have the Indesign SDK and am looking at this file: scripting-dom-visualbasic-idr50.html.
    I see FindGrepPreferences, but I don't see the properties and methods.
    I am using MS Access to control Indesign and can use the object browser, but it only lists FindGrepPreferences as a member of the Application object.
    Where do I find the properties and methods of FindGrepPreferences?
    What am I missing here?
    Thanks,
    Ric

    Use the Help menu of ExtendScript Toolkit. Choose the Object Model Viewer.
    Dave

  • Where is the missing documentation?

    Hi there,
    Does anyone know where is the missing documentation located for JDBC of Oracle 7.3.4? The correct url should be http://otn.oracle.com/docs/tech/java/sqlj_jdbc/htdocs/jdbc_doc.htm, but I couldnt see it.
    Thanks
    Neo

    What happens when you click on the "Documentation" link on the left of this page???????

  • F1 documentation for a Parameter Transaction

    Hello
    I have a Parameter Transaction in a customer namespace and need to create F1 documentation for it. Is it possible?
    (Created in SE93 and linked to SM30).
    I can't find anything in the menus, online help or this forum.
    The transaction is part of an Area Menu and ideally I would like to provide some F1 help there.
    Thanks
    Graham

    Hi
    I looked in SE61 but there is no drop down menu item for Transaction.
    Balu:
    I have an Area Menu for example:
    TR1
    TR2
    TR3
    ......etc
    Transaction TR1 is linked to a report so I created docu for this and now the user can position the cursor on TR1 in the menu, press F1 and see a popup with the documentation.
    Transaction TR2 was created as a parameter transaction linked to a View via SE30 (selected as a dialog transaction). The user can start TR2 and gets a View where they can enter data and use F1 for the individual fields. Up to here everything works OK.
    What is missing is to allow the user to select TR2 and use F1 to see some documentation whilst still in the menu.
    Since TR2 isn't linked to a report or data element I can't find a way to create docu for it.
    Thanks
    Graham

  • Error level documentation for 36xx errros

    Hi,
    Can anyone point me at the documentation for the Error messages for these errors for Sybase 15.x
    3606, 3607, 3619, 3620, 3622
    Looking in ...
    Exception Handling Errors (3600s)
    but they seems to be missing.
    I can see them in the 12.x manual but I think the severities have changed.
    Just wanting to confirm.

    Thanks - is any of this docmented anywhere that a developer can read it ?
    Since its changed since V12 it might be useful to update the manual.
    Its also a little confusing and inconsistent in that sysmessages shows the errors as severity 10.
           select severity from master..sysmessages where error = 3607
    but the errors are shown as
           Msg 3607, Level 16, State 0
           Server 'S1', Line 1
           Divide by zero occurred.

  • Javax.servlet.jsp.JspException: Missing message for key

    I am researching JDevloper (11g) with the possibility of migrating my struts web apps from Eclipse. I use CVS for source control. I started out by creating an application in JDevloper than by using "version" to check out a "module", one of my web apps, and create a project in the application. Next I modified all the project properties required to get a clean compile and set up my DB connection. After this i launched the project (app) in the IDE using the built-in WebLogic app server. Before it even displays the fist page i get this error message: javax.servlet.jsp.JspException: Missing message for key "prompt.deploy.mode";. The key ""prompt.deploy.mode"; is in my ApplicationResouces.properties file which it obviously can not find. The place that WebLogic expects it must be different than Tomcat which is the app server i use in Eclipse. This application is also deployed to OAS. If anyone can tell me how to solve this issue I would be most appreciative. Thank you. - Keith

    hi siewmun ,
              weblogic 6.1 does't support IBM iSeries V5R3 .
              IBM iSeries V5R3 is supported by IBM products mostly.
              go through the link, you can find the documention on IBM iSeries v5r3
              http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
              Anilkumar kari

  • What determines the file encoding for ${C:file.txt} = 'abc' ?

    What determines the file encoding for  
    ${C:file.txt} = 'abc'
    I'm always getting ASCII as the encoding for file.txt after executing that assignment.

    Thanks so much.   I'll keep looking for the MSFT doc on this.  I scanned Bruce Payette's book and did not find anything there.   
    It turns out to be one of those "by rote" things you have to learn about PowerShell.
    My concern about the lack of documentation is that MSFT might change the underlying code in the future to use Unicode and that might break some existing code.  If there was some MSFT provided documentation declaring ASCII as the intended encoding they
    might provide plenty of warning if they do a switch in encoding.
    I note also that if you try to write characters outside the ASCII set (see example below) that character substitution happens to find an ASCII character to use in place of the one outside the ASCII set.  In the example below a 'v' is substituted for
    the '√' character:
    ${C:xo.txt} = '√'

  • Missing scheme for service: "DistributedCacheForCommandPattern"

    I'm getting this error after I put the many data using command pattern(Coherence Incubator ).
    May I teach and have the following error correspondence measure?
    Moreover, may not I teach why the following error occurs and may have?
    Portable(com.tangosol.util.WrapperException): (Wrapped: Failed request execution for DistributedCacheForCommandPattern-A service on Member(Id=13, Timestamp=2011-05-09 16:08:12.646, Address=192.168.2.137:7203, MachineId=49468, Location=machine:wdbggp0c,process:aswdgA_dcpA_03_01,member:aswdgA_dcpA_03_01)) Missing scheme for service: "DistributedCacheForCommandPattern"
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onInvokeRequest(DistributedCache.CDB:80)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$InvokeRequest.run(DistributedCache.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
         at <process boundary>
         at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
         at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3293)
         at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2600)
         at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:348)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
         at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
         at com.tangosol.coherence.component.net.message.DistributedCacheResponse.read(DistributedCacheResponse.CDB:2)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:123)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Caused by:
    Portable(java.lang.IllegalArgumentException): Missing scheme for service: "DistributedCacheForCommandPattern"
         at com.tangosol.net.DefaultConfigurableCacheFactory.findServiceScheme(DefaultConfigurableCacheFactory.java:735)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:337)
         at com.tangosol.net.CacheFactory.getService(CacheFactory.java:692)
         at com.oracle.coherence.patterns.command.internal.CommandExecutor.acceptCommandExecutionRequest(CommandExecutor.java:730)
         at com.oracle.coherence.patterns.command.internal.SubmitCommandExecutionRequestProcessor.process(SubmitCommandExecutionRequestProcessor.java:112)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.invoke(DistributedCache.CDB:20)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onInvokeRequest(DistributedCache.CDB:50)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$InvokeRequest.run(DistributedCache.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
         at <process boundary>
         at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
         at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3293)
         at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2600)
         at com.tangosol.io.pof.PortableException.readExternal(PortableException.java:150)
         at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:58)
         at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3293)
         at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2600)
         at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:348)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
         at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
         at com.tangosol.coherence.component.net.message.DistributedCacheResponse.read(DistributedCacheResponse.CDB:2)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:123)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)

    You have probably not included the coherence-commandpattern-cache-config.xml configuration file in you cluster configuration. Depending on which version of Coherence you have and which version of the Incubator you are using the way you include the file is different.
    Using Coherence 3.7 and the latest Incubator release the top of your cache configuration file on the cluster need to look a bit like this
    <cache-config
         xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:element="class://com.oracle.coherence.environment.extensible.namespaces.XmlElementProcessingNamespaceContentHandler"
        element:introduce-cache-config="coherence-commandpattern-cache-config.xml">Read the Command Pattern documentation or look at the examples from the Incubator site for the version you are using.
    JK

  • Documentation for abstract classes (Behavior and Binding) ?

    Hi,
    I am looking at the beautiful sample-app made by Jasper Potts at the www.fxexperience.com. ("Javafx 2.0 Audio Player")
    There some abstract classes are used, for Behavior and Binding.
    It turns out that I have difficulties finding documentation for those classes. The classes are:
    com.sun.javafx.scene.control.behavior.BehaviorBase;
    com.sun.javafx.scene.control.behavior.KeyBinding;
    Could anybody give me hint, pls, where I could find documentation for those classes.
    They are all in the JavaFx-Runtime-Jar-file, together with all the Javafx-classes.
    The Javafx-classes are pretty well documented in the meantime.
    But, allthough in the same "package", the com.sun... classes are still black boxes to me.
    Appreciate a link from somebody who knows, pls.
    Hans

    Hi Hans,
    the classes in the com.sun.* packages are internal classes, in other words they are meant to be black boxes for you. :-)
    A developer should not use these classes, because they can change anytime without warning, even between minor releases. But a developer should also not need to use the internal classes. If Jasper needed them in the demo, it is a clear indicator that something is missing in the public API.
    The classes seem to be part of the UI controls, which were already open-sourced. If you just want to play with the classes, you can study the sources. As a long term solution, I suggest to add a feature request in JIRA for the parts you are missing in the public API (http://javafx-jira.kenai.com).

  • Oracle Documentation for DBMS Packages

    Hello guys,
    is there any documentation for all dbms packages?
    I found the following link:
    http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10802/toc.htm
    But this is only for application developing. For example, there is the dbms_system package missing.
    I hope there is anywhere an overview over all packages and procedures... i searched today for an pl/sql procedure to set events in specified session... it took a long time until i found dbms_system for that...
    Maybe you can help me and give me a link....
    I would really be glad...
    Thanks :)
    Regards
    Stefan

    Many websites and Metalink provide some documentation about the packages.Yeah of course... but no central index or content, which describes the whole packages...
    Ok so i will have to search with google and hope someone has documented his activities...
    Regards
    Stefan

Maybe you are looking for

  • Is it possible to activate Stickies Notes at a certain time (or date)?

    Many, many years ago (in the dark and early days of MS Windows) I had an extremely helpful and v useful application that (I think) was called PostIt Notes. Anyway, it was very like Stickies but you could set it to pop open at a certain time and date.

  • Question regarding Home Sharing in iOS 4.3

    Does one have to enable sharing inside iTunes as well as turning on Home Sharing? Some of the how to's I have read say you need to check the boxes in iTunes Sharing while others just say to turn on Home Sharing in iTunes and in iPad iPod settings.Tha

  • Launch Application

    Hi all Can any one explain me clearly why we use launch application in 2005 B .

  • Cannot be heard at all

    When using Skype # to call out to landline, businesses (usually) I can hear them perfectly but they do NOT hear me at all....not BAD sound just NO sound on their end...many different attempts and different business numbers ....does not happen with re

  • Bootcamp can't download driver for install.

    When i try to run the bootcamp utility i have a message saying that i'm not connected to internet, the problem is that i am connected to the internet. I had the same issue with the JAVA download but i find the pkg on apple website so it was'nt such a