You are not logged in.

#1 2013-09-07 09:28:26

swaraj
Member
Registered: 2013-08-05
Posts: 35

[Solved] Having problems launching TF2 [bumblebee]

I have the Nvidia optimus graphics card (Nvidia GeForce 610M), and here is what I get when I try to run TF2 using optirun:

swaraj@swaraj ~ $ optirun .local/share/Steam/SteamApps/common/Team\ Fortress\ 2/hl2.sh 
SDL video target is 'x11'
SDL video target is 'x11'
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system supports the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system supports the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system supports the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear.
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_EXT_texture_sRGB_decode: AVAILABLE
[VGL] NOTICE: Pixel format of 2D X server does not match pixel format of
[VGL]    Pbuffer.  Disabling PBO readback.
AppFramework : Unable to load module vguimatsurface.so!
Unable to load interface VGUI_Surface030 from vguimatsurface.so

Googling this didn't help me much, as most of the problems were due to AMD cards.
Does this just mean my graphics card isn't good enough for the game?

Can anyone help me out?

Last edited by swaraj (2013-09-07 14:29:42)

Offline

#2 2013-09-07 10:08:14

swaraj
Member
Registered: 2013-08-05
Posts: 35

Re: [Solved] Having problems launching TF2 [bumblebee]

Also, when I launch Dota 2, I get the following output, and then a blank screen. I can still move my mouse, and switch between my workspaces. I can also launch programs, but there will still be that empty background.

Output:

swaraj@swaraj ~ $ optirun .local/share/Steam/SteamApps/common/dota\ 2\ beta/dota.sh 
Running a benchmark to measure system clock frequency...
Finished RDTSC test. To prevent the startup delay from this benchmark, set the environment variable RDTSC_FREQUENCY to 2594.000000 on this system. This value is dependent upon the CPU clock speed and architecture and should be determined separately for each server. The use of this mechanism for timing can be disabled by setting RDTSC_FREQUENCY to 'disabled'.
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system supports the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system supports the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system supports the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear.
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_EXT_texture_sRGB_decode: AVAILABLE
[VGL] NOTICE: Pixel format of 2D X server does not match pixel format of
[VGL]    Pbuffer.  Disabling PBO readback.
GL_NVX_gpu_memory_info: AVAILABLE
GL_ATI_meminfo: UNAVAILABLE
GL_NVX_gpu_memory_info: Total Dedicated: 1048576, Total Avail: 1048576, Current Avail: 1034240
GL_MAX_SAMPLES_EXT: 32
Using breakpad crash handler
[S_API FAIL] SteamAPI_Init() failed; no appID found.
Either launch the game from Steam, or put the file steam_appid.txt containing the correct appID in your game folder.
Adding VPK file: /home/swaraj/.local/share/Steam/SteamApps/common/dota 2 beta/dota/sound_vo_english
Adding VPK file: /home/swaraj/.local/share/Steam/SteamApps/common/dota 2 beta/dota/pak01
Adding VPK file: /home/swaraj/.local/share/Steam/SteamApps/common/dota 2 beta/platform/pak01
Did not detect any valid joysticks.
WARNING: unable to link log_flags and log_flags because one or more is a ConCommand.
WARNING: unable to link log_color and log_color because one or more is a ConCommand.
WARNING: unable to link log_verbosity and log_verbosity because one or more is a ConCommand.
WARNING: unable to link log_level and log_level because one or more is a ConCommand.
WARNING: unable to link log_dumpchannels and log_dumpchannels because one or more is a ConCommand.
WARNING: unable to link Test_StartScript and Test_StartScript because one or more is a ConCommand.
WARNING: unable to link Test_RandomChance and Test_RandomChance because one or more is a ConCommand.
WARNING: unable to link Test_LoopForNumSeconds and Test_LoopForNumSeconds because one or more is a ConCommand.
WARNING: unable to link Test_Loop and Test_Loop because one or more is a ConCommand.
WARNING: unable to link Test_LoopCount and Test_LoopCount because one or more is a ConCommand.
WARNING: unable to link Test_StartLoop and Test_StartLoop because one or more is a ConCommand.
Load a scaleform font provider?
Creating D3D9 device with D3DCREATE_MULTITHREADED
IDirect3DDevice9::Create: BackBufWidth: 1024, BackBufHeight: 768, D3DFMT: 3, BackBufCount: 1, MultisampleType: 0, MultisampleQuality: 0
GL sampler object usage: DISABLED

Offline

#3 2013-09-07 13:57:33

swaraj
Member
Registered: 2013-08-05
Posts: 35

Re: [Solved] Having problems launching TF2 [bumblebee]

Nevermind, I got it to work by typing optirun -b primus %command% -windowed -nojoy in the Steam options and everything works now.

Offline

#4 2014-02-09 21:00:28

Aditya Raj Bhatt
Member
From: New Delhi, India
Registered: 2013-02-27
Posts: 17

Re: [Solved] Having problems launching TF2 [bumblebee]

I am having the same problem, trying to run Portal. Where do you type this command? My Portal/ directory looks like this -

.  ..  bin  hl2  hl2_linux  hl2.sh  langchanger.sh  platform  portal  portal.sh  thirdpartylegalnotices.txt

When I do sudo ./portal.sh it gives nearly the same output as your TF2. And I saw your fix command on several other sites as well, but my question is where do I type that. Using it as a switch in sudo ./portal.sh doesn't work.

Offline

#5 2014-02-09 21:14:06

Aditya Raj Bhatt
Member
From: New Delhi, India
Registered: 2013-02-27
Posts: 17

Re: [Solved] Having problems launching TF2 [bumblebee]

I am having the same problem, trying to run Portal. Where do you type this command? My Portal/ directory looks like this -

.  ..  bin  hl2  hl2_linux  hl2.sh  langchanger.sh  platform  portal  portal.sh  thirdpartylegalnotices.txt

When I do sudo ./portal.sh it gives nearly the same output as your TF2. And I saw your fix command on several other sites as well, but my question is where do I type that. Using it as a switch in sudo ./portal.sh doesn't work. I'm using the nvidia driver, not the bumblebee one, so do I need that to play this game? lspci gives me this as my card -

01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)

EDIT : Googling around, it seems the fix has to be made to hl2.sh but how? Which line has to be replaced with your optirun... options? Here are the contents of my hl2.sh -

#!/bin/bash

# figure out the absolute path to the script being run a bit
# non-obvious, the ${0%/*} pulls the path out of $0, cd's into the
# specified directory, then uses $PWD to figure out where that
# directory lives - and all this in a subshell, so we don't affect
# $PWD

GAMEROOT=$(cd "${0%/*}" && echo $PWD)

#determine platform
UNAME=`uname`
if [ "$UNAME" == "Darwin" ]; then
   # prepend our lib path to LD_LIBRARY_PATH
   export DYLD_LIBRARY_PATH="${GAMEROOT}"/bin:$DYLD_LIBRARY_PATH
elif [ "$UNAME" == "Linux" ]; then
   # prepend our lib path to LD_LIBRARY_PATH
   export LD_LIBRARY_PATH="${GAMEROOT}"/bin:$LD_LIBRARY_PATH
fi

if [ -z $GAMEEXE ]; then
	if [ "$UNAME" == "Darwin" ]; then
		GAMEEXE=hl2_osx
	elif [ "$UNAME" == "Linux" ]; then
		GAMEEXE=hl2_linux
	fi
fi

ulimit -n 2048

# enable nVidia threaded optimizations
export __GL_THREADED_OPTIMIZATIONS=1

# and launch the game
cd "$GAMEROOT"

# Enable path match if we are running with loose files
if [ -f pathmatch.inf ]; then
	export ENABLE_PATHMATCH=1
fi

# Do the following for strace:
# 	GAME_DEBUGGER="strace -f -o strace.log"
# Do the following for tcmalloc
#   LD_PRELOAD=../src/thirdparty/gperftools-2.0/.libs/libtcmalloc_debug.so:$LD_PRELOAD

STATUS=42
while [ $STATUS -eq 42 ]; do
	if [ "${GAME_DEBUGGER}" == "gdb" ] || [ "${GAME_DEBUGGER}" == "cgdb" ]; then
		ARGSFILE=$(mktemp $USER.hl2.gdb.XXXX)
		echo b main > "$ARGSFILE"

		# Set the LD_PRELOAD varname in the debugger, and unset the global version. This makes it so that
		#   gameoverlayrenderer.so and the other preload objects aren't loaded in our debugger's process.
		echo set env LD_PRELOAD=$LD_PRELOAD >> "$ARGSFILE"
		echo show env LD_PRELOAD >> "$ARGSFILE"
		unset LD_PRELOAD

		echo run $@ >> "$ARGSFILE"
		echo show args >> "$ARGSFILE"
		${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} -x "$ARGSFILE"
		rm "$ARGSFILE"
	else
		${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
	fi
	STATUS=$?
done
exit $STATUS

and this is the portal.sh in the same directory (turns out it's a simple 2-liner) -

#!/bin/sh
cd "`dirname "$0"`"
./hl2.sh -game portal

Also, I don't want the game to connect to Steam when I run it, so that it's a standalone and I don't have to use my internet, so how do I ensure that?

EDIT : I do not have an integrated chipset (out put of lspci | grep VGA gives only a nvidia gt218 card). So how do I solve this?

Last edited by Aditya Raj Bhatt (2014-02-10 05:15:24)

Offline

#6 2014-02-10 07:33:21

buhman
Member
Registered: 2013-04-28
Posts: 2

Re: [Solved] Having problems launching TF2 [bumblebee]

  1. Don't necro-rez/hijack old forum threads--particularly in this case where the original posts are completely irrelevant

  2. Don't cross-post with the forum and ask the same question in #archlinux

  3. In addition to the obviously needful, you also want

    lib32-fontconfig lib32-gtk2 lib32-libxi lib32-nss lib32-libpng12 lib32-alsa-lib lib32-pango lib32-cairo lib32-sdl2

  4. and lib32-libgcrypt < 1.6

Offline

#7 2014-02-10 18:21:08

Aditya Raj Bhatt
Member
From: New Delhi, India
Registered: 2013-02-27
Posts: 17

Re: [Solved] Having problems launching TF2 [bumblebee]

I thought the my problem was almost the same as his. Sorry, but the output of the error was ditto. Anyway, if creating a new thread is preferred I'll do that, though I think that anyone searching for problems would rather have all the errors related to a game in one place (including discussion and all).

Offline

Board footer

Powered by FluxBB