• 91 Posts
  • 685 Comments
Joined 5 years ago
cake
Cake day: March 23rd, 2020

help-circle










  • Well THAT’S clear hahahaha … So does that mean I’m using PulseAudio or PipeWire?

    It means you’re using Pipewire :D. I think Pipewire builds on top of PulseAudio or integrates it or something. In any case, try this command to confirm it’s Pipewire:

    systemctl --user status wireplumber.service

    My output looks like this:

     wireplumber.service - Multimedia Service Session Manager
         Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
         Active: active (running) since Thu 2024-12-05 13:12:41 PST; 2 days ago
    

    (The (running) means it’s running)

    That path doesn’t even exist

    It might be under /usr/share/wireplumber/main.lua.d/. The only difference is this folder is for system files that affect all users, but given that this bug is happening on your own hardware that’s probably what you want to change anyways

    (You can also create ~/.config/wireplumber/main.lua.d/50-alsa-monitor.lua if you want; this is assuming you didn’t change your XDG directories to not use .config)



  • I think you could probably do it - You live in a country with good internet, good access to technology, etc.

    If you can afford to go to school, I would recommend doing that. If you can’t, try out Android app development: It’s not easy, but if you put in a lot of work for a year or two, you can make pretty good money (once you start making a few apps, you’ll be able to get 100k IDR/hour). Start with this tutorial installing Android Studio: https://www.youtube.com/watch?v=10IvxreBoIA

    If you can get Android Studio installed, let me know, I’ll find a good tutorial to help you write your first basic app.



  • Use this command to determine if your using Pulse or Pipewire on the backend:

    pactl info | grep "Server Name"

    If it says you’re using PulseAudio, then use these commands to switch to Pipewire:

    sudo apt install pipewire pipewire-audio-client-libraries wireplumber
    systemctl --user --now disable pulseaudio.service pulseaudio.socket
    systemctl --user --now enable pipewire pipewire-pulse wireplumber
    

    If that doesn’t fix it, I suspect the issue might have to do with suspending power, like /u/dingdongitsabear@lemmy.ml suggested. Edit ~/.config/wireplumber/main.lua.d/50-alsa-monitor.lua and add

    ["node.pause-on-idle"] = false,
    ["session.suspend-timeout-seconds"] = 0,
    

    Save and reboot. Let me know if that fixes it



  • Back when I was a wee bit Java noob, I was trying to write a RuneScape bot to play Soul Wars. I had a basic recursive pathfinding algo for figuring out how to walk around the map, but it blew out of memory very quickly (each tile has 4 options, do that recursively, etc). So I added caching. Anyways, I never cleared the caching. So after 20 minutes of running the script, you had like 2GB of allocated RAM calculating the best path from any 2 tiles in the minigame.

    Great times. No amount of language safety features would have saved me from that stupidity.