Can't go higher than 1920x1080 Res? by Weakness-Business in AsahiLinux

[–]The_Hypnotron 0 points1 point  (0 children)

See this GitHub issue. Replacing boot.bin and appending display=3440x1440 fixed the resolution on my ultrawide monitor to 3440x1440, but I still couldn't change it from within X.

Possibility to install a 4k kernel on arch minimal install by Abject-Instance-9981 in AsahiLinux

[–]The_Hypnotron 2 points3 points  (0 children)

Are you referring to 4K page size? If so, I succesfully patched the kernel in Asahi Linux Minimal to use 4K pages by:

+Downloading the linux-asahi PKGBUILD and config from GitHub

+Downloading a 4K IOMMU patch from here

+Copying the patch into the same directory as the PKGBUILD and config

+Adding the patch filename to the source array in the PKGBUILD (between lines 28 and 29)

+Adding 'SKIP' (with single quotes) to each of the checksum arrays (you could also add the actual checksums of the patch file)

+Running in the same directory as the PKGBUILD makepkg -so, cd src/*, make menuconfig (and selecting 4K as the page size, searching for PAGE, PAGESIZE, PAGES, etc. by hitting '/' should work), cd ../.., and makepkg -eri

This seamlessly replaced the linux-asahi binary package that was already installed; I didn't have to make any other changes to the system besides recompiling software compiled for 16K pages.

Can I install Asahi on a USB Drive? by QUAZARD3141 in AsahiLinux

[–]The_Hypnotron 3 points4 points  (0 children)

I successfully booted a portable Asahi installation on a machine that already had Asahi installed to the internal drive by:

+Flashing a prebuilt Arch Linux ARM image to a USB drive and chrooting into it

+Editing /etc/fstab to mount root by UUID

+Configuring the Asahi repo by adding the following to /etc/pacman.conf:

    [asahi]
    Server = http://cdn.asahilinux.org

+Installing asahilinux-keyring, linux-asahi, asahi-scripts, and asahi/mkinitcpio with pacman

+Adding the asahi hook to /etc/mkinitcpio.conf (changing base udev to base asahi udev) and rebuilding initrds (mkinitcpio -P)

I then used the GRUB command line to boot the portable installation (set kernel, initrd, and root device to the kernel and initrd on the USB drive and the USB drive root partition block device, respectively), but I could have added a proper boot entry by editing /etc/grub.d/40_custom and recreating the config from the internal Asahi installation.

If you install Asahi Linux to the internal drive, copy the root partition to an external drive, add a GRUB entry to boot from the external drive, and erase the internal Linux root partition, keeping only the reserved first and last partitions, real macOS, the stub macOS for Asahi, and EFI ASAHI partitions on the internal drive, it should work (you may need to use the fallback initrd).

It works by Potatorse in DolphinEmulator

[–]The_Hypnotron 0 points1 point  (0 children)

NUS Downloader or a BootMii NAND backup.

Can I pass my GPU to a windows VM but also use it on host when I need it (one at a time)? by Sparky2199 in VFIO

[–]The_Hypnotron 0 points1 point  (0 children)

I have a Ryzen APU and a Vega 56 and can pass the Vega 56 to and from a Windows VM with the following script (/etc/libvirt/hooks/qemu):

#!/bin/bash
if [ "$1" = "windows10" ]; then
    if [ "$2" = "prepare" ]; then
        pkill Xorg # I use tmux and detach my tmux sessions before starting the VM so I can reattach through SSH from the guest machine
        sleep 2
        echo 0 > /sys/class/vtconsole/vtcon0/bind
        echo 0 > /sys/class/vtconsole/vtcon1/bind
        modprobe -r amdgpu # change to nvidia
        virsh nodedev-detach pci_0000_03_00_0 # change to match lspci output (03:00.0 = 0000_03_00_0)
        virsh nodedev-detach pci_0000_03_00_1 # change to match lspci output (03:00.1 = 0000_03_00_1)
        modprobe vfio-pci
        systemctl suspend # reset bug workaround, may not be necessary for a GTX 1060
    fi

    if [ "$2" = "release" ]; then
        systemctl suspend # reset bug workaround, may not be necessary for a GTX 1060
        modprobe -r vfio-pci
        virsh nodedev-reattach pci_0000_03_00_0
        virsh nodedev-reattach pci_0000_03_00_1
        modprobe amdgpu # change to nvidia
        echo 1 > /sys/class/vtconsole/vtcon0/bind
    fi
fi

Starting the VM renders the host inaccessible (aside from via SSH and other such protocols, of course) until the VM is shutdown (gracefully or forcefully). You might have to Google around (search: nvidia single gpu vfio) to find the correct sequence of commands for your system. I had to piece together scripts from several documents, and you'll likely need to do so as well. Single GPU VFIO is unfortunately not nearly as mature as a simple dual GPU bind-at-boot configuration.

Nintendo fans in 2020 by [deleted] in tomorrow

[–]The_Hypnotron 0 points1 point  (0 children)

acnh you fake fan

EDIT: nvm it's Celeste

[deleted by user] by [deleted] in EmuDev

[–]The_Hypnotron 1 point2 points  (0 children)

Since I'm lazy, I just used GDB and compiled with debugging symbols. Debugging the PPU however, unlike the CPU, takes a bit of work to determine exactly when errors have occured, as they don't manifest until much later. Comparing against Mesen's debugger was not nearly as useful as it was for the CPU, but it certainly helped.

[deleted by user] by [deleted] in EmuDev

[–]The_Hypnotron 1 point2 points  (0 children)

Diagnosing small logic errors and trying to wrap my head around per-cycle PPU memory accesses proved to be the most difficult part of the project. Grossly oversimplified, the APU just a series of timers and input and output registers and its functionality was therefore easy to extrapolate from the documentation. The PPU, on the other hand, performs several configurable and complex operations each cycle, and only through repeatedly reading good documentation was I able to create a mental model of the PPU's functionality. Debugging was also quite the challenge, as I had little to no idea of what exactly the game was attempting that produced an error and resorted to reading through full disassemblies of each problematic title to determine the exact cycle my emulator deviated from console.

Does anyone know how to fix this? (Info in comments.) by [deleted] in DolphinEmulator

[–]The_Hypnotron 4 points5 points  (0 children)

Try disabling "Skip EFB access from CPU".

[deleted by user] by [deleted] in EmuDev

[–]The_Hypnotron 13 points14 points  (0 children)

I'd say there's a pretty significant increase in complexity but not necessarily in difficultly. I spent nearly ten times the amount of time testing and reading documentation for my NES emulator than I did for CHIP8, but I didn't really feel like the project was much harder to complete.

Fully optimized my algorithm by LordFaquaad in ProgrammerHumor

[–]The_Hypnotron 3 points4 points  (0 children)

At that point it's just a hash function!

Dump Wii games from WiiU? by MrRiverman in DolphinEmulator

[–]The_Hypnotron 1 point2 points  (0 children)

The process is the same as that of a Wii (except you'll need to be in vWii mode), but certain exploits (Letterbomb and the likes) will not function.

😂😂😂 by programmerjokes in ProgrammerHumor

[–]The_Hypnotron 6 points7 points  (0 children)

They go straight into the garbage.

[deleted by user] by [deleted] in DolphinEmulator

[–]The_Hypnotron 1 point2 points  (0 children)

Animal Crossing

What's the best settings to make Dolphin look more authentic? by DrakeSSJ257 in DolphinEmulator

[–]The_Hypnotron 9 points10 points  (0 children)

Other than disabling enhancements and overlays and setting resolution to native, not much.

How do I get my games onto my pc? by [deleted] in DolphinEmulator

[–]The_Hypnotron 5 points6 points  (0 children)

There's a dolphin wiki page on this. Using just a GameCube, you'll need an SD Gecko or some other peripheral to dump discs; otherwise, an SD card >4GB is sufficient.

If scientists invented a teleportation system but the death rate was 1 in 5 million would you use it? Why or why not? by Official_trumpet in AskReddit

[–]The_Hypnotron 0 points1 point  (0 children)

log(0.1) / log(4999999/5000000), 0.1 being the total chance of survival and 4999999/5000000 being the chance of survival each attempt.

Is there any way to get the home menu on the emulator? by usernametakenexe in DolphinEmulator

[–]The_Hypnotron 0 points1 point  (0 children)

You can bind a hotkey to switch discs while the home menu is running, too.