https://steamcommunity.com/sharedfiles/filedetails/?id=488701662
I want to do this but in tf2 on linux. there's no meta-inf folder. how can i make my game windows resizable by dragging the corner on linux? my monitor is upscaled to 125%, dont know if that changes anything
#game window size messed up, cant fullscreen
203 messages · Page 1 of 1 (latest)
linux actually has a tool for this called gamescope
how do i get it into my games?
oh btw my monitor is upscaled to 125% i probably should mention that
install it with sudo apt install gamescope
then you can put it in the launch arguments for your game with the appropriate flags
didnt work. does it maybe go by a different name in apt?
have you installed steam as a flatpak?
no, i installed it as a system package. i think i did it with terminal
nvidia rtx 2080 super
and i'm using proprietary drivers cause that's the only way i could get my monitors to work
You'll have to build it yourself, run
sudo apt install meson ninja-build cmake gcc g++ libglm-dev libbenchmark-dev liblcms2-dev libxmu-dev libxcursor-dev libeis-dev libpixman-1-dev libx11-dev libxdamage-dev libxcomposite-dev libxrender-dev libxext-dev libxfixes-dev libxxf86vm-dev libxtst-dev libxres-dev libdrm-dev libvulkan-dev wayland-protocols libwayland-dev libwayland-bin libxkbcommon-dev libsdl2-dev libpipewire-0.3-dev libavif-dev libwlroots-dev libliftoff-dev libcap-dev hwdata spirv-headers libstb-dev libdecor-0-dev libxdamage-dev xwayland git glslang-tools
is that one command?
yes
sudo apt install meson ninja-build cmake gcc g++ libglm-dev libbenchmark-dev liblcms2-dev libxmu-dev libxcursor-dev libeis-dev libpixman-1-dev libx11-dev libxdamage-dev libxcomposite-dev libxrender-dev libxext-dev libxfixes-dev libxxf86vm-dev libxtst-dev libxres-dev libdrm-dev libvulkan-dev wayland-protocols libwayland-dev libwayland-bin libxkbcommon-dev libsdl2-dev libpipewire-0.3-dev libavif-dev libwlroots-dev libliftoff-dev libcap-dev hwdata spirv-headers libstb-dev libdecor-0-dev libxdamage-dev xwayland git glslang-tools
Heres a guide on how to install it, it's really long and convoluted unfortunately but should get you set up
https://forums.linuxmint.com/viewtopic.php?t=426482
is this the comment i should be following?
yeah
guide says to look for missing parts if there's an error about it. which wayland server should i install?
the bottom two
it says nothing was added or upgraded. do i need to do some force install or something?
they're already installed
did you do this?
yeah i did
weird, you'll have to build it yourself then
git clone https://github.com/FreeBSDDesktop/epoll-shim.git
cd epoll-shim/
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build .
i think something went wrong again
what was the original error?
there were these i guess? otherwise the message you replied was the first
can you do apt list --installed | grep "wayland" and post output
Looks like the wayland version mint has in its repos is too old
this comment in the forum post says how to download and build latest version
remove --prefix=PREFIX
ninja -C build/ install didnt work
sudo apt install xpat
unable to locate package xpat 💀
man
fuck it just try the precompiled deb for debian
https://debian.pkgs.org/sid/debian-contrib-amd64/gamescope_3.15.13-2_amd64.deb.html
um
idk how to install programs from pages like these
my best guess is this but it didnt work
sudo apt install libavif15 libbenchmark1debian libdisplay-info1 libevdev-dev libgav1-1 libgudev-1.0-dev libmtdev-dev libseat1 libstb0 libwacom-dev libxcb-ewmh2 libxcb-shape0-dev libxcb-xfixes0-dev libxmu-headers libyuv0 libx11-xcb-dev libxres-dev libxmu-dev libseat-dev libinput-dev libxcb-composite0-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-res0-dev libcap-dev
E: Unable to locate package libavif15
E: Package 'libbenchmark1debian' has no installation candidate
try replacing them with libavif16 and libbenchmark1.8.3
sudo apt install libavif16 libbenchmark1.8.3 libdisplay-info1 libevdev-dev libgav1-1 libgudev-1.0-dev libmtdev-dev libseat1 libstb0 libwacom-dev libxcb-ewmh2 libxcb-shape0-dev libxcb-xfixes0-dev libxmu-headers libyuv0 libx11-xcb-dev libxres-dev libxmu-dev libseat-dev libinput-dev libxcb-composite0-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-res0-dev libcap-dev
yeah
yeah nah the precompiled deb wont work
git clone https://github.com/ValveSoftware/gamescope.git
um
fatal: destination path 'gamescope' already exists and is not an empty directory.
i think we need to delete the one we were making first
Cloning into 'gamescope'...
remote: Enumerating objects: 13571, done.
remote: Counting objects: 100% (2612/2612), done.
remote: Compressing objects: 100% (521/521), done.
remote: Total 13571 (delta 2279), reused 2264 (delta 2086), pack-reused 10959 (from 1)
Receiving objects: 100% (13571/13571), 5.14 MiB | 19.72 MiB/s, done.
Resolving deltas: 100% (10118/10118), done.
finally something worked
yeah theres not really much that can go wrong with git clone
cd gamescope
git submodule update --init
meson build/
ninja -C build/
i think we're back to square one
is that easier or harder than gamescope
LMDE is a whole different version of linux mint
maybe theres something other than gamescope that can fix this?
Not to my knowledge
do you at least know how to fix fullscreen? i cant set games to fullscreen without my whole desktop crashing
literally nothing works and then i have to use the physical power button to turn it off
Does it only happen in tf2?
This is the question ^
This is actually advice for a particular game highly specific to that game, its features, and its files its not generally applicable advice. Not every game is going to support anything other than fullscreen
If so then im pretty sure that its just a bug with the new vulkan implementation in TF2 since it happens on my computer and is only fixed by using the legacy renderer (openGL) or by switching to wayland
he said games
people say things all the time best to get clarity
I guess
just tested it in portal and half-life 2, they have issues too
cant even get past the main menus
regarding gamescope wayland + nvidia doesn't work that great
Can you post the results of inxi -Fxxxrzc0
its either a problem with source games or a problem with native linux games
or a problem with old valve games
does it work in non-source games?
i'll try a non-valve game and deadlock
good point half life 2 and TF2 are basically very closely related
also it could just be source spaghetti
portal, half-life 2 episode 2 and tf2 were all released on the same day with the same version of the same engine
i figured they'd be good test subjects
and also deadlock takes like 20 minutes to load vulkan shaders so im leaving that after i've tested everything else
before you do that can you share the inxi info?
You should be able to just skip shader processing if all you're doing is testing fullscreen
how do i get that?
inxi -Fxxxrzc0
I mean of running that command in a terminal
basically open a terminal run command copy output
Guessing your monitor isn't actually 6000 pixels
so I'm assuming that is a function of scaling
nah its 4k but its upscaled to 125%
so i cant get any games to do fullscreen windowed borderless
ok so you are running super old games at a resolution they almost certainly don't actually support
unless they run in proton
wdym by upscaled?
have you tried disabling scaling
and just set the panel to its native resolution and run the game fullscreen
If you mean UI scaling then try it disabled
I mean open display settings set scaling to 100% run the game full screen
Yeah try without scaling
turning it back to 100% fixes the games but then the rest of my desktop doesnt work
nothing else is going to work
Yeah scaling is pretty experimental right now tmk
just tried crypt of the necrodancer and i was able to fullscreen it in a window no problem
so its not an issue with all linux games
yeah definitely a source issue then
that is game specific
Do source 2 games work?
ill try deadlock
as is support for super high resolution
you are also going to find that some games run like ass if they do support it
deadlock works
Yeah its just a source 1 issue then
some things especially old games are going to support that high a resolution some aren't going to perform well
Also games are when set to windows may or may not be resizable and scale to window size
if you really need to run the games in fullscreen then i'd advise just setting scaling to 100% every time you play them or switching to LMDE and trying gamescope (no guarantee it'll work)
i'd be fine with scaling to 100% if i could make my monitor 1080p but it wont let me do that either
why couldn't you use 1080p?
no option for it in my display settings
what does xrandr say
It wasnt an nvidia issue that caused him to not be able to use gamescope in linux mint but its a build dependency issue
LMDE has gamescope in its official repo
@tulip swan after which he could experience the nvidia issues
could
From what i can tell nvidia wayland is hit or miss for a lot of people, it either works perfectly or not at all
i think my pc is using x11
it is
@tulip swan that is...not really accurate
eh, this isnt the place to discuss it anyway
issues are many and varied and have often depended on the application
I'm just saying that turning the scaling to 100% and 4K will magically make most things work perfectly
when scalings at 100% everything is so small i have to be inches away from the monitor to read anything
also running in fullscreen you can per app turn the resolution up or down and it will set the monitor to the correct resolution
don't you have 2 other monitors?
wouldn't you logically just run the game on the 4K central monitor and then have like chat game guides or what have you on the other monitors?
so the only thing physically occupying the central monitor is the game
notably although you may not be able to change from monitor A to B with the mouse while gaming in full screen hotkeys to switch still work
back on windows i had my big monitor scaled to 150% and when i had a game open i'd use the side monitors for chat, music, videos, etc. but if i needed the center monitor for something, like an app that won't open on my side monitors or something, the start menu would still open with a hit of the windows key
i could still access the desktop and stuff
well in any case let me revise my suggestion. If a game works properly and well for you do whatever makes you happy. If it doesn't for whatever reason support windowed, doesn't work properly when resized, crashes, or performs poorly consider changing your display sessions for that session only to avoid the issue.
even windows borderless on here pretty much disables all access to the desktop on my big monitor
It does say that fractional scaling is experimental, so expect issues
i never thought i'd regret getting a 4k monitor
I don't works perfectly fine for me
But I don't try to run stuff in windowed mode which I have not found to work well at all
how do you use the taskbar its so small in 4k
and every window and all text is so small at 100%
I have a 27" 4K so it looks fine at 2x
You can change font size and taskbar size btw
how do i change font size
does it apply to browsers
font selection app
in cinnamon its in settings under fonts
it should
some apps are weird and don't listen or have their own settings
Any app that it doesnt apply to will most likely have their own font size setting
yep
also 27"
You must have better eyesight than me to use 125%
well i dont need prescription glasses yet 🤷♂️ just blue light glasses
don't buy that blue light scam its not really well supported by science
but I digress
oh wait
i guess i should maybe tamper with these and see what each of them does
can i also change the size of desktop icons?
these things
if i can just make everything bigger without the display scaling then i think that's my solution
idk if any of these settings will make apps like this bigger though
this was one i specifically looked at while in 100% and it was too small
so some further data
only if you enable fractional scaling and set it to a value other than 100 or 200% does it apear to the system as a larger resolution device
because it scales it up and then down to the physical resolution of the device in order to acheve the scaling
This is why the game must support the much higher resolution in order to work