ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
646 stars 74 forks source link

[Portal, Linux] Tiny screen size #402

Closed Cat-Ion closed 11 years ago

Cat-Ion commented 11 years ago

When starting Portal after a fresh install, the screen size is 640x480, with UI elements scaled appropriately (i.e. unreadably small).

videoconfig_linux.cfg: http://p.0au.de/13343f6f config.cfg: http://p.0au.de/3f092a36.cfg glxinfo: http://p.0au.de/69c3e841

sysinfo:

Processor Information: Vendor: GenuineIntel Speed: 3093 Mhz 4 logical processors 4 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported

Network Information: Network Speed:

Operating System Version: "Gentoo Base System release 2.1" (64 bit) Kernel Name: Linux Kernel Version: 3.8.3-gentoo-r1 X Server Vendor: The X.Org Foundation X Server Release: 11301000 X Window Manager: Steam Runtime Version: steam-runtime-release-i386_2013-04-16

Video Card: Driver: NVIDIA Corporation GeForce GTX 460/PCIe/SSE2

Driver Version:  4.3.0 NVIDIA 313.30
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID:  0x10de
DeviceID:  0xe22
Number of Monitors:  2
Number of Logical Video Cards:  1
Primary Display Resolution:  1920 x 1080
Desktop Resolution: 3600 x 1080
Primary Display Size: 20.87" x 11.81"  (23.98" diag)
                                        53.0cm x 30.0cm  (60.9cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 1024 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card: Audio device: Realtek ALC892

Memory: RAM: 16019 Mb

Miscellaneous: UI Language: English LANG: none Microphone: Not set Total Hard Disk Space Available: 422288 Mb Largest Free Hard Disk Block: 64693 Mb

Installed software:

Recent Failure Reports: Fri May 3 16:07:29 2013 GMT: file ''/tmp/dumps/assert_20130503180706_1.dmp'', upload yes: ''CrashID=bp-cbc3682e-fbc9-4c49-94cf-0e31a2130503'' Fri May 3 16:08:05 2013 GMT: file ''/tmp/dumps/assert_20130503180720_2.dmp'', upload yes: ''CrashID=bp-11624bed-eac7-448e-afc6-217892130503''

d10sfan commented 11 years ago

Are you able to set the resolution manually in the advanced options?

Example: -width 1920 -height 1080

Cat-Ion commented 11 years ago

I can't really read the screen sizes in the menu and am unsure if I've selected a different resolution, but the options don't seem to be doing anything. (Also, as you can see from the video config, the resolution /should/ already be set to 1920x1080.)

Cat-Ion commented 11 years ago

I just found out that changing my window manager from dwm (http://git.suckless.org/dwm) to metacity fixes this problem.

knuta commented 11 years ago

This happened to me in ctwm as well, so I decided to test in a few different window managers.

These window managers get a small, centered Portal with a black border around it, and the mouse doesn't work in the menus:

twm vtwm ctwm tinywm lwm (same size, but places the game in the upper left corner, offset by window decoration size) flwm (same size, but places the game in the upper left corner) dwm (according to the original poster)

These window managers get a nice and fullscreen Portal which works great:

gnome3 xfce fluxbox openbox fvwm icewm evilwm wmaker metacity (according to the original poster)

Considering that all the malfunctioning Window managers are either quite dated, extremely minimalistic, or both, I suspect the problem is ICCCM2/EWMH compliance or similar.

Cat-Ion commented 11 years ago

That's quite possible. If this won't get fixed steam-side it'd be nice to know a list of all the ICCCM2/EWMH/other things that are needed, so I could at least try writing a patch to fix it in dwm.

knuta commented 11 years ago

My gut feeling is that this could be _NETWM_STATE_FULLSCREEN. At least in ctwm, I also had to use “mplayer -fstype -fullscreen” (which disables the use of _NETWM_STATE_FULLSCREEN) to make mplayer able to use fullscreen. Now mplayer is obviously not the same as Portal, but the symptoms are similar and they might be having the same problem.

Quick googling leads me to believe that dwm does not support _NETWM_STATE_FULLSCREEN. At least it didn't in 2008, judging from the email thread that shows up as one of the first hits. Echinus, which is a fork of dwm, added _NETWM_STATE_FULLSCREEN support in version 0.3.0, released 2008-06-18. Maybe you can try to backport that patch to dwm and see if it helps? Echinus was later renamed to fwm, by the way.

Plagman commented 11 years ago

The new dxsupport database should make the default starting resolution saner then 640x480.