#game window size messed up, cant fullscreen

203 messages · Page 1 of 1 (latest)

half granite
#

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

How do you like it to resize the game window?
Normally this cant be done. Its full screen or windowed at a fixed size.
No more!

Now you can resize the window!
Resize to fit any monitor, even mul

tulip swan
#

linux actually has a tool for this called gamescope

half granite
#

oh btw my monitor is upscaled to 125% i probably should mention that

tulip swan
#

install it with sudo apt install gamescope
then you can put it in the launch arguments for your game with the appropriate flags

half granite
tulip swan
#

have you installed steam as a flatpak?

half granite
#

no, i installed it as a system package. i think i did it with terminal

tulip swan
#

What GPU do you have?

#

If no GPU then what CPU

half granite
#

nvidia rtx 2080 super

#

and i'm using proprietary drivers cause that's the only way i could get my monitors to work

tulip swan
#

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

half granite
#

is that one command?

tulip swan
#

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
half granite
#

alright done

#

now what

tulip swan
half granite
#

is this the comment i should be following?

tulip swan
#

yeah

half granite
# tulip swan yeah

guide says to look for missing parts if there's an error about it. which wayland server should i install?

tulip swan
#

the bottom two

half granite
tulip swan
#

they're already installed

half granite
#

also is this important?

#

epoll shim

tulip swan
#

did you do this?

half granite
#

yeah i did

tulip swan
#

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 .

half granite
#

i think something went wrong again

half granite
tulip swan
#

can you do apt list --installed | grep "wayland" and post output

half granite
tulip swan
#

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

half granite
#

what can i change to make it an "absolute path"

tulip swan
half granite
#

ninja -C build/ install didnt work

tulip swan
#

sudo apt install xpat

half granite
#

unable to locate package xpat 💀

tulip swan
#

maybe sudo apt install libexpat1

half granite
tulip swan
#

man

half granite
#

um

#

idk how to install programs from pages like these

#

my best guess is this but it didnt work

half granite
tulip swan
#

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

half granite
#

E: Unable to locate package libavif15
E: Package 'libbenchmark1debian' has no installation candidate

tulip swan
#

try replacing them with libavif16 and libbenchmark1.8.3

half granite
#

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

tulip swan
#

yeah

half granite
#

did it work?

tulip swan
#

yeah nah the precompiled deb wont work

#

git clone https://github.com/ValveSoftware/gamescope.git

half granite
#

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

tulip swan
#

oh yeah do that

#

rm -r gamescope

#

and make sure you're in home directory too

#

cd

half granite
#
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

tulip swan
#

yeah theres not really much that can go wrong with git clone

#

cd gamescope

#

git submodule update --init

#

meson build/

#

ninja -C build/

half granite
#

i think we're back to square one

tulip swan
#

Im honestly clueless

#

Well you could switch to LMDE but thats pretty extreme

half granite
#

is that easier or harder than gamescope

tulip swan
#

LMDE is a whole different version of linux mint

half granite
#

maybe theres something other than gamescope that can fix this?

tulip swan
#

Not to my knowledge

half granite
#

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

scarlet kestrel
#

This is the question ^

scarlet kestrel
tulip swan
#

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

tulip swan
scarlet kestrel
#

people say things all the time best to get clarity

tulip swan
#

I guess

half granite
#

just tested it in portal and half-life 2, they have issues too

#

cant even get past the main menus

scarlet kestrel
#

regarding gamescope wayland + nvidia doesn't work that great

#

Can you post the results of inxi -Fxxxrzc0

half granite
#

its either a problem with source games or a problem with native linux games

#

or a problem with old valve games

tulip swan
#

does it work in non-source games?

half granite
#

i'll try a non-valve game and deadlock

scarlet kestrel
#

good point half life 2 and TF2 are basically very closely related

tulip swan
#

also it could just be source spaghetti

half granite
#

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

scarlet kestrel
#

before you do that can you share the inxi info?

tulip swan
half granite
tulip swan
#

inxi -Fxxxrzc0

scarlet kestrel
#

I mean of running that command in a terminal

#

basically open a terminal run command copy output

half granite
scarlet kestrel
#

Guessing your monitor isn't actually 6000 pixels

#

so I'm assuming that is a function of scaling

half granite
#

nah its 4k but its upscaled to 125%

#

so i cant get any games to do fullscreen windowed borderless

scarlet kestrel
#

ok so you are running super old games at a resolution they almost certainly don't actually support

half granite
#

unless they run in proton

tulip swan
scarlet kestrel
#

have you tried disabling scaling

#

and just set the panel to its native resolution and run the game fullscreen

tulip swan
#

If you mean UI scaling then try it disabled

half granite
scarlet kestrel
#

I mean open display settings set scaling to 100% run the game full screen

tulip swan
#

Yeah try without scaling

half granite
#

turning it back to 100% fixes the games but then the rest of my desktop doesnt work

scarlet kestrel
#

nothing else is going to work

tulip swan
#

Yeah scaling is pretty experimental right now tmk

half granite
#

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

tulip swan
scarlet kestrel
#

that is game specific

tulip swan
#

Do source 2 games work?

half granite
#

ill try deadlock

scarlet kestrel
#

as is support for super high resolution

#

you are also going to find that some games run like ass if they do support it

half granite
#

deadlock works

tulip swan
#

Yeah its just a source 1 issue then

scarlet kestrel
#

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

tulip swan
#

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)

scarlet kestrel
#

it wont

#

I'm presuming that LMDE doesn't have newer nvidia drivers than mint

half granite
#

i'd be fine with scaling to 100% if i could make my monitor 1080p but it wont let me do that either

scarlet kestrel
#

why couldn't you use 1080p?

half granite
#

no option for it in my display settings

scarlet kestrel
#

what does xrandr say

tulip swan
#

LMDE has gamescope in its official repo

scarlet kestrel
#

@tulip swan after which he could experience the nvidia issues

tulip swan
#

could

half granite
tulip swan
#

From what i can tell nvidia wayland is hit or miss for a lot of people, it either works perfectly or not at all

half granite
#

i think my pc is using x11

tulip swan
#

it is

scarlet kestrel
#

@tulip swan that is...not really accurate

tulip swan
#

eh, this isnt the place to discuss it anyway

scarlet kestrel
#

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

half granite
#

when scalings at 100% everything is so small i have to be inches away from the monitor to read anything

scarlet kestrel
#

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

half granite
#

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

scarlet kestrel
#

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.

half granite
#

even windows borderless on here pretty much disables all access to the desktop on my big monitor

tulip swan
#

It does say that fractional scaling is experimental, so expect issues

half granite
#

i never thought i'd regret getting a 4k monitor

scarlet kestrel
#

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

half granite
#

how do you use the taskbar its so small in 4k

#

and every window and all text is so small at 100%

scarlet kestrel
#

I have a 27" 4K so it looks fine at 2x

tulip swan
scarlet kestrel
#

with fine adjustment by setting font and bar size

#

How big is your 4K?

half granite
#

does it apply to browsers

tulip swan
#

font selection app

scarlet kestrel
#

in cinnamon its in settings under fonts

tulip swan
scarlet kestrel
#

some apps are weird and don't listen or have their own settings

tulip swan
#

Any app that it doesnt apply to will most likely have their own font size setting

scarlet kestrel
#

yep

half granite
scarlet kestrel
#

You must have better eyesight than me to use 125%

half granite
#

well i dont need prescription glasses yet 🤷‍♂️ just blue light glasses

scarlet kestrel
#

don't buy that blue light scam its not really well supported by science

#

but I digress

half granite
#

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

scarlet kestrel
#

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