• Upgrade LSI 9201-16i and 9211-8i to Firmware 19.00.00.00 on Asus Striker II Formula

    I was using deprecated firmwares and drivers for my two LSI SAS Controllers and noticed a lot of errors in the Windows’ eventlogs like “Event 11 LSI_SAS2 The driver detected a controller error on \Device\RaidPort1”. So I decided to update them.

    Click to Read More

    Notice that I didn’t update the bios of my cards as recent versions are not compatible with my motherboard. See here.

    First, I did update the Windows Drivers. The most recent version of those drivers are available on LSI’s download page… (Search for “Component Type” = “Storage Component” with “Host Bus Adapters” as “Product Family”). E.g.: for “LSI SAS 9201-16i” see here and for “LSI SAS 9211-8i” see here.

    The update is easy and straightforward via “Computer Management” > “Device Management” > “Storage Controllers”. Right-click on the “LSI adapter xxxx” and select “Update Driver Software” > “Browse my Computer for driver software”. Then select the folder where you unzipped the drivers.

    Next step, I did update the Firmware. The most recent version of the firmwares is available on the download page too. As I have two card, I wanted to update them separately as the size of the firmware was 1KB different…

    I did start a CMD prompt as Administrator and used the sas2flash.exe command the folder “sas2flash_win_x64_rel” available in the zip with the firmwares.

    first I did check which number was assigned to each controller with the command “sas2flash.exe -list -c 0” and “sas2flash.exe -list -c 1”

    C:\sas2flash_win_x64_rel>sas2flash.exe -list -c 0
    LSI Corporation SAS2 Flash Utility
    Version 19.00.00.00 (2014.03.17)
    Copyright (c) 2008-2014 LSI Corporation. All rights reserved

    Adapter Selected is a LSI SAS: SAS2008(B2)

    Controller Number : 0
    Controller : SAS2008(B2)
    PCI Address : 00:04:00:00
    SAS Address : 500605b-0-01bd-bec0
    NVDATA Version (Default) : 11.00.00.07
    NVDATA Version (Persistent) : 11.00.00.07
    Firmware Product ID : 0x2213 (IT)
    Firmware Version : 17.00.01.00
    NVDATA Vendor : LSI
    NVDATA Product ID : SAS9211-8i
    BIOS Version : 07.15.00.00
    UEFI BSD Version : N/A
    FCODE Version : N/A
    Board Name : SAS9211-8i
    Board Assembly : N/A
    Board Tracer Number : N/A

    Finished Processing Commands Successfully.
    Exiting SAS2Flash.

    C:\sas2flash_win_x64_rel>sas2flash.exe -list -c 1
    LSI Corporation SAS2 Flash Utility
    Version 19.00.00.00 (2014.03.17)
    Copyright (c) 2008-2014 LSI Corporation. All rights reserved

    Adapter Selected is a LSI SAS: SAS2116_1(B1)

    Controller Number : 1
    Controller : SAS2116_1(B1)
    PCI Address : 00:03:00:00
    SAS Address : 5000000-0-8000-0000
    NVDATA Version (Default) : 11.00.00.05
    NVDATA Version (Persistent) : 11.00.00.05
    Firmware Product ID : 0x2213 (IT)
    Firmware Version : 17.00.01.00
    NVDATA Vendor : LSI
    NVDATA Product ID : SAS9201-16i
    BIOS Version : 07.15.00.00
    UEFI BSD Version : N/A
    FCODE Version : N/A
    Board Name : SAS9201-16i
    Board Assembly : N/A
    Board Tracer Number : N/A

    Finished Processing Commands Successfully.
    Exiting SAS2Flash.

    So, id 0 was for the LSI SAS9211-8i and id 1 was for LSI SAS9201-16i. So, I did update like this:

    C:\sas2flash_win_x64_rel>sas2flash.exe -o -c 0 -f 2118it.bin
    LSI Corporation SAS2 Flash Utility
    Version 19.00.00.00 (2014.03.17)
    Copyright (c) 2008-2014 LSI Corporation. All rights reserved

    Advanced Mode Set

    Adapter Selected is a LSI SAS: SAS2008(B2)

    Executing Operation: Flash Firmware Image

    Firmware Image has a Valid Checksum.
    Firmware Version 19.00.00.00
    Firmware Image compatible with Controller.

    Valid NVDATA Image found.
    NVDATA Version 11.00.00.00
    Checking for a compatible NVData image…

    NVDATA Device ID and Chip Revision match verified.
    NVDATA Versions Compatible.
    Valid Initialization Image verified.
    Valid BootLoader Image verified.

    Beginning Firmware Download…
    Firmware Download Successful.

    Verifying Download…

    Firmware Flash Successful.

    Resetting Adapter…
    Adapter Successfully Reset.

    Finished Processing Commands Successfully.
    Exiting SAS2Flash.

    C:\\sas2flash_win_x64_rel>sas2flash.exe -o -c 1 -f 9201-16i_it.bin
    LSI Corporation SAS2 Flash Utility
    Version 19.00.00.00 (2014.03.17)
    Copyright (c) 2008-2014 LSI Corporation. All rights reserved

    Advanced Mode Set

    Adapter Selected is a LSI SAS: SAS2116_1(B1)

    Executing Operation: Flash Firmware Image

    Firmware Image has a Valid Checksum.
    Firmware Version 19.00.00.00
    Firmware Image compatible with Controller.

    Valid NVDATA Image found.
    NVDATA Version 11.00.00.00
    Checking for a compatible NVData image…

    NVDATA Device ID and Chip Revision match verified.
    NVDATA Versions Compatible.
    Valid Initialization Image verified.
    Valid BootLoader Image verified.

    Beginning Firmware Download…
    Firmware Download Successful.

    Verifying Download…

    Firmware Flash Successful.

    Resetting Adapter…
    Adapter Successfully Reset.

    Finished Processing Commands Successfully.
    Exiting SAS2Flash.

    The PC did reboot without any issue and I have access to my diks.. but next:

    c:\sas2flash_win_x64_rel>sas2flash.exe -listallboards
    LSI Corporation SAS2 Flash Utility
    Version 19.00.00.00 (2014.03.17)
    Copyright (c) 2008-2014 LSI Corporation. All rights reserved

    No LSI SAS adapters found! Limited Command Set Available!
    ERROR: Command Not allowed without an adapter!
    ERROR: Couldn’t Create Command -listallboards
    Exiting Program.

    I wanted to check the controllers and unfortunately, they are not detected anymore by the tool 🙁

    Damned… I forgot to run it in a CMD prompt run as Administrator!!! Once run in such a CMD prompt, I got the expected info:

    c:\sas2flash_win_x64_rel>sas2flash.exe -listallboards
    LSI Corporation SAS2 Flash Utility
    Version 19.00.00.00 (2014.03.17)
    Copyright (c) 2008-2014 LSI Corporation. All rights reserved

    Adapter Selected is a LSI SAS: SAS2008(B2)

    Num Ctlr Board Name Serial Number
    —————————————————-

    0 SAS2008(B2) SAS9211-8i N/A
    1 SAS2116_1(B1) SAS9201-16i N/A

    Finished Processing Commands Successfully.
    Exiting SAS2Flash.

     

    c:\sas2flash_win_x64_rel>sas2flash.exe -listall
    LSI Corporation SAS2 Flash Utility
    Version 19.00.00.00 (2014.03.17)
    Copyright (c) 2008-2014 LSI Corporation. All rights reserved

    Adapter Selected is a LSI SAS: SAS2008(B2)

    Num Ctlr FW Ver NVDATA x86-BIOS PCI Addr
    —————————————————————————-

    0 SAS2008(B2) 19.00.00.00 11.00.00.08 07.15.00.00 00:04:00:00
    1 SAS2116_1(B1) 19.00.00.00 11.00.00.06 07.15.00.00 00:03:00:00

    Finished Processing Commands Successfully.
    Exiting SAS2Flash.

    Loading

  • FlexRaid: powershell script to set disks online/offline

    FlexRaid‘s products (Raid-F and tRaid) are setting offline all disks used as DRU or PPU to prevent direct access and mistakes. Access are made through virtual disks created by FlexRaid. But if you have many disks and sometimes needs to access your physical disks, you will like this script to reset online all those disks…

    Click to Read More

    Create a file to store this powershell script (ex.: ManageDisks.ps1) :

    [code language=”shell”]

    Clear-Host
    $action = Read-Host ‘Type "Off" to set disks offline or "On" to set them online’
    Clear-Host
    if ($action.ToLower() -eq ‘off’)
    {
    echo ‘Please Wait…’
    $lines = Get-Content C:\OffLineDisks.txt
    foreach ($line in $lines) {
    if ($line.Trim())
    {
    $fields = $line -split ‘ : ‘
    $disk = $fields[1] $command = ‘"select disk ‘ + $disk + ‘", "offline disk" | diskpart’
    echo $command
    invoke-expression $command
    }
    }
    }
    elseif ($action.ToLower() -eq ‘on’) {
    echo ‘Please Wait…’
    Get-Disk | ? isoffline | Format-List Number > C:\OffLineDisks.txt
    $lines = Get-Content C:\OffLineDisks.txt
    foreach ($line in $lines) {
    if ($line.Trim()) {
    $fields = $line -split ‘ : ‘
    $disk = $fields[1] $command = ‘"select disk ‘ + $disk + ‘", "online disk", "detail disk" | diskpart | Where-Object {$_ -match ".*Volume.*Partition" } 2>&1’
    echo $command
    $output = invoke-expression $command
    if ($output -eq $null) {
    echo "No Volume on disk $disk"
    } else {
    $fields = $output.TrimStart(" Volume") -split ‘ ‘
    $volume = $fields[0] $command = ‘"select volume ‘ + $volume + ‘", "assign" | diskpart’
    echo $command
    invoke-expression $command
    }
    }
    }
    }
    else
    {
    $message = $action + ‘ is not a supported action’
    echo $message
    }

    [/code]

    Usage: run this script “As Administrator” and

    Type  ‘On’ to set online all disks currently offline. This will:

    1. Create a file OffLineDisks.txt on the C:\ drive with the ID of the disks currently offline. I presume that all disk offline are used by FlexRaid!
    2. Bring online each of those disks.
    3. Assign a letter to the volumes on those disks. I presume that there is only one volume per DRU and none on the PPU.

    Type ‘Off’ to set offline the disks listed in the file OffLineDisks.txt created previously.

    My purpose was to scan and repair various physical disks as this was not working when trying to do so via the NZFS Virtual Drives…

    Click to Read More

    Doing a Chkdsk on the NZFS Virtual Drive, I got:

    Chkdsk was executed in read/write mode.

    Checking file system on #:
    Volume label is #.

    Stage 1: Examining basic file system structure …

    # file records processed. File verification completed.

      # large file records processed.

      # bad file records processed.

    Stage 2: Examining file name linkage …
    The data written out is different from what is being read back
    at offset 0x# for 0x# bytes.
    An unspecified error occurred (696e647863686b2e 1324).

    So, instead, I do it on Physical Drives once set back online. And instead of Chkdks, I am using the powershell command “Repair-Volume”. E.g.: on a disk assigned with letter X:

    PS C:\> Repair-Volume X -Scan
    ScanErrorsFoundNeedSpotFix

    PS C:\> Repair-Volume X
    ErrorsFixed

    PS C:\> Repair-Volume X -Scan
    NoErrorsFound

    Loading

  • Run “Use Google Libraries” and “Root Relative URLs” plugins for WordPress Side by side

    I recently tried to install the plugin “Use Google Libraries” for WordPress but it didn’t work because all its URLs where rewritten by the plugin “Root Relative URLs”. This can be solved with a black list url…

    Click to Read More

    Concretely, the plugin “Use Google Libraries” uses URLs like  src=’//ajax.googleapis.com/ajax/libs/…’. Those were rewritten by mistake into src=’/ajax/libs/…’

    I couldn’t disable the plugin “Root Relative URLs” as it’s the only way to make my blog accessible seamlessly from both internet and my intranet, using either the netbios name of my NAS, its IP or its dynamic DNS name.

    So, I tried to add //ajax.googleapis.com in the “black list urls” of  “Root Relative URLs”. Those can be set in the Dashboard > Settings > General > (scroll to the bottom) “

    Unfortunately it didn’t work… Until Hube2, who wrote a hack of “Root Relative URLs”, told me how to set it correctly: one may not use the domain name in the black listed URL’s.

    Conclusion, in my case, I had to black list “ajax/libs”, et voilà!

    Loading

  • Modal Popups don’t open anymore within WordPress 3.8.2’s Visual Editor

    Since a few months, I couldn’t “Add Media” or “Insert/Edit Link” anymore within the Visual Editor of my WordPress, when editing existing Posts. Everything was however working fine when creating new Posts… According to me, it is due to the use of a too recent version of ajax/jQuery, not compatible/conflicting with WordPress 3.8.2’s libraries. I found indeed some plugins recently updated/installed that had to be removed to solve the problem.

    Click to Read More

    Concretely, Modal Popups didn’t open anymore…

    I didn’t get time to investigate that issue before this week-end. But it took me only a few minutes to discover that everything was working again when disabling the plugin Akismet 3.0.0 (updated by the way from 2.5.9 a few months ago).

    Instead of disabling all the plugins and re-enabling them one by one, I did compare the html source of the pages used to create a new Post and to edit an existing Post (As the problem only occurred when editing). I noticed immediately that the main difference was the inclusion of some Akismet’s javascripts. Reason why I tried first to disable that plugin…. and Bingo!

    As suggested on WordPress’ forum, I tried to installed the plugin “Use Google Libraries”. But it didn’t solve the problem. Actually, using that plugin while Akismet is disabled also results in Modal Popups not opening…

    When the problem occurs, there are errors logged in the Chrome’s developer Console (F12 > tab “Console”) : Uncaught TypeError: undefined is not a function. This error occurs in scripts from jquery-ui.min.js

    So, IMO, both “Use Google Libraries” and “Akismet” use a too recent version of ajax/jquery for WordPress 3.8.2. But as I didn’t want to upgrade to WordPress 3.9 or 4.0 beta (as long as Synology don’t provide its own package) I did simply rollback to Akismet 2.5.9. I had fortunately a backup… And did uninstall “Use Google Libraries”… Et voilà !

    Loading

  • Scan Negatives with Epson Perfection V550 Photo

    I always wanted a good device to scan all my negatives. I finally decided to buy an Epson Perfection V550 Photo…

    EPSON Perfection V550 Photo

    Click to Read More

    I didn’t want something like those small “film scanners” at ~80€ because those are actually camera taking a photo of the negatives. As a consequence, the quality of the output is only good enough to published the photo on the web or to watch them on a screen… Even with a higher DPI, the quality is still far from amazing.

    Typical cheap Film Scanner
    Film Scanner

    However, a real semi-pro film scanner cost at least 500€ and much more (1200€, 1500€, ..). As that was out of my budget, I was therefore looking for something as a “Reflecta CrystalScan 7200” (~200€), a typical great compromise between price and quality; the high quality of the output being mainly due to the feature named “Ice Techonology”. This one is amazing when used to remove dusts and scratches on photos. Unfortunately, it only scans the negatives one by one and one has to move the film manually. I would have needed ages to scan all my negatives…

    Reflecta CrystalScan 7200
    Reflecta CrystalScan 7200

    So, I finally decided to go for the excellent EPSON Perfection V550 Photo, the smallest in its family, but with all the features I needed. It uses the ICE Technology and scan up to 2×6 negatives from 35mm films at once at 6400 dpi. Here is an excellent review for details.

    And here is a demo of an automatic scratch and dust removal with EPSON Perfection V550 Photo’s ICE Technology:

    Demo of ICE Technology
    Demo of ICE Technology

    Here after, how I process to scan negatives from 35mm films into 10×15 photo, each one around 5MB, 7200x4800px, 24 bit depth (online documentation here and good guidance here and tutorials)

    1. Turn on the EPSON and wait until the « Ready » green led on the front panel stops blinking.
    2. Start the “EPSON Scan” software on the PC
    3. Choose “Home Mode”
    4. If the “Configuration” was changed in the past, reset the settings via the “Configuration…” button > tab “Other” > “Reset All”
    5. As far as I am concerned*, I go to the “Configuration…” button and in the “Color” tab, I select the option “ICM” with
      1. “EPSON Standard” as a “Source”
      2. “sRGB” as target (“RVB” in french)
      3. and the option “Display preview using Monitor Compensation” ticked
    6. As “Document Type”, choose “Color negative films”
    7. As “Image Type”, use “Color”
    8. As “Destination”, use “Other” and
      1. set 1200 as “Resolution”
      2. with 10×15 cm as “Target Size”.
    9. Under “Adjustement” select the option “DIGITAL ICE Technology…” (The only one enabled when one choose “ICM” in the “Color” tab of the “Configuration” windows.

    * I noticed that the result was often (but not always) better on my display screens. However, switching between the option “ICM” and Color Controls results in something weird… The background color of the photos become blue:

    Test #3 - EPSON V550

    Once all the steps above are done:

    1. Click on “Preview”
    2. Select the “negatives” to be scanned in the “Preview” window.
    3. Back into the “Epson Scan “ main window, Click on “Scan”
    4. In the new window (“File Save Settings”) select
      1. The location for the output (Ex.: My Pictures)
      2. A prefix for the images
      3. The “Type” of “Image Format”: “JPEG”…  Then click on “Options” next to the “Type” and be sure that you kept:
        1. “16” as compression level
        2. Encoding Standard
        3. Embed ICC profile
    5. Set the other option according to your preferences and click “Ok”.

    When the operation ends, it will open the destination folder if you did ask for it in the options above..

    To scan one negative, it takes close to 3 minutes on my PC (a Quad Core I7 3.6GHz, 16GB Ram) although 8 minutes are announced. The negative used for this test is a 14 years old AGFA film. Here it the outcome: a picture of about 5MB, 7200x4800px:

    My custom settings

    If I choose next “Printer” as “Destination”, still with “DIGITAL ICE Technology” enabled, it takes a bit less than 2 minutes to get a picture of about 2MB, 1800×1200.

    If I choose “Color Controls” in the “Configuration…” window instead of ICM with a “Display Gama 2.2” and a mean “Continuous Auto Exposure”, I have other options in the “Image Adjustment” pane. NB.: whenever you change an option in the “Image Adjustments” pane, look at the “Preview” pane to see what’s the results…

    Ticking then the options “Color Restoration” and “Backlight Correction” in addition to “DIGITAL ICE Technology”, I get this ugly output:

    Test #1 - EPSON V550

    Ticking the option “DIGITAL ICE Technology” with the “Backlight Correction” only, I get something better:

    Color Controls with ICE and Backlight Correction

    And ticking only the Image Adjustment “DIGITAL ICE Technology”, the output comes resp. in a bit less than 3 minutes at 1200 dpi (picture on top) and in a bit less than 2 minutes at 300 dpi (for printer, picture bellow):

    Color Controls at 1200 dpi with ICE Color Controls at 300 dpi with ICE

    Far from an expert in photography, I have my own preference for the results with only the “DIGITAL ICE Technology” Image Adjustment enabled…

    If I select 10 negatives (2 slides of 5) to be scanned at once with “ICM” selected in the “Configuration” and “DIGITAL Ice Technology” enabled, EPSON Scan announces 21 minutes for 300dpi, 1800×1200 (“Printer” as a destination)…. But it takes concretely only 16 minutes. With the very same options, but targeting 1200dpi, EPSON Scan announces 51’ and takes 30’.

    Now, instead of using the “Home Mode”, one could use the “default” mode, which is a the “Full Auto Mode” – used when one presses the rightmost button on the front of the scanner. Here is a result, a ~2MB picture, ~1800×1200 full of dust and scratches (as you can see in full size):

    Scanned in Default mode

    NOTICE: if getting noise and grain in the picture, read this tutorial to use the advanced mode and fix this issue.

    Final interesting touch: the scanner will automatically switch off when not in use anymore (Ex.: if the PC enter any standby mode due to inactivity).

    Another tutorial here to scan on a V550 with professional settings.

    [EDIT 07/2020] to scan B&W negative films, I had good results with

    • Type of image: 16 bits grayscale.
    • Resolution: 2400 dpi.
    • I do not use Unsharp Mask – I prefer to do it later with another software.
    • Grain Reduction – I use it with level medium.
    • Color Restoration – I disable it for black and white. If enabled, the images are less dark but this remove interesting shadows.
    • Backlight Correction – I disable it as it adds too much light. Try it to see if you like the results.
    • Dust Removal – I use it with level low. It can produce weird results (like removing closes eyes). Usually there is a trade-off in absolute image quality (sharpness) and effort you’ll have to expend later removing dust.
    • Digital ICE Technology – I disable it for Black and White. This setting uses an Infrared channel to detect and remove scratches and dust. The silver in B&W film interferes with this function. The results is really awful!

    Loading

  • Visual Studio: Compare and Merge sources with Beyond Compare

    As a memo (but this info can be found on Beyond Compare website), here are my settings to compare and merge sources from Visual Studio, with Beyond Compare.

    Click to Read More

    • Go to Tools > Options… > Source Control > Visual Studio Team Foundation Server
    • Click “Configure User Tools…”
    • In the “Configure User Tools…” window, click “Add…” to configure the Compare Operation… then Type:
      • Extension: .*
      • Operation: Compare
      • Command: D:\Tools\Beyond Compare 3\BComp.exe
      • Arguments: %1 %2 /title1=%6 /title2=%7
    • Click “Ok” and then again “Add..” to configure the Merge Operation… Type now:
      • Extension: .*
      • Operation: Merge
      • Command: D:\Tools\Beyond Compare 3\BComp.exe
      • .Arguments: %1 %2 %3 %4 /title1=%6 /title2=%7 /title3=%8 /title4=%9

    Et voilà.

    Loading

  • Disable “Wake on Mouse/Keyboard” while “Wake On By PCIe/PCI” must be enabled

    In order to support “Wake on Lan” from “Power Off State (S5)”, I had to enable “Wake On By PCIe/PCI” in the bios of my Asus P9X79 Pro. A consequence seems (?) to be that moving the mouse or pressing a key from the keyboard also wakes the PC from “Sleep States (S2/3/4)”. This can be solved by disallowing those devices to wake the PC via their “Power Management” properties.

    Click to Read More

    1. Disallow the Mouse to wake up the PC.
      1. Open Control Panel > Hardware and Sound > Devices and Printers
      2. Double-Click on your Mouse or on your receiver if you use a wireless Mouse (Ex.: Logitech Nano Receiver).
      3. Go to the “Hardware” tab and select the device named “HID-compliant mouse” with type “Mice and other pointing devices”. Then click on the “Properties” button.
      4. In the “HID-Compliant mouse Properties” pane now opened, click on the button “Change settings”. This will add a tab “Power Management”. Open that tab.
      5. In the tab “Power Management”, uncheck the option “Allow this device to wake the computer”
    2. Disallow the Keyboard to wake up the Computer
      1. Open Control Panel > Hardware and Sound > Devices and Printers
      2. Double-Click on your Keyboard or on your receiver if you use a wireless Keyboard (Ex.: Logitech Nano Receiver). NB.: my Bluetooth keyboard is displayed as “Logitech Elite Keyboard”.
      3. Go to the “Hardware” tab and select the device named “HID Keyboard Device” with type “Keyboards”. Then click on the “Properties” button.
      4. In the “HID Keyboard Device Properties” pane now opened, click on the button “Change settings”. This will add a tab “Power Management”. Open that tab.
      5. In the tab “Power Management”, uncheck the option “Allow this device to wake the computer”. NB.: if there is a “Sleep” button on the keyboard, it won’t work either to wake the PC from Sleep State !

    Loading

  • Wake on Lan from Power Off State (S5) on Asus P9X79 Pro

    My PC built on top of an Asus P9X79 Pro can be waked up from Lan when it is in Sleep Mode (=S1 state) but not when it has been completely turned off (=S5 state). Googling a bit I found the exact solution on Ryan’s Bliggity Blog: enable the “Network Stack” in the Bios.

    Click to Read More

    So, as a resume, here is my configuration:

    1. Windows Power Options
      1. Open Control Panel > Hardware and Sound > Power Options
      2. Click on “Change what the power buttons do” on the left
      3. Click on “Change settings that are currently unavailable”
      4. Uncheck the option “Turn on fast start-up (recommended)”
    2. Bios
      1. Enter your UEFI bios (I am using the latest version when posting his)
      2. Click on “Exit/advanced mode” button in the upper-right corner and enter the advanced mode
      3. Go to the “Advanced” tab and select the entry “APM”
        1. Enable the option “Power On By PCI/E/PCI”.
        2. Enable also the “Network Stack”
      4. Possibly go next to the “Boot” tab and
        1. Either disable the option “Fast Boot”
        2. Or if you enable it, enable its sub-option “Network Stack Driver Support”
    3. Network adapter settings:
      1. Open Control Panel > Network and Internet > Network and Sharing Center
      2. Click on “Change Adapter Settings” (on the left)
      3. Right-Click the Network Adapter “Intel(R) 82579V Gigabit Network Connection” and select “Properties”
      4. In the “Networking Tab”, click “Configure”
      5. In the “Power Management” tab, yous should now see and tick the option “Wake on Magic Packet from power off state”
      6. Keep the “Wake on Magic Packet” option ticked too (to wake from Sleep State).

    All about System Power States can be found on Intel website:

    • System Power State S0 the ON state: The system is completely operation, fully powered and completely retains the context.
    • System Power State S1 the Sleep state: The system consumes less power than S0 state. All Hardware & Processor context is maintained.
    • System Power State S2 the Sleep state: The system consumes less power than S1 state. Processor loses power and processor context and contents of the cache are lost.
    • System Power State S3 the Sleep state: The system consumes less power than S2 state. Processor & Hardware context, cache contents, and chipset context are lost. The system memory is retained.
    • System Power State S4 the Hibernate state: The system consumes the least power compared to all other sleep states. The system is almost at an OFF state, expect for a trickle power. The context data is written to hard drive (disk)and there is no context retained.
    • System Power State S5 the OFF state:The system is in a shutdown state and the system retains no context. Note that in power state S4 the system can restart from the context data stored on the disk, but in S5 the system requires a reboot.

    Loading

  • Couldn’t format SD/SDHC card or delete its volume

    I was recently unable to format a SDHC card with Windows Explorer or the Disk Management console (diskmgmt.msc). I did apply the same trick as when I was unable to delete a volume of a SDHC card.

    The symptom was the same: in the Computer Management > Disk Management console… the “Delete Volume…” menu was dimmed (disabled)…

    The solution was to format or delete the volume using command ‘Diskpart’ in a Dos prompt.

    Click to Read More

    See here how menu is disabled when I want to delete it:

    Computer Management: Delete Volume... dimmed

    To solve this, I used the solution published on Internet by Salty Wagyu : diskpart. Here is the list of commands to be used in a dos prompt run as Administrator:

    1. Diskpart
    2. List Disk
    3. Select Disk x (where x is the number corresponding to your SD Card)
    4. Clean
    5. Create partition primary
    6. Active
    7. Format fs=fat32 quick
    8. Assign

    Loading

  • TFS 2013 plugins cannot load dependencies located in the “Plugins” folder

    I have a plugin for TFS 2010 that reads a config file containing custom section handlers. When I deployed my plugin on TFS 2013, it thrown the following error when trying to instantiate those section handlers :

    A first chance exception of type ‘System.Configuration.ConfigurationErrorsException’ occurred in System.Configuration.dll

    Additional information: An error occurred creating the configuration section handler for xxxxx: Could not load file or assembly ‘xxxxx’ or one of its dependencies. The system cannot find the file specified.

    The problem was that there was no adequate probing path defined for .NET 4.5 in the TFS 2013 Services’ web config.

    Click to Read More

    TFS 2013 Services are loading plugins from C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins.

    But once those plugins loaded, they can only load their own dependencies from the GAC or from the TFS 2013 Services’ bin folder (C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin). I.e.: the sub-folder ‘Plugins’ of that bin folder is not probed…

    In my case, when my plugin read its custom section, it needs to load the assembly containing the related custom section handlers (actually, the plugin and the custom handlers are in the very same assembly…). It works fine if I deploy the assembly in TFS 2013 Services’ bin folder (or in the GAC I presume) but I cannot bring myself  to simply do that. Especially taking into account that it was working fine within TFS 2010.

    Having a look at TFS 2013 Services’ web config, in order to specify my own probing path, I noticed that there was already one defined, but ONLY for .Net 2.0. I.e.: here is the <runtime> section of C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\web.config

    [code language=”xml”]
    <!– Plugin directory path –>
    <runtime>
    <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="bin\Plugins;bin\Plugins\zh-chs;bin\Plugins\zh-cht;bin\Plugins\de;bin\Plugins\es;bin\Plugins\fr;bin\Plugins\it;bin\Plugins\ja;bin\Plugins\ko"/>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
    </dependentAssembly>
    </assemblyBinding>
    </runtime>

    [/code]

    As my plugin targets .Net 4.5, I simply defined the probing path for all target runtime.

    [code language=”xml”]
    <!– Plugin directory path –>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="bin\Plugins;bin\Plugins\zh-chs;bin\Plugins\zh-cht;bin\Plugins\de;bin\Plugins\es;bin\Plugins\fr;bin\Plugins\it;bin\Plugins\ja;bin\Plugins\ko"/>
    </assemblyBinding>

    <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    [/code]

    And that solved my issue !

    FYI (and google indexing): my plugin is a Server Side Event Handler for TFS…

    Loading

Tags


Acer iDea 510 AirPlay Android Backup DD-WRT DNS DS209+ DS713+ DS1815+ FlexRaid Galaxy Galaxy S2 Galaxy S7 Google Assistant Google Home HTPC Kies MCE MySQL Nabi 2 Nvidia TV Shield One Plus One OpenHab Outlook Philips Hue Plex RAID Raspberry PI Remote Desktop Root Access Samsung Scripts Synology Team Build Visual Studio VMWare Wi-Fi Windows Windows 8 Windows 8.1 Windows 10 Windows Server 2012 XBMC Xpenology ZigBee

Categories


Archives