• Corbin@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    I want to run PipeWire as a system user and have multiple login users access it. My current hack is to run it as one login user and then do something like:

    export XDG_RUNTIME_DIR=/run/user/1001
    

    Where 1001 is the user ID. Is there a cleaner approach?

    • comma@midwest.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      You could utilize the server/client functionality over the local network instead of using the same process.

      So you could point the other users to the machine’s local address and they would automatically find the Pipewire server. Maybe? I guess? It’s just a theory.

      https://wiki.archlinux.org/title/PipeWire#Sharing_audio_devices_with_computers_on_the_network

      This thread seems to have what you’re looking for.

      https://bbs.archlinux.org/viewtopic.php?id=265878

      According to the thread, its possible to provide system-wide usage by enabling this option at build time:

      -Dsystemd-system-service=enabled
      

      Or it seems like you could share it over the local network by editing the Pipewire config file and making an environment variable. (See post #5.)

      Or you could

      Just add the “player” user to the “audio” group

      according to post #8.

      Note: it seems like Pipewire runs on port 4713. So the server would run on 0.0.0.0:4713, I guess.

  • Dave@lemmy.nz
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    I’ve recently made it to Act 3 in Baldur’s Gate 3, and my integrated graphics on my laptop aren’t keeping up, so now I have installed it on my desktop machine and am using Steam Remote Play (my desktop is plugged into the TV, it’s not a proper desktop setup).

    Often, the Steam connection drops out and the game keeps playing on the desktop but I can’t connect back to it from the laptop.

    Any suggestions on what I could do to either stop losing the connection or let me connect back to it after it drops?

    Set up:

    • Laptop has Nobara Gnome spin
    • Desktop has Mint Cinnamon
    • Bought BG3 on GOG, installed through Heroic Launcher, added to Steam as non-steam game to play it.
    • adr1an@programming.devOPM
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      Oh, tough one. I don’t know what’s that protocol. But I guess it’s not tied to WiFi. So, How about getting a cheap ethernet switch? That’s how I connect devices in my living room to the router given by ISP that’s on the other side of the wall.

      • Dave@lemmy.nz
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        The laptop is connected via WiFi (to an access point directly next to me), I don’t have a LAN port for it at the moment.

        The desktop is connected via ethernet.

        Normally Steam will let you reconnect to a game that’s already playing, but I don’t seem to have that option. It’s like it forgets it’s running.

  • Parade du Grotesque@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    How do I configure my Linux, on a laptop, to consume as little battery as possible?

    A bit of context: one of my laptop ran Ubuntu, with acceptable battery drain (up to 3h30 of usage, running desktop applications: Firefox, terminal, vim, etc). This is a high-end laptop: 12 AMD Ryzen + AMD Rembrandt.

    I switched to open use, and now battery drains in one hour, running the exact same applications. Installed tuned, selected power save, tried power top, applied different parameters, etc, but no result: battery still dies after 1h. No improvement at all.

    I am going to investigate on my own, but any help is greatly appreciated.

    • adr1an@programming.devOPM
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      I assume this is an old laptop? If you’re able to remove the battery, as in the old models, you can measure it’s full milliamperes when at a 100%. It’s probably going to show a lower value than what’s reported by the user guides. From what you tell, I’d expect something as low as 1.5k… Beware that removing batteries with tools and so on might make them explode and is many times, just not an option.

      Perhaps you can even see this in the BIOS. Some modern BIOS might even tell the number of charging cycles, allowing you to infer it’s worn out. Chances are, you need a new battery. Which is tricky, since oftentime the “new” battery was sitting at some store but was manufactured by the company when the laptop model was fresh.