Xps 15

From stacky wiki
Revision as of 16:32, 25 April 2024 by Anton (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Following instructions from

Stuff I did:

  • Change SATA Operation so that Ubuntu can see the SSD
    • Login into Windows 10, and set up Safe Mode: "Change advanced Startup Options" -> "Restart Now" -> "Troubleshoot" > "Advanced options" > "Startup Settings" > "Restart"
    • Boot laptop and press F2 -> BIOS Setup
    • System Configuration -> SATA Operation
    • Change SATA Operation from "RAID On" to "AHCI"
    • Apply and Exit. This will reboot the laptop, and provide several boot options
    • Choose "4. Safe Mode"
    • "Start" -> "Windows System" -> "Control Panel" -> "Device Manager". Check that the "IDE ATA/ATAPI controller" is "Intel(R) 100 Series/C230 Chipset Family SATA AHCI Controller"
    • Reboot normally. This should boot into the regular Window 10
    • If you reboot and go into the BIOS, SATA Operation should still be AHCI


  • Install Ubuntu:
    • boot bootable usb stick (hold F2 during boot, and select it from the boot sequence menu)
    • run `sudo gparted`, and reduce the size of the main windows partition to 173000MB
    • run installer, choose option to install along windows boot

Switching between Nvidia and Intel

Use these commands:

sudo prime-select intel
sudo prime-select nvidia
prime-select query

After switching, you have to reboot. When Intel is selected, it seems to hang on reboot, but can be booted in recovery mode (and immediately leave recovery mode).

Updating cuda toolkit

See https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=22.04&target_type=deb_network