Fluent Bytes

"The only source of knowledge is experience" - Albert Einstein-

Tweaks after setting up a Mac Book Pro with boot camp as a Windows machine

For a couple of weeks I have a Mac Book Pro as my main workstation. For my work I need to spend quite some time in Windows and only for my cross platform mobile app development with Xamarin I need the Mac Book, so I can develop iOS applications. The past weeks I have been using Parallels virtualization, but when you use it for Windows phone development, you need to enable nested virtualization and then unfortunately the machine has strange lags and is sometimes extremely slow.

One thing I wanted to try out today was to setup Parallels in a different way, using a boot camp partition. Here you install windows on your bare metal using the Apple provided boot camp options.

I must say, installing with boot camp was overall a smooth install, no strange issues I needed to solve. Just a couple of tweaks that I summarize below:

Change the scroll direction on the boot camp windows machine

Only a few things I got used to the past weeks on the Mac Book I really love where the way the track pad works. One thing is natural scrolling, which I got used to in such a way that I could not work with the reverse scroll anymore on windows.

To fix the scroll directions, there is a simple registry key you can set.

Here is the Power Shell command you can use (in admin mode!)

Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }

After rebooting, your windows will scroll in natural scroll mode, just as on Mac OS

Slowing down the scroll speed on the boot camp windows machine

The track pad now works, but the scroll speed is way to fast, at least for me it is. The way to slow down scrolling on the track pad is by changing the mouse settings in the control panel.   Go to the control panel, type in the search keyword, mouse and then select “change mouse settings”

Here you select the tab wheel and set the number of lines to a lower value. for me 1 works best as shown in the screenshot:

image

Enabling Hardware virtualization on your boot camp windows machine

This one is in the category don’t ask how it works, but it works.

If you first boot into your boot camp partition, you can not enable Hyper-V. reason is that the hardware virtualization is disabled and you normally need to enable this in the PC bios. In this case you need to take the following steps:

restart your machine and use the option key at startup to select the OS-X partition and boot into the Mac OS again. there go to the System preferences and then to the Startup disk option. Then you select your boot camp partition and click reboot.

Now windows starts again, and if you look at the processor information, you can now see the hardware virtualization is enabled.

image

With this fix I was able to enable Hyper-V, and enable Visual studio to install the phone emulator image and start working on Windows Phone projects again

Hope this helps.

CTO at Xpirit, Microsoft Regional Director, Visual studio ALM MVP, Speaker, Pluralsight Author and IT Architect Consultant

19 Comments

  1. Marcel,
    How was visual studio performance in parallels, when you don’t have to use A Windows phone project? Currently i’m in douwt, if I go the paralles or the bootcamp option.
    Best regards Ewout

    • It’s pretty good.
      I now use parallels with the bootcamp image I created. When I need to do cross platform development with iOS I switch to the parallels option and when I do my normal dev work that does not requires Mac OS I just run on the bare metal with bootcamp.

      the only issue I found is that I need to re-activate Office after I switch, but that is something I can live with. (would like it to be fixed, but it’s a minor annoyance)

  2. Try…

    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopHScroll 1 }

    …to get natural horizontal scrolling as well.

    • Would you be able to explain in more detail how I could use the “Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }” command?

      I’m assuming Powershell is running cmd.exe but is there a way to type it in or paste?

      Thanks,
      Yan

      • You start Windows powershell as administrator and then past the following line in the window: Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
        then press enter
        this should do the trick

  3. Hi

    I am doing exactly the same as you, but I am finding that every time I cold boot the machine in Windows I need to restart back to OSX and then restart back to windows (bootcamp) again in order for the Hyper-V to work. It seems that when you cold boot straight into windows the Hyper-V is disabled every time (and the WP emulator wont spin up) – which is a massive pain. Are you getting the same problem?

    • Yep, I see the same.
      although I must say that I rarely cold boot into the machine. My machine works up to about a month without a real cold boot. I just close the lit when done and when I then start it again out of sleep it works.

  4. Hmm this has the nasty side effect that scrolling on my external mouse is also reversed. Any way to get the old scroll back?

  5. The problem is that you are changing the value for all the HID devices. You need to change the HID Device ID for the track pad only.

    Here is a link to the solution I used… It’s a proper fix using regedit.

    http://emacstragic.net/flipping-the-mouse-wheel-scroll-direction-in-windows-7/

    Good luck.

  6. The reboot to enable virtualization actually worked on my macbook pro running W10! Haha,thanks never would have thought of that otherwise!

    • It works for me since several days and form one day to another the process to activate Virtualization don’t work.
      Has anybody have an idea?
      I can do what i want, but it is allways disabled.

      Thank you and greetings from Germany
      Ralf

      • Yeah, I see the same, I just sometimes need to do this trick over again, to re-enable virtualization. I have no clue what triggers the virtualization technology to be turned off.

  7. How about vertical scrolling on trackpad? Can you change direction here also?

    Thanks,
    Martin

  8. Thanks For the Virtualization trick, don’t know how but it worked 🙂

    Cheers!!!

  9. For hw assisted virtualization – what if you don’t have an OSX partition anymore?

    • I’m in the same boat as you Jon. I have no OS X partition(s) as I’ve completely wiped the SSD and installed Windows without going through the Bootcamp app. Did you ever come up with a solution to enable virtualization without access to OS X?

  10. I followed the steps: restart your machine and use the option key at startup to select the OS-X partition and boot into the Mac OS again. there go to the System preferences and then to the Startup disk option. Then you select your boot camp partition and click reboot.

    After that it will try to load the Windows but then it will just die/disappear. Looks like Mac got turned off. I have to press & hold the power to reboot it.

  11. Thank you so much for the Virtualization fix! Worked like a charm! Windows 10 on a Mac Book Pro Model A1398.

Leave a Reply

Your email address will not be published.

*

© 2017 Fluent Bytes

Theme by Anders NorenUp ↑