2024-02-15
Emulator World And Keybindings, Video Resources Collection

Configuration file might be found after first launch, and xemu is at /root/.local/share/xemu/xemu/xemu.toml


You may collect video resource from random computer actions and semantically indexed, but better be partially guided by LLM, since that makes more sense even inside a small video excerpt.


Downloading games from Romsfun is fast.


Steam deck has done a lot of things to port PC games to Linux. Most works are around Proton, a Wine fork which supports DirectX features.

EmuDeck has a list of supported emulators.

Many games can be downloaded for emulators, and played on various platforms.

Arch Wiki contains a section around gamepad.

Keyboard can handle all gamepad functions, no mouse required.


It turned out that I hate emulators. I do not want to download separate games and set them up just for random inputs. If that is the case, we should make it much more convenient and error resistant.

I do not want to buy a physical console like Xbox Series S along with a strange HID to gamepad adaptor. It will not accelerate the development of cybergod.

Read More

2022-12-15
Reset Usb

the same for /sys/bus/usb/drivers/*.


in case kali failed to detect presence of hard disks, shall you pop up a dialog for us to decide whether to reset to usb or not.

reset-usb.sh

1
2
3
4
#!/bin/bash
reset-ahci-controllers.sh
reset-xhci-controllers.sh

reset-ahci-controllers.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# this freaking works.
# Script to reset all local xHCI (USB) controllers
# Based on: http://billauer.co.il/blog/2013/02/usb-reset-ehci-uhci-linux/
if [[ ${EUID} != 0 ]]; then
echo This must be run as root!
exit 1
fi
for xhci in /sys/bus/pci/drivers/ahci; do
if ! cd ${xhci}; then
echo "Weird error. Failed to change directory to ${xhci}."
exit 1
fi
echo "Resetting devices from ${xhci}..."
for i in ????:??:??.?; do
echo -n "${i}" > unbind
echo -n "${i}" > bind
done
done

reset-xhci-controllers.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# this freaking works.
# Script to reset all local xHCI (USB) controllers
# Based on: http://billauer.co.il/blog/2013/02/usb-reset-ehci-uhci-linux/
if [[ ${EUID} != 0 ]]; then
echo This must be run as root!
exit 1
fi
for xhci in /sys/bus/pci/drivers/?hci_hcd; do
if ! cd ${xhci}; then
echo "Weird error. Failed to change directory to ${xhci}."
exit 1
fi
echo "Resetting devices from ${xhci}..."
for i in ????:??:??.?; do
echo -n "${i}" > unbind
echo -n "${i}" > bind
done
done

Read More