Steam for Linux

Steam for Linux

8bit May 31, 2024 @ 10:00pm
Does steamdeck use xorg or wayland by default?
.
< >
Showing 1-7 of 7 comments
Viphyte May 31, 2024 @ 10:53pm 
It uses gamescope. It is a custom Wayland compositor optimized for gaming.
Last edited by Viphyte; May 31, 2024 @ 10:54pm
HighBall May 31, 2024 @ 11:36pm 
Originally posted by SnakeByte:
It uses gamescope. It is a custom Wayland compositor optimized for gaming.

Yep, pretty cool. Apparently it's a 1 window compositor. Also, it saves the SteamDeck from loading a whole Desktop Environment. Pretty nice. I'm surprised MSFT hasn't done this with Windows handhelds.

For anybody that wants to do something similar on their Linux machine. Here's what I use for my desktop. It's just a minipc so every bit helps. Would be awesome to get some improvements to this anybody is a pro with launching compositor sessions.

<--/usr/share/wayland-sessions/gamescope-wayland.desktop-->
[Desktop Entry]
Name=GameScope Steam
Comment=This session logs you into Ubuntu
Exec=gamescope -h 1080 -w 1920 -f -e --expose-wayland -- steam -f -bigpicture
Type=Application
DesktopNames=ubuntu;GNOME;Steam
X-GDM-SessionRegisters=true
X-Ubuntu-Gettext-Domain=gnome-session-45

Then you just choose it from your login manager. I'm sure something similar is done for KDE and other desktop environments.
8bit Jun 1, 2024 @ 12:21am 
I'm interested in the decky plugin vibrantDeck. I'm been using it for years on Ubuntu as libvibrant on X11. Its the only thing keeping me from switching over to Wayland completely. It working through decky is proof of a wayland version.

On Ubuntu 24.04LTS how can I get libvibrant or vibrant in Wayland?
Last edited by 8bit; Jun 1, 2024 @ 12:38am
HighBall Jun 1, 2024 @ 1:05am 
Originally posted by reckoner:
I'm interested in the decky plugin vibrant. I'm been using it for years on Ubuntu as libvibrant on X11. Its the only thing keeping me from switching over to Wayland completely. It working through decky is proof of a wayland version.

On Ubuntu 24.04LTS how can I get libvibrant or vibrant in Wayland?

Well looks like libvibrant works only for the NVidia GPU's and DeckVibrant works for the AMD GPU.
You can see the libvibrant approach here https://github.com/libvibrant/libvibrant/blob/main/src/nvidia.c
XNVCTRLQueryTargetAttribute
XNVCTRLSetTargetAttribute

And the DeckVibrant approach here https://github.com/libvibrant/vibrantDeck/blob/b0043b9a4660f5029b0c17d73e06b5e34eaddd40/main.py

DeckVibrant is only using xprop which is available on Ubuntu 24.04 to set this property:

# Takes 0.0..1.0, 0.5 being sRGB 0.5..1.0 being "boosted"
SDR_GAMUT_PROP = "GAMESCOPE_COLOR_SDR_GAMUT_WIDENESS"

Probably GameScope fires off an event for when that value changes that makes a call into the amd driver. The Readme for libvibrant said Wayland support is on hold until there can be an agnostic way to control a Wayland compositor. Each Wayland Compisitor has their own implementation.

Seems like you are stuck with Xorg unless want to dig into the Nvidia libaries and see what you can scrape together.
8bit Jun 1, 2024 @ 1:35am 
I can confirm that I am using libvibrant on AMD 7900XT in X11 on Ubuntu 24.04LTS. I installed the pre-reqs for libvibrant and compiled and it has been working fine since in X11.
Is there any way to set/increase the color saturation in wayland?
Last edited by 8bit; Jun 1, 2024 @ 3:50am
HighBall Jun 1, 2024 @ 6:49am 
Originally posted by reckoner:
I can confirm that I am using libvibrant on AMD 7900XT in X11 on Ubuntu 24.04LTS. I installed the pre-reqs for libvibrant and compiled and it has been working fine since in X11.
Is there any way to set/increase the color saturation in wayland?

Oh interesting. Looks like according to this thread here vibrantLinux[github.com] the decky loader method will work as long as the GameScope compositor is the primary compositor. I.e. you can't login to Gnome or KDE, then start GameScope. You'd have to setup a wayland-session like I shared above and choose the GameScope wayland session before logging in with your login manager. I haven't had a chance to test it myself yet.
KingyWingy Jun 2, 2024 @ 2:04am 
FYI gamescope works on X11 too.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: May 31, 2024 @ 10:00pm
Posts: 7