[-] edinbruh@feddit.it 1 points 1 day ago

I have a similar setup and it works. So you are probably doing something wrong, I don't know what. Maybe look at dmesg for a filesystem error.

[-] edinbruh@feddit.it 4 points 1 day ago* (last edited 1 day ago)

That is not a good method for testing. Maybe the filesystem still requires new files to be smaller than free space. Or maybe the file could be not really compressible, for example, you won't be able to compress random data. You also won't compress already compressed data, like videos.

You could write a real text file of some kB and then check the compression ratio with something like "compsize".

The mount command mounts the disk with the options you give to it but only once. Now, because you don't want to manually run mount everytime you use your disk, you must set it up so it is always mounted with the options you want. Udisks2 is one of the tools for that.

edit: apparently compsize is btrfs only. You can use "du" with and without --apparent-size and check the differenze

[-] edinbruh@feddit.it 3 points 1 day ago

It's like the difference between "sex" and "orgy"

[-] edinbruh@feddit.it 3 points 1 day ago

The show was already cancelled when they were making season 3, so they rushed all the planned future stuff into it.

[-] edinbruh@feddit.it 8 points 1 day ago

Charlie! You look quite down

With your big sad eyes and your big sad frown

Life doesn't have to be so blueeeee!

Put a banana in your ear

A banana in my ear?

Put the right banana right into your favourite ear

It's true!

Says who?

A banana in your eeeeeeeeeEEEEEEEEEeeeeeeeaaar

[-] edinbruh@feddit.it 3 points 1 day ago* (last edited 1 day ago)

So, first of all, there is no gui for this, that I'm aware of, so you will have to do it from terminal. Second, on f2fs, compression works that you don't enable compression for a folder, instead you mount the drive with compression enabled, and new files will be compressed automatically.

So what you need is to set up your disk to be mounted with compression. There are many paths you can follow here. If you want your drive to be (almost) permanently connected, the easiest way is to use "/etc/fstab". If you want to use it as a regular SD card, mounting and ejecting it from your file explorer etcetera, then you should go here and learn how to have udisks2 mount your device with compression, which should be what your desktop environment uses to mount drives. I suggest you set that up for your specific device, and not for all f2fs devices. Good luck.

You can look up other useful f2fs options on the arch wiki. I suggest you add all those options that reduces writes to your disk and improve durability (like lazytime).

You should use zstd as compression algorithm, and because this is a slow and small drive, you can crank up the level of compression.

If you manage to pull this off, the next time you install a (bigger and faster) drive on your pc, you can try to look into zfs.

[-] edinbruh@feddit.it 5 points 1 day ago

If it's a flash memory (sd card, usb stick, ssd, etc), you could try f2fs, it's very light, and it supports compression and is meant specifically for that kind of devices (well, more for ssds).

But judging your experience from your comments, I suggest you don't delve into niche filesystems until you have more experience with Linux, especially for something like 128MB. I especially suggest you avoid zfs for now.

[-] edinbruh@feddit.it 2 points 2 days ago

From what I see, the dolphin bar requires walking up to it to change mode. We want to enable and disable the IR by holding a button, and other combos in general. Also, I don't know if the dolphin bar still lacks pointer smoothing, but we have it, and it's even configurable

[-] edinbruh@feddit.it 12 points 2 days ago* (last edited 2 days ago)

You can buy an usb-powered one for a couple euros from AliExpress, or you can hook 5V to an original bar. But the bar itself is just two Infrared lights, there's plenty of substitutes (i.e. literally two candles 20cm apart).

P.s. do not leave the bar permanently on, you will burn out the LEDs. The Wii turns it off with the console

P.p.s. you can configure esperto-wiimote to run a command when you connect the First wiimote, and disconnect the last. It's meant for turning on and off the bar, if you can do it programmatically

69
submitted 2 days ago by edinbruh@feddit.it to c/opensource@lemmy.ml

cross-posted from: https://feddit.it/post/28858403

A friend and I wanted to use a Wiimote as a PC remote for movie night. We have tried various existing software, but all had some issues: some were old Xorg-only programs, some didn't have proper IR tracking, and all were abandoned by the developer. But most of all, no software (even modern remappers like InputPlumber) had any support for key combos. So, we set out to write our own.

Some of our requirements were:

  • Key combos (the wiimote has only few buttons)
  • Proper IR tracking
  • The ability to enable or disable the IR with a key combo
  • Having no observable latency

We first developed "esperto" a powerful system for describing and detecting key combos, which we implemented in this library. It is generic so it can be used on pretty much anything that needs combo detection. At first, we intended to plug that into InputPlumber, but then decided it would be easier to do everything ourselves.

So, we ported this IR tracking algorithm from Hector Martin to rust, and put it together with our esperto library, and this is the result. It is extremely fast (mostly dominated by the actual latency of evdev's and uinput's UAPI), and it meets all of our requirements. And we already have ideas for future improvements, for example how to add support for wiimote extensions.

81
submitted 2 days ago by edinbruh@feddit.it to c/linux@lemmy.ml

A friend and I wanted to use a Wiimote as a PC remote for movie night. We have tried various existing software, but all had some issues: some were old Xorg-only programs, some didn't have proper IR tracking, and all were abandoned by the developer. But most of all, no software (even modern remappers like InputPlumber) had any support for key combos. So, we set out to write our own.

Some of our requirements were:

  • Key combos (the wiimote has only few buttons)
  • Proper IR tracking
  • The ability to enable or disable the IR with a key combo
  • Having no observable latency

We first developed "esperto" a powerful system for describing and detecting key combos, which we implemented in this library. It is generic so it can be used on pretty much anything that needs combo detection. At first, we intended to plug that into InputPlumber, but then decided it would be easier to do everything ourselves.

So, we ported this IR tracking algorithm from Hector Martin to rust, and put it together with our esperto library, and this is the result. It is extremely fast (mostly dominated by the actual latency of evdev's and uinput's UAPI), and it meets all of our requirements. And we already have ideas for future improvements, for example how to add support for wiimote extensions.

[-] edinbruh@feddit.it 15 points 3 days ago

I have an announcement to make.

Shadow the hedgehog is a bitch!

He pissed on my fucking wife. It's true, he took out his hedgehog dick and pissed on her. And then he said it was "this big" and I said "that's disgusting!"

8
submitted 1 month ago by edinbruh@feddit.it to c/Silksong@indie-ver.se

My god! I have been stuck here for hours! I know there's a shortcut after the third gauntlet, but I can't even beat the second! I only beat it once and then died in the first wave of the next one! High halls was a piece of cake compared to this, at least you didn't have overlapping waves and so much area denial. And those flying things are fucking annoying, they are always barely out of reach! Why is everyone always ranting about high halls and not this?

Please, tell me it's the last time I have to deal with these ridiculous gauntlets. Or at least that there will be checkpoints. This is like a forced boss rush but worse because at least bosses are fun.

26
submitted 1 month ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
31
submitted 1 month ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
46
That's just mean (feddit.it)
submitted 1 month ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
33
submitted 2 months ago* (last edited 2 months ago) by edinbruh@feddit.it to c/Silksong@indie-ver.se

I just did the twisted child ending. I wanted to get all silk hearts before, but I was so frustrated by failing The Unravelled that I had to leave it and try some good bosses instead. I'd say The Unraveled is on par with Broodmother as worst boss yet.

34
Here we go again (feddit.it)
submitted 2 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
22
submitted 2 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
29
submitted 2 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se

I'm still not over how bad the broodmother was

25
submitted 2 months ago* (last edited 2 months ago) by edinbruh@feddit.it to c/Silksong@indie-ver.se

I hate this bossfight, I've been at it for like 5 hours, it's so annoying, everything is absolutely random. And the reward is too low... 220 rosaries? Seriously? I could get those in 3 minutes by farming the three pilgrims next the halfway home!

Edit: I just did high halls, it took fewer attempts than broodmother. This is bullshit.

38
submitted 2 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se

Still easier than delivering the flower, tho

view more: next ›

edinbruh

joined 3 years ago