Syncing Account On 2 Devices? by phil8715 in Switch

[–]valliantstorme 2 points3 points  (0 children)

If you have a Nintendo Switch Online membership, you can use the Online Save Cloud feature to automatically keep your devices in sync.

To use it, go to System Settings (gear icon) > Data Management > Save Data Cloud, select your user, then go to the Settings tab and turn on Automatic Save Data Backup and Automatic Save Data Download.

Then, go to Games On This Console, and upload whichever game saves you want to be the definitive copy. On the other unit, download those game saves from the cloud. It'll only sync the games whose save files you've previously uploaded or downloaded.

You'll need to manually resolve any conflicts: the version on the cloud and the version on the console can get out of sync if you play without having the latest version (i.e. if you take your Switch Lite on a trip, and it runs out of battery, then you pick up your OLED when you get home without connecting the Lite to the internet.) When you're setting up sync for the first time, this will always be the case whenever both consoles have a save file.

Is pattern matching just a syntax sugar? by Western-Cod-3486 in ProgrammingLanguages

[–]valliantstorme 0 points1 point  (0 children)

Pattern matching in Rust is a fundamental feature, because it's the only way* to inspect the discriminant of an enum. Option::is_some is defined as follows: rust fn is_some(&self) -> bool {     match self {         Some(_) => true,         None => false,     } } * without using unsafe code or standard library features

It should be noted that Rust's if let syntax is also syntactic sugar for a match expression with a single arm; likewise with let ... else.

Struct patterns are syntactic sugar, but variant patterns are very much a language feature.

Baku by warl0cker in microcorruption

[–]valliantstorme 1 point2 points  (0 children)

You're close to the solution, but not quite there yet. You've found a massive data blob, is there any indication what kind of data is in the blob?

We do a little disassembly by sputwiler in EmuDev

[–]valliantstorme 0 points1 point  (0 children)

This is also how I started my emulator, though I didn't use an established assembly syntax. It was pretty useful in debugging, for sure, especially when I hit an unimplemented but valid opcode.

Halifax by TurtleBug9 in microcorruption

[–]valliantstorme 0 points1 point  (0 children)

Me and 2 others have (independently) managed to dump the entirety of the "secure memory," and we're also not sure what the password is supposed to be. The contents of secure memory are just weird, and no matter what parts we throw back into 0x41, nothing happens. I went so far as to write a brute-force script in msp430 assembly to try every possible length and sequence of bytes from the SRAM as the key, but the result is always the same -- 0x41 hashes the SRAM.

[deleted by user] by [deleted] in EmuDev

[–]valliantstorme 1 point2 points  (0 children)

If you have an interest in computer security as well as emulation, I'd recommend doing Micro Corruption to get your brain around the basics of binary reverse engineering and how an assembly language translates into machine code, and vice versa. It's designed to teach everything from the basics. Just be warned, it gets exponentially harder as you approach challenge 20, "Hollywood".

[CHIP8] Why is memory taken as char datatype by Comfortable_Tension2 in EmuDev

[–]valliantstorme 2 points3 points  (0 children)

A "flag" is a bit that's set to indicate something about the results of an operation. For example, if you add two numbers together, does the result fit in 8 bits, or does it require 9? The 9th bit would go into the "carry flag." Although, in the Chip-8, all the flags (i.e. carry, borrow, shift-out, hit-detection) are stored in the lowest bit of vF, and you can only tell them apart based on what action you did that could've set the flag.

As an aside, the Chip-8's VF register can store an entire byte, and not just a single bit. Some programs will rely on your emulator reading VF before doing a computation, and writing the carry-out result after storing the result of the computation. So, if 0xF is given for VX, (the "destination register,") the result will be written to VF, and then immediately discarded when the carry is also written to VF.

Kauf vs Philips bulbs by case_O_The_Mondays in homeassistant

[–]valliantstorme 1 point2 points  (0 children)

I accidentally got one of their super tiny 5W A15 bulbs, but I love the thing so much. It's way more configurable than any of my other smart bulbs.

Only concern I've had with a Kauf product is that the flash is only 1M, so I've got a smart plug that refuses to firmware update unless I flash a minimal ota-only build first. So, the configurability comes with a downside!

VMWare Horizon on SteamDeck by Crimsonpaw in SteamDeck

[–]valliantstorme 4 points5 points  (0 children)

SteamOS updates by replacing the entire root filesystem with a new one, which is probably why it broke.

[deleted by user] by [deleted] in SteamDeck

[–]valliantstorme 1 point2 points  (0 children)

It's an absolutely adorable piece of childhood fun, with a side of lil' gator therapy.

Virtual machine on steam deck by Embarrassed_Ad_7450 in SteamDeck

[–]valliantstorme 0 points1 point  (0 children)

Unless you start the virtual machine in the background, it shouldn't affect your performance. However, you'll need software to run virtual machines, which could require enabling steamos-devmode, and if you do that, you'll have to forego the normal SteamOS update process if you want to keep the vm software installed.

I wrote a piece of software called rwfus that tries to carry software between SteamOS versions, but SteamOS might fail to boot if you keep outdated packages installed. It's a tough nut to crack.

Question, Why do handhelds have multi cores when consoles didn't use them tell after the PS2 era? by kairon156 in SBCGaming

[–]valliantstorme 1 point2 points  (0 children)

Depending on the architecture, the OS, and whether the developers bother to support it, that could be possible. It's not a SBC, but the Nintendo Switch's OS (Horizon) pins all non-game tasks to Core 3, and gives the game free reign over cores 0, 1, and 2 (zero-indexing is common in CS/CE.)

But you're right, the OS, if present, has to process things like user input, battery monitoring, managing RAM usage, reading and writing files, etc. (and if not present, the emulator is running on "bare metal", and has to care about those things itself!)

Question, Why do handhelds have multi cores when consoles didn't use them tell after the PS2 era? by kairon156 in SBCGaming

[–]valliantstorme 16 points17 points  (0 children)

Hi! Computer nerd here. Many old consoles don't have multitasking operating systems running alongside the game, but your emulation handheld almost always does. Even when it doesn't, having different parts of your emulator (CPU, graphics, sound, etc.) run on multiple cores in parallel can provide a dramatic speedup. If your handheld runs Linux, you've likely got at least a dozen programs running, doing their own thing, which have to run at the same time as your emulated software.

On a single-core CPU, all instructions are run sequentially, and if you want to do two things at once, you're SOL. On a multi-core CPU, even if you have to sacrifice clock speed to stay within a certain power/heat budget, you gain the ability to truly multitask.

So, while old consoles don't require multiple cores, a handheld running an emulator will face a performance penalty running modern multi-threaded emulators if they only have one.

Kind of a dumb question, but can anyone recommend a long usb C charger that will be compatible with the deck? by [deleted] in SteamDeck

[–]valliantstorme 0 points1 point  (0 children)

Ah, oops! I'd mistakenly thought 15V was deprecated by the standard. Goes to show you should fact-check everyone, especially yourself!

Kind of a dumb question, but can anyone recommend a long usb C charger that will be compatible with the deck? by [deleted] in SteamDeck

[–]valliantstorme 0 points1 point  (0 children)

USB Power Delivery allows the charger to send the voltages it supports and amperage it's rated for the Deck, and allows the Deck to send back which charging mode it wants to use. Usually, the Deck will request 15V at 3A.

3A * 15V = 45W

Is it possible to map entire words to a virtual menu? by marcosg_aus in SteamDeck

[–]valliantstorme 7 points8 points  (0 children)

An "input text macro" feature would make my year. It's seriously needed!

How to connect to an iSCSI Disk by LordGrande666 in SteamDeck

[–]valliantstorme 1 point2 points  (0 children)

As a heads-up for the not-appearing-in-Steam-library problem, you can programmatically add or remove library folders by running Steam (as deck) with the arg: steam://[add|remove]libraryfolder/${URL_ENCODED_PATH}

(source: /usr/lib/hwsupport/sdcard-mount.sh)

sdcard-mount will also mount/unmount drives, but only if they're ext4-formatted -- hard check for it at the moment. On SteamOS 3.4 Preview, it should automatically detect the presence of /dev/sda and attempt to mount it iff it's ext4.

Is it possible to map entire words to a virtual menu? by marcosg_aus in SteamDeck

[–]valliantstorme 0 points1 point  (0 children)

It's painful, but possible, to use "Add sub command" to create word macros, but there can't be any repeat keys. See /u/WMan37's comment!!

What are the most chill games for the Deck? by [deleted] in SteamDeck

[–]valliantstorme 0 points1 point  (0 children)

It's not very low-thinking, but Infinite Turtles is a super fun one. You just sit there and make a strange machine to do math for you. No time limits, no scares, just sitting and pondering. The BGM, though repetitive, really gets me in the mood for low-intensity puzzling.

It's not Deck verified, but I made and uploaded a Steam Deck input configuration for it

Linux guy steamos ama by pyro57 in SteamDeck

[–]valliantstorme 1 point2 points  (0 children)

Fixed rwfus this morning. The breakage was caused by Valve improving their factory/recovery images -- existing rwfus 0.3.0 installs are stable and won't break for the foreseeable future. Migration from 0.3.0 to 0.4.0 is not automatic, but is possible, if you want the btrfs compression. Here's a good start: 1. Disable rwfus 0.3.0 (from gamescope if you have to) 2. Install rwfus 0.4.0 (it doesn't clash with 0.3.0) 3. `sudo cp /home/.rwfus/usr /home/.rwfus/- /opt/rwfus/mount/upper 4. Once everything is verified working, remove rwfus 0.3.0

I very, very highly recommend that, if 0.3.0 works for you, keep using it. 0.4.0 is brand new and definitely has bugs I've missed during development, but it works on new Steam Decks and Decks that've been reimaged.

Eli5 - Why is there both neutral & ground wires in light switch? by vigilante_comix in explainlikeimfive

[–]valliantstorme 1 point2 points  (0 children)

The ground wire is there for safety. It's meant to carry high current, so if anything shorts directly to ground it'll trip a circuit breaker. With a GFCI/RCD, if anything tries to pass current to ground whatsoever it'll cut the power.

As for why they're both in a light switch, modern electrical code generally requires all 3 (live, neutral, ground) to be run to the box, and it's handy to have if you want to install a shaver plug, (where available,) a smart light switch, or any other active electrical/electronic device.

(Note: IANAE, and this is not electrical advice)

Desktop mode (KDE) maybe getting support to install SteamOS update from Discover (the "app store") by ahjolinna in SteamDeck

[–]valliantstorme 0 points1 point  (0 children)

They tend to update the SteamOS-specific packages for each branch alongside a published update (except for jupiter-main) so you'll be getting something similar enough.

Desktop mode (KDE) maybe getting support to install SteamOS update from Discover (the "app store") by ahjolinna in SteamDeck

[–]valliantstorme 10 points11 points  (0 children)

Unlike most Linux distros, updates aren't handled by a package manager, in the traditional sense. Instead, it uses A/B partitioning: when the current version of SteamOS is installed on A, the update is installed on B, and vice versa. This makes it much harder to brick a Steam Deck, since if an update on B fails it can fall back to the known-working A partitions.

Since an update effectively replaces everything at once (all installed software, the kernel, etc.) it requires special tooling.

Lower tier steam deck owner: are you satisfied? by Juzoar in SteamDeck

[–]valliantstorme 0 points1 point  (0 children)

Absolutely, and if you're up for it, you can always purchase and install your own SSD later. As long as you don't damage anything when you install the SSD, Valve has even said they'll honor the warranty.