[Solved] Automatically Configure Certain Kernel Options?

I've been using linux-ck for a while, and have been tweaking a few minor options related to the processor with nconfig each time [The processor family, the preempt type and the timer frequency]. I would like to be able to set these options automatically since they've proved to increase performance slightly while still resulting in a stable system. However, I'm not sure which option(s) in the config file the preemption model changes, which I would need in order to automate this. I'm also wondering if there be any potential negative consequences for automating the configuration of such options.
These are the settings I've been using [and wish to automatically set] for my two machines:
Laptop [Core i3; x86_64]
Processor Family: Core2
Frequency: 1000 Hz
Server [2 x Athlon MP; i686]
Processor Family: K7
Preemption: None
Frequency: 100 Hz
I've been able to autoconfigure the laptop with this sed command:
sed -i -e 's/CONFIG_HZ_300=y/# CONFIG_HZ_300 is not set/g' -i -e 's/# CONFIG_HZ_1000 is not set/CONFIG_HZ_1000=y/g' -i -e 's/# CONFIG_MCORE2 is not set/CONFIG_MCORE2=y/g' -i -e 's/CONFIG_GENERIC_CPU=y/# CONFIG_GENERIC_CPU is not set/g' .config
I know what to substitute for the frequency and family for my server, but diffing my server's config against the default one has quite a few changed options, which leads me to believe that the preempt setting in nconfig changes more than one option. Anyone with a better understanding of how the kernel's configuration works know how to accomplish this?
Last edited by DarkSniper (2012-01-07 01:42:00)

graysky wrote:
@op - my advice is not to use a sed command unless you spot-check it against a manually configured one.  If you're compiling linux-ck, just switch on the "_use_current=y" option. 
## DETAILS FOR _use_current="y"
# Enabling this option will use the .config of the RUNNING kernel rather than the ARCH defaults.
# Useful when the package gets updated and you already went through the trouble of customizing your
# config options. NOT recommended when a new kernel is released, but again, convenient for package bumps.
The comment saying that it wasn't recommended made me a little skeptical about using that option. [Though I was thinking 'Hey, that does exactly what I'm looking for!']
By new kernel, is it referring to major versions [Like 3.1.x -> 3.2.x] or minor ones [like 3.1.x -> 3.1.y]? Having to use nconfig once per major version wouldn't bother me at all, but it's a little annoying when I've had to do it with every minor version/release bump.
Slightly Offtopic: For the -corex repo package the only thing you're changing from the generic one is the processor family, correct? [I'm wanting the optimizations, but prefer to build from source]

Similar Messages

  • [solved] fastboot and rootdelay kernel option

    hi to all,
    i was reading about improving boot time in our archwiki. it says to append in /boot/grub/menu.lst two ''magic'' words:
    fastboot
    and
    rootdelay=N
    where N are seconds to wait before mount the root.
    then i modify my .lst and perform a boot timing BUT results are exactly the same , the same time with or without these kernel option.....
    my menu.lst:
    # (0) Arch Linux NORMAL
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sda4 ro fastboot rootdelay=1 vga=773
    initrd /kernel26.img
    # (3) Arch Linux BOOTCHART
    title Arch Linux Bootchart
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sda4 ro fastboot rootdelay=1 vga=773 init=/sbin/bootchartd
    initrd /kernel26.img
    # (1) Arch Linux FALLBACK
    title Arch Linux Fallback
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/87011ee4-6d50-4384-a305-0a23d3f27588 ro
    initrd /kernel26-fallback.img
    # (4) RescueCD 64bit RESCUE
    title SystemRescueCd from Hard Disk
    root (hd0,0)
    kernel /sysrcd/rescue64 subdir=sysrcd setkmap=it
    initrd /sysrcd/initram.igz
    where i make a mistake ?
    thks
    Last edited by nTia89 (2010-08-04 19:01:16)

    Kernel command line parameters aren't inherently magical. fastboot was introduced in 2.6.29 and attempts to decrease boot time by performing some functions asynchronously. It may not result in anything speeding up. It may break things. It's probably not worth using.
    Regarding rootdelay: The Wiki comes to a flawed conclusion that a shorter rootdelay will decrease boot time. rootdelay defines the maximum number of seconds the kernel is willing to wait for the root device to be mounted. It doesn't define an absolute time frame. rootdelay=100 will very likely yield the same results as rootdelay=10 because the boot process continues as soon as the root device is available. The wiki does correctly point out that a lower rootdelay can actually break the boot process.
    To answer your question: your mistake is playing with parameters that you don't understand.
    Last edited by falconindy (2010-08-04 18:08:42)

  • Why does unchecking the "use automatic configuration script" box on Internet Explorer 8 fix connectivity errors?

    As long as I have been in the job and we have been using IE as our browser, we have controlled the proxy settings with an automatic configuration file.
    Recently, with IE8 on WinXP and Win7, we have had situations with the user getting various connectivity errors. By unchecking the "use automatic configuration script" box, they start working. But we don't change anything else.
    These error are not consistent from machine to machine.
    We are in a AD Domain environment
    These are the two errors I have documented.
    Error: 5
    Description: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
    Access to resrouce is forbidden by server while attempting to access server at
    http://content.mpl.org/cgi-bin/admin/pwtest.exe?CISOVER=60.
    Please check the permissions to the file on th eserver.
    Two very different problems. Both somehow fixed by unchecking the box.
    The config file itself has not been changed in over a year.
    Can anyone explain why unchecking this box, but not making any other changes to the proxy settings would fix connectivity problems? These are all external sites that need to go through the proxy.
    Thanks.

    Hi,
    You can use the steps in the following thread to disable this option:
    uncheck "use automatic configuration script" in IE LAN settings 
    http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/05a7c683-075e-435c-8583-da8fd3559cf2
    Or try to
    reset Internet Explorer settings and select use automatic configuration script to see whether it could work.
    Hope this helps.
    Vincent Wang
    TechNet Community Support

  • [Solved] Compiling a new kernel with ABS

    I've made it through the whole process outlined in the wiki, up to installing with pacman.  Pacman is telling me that the stock arch kernel is a conflicting package and wants to remove it.  I want to hang on to it in case I've messed something up.  What am I doing wrong?  I know you can have two kernels installed.  Using the traditional way I can get this, but I'd rather keep to doing things The Arch Way.
    Last edited by Morrvick (2011-11-17 00:40:30)

    I double checked what I was doing, and I have done that.  Here is my modified PKGBUILD:
    # $Id: PKGBUILD 130991 2011-07-09 12:23:51Z thomas $
    # Maintainer: Tobias Powalowski <[email protected]>
    # Maintainer: Thomas Baechler <[email protected]>
    pkgbase=linux
    #pkgname=('linux' 'linux-headers' 'linux-docs') # Build stock -ARCH kernel
    pkgname=('linux-morrvick' 'linux-headers-morrvick') # Build kernel with a different name
    _kernelname=${pkgname#linux}
    _basekernel=3.1
    pkgver=${_basekernel}.1
    pkgrel=1
    arch=('i686' 'x86_64')
    url="http://www.kernel.org/"
    license=('GPL2')
    makedepends=('xmlto' 'docbook-xsl')
    options=('!strip')
    source=("http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.1.tar.xz"
    "http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz"
    # the main kernel config files
    'config' 'config.x86_64'
    # standard config files for mkinitcpio ramdisk
    "${pkgname}.preset"
    'change-default-console-loglevel.patch'
    'i915-fix-ghost-tv-output.patch'
    'i915-fix-incorrect-error-message.patch'
    'usb-add-reset-resume-quirk-for-several-webcams.patch')
    md5sums=('edbdc798f23ae0f8045c82f6fa22c536'
    '2bf7eb28a58238e1a062fa7393bf7824'
    'cbaaa923f00c1935055273ccc1630144'
    '93687a4b7e1e6bcd4e7417d6e5079bc4'
    'eb14dcfd80c00852ef81ded6e826826a'
    '9d3c56a4b999c8bfbd4018089a62f662'
    '263725f20c0b9eb9c353040792d644e5'
    'a50c9076012cb2dda49952dc6ec3e9c1'
    '52d41fa61e80277ace2b994412a0c856')
    build() {
    cd "${srcdir}/linux-${_basekernel}"
    # add upstream patch
    patch -p1 -i "${srcdir}/patch-${pkgver}"
    # add latest fixes from stable queue, if needed
    # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
    # Some chips detect a ghost TV output
    # mailing list discussion: http://lists.freedesktop.org/archives/intel-gfx/2011-April/010371.html
    # Arch Linux bug report: FS#19234
    # It is unclear why this patch wasn't merged upstream, it was accepted,
    # then dropped because the reasoning was unclear. However, it is clearly
    # needed.
    patch -Np1 -i "${srcdir}/i915-fix-ghost-tv-output.patch"
    # In 3.1.1, a DRM_DEBUG message is falsely declared as DRM_ERROR. This
    # worries users, as this message is displayed even at loglevel 4. Fix
    # this.
    patch -Np1 -i "${srcdir}/i915-fix-incorrect-error-message.patch"
    # Add the USB_QUIRK_RESET_RESUME for several webcams
    # FS#26528
    patch -Np1 -i "${srcdir}/usb-add-reset-resume-quirk-for-several-webcams.patch"
    # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
    # remove this when a Kconfig knob is made available by upstream
    # (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
    patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
    if [ "${CARCH}" = "x86_64" ]; then
    cat "${srcdir}/config.x86_64" > ./.config
    else
    cat "${srcdir}/config" > ./.config
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # set extraversion to pkgrel
    sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    #make menuconfig # CLI menu for configuration
    #make nconfig # new CLI menu for configuration
    make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"
    #return 1
    yes "" | make config
    # build!
    make ${MAKEFLAGS} bzImage modules
    package_linux-morrvick() {
    pkgdesc="The Linux Kernel and modules"
    groups=('base')
    depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.16' 'mkinitcpio>=0.7')
    optdepends=('crda: to set the correct wireless channels of your country')
    provides=('kernel26')
    conflicts=('kernel26')
    replaces=('kernel26')
    backup=("etc/mkinitcpio.d/${pkgname}.preset")
    install=${pkgname}.install
    cd "${srcdir}/linux-${_basekernel}"
    KARCH=x86
    # get kernel version
    _kernver="$(make kernelrelease)"
    mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
    make INSTALL_MOD_PATH="${pkgdir}" modules_install
    cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgname}"
    # add vmlinux
    install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -D -m644 "${srcdir}/${pkgname}.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i "${startdir}/${pkgname}.install"
    sed \
    -e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgname}\"|g" \
    -e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgname}-fallback.img\"|g" \
    -i "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
    # remove build and source links
    rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf "${pkgdir}/lib/firmware"
    # gzip -9 all modules to save 100MB of space
    find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
    # make room for external modules
    ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
    # add real version for building modules and running depmod from post_install/upgrade
    mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}"
    echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version"
    package_linux-headers-morrvick() {
    pkgdesc="Header files and scripts for building modules for linux kernel"
    provides=('kernel26-headers')
    conflicts=('kernel26-headers')
    replaces=('kernel26-headers')
    mkdir -p "${pkgdir}/lib/modules/${_kernver}"
    cd "${pkgdir}/lib/modules/${_kernver}"
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd "${srcdir}/linux-${_basekernel}"
    install -D -m644 Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/Makefile"
    install -D -m644 kernel/Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"
    install -D -m644 .config \
    "${pkgdir}/usr/src/linux-${_kernver}/.config"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
    for i in acpi asm-generic config crypto drm generated linux math-emu \
    media net pcmcia scsi sound trace video xen; do
    cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
    done
    # copy arch includes for external modules
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/x86"
    cp -a arch/x86/include "${pkgdir}/usr/src/linux-${_kernver}/arch/x86/"
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"
    cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"
    # fix permissions on scripts dir
    chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"
    cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
    if [ "${CARCH}" = "i686" ]; then
    cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
    fi
    cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
    # add headers for lirc package
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video"
    cp drivers/media/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/"
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
    cp -a drivers/media/video/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
    done
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
    # add dm headers
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
    cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
    # add inotify.h
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"
    cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"
    # add wireless headers
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
    cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core"
    cp drivers/media/dvb/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/"
    # and...
    # http://bugs.archlinux.org/task/11194
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
    cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    cp drivers/media/dvb/frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    cp drivers/media/video/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    # add dvb headers
    # in reference to:
    # http://bugs.archlinux.org/task/20402
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"
    cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"
    cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"
    cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"
    # add xfs and shmem for aufs building
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
    cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`
    cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"
    done
    chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
    # strip scripts directory
    find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
    case "$(file -bi "${binary}")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip ${STRIP_SHARED} "${binary}";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip ${STRIP_STATIC} "${binary}";;
    *application/x-executable*) # Binaries
    /usr/bin/strip ${STRIP_BINARIES} "${binary}";;
    esac
    done
    # remove unneeded architectures
    rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    package_linux-docs() {
    pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel."
    provides=('kernel26-docs')
    conflicts=('kernel26-docs')
    replaces=('kernel26-docs')
    cd "${srcdir}/linux-${_basekernel}"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}"
    cp -al Documentation "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}" -type f -exec chmod 444 {} \;
    find "${pkgdir}" -type d -exec chmod 755 {} \;
    # remove a file already in linux package
    rm -f "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
    After the compiling is finished:
    sudo pacman -U linux-morrvick-3.1.1-1-x86_64.pkg.tar.xz
    Password:
    resolving dependencies...
    looking for inter-conflicts...
    :: linux-morrvick and linux are in conflict (kernel26). Remove linux? [y/N] n
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: linux-morrvick and linux are in conflict (kernel26)
    Any thoughts?

  • VBscript - how to Disable "Use Automatic configuration Script"

    Hi There
    I currently have the below script in a vbs file;
    Const HKEY_CURRENT_USER = &H80000001
    Set objShell = CreateObject("WScript.Shell")
    strPC = objShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
    On Error Resume Next
    Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
    strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
    strValueName = "ProxyEnable"
    objReg.GetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
    '#==============================================================================
    '# If
    IE Proxy is currently enabled display message and ask user whether it
    '# should
    then be disabled
    '#==============================================================================
    If dwValue = 1 Then
    IEPrompt = MsgBox ("Hello David. Your Proxy is on,  Do you want to turn it off?", vbQuestion+vbYesNo, "Disable IE Proxy")
    If IEPrompt = vbYes Then
    dwValue = 0
    objReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue 
    MsgBox "Thank You David, your proxy is now off. Have a nice day" & _
    ".",vbInformation, "Disable IE Proxy"
    ElseIf IEPrompt = vbNo Then
    MsgBox "David, your Proxy is still on " & _
    ".",vbInformation, "Disable IE Proxy"
    End If
    '#==============================================================================
    '# If
    IE Proxy is currently disabled display message and ask user whether it
    '# should
    then be enabled
    '#==============================================================================
    ElseIf dwValue = 0 Then
    IEPrompt = MsgBox ("Hello David. Your Proxy is off,  Do you want to turn it on?", vbQuestion+vbYesNo, "Enable IE Proxy")
    If IEPrompt = vbYes Then
    dwValue = 1
    objReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
    MsgBox "Thank You David, your proxy is now on. Have a wonderful day" & _
    ".",vbInformation, "Enable IE Proxy"
    ElseIf IEPrompt = vbNo Then
    MsgBox "David, your Proxy is still on" & _
    ".",vbInformation, "Enable IE Proxy"
    End If
    End If
    This only turns off the proxy server in IE/Tools/Internet Options/Connections/Lan Settings.
    Can I get this same code to turn of the 'Automatic configuration' check boxes instead or as well?
    Many thanks
    Luke

    Hi Luke,
    We hope your issue has been resolved
    The registry for use automatic configuration script is under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL
    (For per user) It shows when script is set to work.
    Regarding to question about scripting or VB script, I’d suggest that post your issue at TechNet scripting Forum and MSND forum. There you can get more effective suggestion by other experts who familiar with scripting. Your understanding is highly appreciated.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
    And just for your reference, we do have a Group Policy for that, link it to a scope (Site, Domain, or OU level) which contain user account object.
    For more information please refer to following MS article:
    Configure a Registry Item
    https://technet.microsoft.com/en-us/library/cc753092.aspx
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • [SOLVED] Black screen after kernel boot after pacman -Syu

    Hi, after full system upgrade with pacman -Syu, I get after the kernel boot black screen and everything is freezing. Then need to manually shut down the power button!
    Normally when my system starts up after the kernel boot I get straight to the command line terminal login.
    Can anybody help me how to fix this? Any clues? Any advice is welcome!
    The problem is solved by downgrading to kernel 3.6.11.-1
    Many thanks for the help from the people on #archlinux !
    Last edited by OpenEye (2013-01-29 05:14:04)

    jasonwryan wrote:
    Please stop bumping your thread: use the edit button
    https://wiki.archlinux.org/index.php/Fo … te#Bumping
    What have you done about the errors being printed to your logs? You could start by fixing the network error and the broken udev rule...
    Are you still using intiscripts? They are no longer supported: https://www.archlinux.org/news/end-of-i … s-support/
    # edit: not a pacman issue, moving to Newbie Corner
    I have searched for many hours and days for solutions on the internet and forums, tried some things, but with no results! I don't know how to fix the errors! Do you know how to fix that? I'm a total n00b! I'm doing my best as I can! Need help, thanks!

  • After updating my iPhone 4 to iOS 5, I can see it in iTunes in the source list, but after selecting it, there is no summary or anything to configure my sync options. I just see 'iPhone' written. What can I do to fix this?

    I just updated my iPhone and my iPad to iOS 5.
    Restoring the backup just worked fine as well as syncing the music and videos, but my Apps weren't synced at all.
    With my iPhone I got it done, after I installed some of my apps using the cloud and suddenly the all were installed during the next sync with my iTunes. All the stored data of my apps were on the iPhone, so I didn't loose anything.
    But with my iPad, this didn't work as well. I seem to have to install all apps by my self from the cloud.
    But my major problem is, that when I connect my devices to my Mac Book Air, they are shown in the source list, but except for showing 'iPhone' or 'iPad' I see nothing. I can't configure any sync options, so I am not able to do change or do anything.
    When updated to iOS 5 I used to restore the backup from before updating my iPhone/iPad in iTunes.
    Thanks for your help.
    Best regards,
    Rene
    Germany

    You should be importing all pics taken with the iphone to your computer regularly as you would with any digital camera, particularly before any update or restore.
    You should also be syncing your contacts to your computer regularly.  They hsould be in whatever program/service that you have selected to sync.
    If you have failed to do this, then they are very likely gone.
    You can try restoring from backup.

  • Arch-0.6 How does one configure the kernel

    Hi everone. I'm a new arch user (coming from gentoo) this is my first post here.
    I installed Arch Linux 0.6 on my computer. I have experience configuring kernels, but I'm not sure where to do this in Arch Linux. In /usr/src there is only a "linux' directory, which I am unable to run the make menuconfig command from.
    Normally I would cd to /usr/src/linux, and run "make menuconfig". In the Linux directory are a number of other directories in which I cannot find the kernel.

    Well I am really happy to be able to configure MY kernel because I can get rid of modules I dont use and I dont have to bother about hotplug desperately trying to load modules that generate error messages.
    Arch's stock kernel is good, but I dont like to have 40 modules loaded at the same time, each dependant of the other, which is kind of a cube tower getting always higher, thus always more unstable.
    How many times have I heard of people not being able to get  sound working ? They had 15 modules for sound , which is absolutely scaring...especially when a piece of them generated strange error messages...
    And if you compile your kernel, you know what exactly is handling your harware and so you are much more able to figure out what is going wrong when a device is not working anymore.
    I had a working system with a stock kernel and about 30 blacklisted modules, and about 10 manually added. I felt the system was going to crash every five minutes when I was playing multimedia(which actually occured a couple of times)
    I also had a working sytem with my own kernel, and it was much more stable. Hotplug loaded the modules I wanted it to load, and did not need hours to probe all my devices.
    When I build external modules(NVIDIA, ipw2100 wireless drivers), they compile fine, whereas they dont always do with the stock kernel.

  • Sd_mod, sr_mod: which kernel options?

    Hello all,
    I just started fiddling around with compiling my own kernel because I'm not satisfied with the performance/latency of my desktop system.
    I thought it would be a good thing to start with
    http://wiki.archlinux.org/index.php/Kernel_Compilation_From_Source
    to get a hang of the whole procedure. I compiled a few kernels with minor changes (moving modules into the kernel etc.) just to see what happens and practice a bit. It all worked fine, adjusting menu.lst, mkinitcpio and so on...
    Then I started to remove all the stuff that I (thought I ) didn't need for my laptop (TravelMate 4650). I ran into problems when mkinitcpio reported 'ata_piix' and other ata stuff missing but I went back to gconfig and it was easy to find out what I shouldn't have removed.
    Now -- after ruthlessly double-clicking around in gconfig ("if it doesn't sound familiar, it has to go" ) -- mkinitcpio tells me I need 'sr_mod' and 'sd_mod', some really important SCSI modules (apparently). I don't even have SCSI devices but my disks are all /dev/sd* so that means I need SCSI support, right? This is the message:
    [13:50:26][luke@calculon][~/kernelbuild/linux-2.6.23]$ sudo mkinitcpio -k 2.6.23-MY_ARCH -g /boot/kernel26-my-arch.img
    :: Begin build
    :: Parsing hook [base]
    :: Parsing hook [udev]
    :: Parsing hook [autodetect]
    :: Parsing hook [pata]
    ERROR: module 'sd[-_]mod' not found
    ERROR: module 'sr[-_]mod' not found
    :: Parsing hook [keymap]
    :: Parsing hook [filesystems]
    :: Generating module dependencies
    :: Generating image '/boot/kernel26-my-arch.img'...SUCCESS
    My problem now is that I can't figure out which kernel options are related to these two modules. The 'SCSI device support' section lists 'BLK_DEV_SD' and 'BLK_DEV_SR' which I activated with the 'M' (I looked up the config from abs to find the standard settings). I still get the same message. Does it make a difference (to mkinitcpio) if you mark something 'M' or 'Y'? I mean, does it realize that if something isn't there as a modul it might be integrated in the kernal already?
    All in all I have to say is that the whole kernel compilation is not that complicated. I was always afraid to try but now (thanks to Arch) I started diving into the innards (eewww) of a Linux system. The important thing is to keep a working backup version in case something goes wrong (which will happen).
    I've read a little (only superficially so far) about patching the kernel to increase performance/responsiveness on the desktop (which is my ultimate goal). There seems to be a big discussion going on (with Con Colivas and all) about this issue. I know, there are a lot of topics about this already but is applying kernel patches worth the effort? Can you feel a difference in performance? I've set the Processor Family option the Pentium-M (my CPU) and I set the Preemption Model to PREEMPT but that hasn't really made a difference. If you ask me, it's probably worse than before.
    OK, the last paragraph was a little OT, my main problem are 'sd_mod' and 'sr_mod' .  It takes 20 minutes to compile every time so I'm a little reluctant to just use trial and error with every module.
    Thanks for immediate help or giving relevant links. Is there something that tells you exactly which module is linked to which config option? That would be really helpful.
    --masterluke
    Last edited by mmmasterluke (2008-02-13 13:47:56)

    I tried to mkinitcpio with both scsi disk support built into the kernel and as a module both ways I am not able to make my system work with the new kernel.
    I get the same error if I try to run mkinitcpio with scsi disk support build into the kernel.
    When the scisi disk sopport is left to be loaded later as a module, mkinitcpio works fine but later while booting the system complains that the partition was not found, i.e /dev/disk/by-uuid/"some kinda code" was not found.
    I am not able to boot into my new kernel.
    please help.

  • How to set focus and mark red on certain select option field

    hi experts
    I embedded a select_option view in my application and  tried to use IF_WD_SELECT_OPTIONS->request_focus to set focus on a certain select option field if the logical check failed, and also hope the low field of the select option can be marked red....but things does not happen that way....
    could anyone kindly tell me how to implement that requirement?
    tkx and regards
    sun

    What is the problem you are facing in this ?
    Requesting focus is easy.
    just call the method request focus and pass the id of the parameter whose lower value field you want to focus.
    as shown below.
    code you might have written in wddoinit
    DATA: LT_RANGE_TABLE TYPE REF TO DATA,
            RT_RANGE_TABLE TYPE REF TO DATA,
            READ_ONLY TYPE ABAP_BOOL,
            TYPENAME TYPE STRING.
        DATA: LR_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER,
            L_REF_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
    *   * create the used component
      L_REF_CMP_USAGE = WD_THIS->WD_CPUSE_SELECT_OPTIONS( ).
      IF L_REF_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
        L_REF_CMP_USAGE->CREATE_COMPONENT( ).
      ENDIF.
        WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
        WD_THIS->M_HANDLER = WD_THIS->M_WD_SELECT_OPTIONS->INIT_SELECTION_SCREEN( ).
    LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'ZDEALERID' ).
    * * add a new field to the selection
      WD_THIS->M_HANDLER->ADD_SELECTION_FIELD( I_ID = 'ID'
      IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
    code for focusing a field.
    wd_this->m_handler->request_focus( i_id = 'ID' ).
    you must have declared attributes m_handler and m_wd_select_options type reffering to IF_WD_SELECT_OPTIONS and
    IWCI_WDR_SELECT_OPTIONS respectively.
    and regarding that red color i am not sure it is possible without using message manager.
    thanks
    sarbjeet

  • Changing kernel options for Xorg.

    Hi, all!
    My video card (ATI Radeon) and monitor (Sun GDM-5410) combination cause problems with some kernels, ie, I get 'out of range' problems on my monitor. The default kernel on the Arch build is one of the distros that struggles with this.
    I did an install of Gentoo the other day and using the Gentoo installation guid [0], ensured that everything was correctly 'switched-on' in the kernel and X was fine. I want to get Arch installed with X running properly, and was wondering what the best way is to ensure the kernel options are 'switched-on' and the kernel compiled properly. I don't need anything special like proprietary drivers, so I should just be able to take the stock Arch kernel and make my changes. Does Arch do this in a special 'Arch' way, or is there anything else I need to know?
    I did Google this, but the article was talking about grabbing another kernel and compiling stuff in. I don't need another kernel :-)
    [0] Specifically Para 2 http://www.gentoo.org/doc/en/xorg-config.xml
    Any help appreciated.
    Cheers,
    Chris.
    Last edited by chris_debian (2011-01-25 16:49:25)

    karol wrote:The wiki has article(s) about compiling a kernel.
    https://wiki.archlinux.org/index.php/Kernel_Compilation
    https://wiki.archlinux.org/index.php/Ke … rom_Source
    Thank you. I guess the question is, if I compile an option into the kernel for my graphics card, will I have to do this every time the kernel is upgraded?
    I'll look at the links you provided and hopefully things will be a bit clearer.
    Ten years ago, I'd re-compile kernels without thinking about it. I guess that because the kernel now has such good hardware support, i'm a little out of practice. :-)
    Thanks,
    Chris.
    Last edited by chris_debian (2011-01-28 07:04:09)

  • Use System Proxy Settings - when this is selected in FF v3.6.6, does it adhere to the same local IE proxy setting? We use a pac file configured in "Use automatic configuration script."

    Does anyone know what Firefox looks at locally on the PC when the "Use System Proxy Settings" setting is selected? It appears to be the default setting, recently changed from "No Proxy" of versions past...
    Our company uses a pac file specified in IE under "Use automatic configuration script" - with this new default, does it adhere to the same setting in:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

    I may be wrong but I think that the "Use System Proxy Settings" makes sense only on Linux and generally speaking "other OSes". As far as I know there is no generic proxy settings in Windows operating system.
    The one I know is in the registry part of Internet Explorer.
    So in my understanding in Windows, Use System Proxy Settings = No Proxy

  • Automatically configure UDA question

    First,I set 'automatically configure user device affinity from usage data' in UDA settings to 'No',then client will send a state message (TopticID:1600) indicates that CCM client is waiting the UDA request to be approved and save it in wmi during
    the user affinity usage task.State message and logs look like this:
    >>>>>>Starting processing user affinity usage task<<<<<<
    Auto affinity threshold settings Days = '30', User minutes threshold = '2880', Auto approve affinity = '0'.
    Clean up agents user logon events...
    Retrieving user minutes map...
    Loading approved and pending user affinities...
    Checking if any pending affinity is approved...
    Checking usage minutes per user against current minutes threshold...
    User 'abc\def' has 3425 usage minutes
    Setting auto affinity for user 'abc\def'.
    Successfully sent user affinity state message for user 'abc\def'.
    Successfully created pending user affinity for user 'abc\def' into WMI.
    >>>>>>Finished processing user affinity usage task<<<<<<
    After that,I turn on 'automatically configure user device affinity from usage data' ,but client will only refresh the old state message (TopticID:1600) in wmi which indicates it has automatically set uda for the user and
    will not send the new state message to site server becasue it consider the same state message existing in wmi.
    >>>>>>Starting processing user affinity usage task<<<<<<
    Auto affinity threshold settings Days = '7', User minutes threshold = '1500', Auto approve affinity = '1'.
    Clean up agents user logon events...
    Retrieving user minutes map...
    Loading approved and pending user affinities...
    Checking if any pending affinity is approved...
    User 'abc\def' in pending affinity is not approved yet
    Checking usage minutes per user against current minutes threshold...
    User 'abc\def' has 3608 usage minutes
    Setting auto affinity for user 'abc\def'.
    Found same state message existing. (was sent before) Skip sending same state message for user 'abc\def'..
    >>>>>>Finished processing user affinity usage task<<<<<
    I can manually delete the TopicID 1600 message in wmi and restart the ccm client,after that the new uda state message will send into the site dabase and pending request in console will be disappeared.
    That is my question.Actually the state message content is different from the old one.Why ccm client consider they are the same messages and will not send it so that the uda information is not set for user in ccm database.(In console it
    always display as a pending request)

    Sorry for the delay.
    I tested the situation again and came into the same result.
    1. If the logged on user have already reached the threshold before you changed the Client Setting to Yes for Auto UDA, the State Message did not send out again. Because the agent thought this box is in pending state, no more state message needed.
    2. If the logged on user have not reached the threshold before you changed that setting, the Auto UDA State Message will send if the user reaches the threshold in the future.
    Seems this is by design. Anyway, I recorded this situation.
    Juke Chou
    TechNet Community Support

  • How to Configure Linux Kernel for Oracle8

    Hello :
    Could you please tell me How to configure the linux Kernel to
    accommodate the SGA ?
    I run the ipcs command and didnt list nothing. I already look the
    linux library to find out how to set the parameters listed on
    page 4 on chapter 2 "setting the enviroment" on the linux
    Installation guide for Oracle8 but I couldnt find nothing.
    Could you please help me ?
    regards
    Mauricio Spamer
    null

    Saif Manzoor (guest) wrote:
    : Go to the following site
    : http://jordan.fortwayne.com/oracle/
    : you will find some tips on configuring the kernel.
    : Saif
    : Mauricio Spamer (guest) wrote:
    : : Hello :
    : : Could you please tell me How to configure the linux Kernel to
    : : accommodate the SGA ?
    : : I run the ipcs command and didnt list nothing. I already
    look
    : the
    : : linux library to find out how to set the parameters listed on
    : : page 4 on chapter 2 "setting the enviroment" on the linux
    : : Installation guide for Oracle8 but I couldnt find nothing.
    : : Could you please help me ?
    : : regards
    : : Mauricio Spamer
    I have the same problem. What I have to do?
    Thanks.
    Formiga
    [email protected]
    null

  • Configure the chat option in Fusion Applications

    Hi All,
    I am new to the Fusion Applications .When I Login to the Fusion I am able to see the chat screen.But it shows as Offline.
    I also add a person by managing connection requests from the chat screen,but when we both login to the application the chat option is not get connecting.
    So I have the following questions:
    Is there any configuration needed for the chat additionally?
    If necessary how to configure the chat option?
    Can anyone please help me?
    Thanks
    Chitra
    Edited by: 938366 on Aug 21, 2012 2:22 AM

    Hi
    Thanx for Your reply !! Can u suggest me the corrct forum path or link for posting my issue????

Maybe you are looking for