Uderc programming article aggregator sites

How to Dual boot Ubuntu and Windows 8 on X1 Carbon G2?

I currently have a Windows 8.1 64 bit installation on my carbon x1 and need to install ubuntu.
I was able to boot from the USB and install Ubuntu. 
However, I have to change to Legacy Only in the BIOS settings if I want to go into ubuntu. If I try to select the Windows 8 in the GRUB startup, it gives me a ERROR with a black screen.  
I tried to do select the BOTH option with Legacy first, but it goes directly into Windows 8 and doesn't let me select the operating system. 
The best answer: That would be fine if some hp machines didn't have broken UEFI that don't respect setting the default OS.