Tag: Windows 7

[Solved] Windows Doesn’t Remember Folder View Settings

by
Inf

Do you often use the folder view settings in Windows? It’s a handy feature, that is usually accessed by right-clicking on empty space in a folder, and selecting either View or Sort By options.

Using these settings, you can, for example, tell Windows to display files according to the date they were created, with newer files shown first (Sort By → check Date Created under More), or you can see thumbnails of pictures instead of icons in your family photos folder.

The problem with Windows is that, by default, it only remembers those view settings for the first 5000 folders you apply these settings on. After that, the settings are no longer remembered! Yep, even if you stop using a folder, its settings are remembered and not replaced. Very dumb. You’d think the oldest of 5000 entries would periodically be replaced by newer versions, but nope, Microsoft did not want that.

I very often use this feature, and I’ve used up the 5000 entries, and as such, new folders are not sorted the way I like. Initially I thought the folder somehow got corrupted. Deleting the folder and putting back the files in it didn’t solve the problem. Editing the registry did. Those folder settings are stored in the Registry, all 5000 of them. We’re going to do some cleanup. I’ve tested this fix in Windows 7 only, but it should be same for XP/Vista.

A word of warning: Messing up things in the Registry can cause your system to crash. Know what you are doing before attempting these instructions. I will not be responsible for any damage you cause to your system/files/health/dog if you decide to do those steps. But! I can tell you they work since I’ve done them myself to fix this problem. Also if you’ll be working in the registry, you might want to use Regalyzer. Windows’ in-built Regedit is fine, but it lacks some nice functions. You can use Regedit too if you wish.

Also, if you do these instructions, you will lose the view settings you currently have on existing folders. Not the folders or their contents, just the view settings i.e. “Sort by Date” for e.g. will be reset to default “Sort by Name”.

The symptoms are:

  • Folder settings chosen using View or Sort By are not remembered when you close a folder and open it again. Applies mainly to newly created folders.
  • Thumbnail images don’t appear or incorrect thumbnail is displayed

Ok, instructions! Here they are:

  • Open the Run dialog box, either by typing “run” in the Start Menu searchbox (the Orb’s search menu) or using Winkey+R
  • Type “regedit“, or if you’re using Regalyzer, just run it.
  • Navigate to each of the following paths by using the sidebar. You will need to repeat instructions for each of those paths:
    • HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell
    • HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam
    • HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
    • HKEY_CURRENT_USER\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell (only if you are using a 64-bit version of Windows)

  • For each of those paths, repeat these steps:
    • Under the “Shell” or “ShellNoRoam” folders, delete these two folders by right-clicking on them and choosing Delete:
      • Bags
      • BagMRU
    • Re-create these two folders: Right-click “Shell” or “ShellNoRoam” folders from the sidebar and select NewKey. Create two such keys:
      • Bags
      • BagMRU
    • At each of those paths, right-click “Shell” or “ShellNoRoam” folders from the sidebar and select NewDWORD. Type “BagMRU Size” as the name.
      • From the right-pane, double-click on the newly created “BagMRU Size” key, select “Decimal” and type “10000” as value. So instead of remembering 5000 folders, Vista/7 now remembers 10000 folders. Don’t go overboard with that value – it’ll increase the size of your registry and slow things down.
      • Note: as Carrotmadman6 pointed out in the comments, don’t increase the “BagMRU Size” value if you have an older PC, say from a 5+ years back. It can cause some major slowness.
      • (Actually, this BagMRU Size key could be created at HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell only since that’s where Vista/7 read this information. I just wanted to make sure it gets read by including it at all 4 locations. You don’t need to if you don’t want.)

That’s it. When you reboot Windows next time (I didn’t need to), the settings will be remembered for folders you choose, and more folders will now be remembered. Remember, existing view settings will be lost, so you might want to re-create them. Hopefully now, Vista/7 will be remembering your settings.

Windows 7: Solutions to can’t sleep problems.

by
Inf

win7-logo

Hello folks. Sorry for lack of recent posts. Been taken up with uni lately. Anyway, I have recently migrated to Windows 7. I have to say Microsoft has done a magnificent job this time, especially when I compare Win7 and Vista. Performance on Win7 is awesome. And there are lots of usability improvements, which makes 7 a very nice software.

However, I was having a problem: I couldn’t manually sleep my computer. If I did it from the Orb/Start menu, the screen would turn off, the PC would shut for like a millisecond, before starting back up, and prompting me for login.

Turns out there are a few things that can cause this error, and they are easy to troubleshoot. Try these steps if you are having the same problem as me.

1) Update your drivers.

This should be pretty obvious. An old driver might be causing an issue. So just update your drivers, specially for your video card and it should correct any problem. If it still doesn’t work, move on.

2) Try to see which requests are keeping the PC on.

Open a Command Prompt. You can do it by typing “cmd” from the Run menu, or simply open the Start Menu, and type “Command Prompt” in the “Search Programs and Files” bar.

Type this command: “powercfg -requests” without quotes. Then press Enter. You will see a list of programs that could be making requests. Windows Media Player is a usual culprit. Just close them, and it should work. If you have “None.” marked, move on.

3) A specific device is keeping the PC from sleeping

Still in the command prompt, type “powercfg -devicequery wake_armed”. You will see a list of devices that can wake up your PC. For me, I got my Network card, Keyboard and Mouse in that list. Turns out it was my mouse that was responsible for waking up the machine.

What to do? Simple: Go to device manager ( Start Menu – Control Panel (View by: Large Icons, top right)  – System – Device Manager (left sidebar) ). Find your device that you think is causing the problem. For me it was the mouse, but I had to try disabling each individually. So, find your mouse in that list, e.g. Mice and other pointing devices, right-click it, choose Properties and go to the Power Management tab. Uncheck the box “Allow this device to wake the computer“.

Validate the windows with Ok, close Control Panel, and you should be all ok. Try sleeping your computer now.

That’s it for this small guide. I hope it helps you. Step 3 solved my problem. My computer now sleeps when I want it to sleep. 🙂