Info script

I' m trying to use the info script found on this forum, but I' ve some problem.....
This is the script:
#!/usr/bin/perl
# colors
$c1 = "\e[0;34m";
$c2 = "\e[0;36m";
$c3 = "\e[0;m";
#what values to display. Use "OS Kernel DE WM WMTheme Font Icon Theme"
$display = "OS Kernel DE WM WMTheme Theme Icon Font";
use Switch;
@wm = ("fluxbox", "openbox", "blackbox",
"xfwm", "metacity", "kwin");
@line = ();
%de = ("gnome", "gnome-session",
"xfce", "xfce",
"kde", "ksmserver");
$quite = 1; # Prints little debugging messages if set to 0;
$tryWP = 1; # trys to find your wallpaper if set to 0;
## Dont alter after this ##
my $isDE = 0;
my $version = `cat /etc/arch-release`;
my $kernel = `uname -r`;
$version =~ s/\s+/ /g;
$kernel =~ s/\s+/ /g;
$version = "$c1 OS:$c3 $version";
$kernel = "$c1 Kernel:$c3 $kernel";
if ( $display =~ "OS"){
push(@line, "$version");
if ( $display =~ "Kernel"){
push(@line, "$kernel");
parsePS(2);
$isDE == 0 && print "No DE found, not running one?..\n" unless $quite == 1;
if( $isDE == 0 ) {
if( !open(GTKRC, "<", "$ENV{HOME}/.gtkrc-2.0") ) {
print "$ENV{HOME}.gtkrc-2.0 -> $!...\n";
} else {
while( <GTKRC> ) {
if( /include "$ENV{HOME}\/\.themes\/(.+)\/gtk-(1|2)\.0\/gtkrc"/ ){
$theme = "$c1 Theme:$c3 $1";
if ( $display =~ m/Theme/ ) {
push(@line, "$theme");
if( /gtk-icon-theme-name.*=.*"(.+)"/ ) {
$icon = "$c1 Icons:$c3 $1";
if ( $display =~ m/Icon/ ) {
push(@line, "$icon");
if( /gtk-font-name.*=.*"(.+)"/ ) {
$font = "$c1 Font:$c3 $$1";
if ( $display =~ m/Font/ ) {
push(@line, "$font");
close(GTKRC);
## Processes First
parsePS(1);
## Couldn't find a WM in PS
$WM =~ /Unknown/ && print "No WM found, yours isn't on the list?...\n" unless $quite == 1;
} else {
grabDEinfo($DE);
print "
$c1 __
$c1 _=(SDGJT=_
$c1 _GTDJHGGFCVS) @line[0]
$c1 ,GTDJGGDTDFBGX0 @line[1]
$c1 JDJDIJHRORVFSBSVL$c2-=+=,_ @line[2]
$c1 IJFDUFHJNXIXCDXDSV,$c2 \"DEBL @line[3]
$c1 |LKDSDJTDU=OUSCSBFLD.$c2 '?ZWX, @line[4]
$c1 LMDSDSWH' \`?DCBOSI$c2 DRDS], @line[5]
$c1 SDDFDFH' \`0YEWD,$c2 )HDROD @line[6]
$c1 !KMDOCG &GSU|$c2\_GFHRGO' @line[7]
$c1 HKLSGP'$c2 __$c1\TKM0$c2\GHRBV)'
$c1 JSNRVW'$c2 __+MNAEC$c1\IOI,$c2\BN'
$c1 HELK['$c2 __,=OFFXCBGHC$c1\FD)
$c1 ?KGHE $c2\_-#DASDFLSV='$c1 'EF
$c1 'EHTI !H
$c1 \`0F' '!
sub parsePS {
my $x = 0;
my $y = 0;
my $found = 0;
my $psl = `ps -A | awk {'print \$4'}`;
@psl = split(/\n/, $psl);
switch (shift @_) {
case 1 {
$WM = "Unknown";
while( $x < @wm && $found == 0 ) {
while( $y < @psl ) {
print "Testing '$psl[$y]' with '$wm[$x]'\n" unless $quite == 1;
if( $psl[$y] =~ /$wm[$x]/ ) {
$WM = $wm[$x];
if ( $display =~ m/WM/ ) {
push(@line, "$c1 WM:$c3 $WM");
print "WM found as $WM\n" unless $quite == 1;
getWMtheme();
$found = 1;
last;
$y++;
$y = 0;
$x++;
$found == 1 && last;
case 2 {
$isDE = 0;
$DE = "None";
while( ($dev, $devid) = each(%de) ) {
while( $x < @psl ) {
print "Testing '$psl[$x]' with '$devid'\n" unless $quite == 1;
if( $psl[$x] =~ /$devid/ ) {
$DE = $dev;
print "DE found as $DE\n" unless $quite == 1;
$found = 1;
$isDE = 1;
if ( $display =~ m/DE/ ) {
push(@line, "$c1 DE:$c3 $DE");
last;
$x++;
$x = 0;
$found == 1 && last;
sub getWMtheme {
switch($WM) {
case "openbox" {
open(FILE, "<", "$ENV{HOME}/.config/openbox/rc.xml")
|| die("$!\nFailed to open OpenBox rc.xml...\n");
while( <FILE> ) {
if( /<name>(.+)<\/name>/ ) {
print "OB Theme found as $1\n" unless $quite == 1;
$WMTHEME = $1;
$wmtheme = "$c1 WM Theme:$c3 $WMTHEME";
if ( $display =~ m/WMTheme/ ) {
push(@line, "$wmtheme");
last;
close(FILE);
case "metacity" {
$WMTHEME = `gconftool-2 -g /apps/metacity/general/theme`;
$wmtheme = "$c1 WM Theme:$c3 $WMTHEME";
if ( $display =~ m/WMTheme/ ) {
push(@line, "$wmtheme");
case "fluxbox" {
open(FILE, "<", "$ENV{HOME}/.fluxbox/init")
|| die("$!\nFailed to open Fluxbox init file...\n");
while( <FILE> ) {
if( /session.styleFile: \/.+\/(.+)$/ ) {
print "FB Theme found as $1\n";
$WMTHEME = $1;
$wmtheme = "$c1 WM Theme:$c3 $WMTHEME";
if ( $display =~ m/WMTheme/ ) {
push(@line, "$wmtheme");
last;
close(FILE);
case "blackbox" {
open(FILE, "<", "$ENV{HOME}/.blackboxrc")
|| die("$!\nFailed to open Blackbox .blackboxrc file...\n");
while( <FILE> ) {
if( /session.styleFile: \/.+\/(.+)$/ ) {
print "BB Theme found as $1\n";
$WMTHEME = $1;
$wmtheme = "$c1 WM Theme:$c3 $WMTHEME";
if ( $display =~ m/WMTheme/ ) {
push(@line, "$wmtheme");
last;
close(FILE);
case "xfwm" {
open(FILE, "<", "$ENV{HOME}/.config/xfce4/mcs_settings/xfwm4.xml")
|| die("XFCE4 -> $!...\n");
while( <FILE> ) {
if( /<option name="Xfwm\/ThemeName" type="string" value="(.+)"\/>/ ) {
$WMTHEME = $1;
$wmtheme = "$c1 WM Theme:$c3 $WMTHEME";
if ( $display =~ m/WMTheme/ ) {
push(@line, "$wmtheme");
close(FILE);
case "kwin" {
open(FILE, "<", "$ENV{HOME}./kde/share/config/kwinrc")
|| die("\nFailed to open kwin config file \n");
while( <FILE> ) {
if( /PluginLib=(.+)/ ) {
$WMTHEME = $1;
$wmtheme = "$c1 WM Theme:$c3 $WMTHEME";
if ( $display =~ m/WMTheme/ ) {
push(@line, "$wmtheme");
close(FILE);
sub grabDEinfo {
switch(shift @_) {
case "gnome" {
parsePS(1);
if ( $display =~ m/Theme/ ) {
$THEME = `gconftool-2 -g /desktop/gnome/interface/gtk_theme`;
$theme = "$c1 Theme:$c3 $THEME";
push(@line, "$theme");
if ( $display =~ m/Icon/ ) {
$ICON = `gconftool-2 -g /desktop/gnome/interface/icon_theme`;
$icon = "$c1 Icon:$c3 $Icon";
push(@line, "$icon");
if ( $display =~ m/Font/ ) {
$FONT = `gconftool-2 -g /desktop/gnome/interface/font_name`;
$font = "$c1 Font:$c3 $FONT";
push(@line, "$font");
case "xfce" {
parsePS(1);
open(FILE, "<", "$ENV{HOME}/.config/xfce4/mcs_settings/gtk.xml")
|| die("XFCE4 GTK -> $!...\n");
while( <FILE> ) {
if( /<option name="Net\/ThemeName" type="string" value="(.+)"\/>/ ) {
$THEME = $1;
$theme = "$c1 Theme:$c3 $THEME";
if ( $display =~ m/Theme/ ) {
unshift(@xfce, "$theme");
if( /<option name="Net\/IconThemeName" type="string" value="(.+)"\/>/ ) {
$ICON = $1;
$icon = "$c1 Icon:$c3 $ICON";
if ( $display =~ m/Icon/ ) {
unshift(@xfce, "$icon");
if( /<option name="Gtk\/FontName" type="string" value="(.+)"\/>/ ) {
$FONT = $1;
$font = "$c1 Font:$c3 $FONT";
if ( $display =~ m/Font/ ) {
unshift(@xfce, "$font");
close(FILE);
foreach $i (@xfce) {
push(@line, "$i");
case "kde" {
prasePS(1);
open(FILE, "<", "$ENV{HOME}/.kde/share/config/kdeglobals")
|| die("\nFailed to open kwin config file \n");
while( <FILE> ) {
if( /Theme=(.+)/ ) {
$ICON = $1;
$icon = "$c1 Icon:$c3 $ICON";
if ( $display =~ m/Icon/ ) {
push(@line, $icon);
if( /widgetStyle(.+)/ ) {
$THEME = $1;
$theme = "$c1 Theme:$c3 $THEME";
if ( $display =~ m/Theme/ ) {
push(@line, $icon);
if( /font=(.+),.*/ ) {
$FONT = $1;
$font = "$c1 Font:$c3 $FONT";
if ( $display =~ m/Icon/ ) {
push(@line, $font);
and this is the result:
What' s wrong?

dolby wrote:
no it still doesnt work. ive got a plain openbox. no gnome/xfce/kde/*
:: Finding Kernel version
:: Getting processes
:: Testing KDE process: ksmserver
:: Testing Gnome process: gnome-session
:: Testing Xfce4 process: xfce-mcs-manage
:: Testing PekWM process: pekwm
:: Testing Fluxbox process: fluxbox
:: Testing FVWM process: fvwm
:: Testing Blackbox process: blackbox
:: Testing IceWM process: icewm
:: Testing Enlightenment process: enlightenment
:: Testing Openbox process: openbox
:: WM found as Openbox
:: Finding Openbox theme
:: Openbox theme found as DarkGraph
:: Opening /home/dou/.gtkrc-2.0
:: Opening /home/dou/.gtkrc.mine
:: Icons found as Tango
:: Font found as Sans 9
:: Finding Archlinux version
_=(SDGJT=_
_GTDJHGGFCVS) OS: Arch Linux 0.8 (Voodoo)
,GTDJGGDTDFBGX0 Kernel: 2.6.20-ARCH
JDJDIJHRORVFSBSVL-=+=,_ WM: Openbox
IJFDUFHJNXIXCDXDSV, "DEBL WM Theme: DarkGraph
[LKDSDJTDU=OUSCSBFLD. '?ZWX, Icons: Tango
,LMDSDSWH' `DCBOSI DRDS], Font: Sans 9
SDDFDFH' !YEWD, )HDROD
!KMDOCG &GSU|_GFHRGO'
HKLSGP' __TKM0GHRBV)'
JSNRVW' __+MNAECIOI,BN'
HELK[' __,=OFFXCBGHCFD)
?KGHE _-#DASDFLSV=' 'EF
'EHTI !H
`0F' '!
while the one i used before (link posted above)
OS: Arch Linux 0.8 (Voodoo)
Kernel: 2.6.20-ARCH
Gtk Theme: Murrina-Black
Gtk Icons: Tango
Gtk Font: Sans 9
WM: Openbox
Openbox Theme: DarkGraph
Your arch data should perhaps have....."voodoo Arch Linux" thruout the simulation!!!!!!!

Similar Messages

  • Need scripts for fetching groups and subgroups info , script for del users

    Hi ,
    I need a script or macro which will fetch list of groups and sub groups triend forums download did not fine one.
    I need another script which will delete listed users there is a macro in forums but it doesn't suit my rquirement.
    Any one have these scripts handy with you please help me with that,
    Regards,
    Neo.

    Hi Braham,
    Thanks for your quick reply.
    Are we able to do this on two stage method
    1. grab the security groups from the share paths
    if can grab the share path from a separate txt file than copying it to the <your path> location
    so i can modify the txt file
    once run the script
    if can the output like below to a CSV file
    \\servername\foldermain\folder1group 1group 2group 3\\servername\foldermain\folder2group 1group 2group 3then i know which groups belongs to which share paththen i can remove the duplicate groups and keep the common groups to grab the users belongs to itso with the second script same as the first copy the security groups to a txt file and the out put as below.what I needs is the users full name and the samaccount name ( user id )group 1user1user2user3
    group 2user1user2user3looking forward your help on thisThank you.Thilo

  • How to export Powershell script information to Sharepoint?

    I'm trying to export information gather from a Powershell script to a Sharepoint list. I've got a couple of powershell scripts that gather general server information from a server ex: server uptime, disk space, service tag, etc. and it will export the information
    to a csv file. What I would like to do is out-put the same information gathered by the powershell scripts to a Sharepoint list directly if at all possible.
    Ex:
    # all this does is reads from a list and runs a script call "boottime.ps1"
    get-content "\\%Data-Path-Of-List%\computers.txt" | %Data-Path-Of-Script%\boottime.ps1 |  Export-csv %Data-Path-For-CSV\Computers.csv
    # then just exports the information from the boottime.ps1 script to a csv file
    #I also have a script that will upload the information to a sharepoint list.
    # I found that I have to run this in version 2 of powershell, so I just open a DOS prompt in Admin Priv's and type the following
    powershell.exe -version 2.0
    # Next I make sure the Sharepoint snap-in is loaded
    if ( (Get-PSSnapin -Name Microsoft.sharepoint.powershell - erroraction silentlycontinue) -eq $null)
    Add-PsSnapin Microsoft.Sharepoint.Powershell
    $spweb = get-SPweb $spserver
    $spdata =$spweb.getlist("%URL_Of_My_List%")
    # this is the same location from the orginal Powershell script previously stated.
    $ComputerInfoFile = "%Data-Path-For-CSV%\Computers.csv"
    foreach ($rows in $tblData) {
    # here is where I add the information from my csv file
    # 2 things needs to be present
    # 1st the colums have to be present in the sharepoint site before I can upload the information
    # 2nd the columns have to the headers in my csv file
    $spItem = $spData.AddItem()
    $SpItem["ServerName"] = $row."ServerName".toString()
    $SpItem["Uptime"] = $row."Uptime".toString()
    $SpItem.Update()
    # this just disconnects from Sharepoint
    $spWeb.Dispose()
    Please dismiss all the comments it just helps me understand what the code is doing, also if this is not the correct place to post this question I appologize in adavance and ask that if this is the incorrect place to post this question please provide me a
    link to a where I can post such questions.

    Sorry for the delay in posting this, but I ended up getting working. I'll post it in the hopes that my head scratching will save someone else some head scratching:
    I ended up writting 3 PS scripts and one batch job.
    1st Batch file
    powershell.exe -version 2.0 -command
    \\%Script-Location\Get-Server-Infor-4-SP.ps1
    powershell.exe -version 2.0 -command \\%Script-Location\Delete-list-Items.ps1"
    powershell -veriosn 2.0 -command
    \\%Script-Location\Populate-SP.ps1
    1st PS script that gets the info:
    get-content
    \\%Location-Of-My-File-With-List-Of-Servers%\%name-of-file%.txt |
    \\%Location-Of-My-Script-To-get-the-Information-I-want | Export-csv
    \\%location-of-my-output\%filename%.csv
    Ex: get-content C:\scripts\computers.txt | C:\scripts\boottime.ps1 | export-csv C:\scripts\computer.csv
    2nd PS script Delete-List-Items.ps1
    # http:
    #Script 1 Boottime.ps1:
    # This script permits to get UpTime from localHost or a set of remote Computer
    # usage
    # localHost
    # .\BootTime.ps1
    # set of remote computers
    # get-content .\MyserverList.txt | .\boottime.ps1
    # Optionally pipe output to Export-Csv, ConverTo-Html
    Process {
    $ServerName = $_
    if ($serverName -eq $Null) {
    $serverName= $env:COMPUTERNAME
    $timeVal = (Get-WmiObject -ComputerName $ServerName -Query "SELECT LastBootUpTime FROM Win32_OperatingSystem").LastBootUpTime
    #$timeVal
    $DbPoint = [char]58
    $Years = $timeVal.substring(0,4)
    $Months = $timeVal.substring(4,2)
    $Days = $timeVal.substring(6,2)
    $Hours = $timeVal.substring(8,2)
    $Mins = $timeVal.substring(10,2)
    $Secondes = $timeVal.substring(12,2)
    $dayDiff = New-TimeSpan $(Get-Date –month $Months -day $Days -year $Years -hour $Hours -minute $Mins -Second $Secondes) $(Get-Date)
    $Info = "" | select ServerName, Uptime
    $Info.servername = $servername
    $d =$dayDiff.days
    $h =$dayDiff.hours
    $m =$dayDiff.Minutes
    $s = $daydiff.Seconds
    $info.Uptime = "$d Days $h Hours $m Min $s Sec"
    $Info
    #Script 2: Delete-List-Items.ps1
    # http://markimarta.com/sharepoint/delete-all-items-in-sharepoint-list-using-powershell/
    # there seems to be a problem with running this script in version 3 or later, the workaround is to run it in version 2
    # below is the cmd for doing so, just open up a DOS prompt with Admin Privileges Start-->Run-->cmd
    # type then copy and paste the following line the DOS window then you can run this script
    #powershell.exe -version 2.0
    # make sure that the Microsoft.SharePoint.PowerShell Snap-in is installed as well
    if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
    Add-PsSnapin Microsoft.SharePoint.PowerShell
    # "Enter the site URL instead http://serverurl"
    $SITEURL = "%http://serverurl%"
    $site = new-object Microsoft.SharePoint.SPSite ( $SITEURL )
    $web = $site.OpenWeb()
    "Web is : " + $web.Title
    # Enter name of the List below in the [“%List-Name%”]
    $oList = $web.Lists["%List-Name%"];
    # This echo out the name of the list its going to be deleting the records from
    "List is :" + $oList.Title + " with item count " + $oList.ItemCount
    # It’s just counting the rows/records
    $collListItems = $oList.Items;
    $count = $collListItems.Count - 1
    # Here is where it is actually deleting the records and then out put the number or the record it deleted
    for($intIndex = $count; $intIndex -gt -1; $intIndex--)
    "Deleting record: " + $intIndex
    $collListItems.Delete($intIndex);
    #Script 3: Populate-SP_Test.ps1
    # http://blogs.technet.com/b/stuffstevesays/archive/2013/07/10/3577320.aspx
    # there seems to be a problem with running this script in version 3 or later, the workaround is to run it in veriosn 2
    # below is the cmd for doing so, just open up a DOS prompt with Admin Privileges Start-->Run-->cmd
    # type then copy and paste the following line the the DOS window then you can run this script
    #powershell.exe -version 2.0
    # make sure that the Microsoft.SharePoint.PowerShell Snap-in is installed
    if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
    Add-PsSnapin Microsoft.SharePoint.PowerShell
    # Here are some more varables that can be added I was not able to get this to work
    #$SPComputerInfo="/Lists/PowershellTest/"
    # Here is where we connect and Open SharePoint List via Powershell
    $SPServer= "%http://serverurl%
    $spWeb = Get-SPWeb $SPServer
    $spData = $spWeb.GetList("%List-Name%")
    # This is the variable for the path that has the file I want to input to SharePoint List
    $InvFile="\\%location-ofList%\computers.csv"
    # This is just some error checking to make sure the file exist
    $FileExists = (Test-Path $InvFile -PathType Leaf)
    if ($FileExists) {
    "Loading $InvFile for processing..."
    $tblData = import-csv $InvFile
    } else {
    "$InvFile not found - stopping import!"
    exit
    # Loop through Applications add each one to SharePoint
    "Uploading data to SharePoint...."
    foreach ($row in $tblData) {
    #Here is where I add the information from my CSV file
    #2 things have to be present
    # 1. the columns have to be in the sharepoint site before I can import the information
    # 2. columns have to the headers in my csv file
    #"Adding entry for "+$row."Computer Information".ToString()
    $spItem = $spData.AddItem()
    $spItem["ServerName"] = $row."ServerName".ToString()
    $spItem["Uptime"] = $row."Uptime".ToString()
    #$spItem["DNSHostName"] = $row."DNSHostName".ToString()
    #$spItem["DistinguishedName"] = $row."DistinguishedName".ToString()
    $spItem.Update()
    # This is just disconnecting from SharePoint
    $spWeb.Dispose()
    Enjoy, and if anyone has a better way of doing this I'm interested in knowing, thanks again
    Thanks in Adavance

  • Some sample Applescripts are missing from Script menu.

    I am a new to AppleScript and I have just started reading A Beginner's Guide to Apple Script (by Guy Hart-Davis). The book makes numerous references to the default example scripts that are created during OS X install. I have added the script menu to to the menu bar and when I open the script menu - I only see about half of the default scripts that are shown in the book. I did some browsing and found other examples of the script menu which shows fewer scripts than the example in the book - but still shows a few more than what I am seeing on my system. On my system I do not see the following scripts (Address Book Scripts, Basics, Finder Scripts, Info Scripts, Internet Services, Navigation Scripts, URL's or Virtual PC Scripts). I am on SL 10.6.2. The book is written for SL 10.6 - but also makes references to Leopard 10.5. Is there something wrong with my system or were some of these default scripts eliminated in 10.6.2. My iMac came with 10.6.1 initially - so I have no prior OS version as a point of reference. My concern is that I progress with the lessons and exercises in the book - that there will be continued references to these missing scripts - as I suspect that the missing scripts may be used as a starting point for creating new scripts. Any idea where I can find the scripts that I listed as missing?

    Thanks. The book I am using appears to be a brand new book just released a month ago (or so). It appears the book may have been written for Leopard and tweaked for Snow Leopard (but under the guise of being the other way around) - without actually verifying that the examples for Snow Leopard actually work. The website for the book (McGraw Hill) does not seem to provide a mechanism for providing feedback or errata info. So far these missing scripts have not hampered my progress - except on the initial example. I was more concerned that something was missing from my iMac.

  • Looking for ACE Probe TCL script specific for LDAPS

    Hello Everyone,
    I have searched the forum, and i am having difficulty finding an example of how to modify the LDAP TCL probe from port 389 to secure LDAP port 636.
    Could someone kindly point me or provide me the modified TCL script if you happen to have it.
    During my search I also found a config that someone had provided, which contained the following probe:
    probe tcp LDAPS_Probe
      port 636
    probe tcp LDAP_Probe
      port 389
    I was trying to figure out if this a modified TCL script for LDAP or modifed TCP TCL script specific for port 636.
    This is how I applied the script for LDAP port 389.
    script file 1 LDAP_PROBE
    probe scripted LDAP_PROBE_389
    interval 5
    passdetect interval 30
    receive 5
    script LDAP_PROBE
    serverfarm host SF-LDAP-389
    description SF LDAP Port 389
    predictor leastconns
    probe LDAP_PROBE_389
    rserver LDAP-RS1-389
    inservice
    I will be more than glad to provide you any additional information that you need.
    As always thanks for your input.
    Raman Azizian
    SAIC/NISN Network services

    normally you would engage a TCL developer or ciso advanced services to develop a custom script for anything other than what Cisco provides in canned scripts. If you are comfortable with tcl you can do it yourself. Here is an example of the LDAP script modified to include initiation via ssl.  default port is 389 when you implement you would specify 636.
    #!name = LDAP_PROBE
    # Description:
    #    LDAP_PROBE opens a TCP connection to an LDAP server, sends a bind request. and
    #    determines whether the bind request succeeds.  LDAP_PROBE then closes the
    #    connection with a TCP RST.
    #    If a port is specified in the "probe scripted" configuration, the script probes
    #     each suspect on that port. If no port is specified, the default LDAP port 389
    #     is used.
    # Success:
    #   The script succeeds if the server returns a bind response indicating success
    #    (status code 0x0a0100) to the bind request.
    #   The script closes the TCP connection with a RST following a successful attempt.
    # Failure:
    #   The script fails due to timeout if the response is not returned.  This
    #    includes a failure to receive ARP resolution, a failure to create a TCP connection
    #    to the port, or a failure to return a response to the LDAP bind request.
    #   The script also fails if the server bind response does not indicate success.
    #    This specific error returns the 30002 error code.
    #   The script closes any attempted TCP connection, successful or not, with a RST.
    #  PLEASE NOTE:  This script expects the server LDAP bind response to specify length
    #   in ASN.1 short definite form.  Responses using other length forms (e.g., long
    #   definite length form) will require script modification to achieve success.
    # SCRIPT version: 1.0       April 1, 2008
    # Parameters:
    #   [DEBUG]
    #      username - user login name
    #      password - password
    #      DEBUG        - optional key word 'DEBUG'. default is off
    #         Do not enable this flag while multiple probe suspects are configured for this
    #         script.
    # Example config :
    #   probe scripted USE_LDAP_PROBE
    #         script LDAP_PROBE
    #   Values configured in the "probe scripted" configuration populate the
    #   scriptprobe_env array.  These may be accessed or manipulated if desired.
    # Documentation:
    #    A detailed discussion of the use of scripts on the ACE is included in
    #       "Using Toolkit Command Language (TCL) Scripts with the ACE"
    #    in the "Load-Balancing Configuration Guide" section of the ACE documentation set.
    # Copyright (c) 2005-2008 by Cisco Systems, Inc.
    # debug procedure
    # set the EXIT_MSG environment variable to help debug
    # also print the debug message when debug flag is on
    proc ace_debug { msg } {
        global debug ip port EXIT_MSG
        set EXIT_MSG $msg
        if { [ info exists ip ] && [ info exists port ] } {
         set EXIT_MSG "[ info script ]:$ip:$port: $EXIT_MSG "
        if { [ info exists debug ] && $debug } {
         puts $EXIT_MSG
    # main
    # parse cmd line args and initialize variables
    ## set debug value
    set debug 0
    if { [ regsub -nocase "DEBUG" $argv "" argv] } {
        set debug 1
    ace_debug "initializing variable"
    set EXIT_MSG "Error config:  script LDAP_PROBE \[DEBUG\]"
    set ip $scriptprobe_env(realIP)
    set port $scriptprobe_env(realPort)
    # if port is zero the use well known ldap port 389
    if { $port == 0 } {
        set port 389
    # PROBE START
    # open connection
    ace_debug "opening socket"
    set sock [  socket -sslversion all -sslcipher RSA_WITH_RC4_128_MD5 $ip $port ]
    fconfigure $sock -buffering line -translation binary
    # send a standard anonymous bind request
    ace_debug "sending ldap bind request"
    puts -nonewline $sock [ binary format "H*" 300c020101600702010304008000 ]
    flush $sock
    #  read string back from server
    ace_debug "receiving ldap bind result"
    set line [read $sock 14]
    binary scan $line H* res
    binary scan $line @7H6 code
    ace_debug "received $res with code $code"
    #  close connection
    ace_debug "closing socket"
    close $sock
    #  make probe fail by exit with 30002 if ldap reply code != success code  0x0a0100
    if {  $code != "0a0100" } {
        ace_debug " probe failed : expect response code \'0a0100\' but received \'$code\'"
        exit 30002
    ## make probe success by exit with 30001
    ace_debug "probe success"
    exit 30001

  • CSS - Executing a Keepalive Script

    Hi,
    I am trying to execute the following script, this script is testing connectivity on multiple hosts and TCP ports to define a service as 'up'
    #!name = CHECKPORT_STD_SCRIPT
    # Scriptname : CheckPortsTask.tcl
    # Pamapaters : <list of hosts ip >
    # <list of ports >
    # [verbose] optional verbose debug flag.
    # Description :
    # This is an example of standalone script. The script is given a list of hosts
    # and a list of posrts for each host. The script then checks to see if the host:port
    # is available and listening.
    # Example execution:
    # script task 1 "10.2.0.12 10.2.0.14 10.5.0.15" " 21 23 80 2048"
    proc ck_puts { msg } {
    puts "[ info script ] : $msg"
    # main
    # parse cmd line args and setup ip , port
    if { $argc != 2 } {
    ck_puts "paramaters: script task <id> [ info script ] <hostList> <portList>"
    exit -1
    set hostList [ lindex $argv 0 ]
    set portList [ lindex $argv 1 ]
    ck_puts "================= test start========================="
    foreach ip $hostList {
    ck_puts "----------------- host $ip-------------------------"
    foreach port $portList {
    ck_puts "testing $ip:$port"
    if { [catch { socket $ip $port } sock ] } {
    ck_puts "\t$ip:$port ERR : $sock"
    if { [ regexp "connection timed out" $sock ] } {
    ## erro due to connection timeout, skip to next ip
    break;
    ## other error, don't break, keep test next port for the same ip
    } else {
    ck_puts "\t$ip:$port OK"
    close $sock
    ck_puts "================= test end========================="
    My issue is that the comments suggest the arguements are put into 2 sections of quotations but the CSS will not allow this input....
    CSS11503(config-service[TEST-SERVICE])# keepalive type script checkportstask ?
    <cr> Execute command
    use-output Allow tools such as grep to parse script output
    <Quoted text> Script Arguments (Len: 0-128)
    CSS11503(config-service[TEST-SERVICE])# keepalive type script checkportstask
    CSS11503(config-service[TEST-SERVICE])# keepalive type script checkportstask "10.1.1.1 10.2.2.2" "80 443"
    ^
    %% Invalid input detected at '^' marker.
    CSS11503(config-service[TEST-SERVICE])#
    Can anyone shed some light on how this script is executed.
    Thanks,
    Brian

    what you show is a CSM/ACE TCL script.
    The CSS uses its own scripting language.
    More info @
    http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_configuration_guide_chapter09186a0080327ff9.html
    BTW, what you need already exists.
    http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_tech_note09186a00801e1e14.shtml
    Gilles.

  • ACE30 Script Issues, LDAP_PROBE

    The default script operates on an anonymous bind operation, and since Windows 2003 and beyond, MS does not support Anonymous Bind against LDAP as a default setting.  I have found a TCL script on the Internet that, when modified, returns Error Code 30002.  This seems better than I was getting with the default script, and I know that TAC cannot support modified TCL scripts.  I was wondering if I have the modified script configured correctly, and if not, what I may need to correct it.  I have posted both the default script below, as well as the modified script I am attempting.
    Default LDAP_PROBE script without the initial comments:
    # debug procedure
    # set the EXIT_MSG environment variable to help debug
    # also print the debug message when debug flag is on
    proc ace_debug { msg } {
    global debug ip port EXIT_MSG
    set EXIT_MSG $msg
    if { [ info exists ip ] && [ info exists port ] } {
    set EXIT_MSG "[ info script ]:$ip:$port: $EXIT_MSG "
    if { [ info exists debug ] && $debug } {
    puts $EXIT_MSG
    # main
    # parse cmd line args and initialize variables
    ## set debug value
    set debug 0
    if { [ regsub -nocase "DEBUG" $argv "" argv] } {
    set debug 1
    ace_debug "initializing variable"
    set EXIT_MSG "Error config:  script LDAP_PROBE \[DEBUG\]"
    set ip $scriptprobe_env(realIP)
    set port $scriptprobe_env(realPort)
    # if port is zero the use well known ldap port 389
    if { $port == 0 } {
    set port 389
    # PROBE START
    # open connection
    ace_debug "opening socket"
    set sock [ socket $ip $port ]
    fconfigure $sock -buffering line -translation binary
    # send a standard anonymous bind request
    ace_debug "sending ldap bind request"
    puts -nonewline $sock [ binary format "H*" 300c020101600702010304008000 ]
    flush $sock
    #  read string back from server
    ace_debug "receiving ldap bind result"
    set line [read $sock 14]
    binary scan $line H* res
    binary scan $line @7H6 code
    ace_debug "received $res with code $code"
    #  close connection
    ace_debug "closing socket"
    close $sock
    #  make probe fail by exit with 30002 if ldap reply code != success code  0x0a0100
    if {  $code != "0a0100" } {
    ace_debug " probe failed : expect response code \'0a0100\' but received \'$code\'"
    exit 30002
    ## make probe success by exit with 30001
    ace_debug "probe success"
    exit 30001
    Modified LDAP_PROBE script I am attempting:
    proc ace_debug { msg } {
    global debug ip port EXIT_MSG
    set EXIT_MSG $msg
    if { [ info exists ip ] && [ info exists port ] } {
    set EXIT_MSG "[ info script ]:$ip:$port: $EXIT_MSG "
    if { [ info exists debug ] && $debug } {
    puts $EXIT_MSG
    # main
    # parse cmd line args and initialize variables
    ## set debug value
    set debug 1
    if { [ regsub -nocase "DEBUG" $argv "" argv] } {
    set debug 1
    ace_debug "initializing variable"
    set EXIT_MSG "Error config:  script ADV_LDAP_PROBE \[DEBUG\]"
    set ip $scriptprobe_env(realIP)
    set port "0"
    set ldap_start "30"
    set ldap_bindheader "02010160"
    set ldap_bind "0201"
    set ldap_version "02"
    set ldap_gap1 "04"
    set ldap_gap2 "80"
    set ldap_bindheader_len 5
    set base_len 0c
    set ldap_simple_auth "8007"
    proc toASCII { char } {
    scan $char %c value
    return [format %-x $value]
    set username "testb!nd1"
    # set username [ lindex $argv 0 ]
    set hexusername ""
    set password "testb!nd1"
    # set password [ lindex $argv 1 ]
    set hexpassword ""
    foreach char [split $username ""] {
    set hexchar [toASCII $char]
    append hexusername $hexchar
    foreach char [split $password ""] {
    set hexchar [toASCII $char]
    append hexpassword $hexchar
    set username_len [string length $username]
    ace_debug $username_len
    set password_len [string length $password]
    ace_debug $password_len
    set base_len [expr 0x$base_len]
    set seq_len [expr $username_len + $password_len + $base_len]
    set sub_seq_len [expr $seq_len - $ldap_bindheader_len]
    set seq_len [format %02x $seq_len]
    set sub_seq_len [format %02x $sub_seq_len]
    set hexldapbindpckt ""
    append hexldapbindpckt $ldap_start
    append hexldapbindpckt "$seq_len"
    append hexldapbindpckt $ldap_bindheader
    append hexldapbindpckt $sub_seq_len
    append hexldapbindpckt $ldap_bind
    append hexldapbindpckt $ldap_version
    append hexldapbindpckt $ldap_gap1
    append hexldapbindpckt [format %02x $username_len]
    append hexldapbindpckt $hexusername
    append hexldapbindpckt $ldap_gap2
    append hexldapbindpckt [format %02x $password_len]
    append hexldapbindpckt $hexpassword
    # if port is zero the use well known ldap port 389
    if { $port == 0 } {
    set port 389
    #ace_debug $hexldapbindpckt
    # PROBE START
    set errorcode [catch {
    set sock [ socket $ip $port ]
    } msg ]
    if {$errorcode != 0} {
    ace_debug $msg
    exit 30002
    fconfigure $sock -buffering line -translation binary
    # anonymous bind request
    #puts -nonewline $sock [ binary format "H*" 300c020101600702010304008000 ]
    puts -nonewline $sock [ binary format "H*" $hexldapbindpckt ]
    set code "ffffff"
    flush $sock
    ace_debug "bef"
    set line [read $sock 22]
    ace_debug "aft"
    binary scan $line H* res
    binary scan $line @15H6 code
    close $sock
    #  make probe fail by exit with 30002 if ldap reply code != success code  0x0a0100
    if {  $code != "0a0100" } {
    if {  $code == "0a0131" } {
    ace_debug " probe failed : expect response code \'0a0100\' but received
    \'$code\' = invalidCredentials"
    } else {
    ace_debug " probe failed : expect response code \'0a0100\' but received
    \'$code\'"
    exit 30002
    ## make probe success by exit with 30001
    ace_debug "probe success"
    exit 30001

    See Contex
    t Configuration example:
    ACE/4710 Configuration statements
    script file name defaultldap.tcl
    probe scripted LDAP_PROBE
    description Interactive LDAP Query Probe
    port 389
    interval 15
    passdetect interval 15
    receive 5
    script defaultldap.tcl cn=,cn=roles,cn=,dc=,dc=
    #Note, no spaces in the above line!
    #!name = ADV_LDAP_PROBE
    We have successfully tested this into multiple Contextx w/ Great Success.  I will admit that I did not figure this out, but fellow team members did!

  • TCL scripted probes on ACE

    Hi,
    I have two questions about TCP scripts on ACE :
    1. TCP source code
    How can I browse the TCL source code of predefined probe scripts on the ACE (for instance HTTPCONTENT_PROBE) '
    2. Script parameters
    How do I retrieve in the TCL script the parameters passed to the script in the command < script script_name [script_arguments] >  ?
    Thank you,
    Yves

    Yves,
    you can download all the scripts from the download software page.
    http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=A2%283.2%29&mdfid=280557289&sftType=Application+Control+Software+Scripts&optPlat=&nodecount=2&edesignator=null&modelName=Cisco+ACE+Application+Control+Engine+Module&treeMdfId=268437639&treeName=Application+Networking+Services&modifmdfid=null&imname=&hybrid=Y&imst=N&lr=Y
    # Copyright (c) 2005-2008 by Cisco Systems, Inc.
    # debug procedure
    # set the EXIT_MSG environment variable to help debug
    # also print the debug message when debug flag is on
    proc set_exit_msg { msg } {
        global debug ip port EXIT_MSG
        set EXIT_MSG $msg
        if { [ info exists ip ] && [ info exists port ] } {
            set EXIT_MSG "[ info script ]:$ip:$port: $EXIT_MSG "
        if { [ info exists debug ] && $debug } {
            puts $EXIT_MSG
    # main
    # Parse cmd line args and initialize variables
    set_exit_msg "initializing variable"
    if { $argc <  2 } {
        set_exit_msg "[ info script ] parameters :
        exit 30002
    set ip $scriptprobe_env(realIP)
    set port $scriptprobe_env(realPort)
    # If port is zero then use well known HTTP port 80
    if { $port == 0} {
        set port 80
    set requestHeader [ lindex $argv 0 ]
    set expectFileType [ lindex $argv 1 ]
    set debug [ lindex $argv 2 ]
    if { $debug == "" } {
        set debug 0
    # Open connection
    set_exit_msg "opening socket"
    set sock [ socket $ip $port ]
    # Send HTTP request to server
    set_exit_msg "sending request : $requestHeader"
    puts -nonewline $sock "$requestHeader\n\n"
    flush $sock
    # Read string back from server
    set_exit_msg "receiving response"
    set lines [ read $sock ]
    # Close connection
    set_exit_msg "closing socket"
    close $sock
    # Parse the HTTP response
    # All the following conditions cause probe failure, returning exit code 30002
    # Unable to recognize the HTTP response
    if { ![ regexp -nocase "^HTTP/1\.\[0-9\] (\[0-9\]\[0-9\]\[0-9\])" $lines match s
    tatuscode ] } {
        set_exit_msg "probe fail : can't find status code"
        exit 30002
    # HTTP response is not 200 OK
    if { $statuscode != "200" } {
        set_exit_msg "probe fail : status code is $statuscode"
        exit 30002
    # Unable to find Content-type header
    if { ![ regexp  -nocase  "Content-Type *:(.*)\n" $lines match foundContentType]
        set_exit_msg "probe fail : can't find \'Content-Type\' header"
        exit 30002
    # Content-type value does not contain the requested string
    if { ![ regexp "$expectFileType" $foundContentType]  } {
        set_exit_msg "probe fail : expect content-type \'$expectFileType\', but got
    \'$foundContentType\'"
        exit 30002
    # Indicate probe success with exit code 30001
    set_exit_msg "probe success"
    exit 30001

  • ACE TCL script debug.

    Hi all,
    I would like to write custom TCL script in ACE. I would like to write some info for debugging to the console with "puts $VAR ", but nothing is shown.
    What could be the problem ? I have debug hm all on.
    Regards,
    szicsu

    Look into an existing script and reuse the same debug function
    proc ace_debug { msg } {
    global debug ip port EXIT_MSG
    set EXIT_MSG $msg
    if { [ info exists ip ] && [ info exists port ] } {
    set EXIT_MSG "[ info script ]:$ip:$port: $EXIT_MSG "
    if { [ info exists debug ] && $debug } {
    puts $EXIT_MSG
    Gilles.

  • IPCC Express 3.5.2 need other phone info

    Does anyone know of a way to read the "Line Settings" such as "Display (Internal Caller ID)" or "Display (Internal Caller ID)" or "Device Information" "Description" information.
    I am currently using a "Get Call Contact Info" script which works for the information that supplies but I need to read the info mentioned above.
    Any suggestions would be welcomed.
    Thanks
    Carl

    Hi
    There's a way to retrieve user info from the directory based on CLI (see here :https://supportforums.cisco.com/message/3023611#3023611) if your version of UCCX supports HTTP requests... however the info you're asking for can't be retrieved by any of the normal steps you might expect to find that in.
    Regards
    Aaron

  • Java Script Engines and groove

    Hello
    I want invoke groovy code from JAVA by Java Script Engines.
    I have very basic code:
      List<ScriptEngineFactory> factories = manager.getEngineFactories();
        for (ScriptEngineFactory factory : factories) {
          System.out.println("ScriptEngineFactory Info");
          String engName = factory.getEngineName();
          System.out.println("Script Engine: " + engName);
          System.out.println("-------------------------------------------");
        ScriptEngine engine = manager.getEngineByName("groovy");When i run thos code I receive beautiful engines list:
    ScriptEngineFactory Info
    Script Engine: JRuby Engine
    ScriptEngineFactory Info
    Script Engine: groovy
    ScriptEngineFactory Info
    Script Engine: Mozilla Rhino
    But in line:
    ScriptEngine engine = manager.getEngineByName("groovy");I have exception like:
    com.sun.script.groovy.GroovyScriptEngineFactory.getScriptEngine(GroovyScriptEngineFactory.java:90)
            at javax.script.ScriptEngineManager.getEngineByName(Unknown Source)
            at comtest.Main.main(Main.java:41)
    Caused by: java.lang.ClassNotFoundException:
    org.codehaus.groovy.syntax.SyntaxException
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)I know that ScriptEngineManager use service provider and I add in META-INF folder "services" with file "javax.script.ScriptEngineFactory" and text "com.sun.script.groovy.GroovyScriptEngineFactory".
    Perhaps jar will be helpfull:
    http://ekontra.com/sadu/groove.rar
    Thanks for help
    sadu

    In https://scripting.dev.java.net say that implementation is for Groovy 1.5.6
    In code "factory.getLanguageVersion()" return groovy ver:1.5.6
    in groovysh I have:
    Groovy Shell (1.5.6, JVM: 1.6.0_02-b06)
    After update Groovy to 1.5.7 dont help

  • SmartUpgrade on Web Service - unable to generate artefact

    Hi all,
    I am facing a strange issue concerning SmartUpgrade on Jdev 11g. While I am trying to generate artefacts for my new 11g WS I get the following error
    ---------------Attention Required - Start-------------
    07:09 WARNING - Action Recommended: Please rerun the command, passing all the
    arguments used in this invocation, and ensure the following
    additional arguments are also passed:
    07:09 WARNING -      1: -output
    07:09 WARNING - ---------------Attention Required - End---------------
    07:09 WARNING - ***
    07:09 WARNING - ***
    [ERROR] Action in Web Service Artifact Generation 10.1.3javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.NullPointerException (<Unknown Source>#10)     at com.sun.script.javascript.RhinoCompiledScript.eval(RhinoCompiledScript.java:41)     at oracle.migration.action.ScriptBody.execute(ScriptBody.java:122)     at oracle.migration.action.Action.eval(Action.java:210)     at oracle.migration.action.Action.execute(Action.java:176)     at oracle.migration.action.Action.doAction(Action.java:227)     at oracle.migration.action.Action.doFinally(Action.java:231)     at oracle.migration.action.Action.execute(Action.java:188)     at oracle.migration.rule.MigrationRule.performAction(MigrationRule.java:808)     at oracle.migration.update.Updator$ActionContent.doUpdate(Updator.java:100)     at oracle.migration.update.Updator.doUpdate(Updator.java:110)     at oracle.migration.rule.MigrationRule.doUpdate(MigrationRule.java:788)     at oracle.migration.rule.MigrationRule.doUpdate(MigrationRule.java:781)     at oracle.migration.Migrator.generateArtifacts(Migrator.java:762)     at oracle.migration.MigrationPlan.doMigration(MigrationPlan.java:511)     at oracle.migration.MigrationPlan.execute(MigrationPlan.java:438)     at oracle.weblogic.jdeveloper.migration.io.WLMigrationManager.executeArchiveFindings(WLMigrationManager.java:288)     at oracle.weblogic.jdeveloper.migration.addin.application.MigrationContextManager.createMigrationContext(MigrationContextManager.java:339)     at oracle.weblogic.jdeveloper.migration.addin.model.stateobject.migration.UpgradeStateObject.buildMigrationContext(UpgradeStateObject.java:636)     at oracle.weblogic.jdeveloper.migration.addin.model.stateobject.migration.UpgradeStateObject.generate(UpgradeStateObject.java:851)     at oracle.weblogic.jdeveloper.migration.addin.command.GenerateCommand.run(GenerateCommand.java:95)     at oracle.toplink.workbench.utility.command.CommandWorker.run(CommandWorker.java:61)Caused by: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.NullPointerException (<Unknown Source>#10)     at sun.org.mozilla.javascript.internal.Context.throwAsScriptRuntimeEx(Context.java:1699)     at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:147)     at sun.org.mozilla.javascript.internal.NativeJavaMethod.call(NativeJavaMethod.java:190)     at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:3073)     at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:2239)     at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:138)     at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:323)     at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:2747)     at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:149)     at com.sun.script.javascript.RhinoCompiledScript.eval(RhinoCompiledScript.java:37)     ... 20 moreCaused by: java.lang.NullPointerException     at java.io.File.<init>(File.java:222)     at oracle.migration.ws.config.cli.SmartUpgradeEntry.createContinuationStateFile(SmartUpgradeEntry.java:285)     at oracle.migration.ws.config.cli.SmartUpgradeEntry.upgrade(SmartUpgradeEntry.java:174)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:597)     at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:597)     at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)     at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:132)     ... 28 more[INFO]: script file:
    null
    script line:
    extraArgs=migrator.getLocator("_cliArgs")
    if (extraArgs==null) {
    map = null;
    } else {
    leaves=extraArgs.getLeafMigrationElements(rule)
    migEl=leaves.get(0)
    map=migEl.getArtifact()
    Packages.oracle.migration.ws.config.cli.SmartUpgradeEntry.upgrade(rule, migrationElement, map, targetVersion)
         ot=Packages.oracle.migration.ws.config.cli.SmartUpgradeEntry.getOutString();
    migrationElement.setAttribute("ws.upgrade.out", ot)
    script code:
    null
    But what is very strange is that as far as I know there is no '-output' option available for smartupgrade and this error occurs only on my Linux Ubuntu 64 bits (It works on Windows 32 bits platfrom)
    Is anyone know this problem and found out a solution ?
    Thanks
    Anthony
    Edited by: user808810 on 8 avr. 2010 05:01

    I solved my problem, there were spaces in the project directory path
    Anthony

  • Asrock ION330/Nvidia HDMI - No audio output

    Machine was running archlinux and not been upgraded in over 6mths but HDMI audio worked fine. Decided to do a scratch build since all the changes in that time and have a nice clean system.
    If it helps, this is what I install. Ssed this exact same install process for another Asrock ION330 and Acer Revo3610 (both same hardware) but neither use HDMI at all. Both VGA with either optical or analog audio. Both work with no additional config.
    pacman -Sy nfs-utils screen ntp alsa-utils mlocate xorg-server xorg-xinit xorg-server-utils mesa nvidia ttf-dejavu xfce4 gamin slim mythtv unrar lirc xbmc wget
    Get no sound output but also zero errors on any of the following commands. I should add that the receiver does not detect any audio coming in, ie it usually identifies how many channels of audio and type it is receiving.
    aplay /usr/share/sounds/alsa/Front_Center.wav
    speaker-test -Dhdmi:NVidia -c 6
    aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
    Output of devices and modules:
    [root@lounge ~]# aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 0: VT1708S Analog [VT1708S Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 1: VT1708S Digital [VT1708S Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    [root@lounge ~]# aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    default:CARD=NVidia
    HDA NVidia, VT1708S Analog
    Default Audio Device
    sysdefault:CARD=NVidia
    HDA NVidia, VT1708S Analog
    Default Audio Device
    front:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    Front speakers
    surround40:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Digital
    IEC958 (S/PDIF) Digital Audio Output
    hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
    [root@lounge ~]# lsmod |grep "snd"
    snd_hda_codec_hdmi 27561 1
    snd_hda_codec_via 38667 1
    snd_hda_intel 27668 0
    snd_hda_codec 100743 3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
    snd_hwdep 6429 1 snd_hda_codec
    snd_pcm 77827 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
    snd_page_alloc 7427 2 snd_pcm,snd_hda_intel
    snd_timer 18935 1 snd_pcm
    snd 60157 7 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_hda_codec,snd_hda_intel
    soundcore 5443 1 snd
    Tried a couple different things either from the wiki or google searching, individually with a reboot between but no change.
    # Keep snd-pcsp from being loaded as first soundcard
    vi /etc/modprobe.d/alsa-base.conf
    options snd-pcsp index=-2
    # something i used on the old working system, doesn't help but not sure why I did it
    vi /etc/modprobe.d/alsa-base.conf
    options snd-pcsp index=2
    #no modprobe conf, try wiki
    vi ~/.asoundrc
    defaults.pcm.card 0
    defaults.pcm.device 3
    defaults.ctl.card 0
    Here is the output of alsa info script (http://www.alsa-project.org/main/index. … p_To_Debug) with all defaults, ie no modprobe changes etc.
    upload=true&script=true&cardinfo=
    !!ALSA Information Script v 0.4.61
    !!Script ran on: Fri Mar 1 02:42:57 UTC 2013
    !!Linux Distribution
    Arch Linux \r (\l) NAME="Arch Linux" ID=arch PRETTY_NAME="Arch Linux" HOME_URL="https://www.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/"
    !!DMI Information
    Manufacturer: To Be Filled By O.E.M.
    Product Name: To Be Filled By O.E.M.
    Product Version: To Be Filled By O.E.M.
    Firmware Version: P1.60
    !!Kernel Information
    Kernel release: 3.7.9-2-ARCH
    Operating System: GNU/Linux
    Architecture: x86_64
    Processor: unknown
    SMP Enabled: Yes
    !!ALSA Version
    Driver version: k3.7.9-2-ARCH
    Library version: 1.0.26
    Utilities version: 1.0.26
    !!Loaded ALSA modules
    snd_hda_intel
    !!Sound Servers on this system
    No sound servers found.
    !!Soundcards recognised by ALSA
    0 [NVidia ]: HDA-Intel - HDA NVidia
    HDA NVidia at 0xfae78000 irq 21
    !!PCI Soundcards installed in the system
    00:08.0 Audio device: NVIDIA Corporation MCP79 High Definition Audio (rev b1)
    !!Advanced information - PCI Vendor/Device/Subsystem ID's
    00:08.0 0403: 10de:0ac0 (rev b1)
    Subsystem: 1849:0397
    !!Loaded sound module options
    !!Module: snd_hda_intel
    align_buffer_size : -1
    bdl_pos_adj : 32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
    beep_mode : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
    enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
    enable_msi : -1
    id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
    index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
    model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
    patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
    position_fix : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
    power_save : 0
    power_save_controller : Y
    probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
    probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    single_cmd : N
    snoop : Y
    !!HDA-Intel Codec information
    --startcollapse--
    Codec: VIA VT1708S
    Address: 0
    AFG Function Id: 0x1 (unsol 0)
    Vendor Id: 0x11060397
    Subsystem Id: 0x18490397
    Revision Id: 0x100000
    No Modem Function Group found
    Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
    Default Amp-In caps: N/A
    Default Amp-Out caps: N/A
    GPIO: io=1, o=0, i=0, unsolicited=1, wake=0
    IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
    Node 0x10 [Audio Output] wcaps 0x41d: Stereo Amp-Out
    Control: name="Front Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
    Device: name="VT1708S Analog", type="Audio", device=0
    Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
    Amp-Out vals: [0x2a 0x2a]
    Converter: stream=0, channel=0
    PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Node 0x11 [Audio Output] wcaps 0x41d: Stereo Amp-Out
    Control: name="Surround Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
    Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
    Amp-Out vals: [0x2a 0x2a]
    Converter: stream=0, channel=0
    PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Node 0x12 [Audio Output] wcaps 0x611: Stereo Digital
    Control: name="IEC958 Playback Con Mask", index=0, device=0
    Control: name="IEC958 Playback Pro Mask", index=0, device=0
    Control: name="IEC958 Playback Default", index=0, device=0
    Control: name="IEC958 Playback Switch", index=0, device=0
    Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
    Device: name="VT1708S Digital", type="SPDIF", device=1
    Converter: stream=0, channel=0
    Digital: Enabled GenLevel
    Digital category: 0x2
    IEC Coding Type: 0x0
    PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Node 0x13 [Audio Input] wcaps 0x10051b: Stereo Amp-In
    Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
    Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
    Device: name="VT1708S Analog", type="Audio", device=0
    Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
    Amp-In vals: [0x00 0x00]
    Converter: stream=0, channel=0
    SDI-Select: 0
    PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 1
    0x17
    Node 0x14 [Audio Input] wcaps 0x10051b: Stereo Amp-In
    Control: name="Capture Volume", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
    Control: name="Capture Switch", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
    Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
    Amp-In vals: [0x00 0x00]
    Converter: stream=0, channel=0
    SDI-Select: 0
    PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 1
    0x1e
    Node 0x15 [Audio Output] wcaps 0x611: Stereo Digital
    Converter: stream=0, channel=0
    Digital:
    Digital category: 0x0
    IEC Coding Type: 0x0
    PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Node 0x16 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
    Control: name="PCM Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
    Control: name="PCM Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
    Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
    Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
    Control: name="Line Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
    Control: name="Line Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
    Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
    Amp-In vals: [0x19 0x19] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 7
    0x10 0x1f 0x1a 0x1b 0x1e 0x1d 0x25
    Node 0x17 [Audio Selector] wcaps 0x300501: Stereo
    Control: name="Input Source", index=0, device=0
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 6
    0x1f 0x1a* 0x1b 0x1e 0x1d 0x16
    Node 0x18 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
    Control: name="Surround Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
    Amp-Out vals: [0x00 0x00]
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Connection: 1
    0x11
    Node 0x19 [Pin Complex] wcaps 0x400581: Stereo
    Pincap 0x00000014: OUT Detect
    Pin Default 0x410110f2: [N/A] Line Out at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x2
    Pin-ctls: 0x00:
    Unsolicited: tag=00, enabled=0
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Connection: 1
    0x18
    Node 0x1a [Pin Complex] wcaps 0x400581: Stereo
    Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
    Control: name="Mic Jack", index=0, device=0
    Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
    Pin Default 0x01a19036: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x6
    Pin-ctls: 0x21: IN VREF_50
    Unsolicited: tag=02, enabled=1
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 1
    0x26
    Node 0x1b [Pin Complex] wcaps 0x400581: Stereo
    Control: name="Line Jack", index=0, device=0
    Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
    Pin Default 0x0181303e: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x3, Sequence = 0xe
    Pin-ctls: 0x20: IN VREF_HIZ
    Unsolicited: tag=03, enabled=1
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 1
    0x18
    Node 0x1c [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
    Control: name="Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
    Control: name="Line Out Jack", index=0, device=0
    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
    Amp-Out vals: [0x00 0x00]
    Pincap 0x0001001c: OUT HP EAPD Detect
    EAPD 0x2: EAPD
    Pin Default 0x01014010: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
    Pin-ctls: 0x40: OUT
    Unsolicited: tag=01, enabled=1
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 1
    0x16
    Node 0x1d [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
    Amp-Out vals: [0x80 0x80]
    Pincap 0x0000233c: IN OUT HP Detect
    Vref caps: HIZ 50 100
    Pin Default 0x422140f0: [N/A] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0xf, Sequence = 0x0
    Pin-ctls: 0x00: VREF_HIZ
    Unsolicited: tag=00, enabled=0
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Connection: 2
    0x16* 0x25
    Node 0x1e [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
    Amp-Out vals: [0x80 0x80]
    Pincap 0x0000233c: IN OUT HP Detect
    Vref caps: HIZ 50 100
    Pin Default 0x42a190f8: [N/A] Mic at Ext Front
    Conn = 1/8, Color = Pink
    DefAssociation = 0xf, Sequence = 0x8
    Pin-ctls: 0x00: VREF_HIZ
    Unsolicited: tag=00, enabled=0
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Connection: 2
    0x16* 0x25
    Node 0x1f [Pin Complex] wcaps 0x400401: Stereo
    Pincap 0x00000020: IN
    Pin Default 0x503701f7: [N/A] CD at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x7
    Misc = NO_PRESENCE
    Pin-ctls: 0x00:
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Node 0x20 [Pin Complex] wcaps 0x400701: Stereo Digital
    Control: name="SPDIF Phantom Jack", index=0, device=0
    Pincap 0x00000010: OUT
    Pin Default 0x074511f0: [Jack] SPDIF Out at Ext Rear Panel
    Conn = Optical, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
    Pin-ctls: 0x40: OUT
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 1
    0x12
    Node 0x21 [Pin Complex] wcaps 0x400701: Stereo Digital
    Pincap 0x00000010: OUT
    Pin Default 0x474411f0: [N/A] SPDIF Out at Ext Rear Panel
    Conn = RCA, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
    Pin-ctls: 0x00:
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 1
    0x15
    Node 0x22 [Pin Complex] wcaps 0x400581: Stereo
    Pincap 0x00000014: OUT Detect
    Pin Default 0x410160f1: [N/A] Line Out at Ext Rear
    Conn = 1/8, Color = Orange
    DefAssociation = 0xf, Sequence = 0x1
    Pin-ctls: 0x00:
    Unsolicited: tag=00, enabled=0
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Connection: 1
    0x26
    Node 0x23 [Pin Complex] wcaps 0x400581: Stereo
    Pincap 0x00000014: OUT Detect
    Pin Default 0x410120f4: [N/A] Line Out at Ext Rear
    Conn = 1/8, Color = Grey
    DefAssociation = 0xf, Sequence = 0x4
    Pin-ctls: 0x00:
    Unsolicited: tag=00, enabled=0
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Connection: 1
    0x27
    Node 0x24 [Audio Output] wcaps 0x41d: Stereo Amp-Out
    Control: name="Center Playback Volume", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
    Control: name="LFE Playback Volume", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
    Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
    Amp-Out vals: [0x2a 0x2a]
    Converter: stream=0, channel=0
    PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Node 0x25 [Audio Output] wcaps 0x41d: Stereo Amp-Out
    Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
    Amp-Out vals: [0x2a 0x2a]
    Converter: stream=0, channel=0
    PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Node 0x26 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
    Control: name="Center Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
    Control: name="LFE Playback Switch", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
    Amp-Out vals: [0x00 0x00]
    Power states: D0 D1 D2 D3
    Power: setting=D3, actual=D3
    Connection: 1
    0x24
    Node 0x27 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
    Amp-Out vals: [0x80 0x80]
    Power states: D0 D1 D2 D3
    Power: setting=D0, actual=D0
    Connection: 1
    0x25
    Codec: Nvidia MCP79/7A HDMI
    Address: 3
    AFG Function Id: 0x1 (unsol 0)
    Vendor Id: 0x10de0007
    Subsystem Id: 0x10de0101
    Revision Id: 0x100100
    No Modem Function Group found
    Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
    Default Amp-In caps: N/A
    Default Amp-Out caps: N/A
    GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
    Node 0x04 [Audio Output] wcaps 0x211: Stereo Digital
    Control: name="IEC958 Playback Con Mask", index=1, device=0
    Control: name="IEC958 Playback Pro Mask", index=1, device=0
    Control: name="IEC958 Playback Default", index=1, device=0
    Control: name="IEC958 Playback Switch", index=1, device=0
    Device: name="HDMI 0", type="HDMI", device=3
    Converter: stream=0, channel=0
    Digital: Enabled
    Digital category: 0x0
    IEC Coding Type: 0x0
    PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
    Node 0x05 [Pin Complex] wcaps 0x400381: Stereo Digital
    Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
    Pincap 0x00000014: OUT Detect
    Pin Default 0x18560110: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
    Pin-ctls: 0x40: OUT
    Unsolicited: tag=00, enabled=0
    Connection: 1
    0x04
    Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
    Converter: stream=0, channel=0
    Digital:
    Digital category: 0x0
    IEC Coding Type: 0x0
    PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
    Node 0x07 [Pin Complex] wcaps 0x400381: Stereo Digital
    Pincap 0x00000014: OUT Detect
    Pin Default 0x58560121: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x1
    Misc = NO_PRESENCE
    Pin-ctls: 0x40: OUT
    Unsolicited: tag=00, enabled=0
    Connection: 1
    0x06
    Node 0x08 [Audio Output] wcaps 0x211: Stereo Digital
    Converter: stream=0, channel=0
    Digital:
    Digital category: 0x0
    IEC Coding Type: 0x0
    PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
    Node 0x09 [Pin Complex] wcaps 0x400381: Stereo Digital
    Pincap 0x00000014: OUT Detect
    Pin Default 0x58560122: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x2
    Misc = NO_PRESENCE
    Pin-ctls: 0x40: OUT
    Unsolicited: tag=00, enabled=0
    Connection: 1
    0x08
    Node 0x0a [Audio Output] wcaps 0x211: Stereo Digital
    Converter: stream=0, channel=0
    Digital:
    Digital category: 0x0
    IEC Coding Type: 0x0
    PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
    Node 0x0b [Pin Complex] wcaps 0x400381: Stereo Digital
    Pincap 0x00000014: OUT Detect
    Pin Default 0x58560123: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x3
    Misc = NO_PRESENCE
    Pin-ctls: 0x40: OUT
    Unsolicited: tag=00, enabled=0
    Connection: 1
    0x0a
    Node 0x0c [Audio Output] wcaps 0x211: Stereo Digital
    Converter: stream=0, channel=0
    Digital:
    Digital category: 0x0
    IEC Coding Type: 0x0
    PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
    Node 0x0d [Pin Complex] wcaps 0x400381: Stereo Digital
    Pincap 0x00000014: OUT Detect
    Pin Default 0x58560124: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x4
    Misc = NO_PRESENCE
    Pin-ctls: 0x40: OUT
    Unsolicited: tag=00, enabled=0
    Connection: 1
    0x0c
    --endcollapse--
    !!ALSA Device nodes
    crw-rw----+ 1 root audio 116, 8 Mar 1 13:41 /dev/snd/controlC0
    crw-rw----+ 1 root audio 116, 7 Mar 1 13:41 /dev/snd/hwC0D0
    crw-rw----+ 1 root audio 116, 6 Mar 1 13:41 /dev/snd/hwC0D3
    crw-rw----+ 1 root audio 116, 5 Mar 1 13:41 /dev/snd/pcmC0D0c
    crw-rw----+ 1 root audio 116, 4 Mar 1 13:41 /dev/snd/pcmC0D0p
    crw-rw----+ 1 root audio 116, 3 Mar 1 13:41 /dev/snd/pcmC0D1p
    crw-rw----+ 1 root audio 116, 2 Mar 1 13:41 /dev/snd/pcmC0D3p
    crw-rw---- 1 root audio 116, 1 Mar 1 13:41 /dev/snd/seq
    crw-rw----+ 1 root audio 116, 33 Mar 1 13:41 /dev/snd/timer
    /dev/snd/by-path:
    total 0
    drwxr-xr-x 2 root root 60 Mar 1 13:41 .
    drwxr-xr-x 3 root root 240 Mar 1 13:41 ..
    lrwxrwxrwx 1 root root 12 Mar 1 13:41 pci-0000:00:08.0 -> ../controlC0
    !!Aplay/Arecord output
    APLAY
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 0: VT1708S Analog [VT1708S Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 1: VT1708S Digital [VT1708S Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    ARECORD
    **** List of CAPTURE Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 0: VT1708S Analog [VT1708S Analog]
    Subdevices: 2/2
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1
    !!Amixer output
    !!-------Mixer controls for card 0 [NVidia]
    Card hw:0 'NVidia'/'HDA NVidia at 0xfae78000 irq 21'
    Mixer name : 'Nvidia MCP79/7A HDMI'
    Components : 'HDA:11060397,18490397,00100000 HDA:10de0007,10de0101,00100100'
    Controls : 43
    Simple ctrls : 17
    Simple mixer control 'Master',0
    Capabilities: pvolume pvolume-joined pswitch pswitch-joined
    Playback channels: Mono
    Limits: Playback 0 - 42
    Mono: Playback 42 [100%] [0.00dB] [on]
    Simple mixer control 'PCM',0
    Capabilities: pvolume pswitch
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 31
    Mono:
    Front Left: Playback 25 [81%] [3.00dB] [on]
    Front Right: Playback 25 [81%] [3.00dB] [on]
    Simple mixer control 'Front',0
    Capabilities: pvolume pswitch
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 42
    Mono:
    Front Left: Playback 42 [100%] [0.00dB] [on]
    Front Right: Playback 42 [100%] [0.00dB] [on]
    Simple mixer control 'Surround',0
    Capabilities: pvolume pswitch
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 42
    Mono:
    Front Left: Playback 42 [100%] [0.00dB] [on]
    Front Right: Playback 42 [100%] [0.00dB] [on]
    Simple mixer control 'Center',0
    Capabilities: pvolume pvolume-joined pswitch pswitch-joined
    Playback channels: Mono
    Limits: Playback 0 - 42
    Mono: Playback 42 [100%] [0.00dB] [on]
    Simple mixer control 'LFE',0
    Capabilities: pvolume pvolume-joined pswitch pswitch-joined
    Playback channels: Mono
    Limits: Playback 0 - 42
    Mono: Playback 42 [100%] [0.00dB] [on]
    Simple mixer control 'Line',0
    Capabilities: pvolume pswitch
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 31
    Mono:
    Front Left: Playback 0 [0%] [-34.50dB] [off]
    Front Right: Playback 0 [0%] [-34.50dB] [off]
    Simple mixer control 'Mic',0
    Capabilities: pvolume pswitch
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 31
    Mono:
    Front Left: Playback 0 [0%] [-34.50dB] [off]
    Front Right: Playback 0 [0%] [-34.50dB] [off]
    Simple mixer control 'Mic Boost',0
    Capabilities: volume
    Playback channels: Front Left - Front Right
    Capture channels: Front Left - Front Right
    Limits: 0 - 3
    Front Left: 0 [0%] [0.00dB]
    Front Right: 0 [0%] [0.00dB]
    Simple mixer control 'IEC958',0
    Capabilities: pswitch pswitch-joined
    Playback channels: Mono
    Mono: Playback [on]
    Simple mixer control 'IEC958 Default PCM',0
    Capabilities: pswitch pswitch-joined
    Playback channels: Mono
    Mono: Playback [on]
    Simple mixer control 'IEC958',1
    Capabilities: pswitch pswitch-joined
    Playback channels: Mono
    Mono: Playback [on]
    Simple mixer control 'Capture',0
    Capabilities: cvolume cswitch
    Capture channels: Front Left - Front Right
    Limits: Capture 0 - 31
    Front Left: Capture 0 [0%] [-16.50dB] [on]
    Front Right: Capture 0 [0%] [-16.50dB] [on]
    Simple mixer control 'Capture',1
    Capabilities: cvolume cswitch
    Capture channels: Front Left - Front Right
    Limits: Capture 0 - 31
    Front Left: Capture 0 [0%] [-16.50dB] [on]
    Front Right: Capture 0 [0%] [-16.50dB] [on]
    Simple mixer control 'Dynamic Power-Control',0
    Capabilities: enum
    Items: 'Disabled' 'Enabled'
    Item0: 'Disabled'
    Simple mixer control 'Input Source',0
    Capabilities: cenum
    Items: 'Mic' 'Line' 'Stereo Mixer'
    Item0: 'Mic'
    Simple mixer control 'Smart 5.1',0
    Capabilities: pswitch pswitch-joined
    Playback channels: Mono
    Mono: Playback [off]
    !!Alsactl output
    --startcollapse--
    state.NVidia {
    control.1 {
    iface MIXER
    name 'Front Playback Volume'
    value.0 42
    value.1 42
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 42'
    dbmin -6300
    dbmax 0
    dbvalue.0 0
    dbvalue.1 0
    control.2 {
    iface MIXER
    name 'Front Playback Switch'
    value.0 true
    value.1 true
    comment {
    access 'read write'
    type BOOLEAN
    count 2
    control.3 {
    iface MIXER
    name 'Surround Playback Volume'
    value.0 42
    value.1 42
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 42'
    dbmin -6300
    dbmax 0
    dbvalue.0 0
    dbvalue.1 0
    control.4 {
    iface MIXER
    name 'Surround Playback Switch'
    value.0 true
    value.1 true
    comment {
    access 'read write'
    type BOOLEAN
    count 2
    control.5 {
    iface MIXER
    name 'Center Playback Volume'
    value 42
    comment {
    access 'read write'
    type INTEGER
    count 1
    range '0 - 42'
    dbmin -6300
    dbmax 0
    dbvalue.0 0
    control.6 {
    iface MIXER
    name 'Center Playback Switch'
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.7 {
    iface MIXER
    name 'LFE Playback Volume'
    value 42
    comment {
    access 'read write'
    type INTEGER
    count 1
    range '0 - 42'
    dbmin -6300
    dbmax 0
    dbvalue.0 0
    control.8 {
    iface MIXER
    name 'LFE Playback Switch'
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.9 {
    iface MIXER
    name 'PCM Playback Volume'
    value.0 25
    value.1 25
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 31'
    dbmin -3450
    dbmax 1200
    dbvalue.0 300
    dbvalue.1 300
    control.10 {
    iface MIXER
    name 'PCM Playback Switch'
    value.0 true
    value.1 true
    comment {
    access 'read write'
    type BOOLEAN
    count 2
    control.11 {
    iface MIXER
    name 'Capture Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 31'
    dbmin -1650
    dbmax 3000
    dbvalue.0 -1650
    dbvalue.1 -1650
    control.12 {
    iface MIXER
    name 'Capture Switch'
    value.0 true
    value.1 true
    comment {
    access 'read write'
    type BOOLEAN
    count 2
    control.13 {
    iface MIXER
    name 'Capture Volume'
    index 1
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 31'
    dbmin -1650
    dbmax 3000
    dbvalue.0 -1650
    dbvalue.1 -1650
    control.14 {
    iface MIXER
    name 'Capture Switch'
    index 1
    value.0 true
    value.1 true
    comment {
    access 'read write'
    type BOOLEAN
    count 2
    control.15 {
    iface MIXER
    name 'Input Source'
    value Mic
    comment {
    access 'read write'
    type ENUMERATED
    count 1
    item.0 Mic
    item.1 Line
    item.2 'Stereo Mixer'
    control.16 {
    iface MIXER
    name 'Mic Playback Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 31'
    dbmin -3450
    dbmax 1200
    dbvalue.0 -3450
    dbvalue.1 -3450
    control.17 {
    iface MIXER
    name 'Mic Playback Switch'
    value.0 false
    value.1 false
    comment {
    access 'read write'
    type BOOLEAN
    count 2
    control.18 {
    iface MIXER
    name 'Line Playback Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 31'
    dbmin -3450
    dbmax 1200
    dbvalue.0 -3450
    dbvalue.1 -3450
    control.19 {
    iface MIXER
    name 'Line Playback Switch'
    value.0 false
    value.1 false
    comment {
    access 'read write'
    type BOOLEAN
    count 2
    control.20 {
    iface MIXER
    name 'Mic Boost Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 3'
    dbmin 0
    dbmax 3075
    dbvalue.0 0
    dbvalue.1 0
    control.21 {
    iface MIXER
    name 'Smart 5.1'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.22 {
    iface MIXER
    name 'Dynamic Power-Control'
    value Disabled
    comment {
    access 'read write'
    type ENUMERATED
    count 1
    item.0 Disabled
    item.1 Enabled
    control.23 {
    iface MIXER
    name 'IEC958 Playback Con Mask'
    value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    comment {
    access read
    type IEC958
    count 1
    control.24 {
    iface MIXER
    name 'IEC958 Playback Pro Mask'
    value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    comment {
    access read
    type IEC958
    count 1
    control.25 {
    iface MIXER
    name 'IEC958 Playback Default'
    value '0482000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    comment {
    access 'read write'
    type IEC958
    count 1
    control.26 {
    iface MIXER
    name 'IEC958 Playback Switch'
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.27 {
    iface MIXER
    name 'IEC958 Default PCM Playback Switch'
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.28 {
    iface MIXER
    name 'Master Playback Volume'
    value 42
    comment {
    access 'read write'
    type INTEGER
    count 1
    range '0 - 42'
    dbmin -6300
    dbmax 0
    dbvalue.0 0
    control.29 {
    iface MIXER
    name 'Master Playback Switch'
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.30 {
    iface CARD
    name 'Line Out Jack'
    value false
    comment {
    access read
    type BOOLEAN
    count 1
    control.31 {
    iface CARD
    name 'Mic Jack'
    value false
    comment {
    access read
    type BOOLEAN
    count 1
    control.32 {
    iface CARD
    name 'Line Jack'
    value false
    comment {
    access read
    type BOOLEAN
    count 1
    control.33 {
    iface CARD
    name 'SPDIF Phantom Jack'
    value true
    comment {
    access read
    type BOOLEAN
    count 1
    control.34 {
    iface PCM
    name 'Playback Channel Map'
    value.0 0
    value.1 0
    value.2 0
    value.3 0
    value.4 0
    value.5 0
    comment {
    access read
    type INTEGER
    count 6
    range '0 - 27'
    control.35 {
    iface PCM
    name 'Capture Channel Map'
    value.0 0
    value.1 0
    comment {
    access read
    type INTEGER
    count 2
    range '0 - 27'
    control.36 {
    iface PCM
    name 'Capture Channel Map'
    index 1
    value.0 0
    value.1 0
    comment {
    access read
    type INTEGER
    count 2
    range '0 - 27'
    control.37 {
    iface PCM
    device 1
    name 'Playback Channel Map'
    value.0 0
    value.1 0
    comment {
    access read
    type INTEGER
    count 2
    range '0 - 27'
    control.38 {
    iface MIXER
    name 'IEC958 Playback Con Mask'
    index 1
    value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    comment {
    access read
    type IEC958
    count 1
    control.39 {
    iface MIXER
    name 'IEC958 Playback Pro Mask'
    index 1
    value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    comment {
    access read
    type IEC958
    count 1
    control.40 {
    iface MIXER
    name 'IEC958 Playback Default'
    index 1
    value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    comment {
    access 'read write'
    type IEC958
    count 1
    control.41 {
    iface MIXER
    name 'IEC958 Playback Switch'
    index 1
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.42 {
    iface CARD
    name 'HDMI/DP,pcm=3 Jack'
    value false
    comment {
    access read
    type BOOLEAN
    count 1
    control.43 {
    iface PCM
    device 3
    name 'Playback Channel Map'
    value.0 0
    value.1 0
    value.2 0
    value.3 0
    value.4 0
    value.5 0
    value.6 0
    value.7 0
    comment {
    access read
    type INTEGER
    count 8
    range '0 - 27'
    --endcollapse--
    !!All Loaded Modules
    Module
    nfsv4
    auth_rpcgss
    nvidia
    snd_hda_codec_hdmi
    ir_lirc_codec
    lirc_dev
    joydev
    ir_mce_kbd_decoder
    ir_sanyo_decoder
    ir_sony_decoder
    hid_generic
    ir_jvc_decoder
    usbhid
    ir_nec_decoder
    snd_hda_codec_via
    hid
    mceusb
    rc_core
    snd_hda_intel
    i2c_nforce2
    i2c_core
    snd_hda_codec
    snd_hwdep
    snd_pcm
    snd_page_alloc
    snd_timer
    forcedeth
    snd
    soundcore
    shpchp
    pci_hotplug
    evdev
    psmouse
    mperf
    serio_raw
    pcspkr
    button
    processor
    wmi
    coretemp
    microcode
    nfs
    lockd
    sunrpc
    fscache
    ext4
    crc16
    jbd2
    mbcache
    usb_storage
    sr_mod
    cdrom
    sd_mod
    ohci_hcd
    ahci
    libahci
    ehci_hcd
    libata
    scsi_mod
    usbcore
    usb_common
    !!Sysfs Files
    /sys/class/sound/hwC0D0/init_pin_configs:
    0x19 0x410110f2
    0x1a 0x01a19036
    0x1b 0x0181303e
    0x1c 0x01014010
    0x1d 0x422140f0
    0x1e 0x42a190f8
    0x1f 0x503701f7
    0x20 0x074511f0
    0x21 0x474411f0
    0x22 0x410160f1
    0x23 0x410120f4
    /sys/class/sound/hwC0D0/driver_pin_configs:
    /sys/class/sound/hwC0D0/user_pin_configs:
    /sys/class/sound/hwC0D0/init_verbs:
    /sys/class/sound/hwC0D3/init_pin_configs:
    0x05 0x18560110
    0x07 0x58560121
    0x09 0x58560122
    0x0b 0x58560123
    0x0d 0x58560124
    /sys/class/sound/hwC0D3/driver_pin_configs:
    /sys/class/sound/hwC0D3/user_pin_configs:
    /sys/class/sound/hwC0D3/init_verbs:
    !!ALSA/HDA dmesg
    [ 6.093571] ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 21
    [ 6.093614] hda_intel: Disabling MSI
    [ 6.093710] snd_hda_intel 0000:00:08.0: setting latency timer to 64
    [ 6.743392] IR keymap rc-rc6-mce not found
    [ 7.150166] Disabling lock debugging due to kernel taint
    [ 7.450271] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.0/sound/card0/input7
    [ 7.450581] input: HDA NVidia Line as /devices/pci0000:00/0000:00:08.0/sound/card0/input8
    [ 7.450836] input: HDA NVidia Mic as /devices/pci0000:00/0000:00:08.0/sound/card0/input9
    [ 7.451099] input: HDA NVidia Line Out as /devices/pci0000:00/0000:00:08.0/sound/card0/input10
    [ 7.453217] ACPI: PCI Interrupt Link [LPMU] enabled at IRQ 20
    FWIW, I even tried changing the HDMI cable, turning the amp on before or after the PC etc. No change.
    Last edited by dave00 (2013-03-01 03:03:42)

    Default install, clean boot and I get this error but the info above indicates there is a sound device. Confused!
    [root@lounge ~]# systemctl status alsa-restore.service
    alsa-restore.service - Restore Sound Card State
    Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
    Active: inactive (dead) since Fri 2013-03-01 18:01:19 EST; 1min 2s ago
    Process: 241 ExecStart=/usr/sbin/alsactl restore (code=exited, status=19)
    Mar 01 18:01:18 lounge systemd[1]: Starting Restore Sound Card State...
    Mar 01 18:01:19 lounge alsactl[241]: /usr/sbin/alsactl: load_state:1696: No soundcards found...
    Mar 01 18:01:19 lounge systemd[1]: Started Restore Sound Card State.
    [root@lounge ~]# systemctl status alsa-store.service
    alsa-store.service - Store Sound Card State
    Loaded: loaded (/usr/lib/systemd/system/alsa-store.service; static)
    Active: inactive (dead)
    Mar 01 13:41:03 lounge systemd[1]: Started Store Sound Card State.
    Mar 01 13:45:54 lounge systemd[1]: Starting Store Sound Card State...
    Mar 01 13:45:55 lounge systemd[1]: Started Store Sound Card State.
    Mar 01 14:04:19 lounge systemd[1]: Started Store Sound Card State.
    Mar 01 17:25:11 lounge systemd[1]: Starting Store Sound Card State...
    Mar 01 17:25:11 lounge systemd[1]: Started Store Sound Card State.
    Mar 01 17:39:05 lounge systemd[1]: Starting Store Sound Card State...
    Mar 01 17:39:05 lounge systemd[1]: Started Store Sound Card State.
    Mar 01 18:00:51 lounge systemd[1]: Starting Store Sound Card State...
    Mar 01 18:00:51 lounge systemd[1]: Started Store Sound Card State.
    Journal
    Mar 01 18:01:19 lounge kernel: hda_intel: Disabling MSI
    Mar 01 18:01:19 lounge kernel: snd_hda_intel 0000:00:08.0: setting latency timer to 64
    Mar 01 18:01:19 lounge alsactl[241]: /usr/sbin/alsactl: load_state:1696: No soundcards found...
    Mar 01 18:01:19 lounge systemd[1]: Started Restore Sound Card State.
    Mar 01 18:01:20 lounge systemd[1]: Started Linux Infrared Remote Control.
    Mar 01 18:01:22 lounge kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.0/sound/card0/input7
    Mar 01 18:01:22 lounge kernel: input: HDA NVidia Line as /devices/pci0000:00/0000:00:08.0/sound/card0/input8
    Mar 01 18:01:22 lounge kernel: input: HDA NVidia Mic as /devices/pci0000:00/0000:00:08.0/sound/card0/input9
    Mar 01 18:01:22 lounge kernel: input: HDA NVidia Line Out as /devices/pci0000:00/0000:00:08.0/sound/card0/input10
    Mar 01 18:01:22 lounge systemd[1]: Starting Sound Card.
    Mar 01 18:01:22 lounge systemd[1]: Reached target Sound Card.
    Edit: Am I correct in saying that the issue is because alsactl restore is running before the sound card?
    Last edited by dave00 (2013-03-01 07:30:12)

  • May 2007 Screenshots

    Guidelines
    · DO NOT post full resolution screenshots!  You can use the "mogrify" command (pacman -S imagemagick) to make a thumbnail of your screenshot:
    $ cp screenie.png thumb-screenie.png
    $ mogrify -resize 20% thumb-screenie.png
    Twenty percent of the original size is great for 1024x768 screenies.  You can then upload these images to your server and use the following code to show them on the forum:
    [url=http://my.site.com/screenie.png][url]http://my.site.com/thumb-screenie.png[/url][/url]
    This displays the thumbnail as a link to the screenie like this:
    http://dtw.jiwe.org/share/screenies/thumb-screenie.png
    · If you do not have your own upload space you can upload to http://art.archlinux.org and link your shot here (with text) for discussion
    · Several websites also offer free image hosting, of these  ImageShack is very popular and does a neat auto thumbnail:
    http://img247.echo.cx/img247/7290/20050 … 7fv.th.png
    You should use the "Thumbnail for forums (1)" link code that is supplied to post here
    · Once the new month begins please do not post new screenies in the old threads.
    · If the screenshot has questionable material that might not be safe to view while at work or in a school setting, please post only a link and not a thumbnail, along with a mention of "Not Safe for Work". Posts that do not adhere to this are subject to deletion without notice at any time.
    · Please try to include any links to your wallpaper or configs that you may have and/or the names of your icon theme, running apps, DE, etc. in the same post to reduce unnecessary clutter later.

    phunkycow wrote:
    The clouds come to life by Ether
    Make sure you check out his gallery. Top stuff!
    Yeah, sure!
    I'm using one of his piece of art too.
    I'm relatively new to Arch (and to Linux in general), but my first post is for this thread...!
    Here's my desktop:
    GTK2 theme: Murrina Black
    Emerald theme: Transience
    Icons: SnowIsh
    Wallpaper: edge by *ether
    DE: XFCE
    Applications: Beryl, Sonata & Terminal
    PS: Can someone tell me where to find this nice info-script? I've been searching for it for a moment but without success.

  • Dualboot with Windows from secondary MBR drive using e.g. grub/refind

    Hi!
    I'm trying to get my secondary drive with Windows 8, installed in MBR-mode to boot using either grub2, refind or any other suitable bootloader. "bootinfoscript" return:
    Boot Info Script 0.61 [1 April 2012]
    ============================= Boot Info Summary: ===============================
    => is installed in the MBR of /dev/sda.
    => Windows is installed in the MBR of /dev/sdb.
    sda1: __________________________________________________________________________
    File system: vfat
    Boot sector type: FAT32
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /grub/grub.cfg /efi/arch_grub/grubx64.efi
    /efi/refind/refind_x64.efi
    sda2: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Arch Linux ()
    Boot files: /etc/fstab
    sdb1: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /bootmgr /Boot/BCD
    sdb2: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /bootmgr /Windows/System32/winload.exe
    sdb3: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System:
    Boot files:
    ============================ Drive/Partition Info: =============================
    Drive: sda _____________________________________________________________________
    Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sda1 1 117,231,407 117,231,407 ee GPT
    GUID Partition Table detected.
    Partition Start Sector End Sector # of Sectors System
    /dev/sda1 40 409,639 409,600 EFI System partition
    /dev/sda2 409,640 115,752,999 115,343,360 Data partition (Linux)
    Drive: sdb _____________________________________________________________________
    Disk /dev/sdb: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sdb1 2,048 718,847 716,800 7 NTFS / exFAT / HPFS
    /dev/sdb2 718,848 882,276,351 881,557,504 7 NTFS / exFAT / HPFS
    /dev/sdb3 * 882,276,352 2,930,272,255 2,047,995,904 af HFS / HFS+
    "blkid" output: ________________________________________________________________
    Device UUID TYPE LABEL
    /dev/sda1 39D2-CCE0 vfat
    /dev/sda2 0c5d5c14-1e89-44ec-af4d-7b180ed693bc ext4
    /dev/sdb1 780CD4910CD44BAE ntfs System Reserved
    /dev/sdb2 105CD9745CD95556 ntfs
    /dev/sdb3 bb50e1d4-cc4c-43cc-8597-54815366422f ext4
    ================================ Mount points: =================================
    Device Mount_Point Type Options
    /dev/sda1 /boot vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
    /dev/sda2 / ext4 (rw,noatime,discard,data=ordered)
    /dev/sdb3 /home ext4 (rw,relatime,data=ordered)
    ============================= sda1/grub/grub.cfg: ==============================
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    if [ "${next_entry}" ] ; then
    set default="${next_entry}"
    set next_entry=
    save_env next_entry
    set boot_once=true
    else
    set default="0"
    fi
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 0c5d5c14-1e89-44ec-af4d-7b180ed693bc
    else
    search --no-floppy --fs-uuid --set=root 0c5d5c14-1e89-44ec-af4d-7b180ed693bc
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_archlinux ###
    menuentry "Arch Linux pkg-linux kernel" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    fi
    set gfxpayload=keep
    insmod fat
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
    else
    search --no-floppy --fs-uuid --set=root 39D2-CCE0
    fi
    echo 'Loading Arch Linux pkg-linux kernel ...'
    linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
    echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
    initrd /initramfs-linux.img
    menuentry "Arch Linux pkg-linux kernel (fallback initramfs)" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    fi
    set gfxpayload=keep
    insmod fat
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
    else
    search --no-floppy --fs-uuid --set=root 39D2-CCE0
    fi
    echo 'Loading Arch Linux pkg-linux kernel ...'
    linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
    echo 'Loading Arch Linux pkg-linux kernel fallback initramfs ...'
    initrd /initramfs-linux-fallback.img
    ### END /etc/grub.d/10_archlinux ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod fat
    set root='hd0,gpt1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
    else
    search --no-floppy --fs-uuid --set=root 39D2-CCE0
    fi
    echo 'Loading Linux linux ...'
    linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod fat
    set root='hd0,gpt1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
    else
    search --no-floppy --fs-uuid --set=root 39D2-CCE0
    fi
    echo 'Loading Linux linux ...'
    linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    menuentry "Microsoft Windows Vista/7/8 BIOS-MBR" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    search --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 780CD4910CD44BAE
    ntldr /bootmgr
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    ### END /etc/grub.d/60_memtest86+ ###
    =================== sda1: Location of files loaded by Grub: ====================
    GiB - GB File Fragment(s)
    =============================== sda2/etc/fstab: ================================
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda2
    UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc / ext4 rw,defaults,noatime,discard,data=ordered 0 1
    # /dev/sda1
    UUID=39D2-CCE0 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    # /dev/sdb3
    UUID=bb50e1d4-cc4c-43cc-8597-54815366422f /home ext4 rw,relatime,data=ordered 0 2
    =============================== StdErr Messages: ===============================
    cat: /tmp/BootInfo-2fUreQzU/Tmp_Log: No such file or directory
    No volume groups found
    mdadm: No arrays found in config file or automatically
    As seen, windows is installed in the MBR of /dev/sdb and grub, using the chainloader should be able to boot it (i guess).
    I have the following in my 40-custom.
    menuentry "Microsoft Windows Vista/7/8 BIOS-MBR" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    search --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 780CD4910CD44BAE
    ntldr /bootmgr
    where the first is  "--hint-bios= ..." is given by
    sudo grub-probe --target=hints_string -d /dev/sdb1
    and the UUID by
    sudo grub-probe --target=fs_uuid -d /dev/sdb1
    When I try to boot the above configuration, I get an error saying that "ntldr cannot be found" - and indeed, while I find "ntldr.mod" in "/usr/lib/grub/i386-pc/" I cannot find it in "/usr/lib/grub/x86_64-efi/".
    I've also tried getting refind to identify "bootmgr" from windows without success. I guess it does not support NTFS or something.
    Anyway, do anyone have any idea of how to get this to work - without reinstalling Windows in EFI-mode?
    Thanks in advance,
    elt

    dieelt wrote:
    Hi!
    I'm trying to get my secondary drive with Windows 8, installed in MBR-mode to boot using either grub2, refind or any other suitable bootloader. "bootinfoscript" return:
    Boot Info Script 0.61 [1 April 2012]
    ============================= Boot Info Summary: ===============================
    => is installed in the MBR of /dev/sda.
    => Windows is installed in the MBR of /dev/sdb.
    sda1: __________________________________________________________________________
    File system: vfat
    Boot sector type: FAT32
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /grub/grub.cfg /efi/arch_grub/grubx64.efi
    /efi/refind/refind_x64.efi
    sda2: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Arch Linux ()
    Boot files: /etc/fstab
    sdb1: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /bootmgr /Boot/BCD
    sdb2: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /bootmgr /Windows/System32/winload.exe
    sdb3: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System:
    Boot files:
    ============================ Drive/Partition Info: =============================
    Drive: sda _____________________________________________________________________
    Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sda1 1 117,231,407 117,231,407 ee GPT
    GUID Partition Table detected.
    Partition Start Sector End Sector # of Sectors System
    /dev/sda1 40 409,639 409,600 EFI System partition
    /dev/sda2 409,640 115,752,999 115,343,360 Data partition (Linux)
    Drive: sdb _____________________________________________________________________
    Disk /dev/sdb: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sdb1 2,048 718,847 716,800 7 NTFS / exFAT / HPFS
    /dev/sdb2 718,848 882,276,351 881,557,504 7 NTFS / exFAT / HPFS
    /dev/sdb3 * 882,276,352 2,930,272,255 2,047,995,904 af HFS / HFS+
    "blkid" output: ________________________________________________________________
    Device UUID TYPE LABEL
    /dev/sda1 39D2-CCE0 vfat
    /dev/sda2 0c5d5c14-1e89-44ec-af4d-7b180ed693bc ext4
    /dev/sdb1 780CD4910CD44BAE ntfs System Reserved
    /dev/sdb2 105CD9745CD95556 ntfs
    /dev/sdb3 bb50e1d4-cc4c-43cc-8597-54815366422f ext4
    ================================ Mount points: =================================
    Device Mount_Point Type Options
    /dev/sda1 /boot vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
    /dev/sda2 / ext4 (rw,noatime,discard,data=ordered)
    /dev/sdb3 /home ext4 (rw,relatime,data=ordered)
    ============================= sda1/grub/grub.cfg: ==============================
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    if [ "${next_entry}" ] ; then
    set default="${next_entry}"
    set next_entry=
    save_env next_entry
    set boot_once=true
    else
    set default="0"
    fi
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 0c5d5c14-1e89-44ec-af4d-7b180ed693bc
    else
    search --no-floppy --fs-uuid --set=root 0c5d5c14-1e89-44ec-af4d-7b180ed693bc
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_archlinux ###
    menuentry "Arch Linux pkg-linux kernel" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    fi
    set gfxpayload=keep
    insmod fat
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
    else
    search --no-floppy --fs-uuid --set=root 39D2-CCE0
    fi
    echo 'Loading Arch Linux pkg-linux kernel ...'
    linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
    echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
    initrd /initramfs-linux.img
    menuentry "Arch Linux pkg-linux kernel (fallback initramfs)" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    fi
    set gfxpayload=keep
    insmod fat
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
    else
    search --no-floppy --fs-uuid --set=root 39D2-CCE0
    fi
    echo 'Loading Arch Linux pkg-linux kernel ...'
    linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
    echo 'Loading Arch Linux pkg-linux kernel fallback initramfs ...'
    initrd /initramfs-linux-fallback.img
    ### END /etc/grub.d/10_archlinux ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod fat
    set root='hd0,gpt1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
    else
    search --no-floppy --fs-uuid --set=root 39D2-CCE0
    fi
    echo 'Loading Linux linux ...'
    linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod fat
    set root='hd0,gpt1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
    else
    search --no-floppy --fs-uuid --set=root 39D2-CCE0
    fi
    echo 'Loading Linux linux ...'
    linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    menuentry "Microsoft Windows Vista/7/8 BIOS-MBR" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    search --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 780CD4910CD44BAE
    ntldr /bootmgr
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    ### END /etc/grub.d/60_memtest86+ ###
    =================== sda1: Location of files loaded by Grub: ====================
    GiB - GB File Fragment(s)
    =============================== sda2/etc/fstab: ================================
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda2
    UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc / ext4 rw,defaults,noatime,discard,data=ordered 0 1
    # /dev/sda1
    UUID=39D2-CCE0 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    # /dev/sdb3
    UUID=bb50e1d4-cc4c-43cc-8597-54815366422f /home ext4 rw,relatime,data=ordered 0 2
    =============================== StdErr Messages: ===============================
    cat: /tmp/BootInfo-2fUreQzU/Tmp_Log: No such file or directory
    No volume groups found
    mdadm: No arrays found in config file or automatically
    As seen, windows is installed in the MBR of /dev/sdb and grub, using the chainloader should be able to boot it (i guess).
    I have the following in my 40-custom.
    menuentry "Microsoft Windows Vista/7/8 BIOS-MBR" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    search --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 780CD4910CD44BAE
    ntldr /bootmgr
    where the first is  "--hint-bios= ..." is given by
    sudo grub-probe --target=hints_string -d /dev/sdb1
    and the UUID by
    sudo grub-probe --target=fs_uuid -d /dev/sdb1
    When I try to boot the above configuration, I get an error saying that "ntldr cannot be found" - and indeed, while I find "ntldr.mod" in "/usr/lib/grub/i386-pc/" I cannot find it in "/usr/lib/grub/x86_64-efi/".
    I've also tried getting refind to identify "bootmgr" from windows without success. I guess it does not support NTFS or something.
    Anyway, do anyone have any idea of how to get this to work - without reinstalling Windows in EFI-mode?
    Thanks in advance,
    elt
    UEFI GRUB(2) does not support booting BIOS boot loaders in non-Apple systems. For Apple Macs that support exists in form of 'appleloader' grub command. You might have better luck with rEFInd bios boot support but as per its author Rod Smith (srs5694) even that support is severely limited http://rodsbooks.com/refind/using.html#legacy .
    You 40_custom is correct but that will work only in bios grub(2), not in uefi grub(2). 'ntldr' grub module is specific to bios grub(2).
    Last edited by the.ridikulus.rat (2014-04-13 20:09:25)

Maybe you are looking for