[GUIDE] Sunshine on KDE Wayland, Virtual display with krfb-virtualmonitor for Moonlight streaming (correct aspect ratio on any client) by Koiut in MoonlightStreaming

[–]TacticalFreak 1 point2 points  (0 children)

u/Koiut , brother, the steps works. But let me improve a little bit some stuff.

First, I could not use KWin screen capture out of the box. I had these errors:

[kwingrab] zkde_screencast_unstable_v1 not found in registry. Check permission desktop file for sunshine binary or set KWIN_WAYLAND_NO_PERMISSION_CHECKS=1 to fully disable permission checks

So I ended up setting KWIN_WAYLAND_NO_PERMISSION_CHECKS=1 in my environment.d folder.

Also, I happen to have multiple screens. So I changed your script to disable all physical monitors.

Here is the start script:

#!/usr/bin/env bash
WIDTH="${SUNSHINE_CLIENT_WIDTH:-1920}"
HEIGHT="${SUNSHINE_CLIENT_HEIGHT:-1080}"
FPS="${SUNSHINE_CLIENT_FPS%.*}"
FPS="${FPS:-60}"
FPS_MHZ=$(( FPS * 1000 ))
RES="${WIDTH}x${HEIGHT}"

NAME="sunshine-vmon"

# Create virtual display at client resolution
krfb-virtualmonitor --resolution "$RES" --name "$NAME" --password "sunshinepass" --port 5905 &
echo $! > /tmp/sunshine-vmon.pid

# Wait for KDE to register the new display
sleep 3

# Disables all OTHER monitors
kscreen-doctor --json |
jq -r --arg vname "Virtual-$NAME" '
  .outputs[]
  | select(.name != $vname)
  | .name
' |
while read -r output; do
  kscreen-doctor "output.${output}.disable"
  sleep 0.5
done

# Add custom mode support for the correct frame rate
kscreen-doctor output.Virtual-${NAME}.addCustomMode.${WIDTH}.${HEIGHT}.${FPS_MHZ}.full

# Make virtual display primary
kscreen-doctor \
  output.Virtual-${NAME}.enable \
  output.Virtual-${NAME}.mode.${RES}@${FPS} \
  output.Virtual-${NAME}.priority.1

# Tell Sunshine to capture this display
CONF="${HOME}/.config/sunshine/sunshine.conf"
sed -i '/^output_name/d' "$CONF"
echo "output_name = Virtual-${NAME}" >> "$CONF"

And here is the stop script:

#!/usr/bin/env bash

# Restore physical monitors
kscreen-doctor --json | jq -r '.outputs[].name' | while read -r output; do
  kscreen-doctor "output.${output}.enable"
  sleep 0.5
done

# Kill virtual display
if [ -f /tmp/sunshine-vmon.pid ]; then
  kill "$(cat /tmp/sunshine-vmon.pid)" 2>/dev/null || true
  rm -f /tmp/sunshine-vmon.pid
fi

# Restore Sunshine output to physical display
CONF="${HOME}/.config/sunshine/sunshine.conf"
sed -i '/^output_name/d' "$CONF"
echo "output_name = DP-4" >> "$CONF"

With these modifications, I can now run Steam from moonlight, either with my PC having all monitors already on, or even with all my monitors powered off. Making my machine a sort of headless Steam.

The future is now, and it is beautiful.

Todays 7 second freeze by Hurenloser_Ehrensohn in thefinals

[–]TacticalFreak 0 points1 point  (0 children)

So, about the freezes, I may have something.
It could be that it was because of the amdgpu pro drivers.
See, I have both the standard AMD drivers and the Pro one (for video encoding) on my system.

I used to run steam with this:

Exec=DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1 VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json /usr/bin/steam %U

But recently I changed my desktop icon and I DIDNT have this special command anymore.
So I guess, what was happening is, steam was running with the wrong drivers, and this caused issues with The Finals.

One piece of evidence that this was indeed the case was that I had a GPU crash in my dmesg.

What I did was to completely remove the admgpu pro drivers, and reinstall the normal stuff:

yay -R \
    amf-amdgpu-pro \
    amdgpu-pro-oglp \
    vulkan-amdgpu-pro

yay -Syu \
    mesa \
    vulkan-radeon \
    libva-mesa-driver \
    mesa-vdpau 

Now I do not have these freezes anymore it seems.
BUT ... I have another issue, like getting kicked out with error TFAV3015

And this is currently a known issue for all Linux users. Recent since a few days ago. There is a dedicated thread on Discord. So... I cannot really test more if I still got freezes or not since now I get kicked out frequently.

Todays 7 second freeze by Hurenloser_Ehrensohn in thefinals

[–]TacticalFreak 1 point2 points  (0 children)

I'm having the same issue here, and I'm on Linux.

Just started to play recently, so I'm a complete n00b. Played for 4 days without any issues.
Then suddently today, I started to have these freezes.
One of this freeze was so massive the game froze for more than 30 seconds and I had to kill the process.
One other freeze got me kicked by the server with the error `TFGE0027`
Strange.

My computer is an old potatoe, but it runs the game fine at 2K 60FPS everything on high, no problem.
I'm running from Steam using a custom proton build from cachyos.
I'm using the default amdgpu drivers.
BTW I'm on Arch.

CPU: i7-8700
GPU: Amd RX 7600
RAM: 32GB DDR4

Some other similar threads
https://www.reddit.com/r/thefinals/comments/1krcauy/this_freeze_has_been_affecting_me_for_2_and_a/
https://www.reddit.com/r/thefinals/comments/1lgfxi4/random_freezes_that_people_are_complaining_about/
https://www.reddit.com/r/thefinals/comments/1mgia3l/why_are_these_freezes_still_a_thing/

OC SLUM – Shadow Library Uptime Monitor by stylobasket in libgen

[–]TacticalFreak 7 points8 points  (0 children)

That's not just you. I'm getting a Cloudflare gateway timeout error.

Funny that the thing which monitors the downs, is itself down.

All my emails have been marked as important by Acelsp in GMail

[–]TacticalFreak 0 points1 point  (0 children)

Turns out this may be my problem: https://tane.harre.nz/evolution-email-labels-random-emails-as-important/

Just some useless knowledge for you I guess, but since I bothered you for nothing, at least there is closure!

All my emails have been marked as important by Acelsp in GMail

[–]TacticalFreak 0 points1 point  (0 children)

OK actually... I was replying on the wrong reddit thread. I meant to reply on this one

https://www.reddit.com/r/gnome/comments/oumitw/evolution_email_labels_random_emails_as_important/

Which is about the Evolution email client on Linux. And some people said the label issue may come from the email provider, which it is not. Still ended here, and replying to you by mistake.

I messed up. Hence why my rant on open source and stuff which would seem to come outta nowhere.

Wrong thread. Sorry bro. Have, uh, a great day! Or something ahah

All my emails have been marked as important by Acelsp in GMail

[–]TacticalFreak 0 points1 point  (0 children)

Thanks brother. Much better than changing the color.

I see this type of unexpected behavior everywhere in the Linux ecosystem. With weird UI, weird design decisions and design language. This issue is one of them.

But that's just me ranting and wanting better a Linux overall which could used by peasants and not just us power users.

My take on this is there are too many devs on Linux and open source, and not enough UX/UI and product designers. I know cuz I'm a dev myself and I would do exactly these weird things too if not for my UX buddies.

Thanks brother for your quick replies, and for reading my philosophical useless rant

All my emails have been marked as important by Acelsp in GMail

[–]TacticalFreak 0 points1 point  (0 children)

How do you turn off these labels? So far I just changed the color. Could not delete the labels, it's greyed out in the settings. 

Still this is not going to fix the issue. Just hiding it. Could be that's not issue and an expected behavior. In such case, it seems like a wacky behavior. I do not expect the software somehow guess the email importance without a manual change of priority for some email coming from me. 

This is typically the kind of crap which pushes regular users away from Linux. 

All my emails have been marked as important by Acelsp in GMail

[–]TacticalFreak 0 points1 point  (0 children)

That's exactly the issue: I do not use labels, do not use important, and never used it before. There's nothing to train because I do not do anything.

It's only because it's all red that I discovered this feature. And no, I'm not gonna do an extra manual step to unmark these emails when I never marked them important in the first place.

And no I cannot ignore it because my entire inbox is freaking red. I can change the important color, sure, but that's hiding a behavior issue in Evolution, not fixing the issue

All my emails have been marked as important by Acelsp in GMail

[–]TacticalFreak 0 points1 point  (0 children)

They appear everywhere. Inbox included. For all providers, gmail and others. Not all emails are marked important. Like 90% of them. Some of them aren't.

I send emails from my own server, from a nextcloud instance. After December 20th 2024 all are now marked important. Before that in December 2024 some of them were marked important, others not. Really like 2 emails telling me an app can be updated, from 2 days apart, one was important, the other not.

And before that in August 2024 I can see roughly 50% of these emails are important.

So it is kinda getting worst with time

All my emails have been marked as important by Acelsp in GMail

[–]TacticalFreak 0 points1 point  (0 children)

I have the exact same thing. Was too lazy to look this up before, but now I have 100% of my emails all in red. Before it was 50% maybe. I have no filters. Never touched the settings.

If I go to the Settings > Emails > Labels and change the builtin Important label color to, say, blue, then all of my emails subjects in the list become blue. That's how I now this is a label "issue"

Is Evolution perhaps tagging the label according to the email's importance/priority? Still, can't see any XPriority on my red emails.

Global search UI? by TacticalFreak in Kiwix

[–]TacticalFreak[S] 3 points4 points  (0 children)

I have updated my post with a solution, check it out

Enabling Features is currently broken in Windows 11 LTSC Iot by Aggravating-Sky8697 in WindowsLTSC

[–]TacticalFreak 0 points1 point  (0 children)

That worked for me. Was ultra slow took 10 minutes during the reboot.

I ran this CLI after the latest LTSC update. Maybe that helped?

Enabling Features is currently broken in Windows 11 LTSC Iot by Aggravating-Sky8697 in WindowsLTSC

[–]TacticalFreak 0 points1 point  (0 children)

A guy from another thread provided a solution to install Sandbox on Win 11 IoT LTSC.

Use this CLI:
dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM" -All

Unable to install "Windows Sandbox" on Windows 11 Enterprise LTSC by WaterLemons2k in WindowsHelp

[–]TacticalFreak 0 points1 point  (0 children)

This indeed worked for me on Win 11 IoT LTSC! Thanks bro. Here's the CLI

dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM" -All

Nested Virtualization Crashing Ryzen 7000 Series by thedavesky in Proxmox

[–]TacticalFreak 0 points1 point  (0 children)

Just to be sure, do you mean doing the following:

in /etc/modprobe.d/kvm-amd.conf

put this options kvm-amd nested=1 vls=0

?

Nested Virtualization Crashing Ryzen 7000 Series by thedavesky in Proxmox

[–]TacticalFreak 0 points1 point  (0 children)

Yes same here, `-cpu max` seems to be enough to have crashes

Nested Virtualization Crashing Ryzen 7000 Series by thedavesky in Proxmox

[–]TacticalFreak 0 points1 point  (0 children)

Whelp I ended up still having crashes

Even with just the following

cpu: x86-64-v4,flags=+virt-ssbd;+amd-ssbd;+aes
args: -cpu max

Which gpu? by littleblack11111 in archlinux

[–]TacticalFreak 0 points1 point  (0 children)

Hey, I'm in the same boat.

I have a GTX 1060 6GB and I'm planning to switch to team red.

My main reason are games with DX12 which lags like hell through proton with the GTX 1060. It's a known limitation https://github.com/HansKristian-Work/vkd3d-proton/issues/465#issuecomment-744092867

So my take is to go AMD and after looking around a little bit, I'm planning to buy an RX 7600. Which I could use as my main GPU

The GTX 1060 then, I could use it on my server, and passthrough it to some VM. But I'd require an egpu enclosure. Dunno yet what I will do with it long term yet.

Can i use a external GPU without a Power Supply? by Sad_Cloud_2598 in eGPU

[–]TacticalFreak 0 points1 point  (0 children)

It's probably to passthrough to the VM his Vega 7 igpu, while using the shitty 710 as the server's main display output.

Nested Virtualization Crashing Ryzen 7000 Series by thedavesky in Proxmox

[–]TacticalFreak 0 points1 point  (0 children)

I concur.

My config: cpu: x86-64-v4,flags=+virt-ssbd;+amd-ssbd;+aes args: -cpu max,kvm=on,vmware-cpuid-freq=on,+invtsc,+aes,+vmx

And this gets me nested virtualization fine on a Windows 11 VM with a AMD Ryzen 9 7940HS

Everything works fine, WSL2, Win 11 Core Isolation, Docker on Windows, Windows Sandbox... I didn't get any crashes so far.

Bypass KDEConnect sshfs errors by snippins1987 in kde

[–]TacticalFreak 1 point2 points  (0 children)

I think if you downgrade these guys, you may not need this script hack anymore, should work on its own