LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2021, 08:49 PM   #1
linux1021
Member
 
Registered: Jun 2016
Location: Washington State, USA
Posts: 78

Rep: Reputation: Disabled
Unhappy STEAM not working on NVIDIA ON ASUS laptop


Hi! Everybody

I successfully install Steam on my ASUS 2in1 (Q524UQ) laptop with Intel GPU and NVIDIA GEFORCE 940MX, running the latest proprietary driver for Linux mint 20.2 uma XFCE. When I tried to rum steam on the NVIDIA build in, it only shows a little window saying verifying for 2 seconds and after that nothing happens, if I run steam on the INTEL IGPU, it runs fine. I tried to run the steam command on terminal with NVIDIA dirver running, to see what happens, and got a long output, but again it did not run. Any ideas? I will try to post my system specifications and the output of steam command on terminal for you guys. Thanks for your time and help. Have a nice day.

My Laptop specifications:

Quote:
Code:
System:    Kernel: 5.11.0-36-generic x86_64 bits: 64 compiler: N/A Desktop: Xfce 4.16.0 
           tk: Gtk 3.24.20 wm: xfwm4 dm: LightDM Distro: Linux Mint 20.2 Uma 
           base: Ubuntu 20.04 focal 
Machine:   Type: Convertible System: ASUSTeK product: Q524UQK v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: Q524UQK v: 1.0 serial: <filter> UEFI: American Megatrends 
           v: Q524UQK.307 date: 04/17/2019 
Battery:   ID-1: BAT0 charge: 40.0 Wh condition: 40.4/52.0 Wh (78%) volts: 15.1/15.1 
           model: ASUSTeK ASUS Battery serial: <filter> status: Not charging 
           Device-1: hidpp_battery_0 model: Logitech Marathon Mouse/Performance Plus M705 
           serial: <filter> charge: 55% (should be ignored) status: Discharging 
CPU:       Topology: Dual Core model: Intel Core i7-7500U bits: 64 type: MT MCP arch: Amber Lake 
           rev: 9 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 23199 
           Speed: 3500 MHz min/max: 400/3500 MHz Core speeds (MHz): 1: 3500 2: 3500 3: 3500 
           4: 3500 
Graphics:  Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:5916 
           Device-2: NVIDIA GM107 [GeForce 940MX] vendor: ASUSTeK driver: N/A bus ID: 01:00.0 
           chip ID: 10de:179c 
           Display: x11 server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa tty: N/A 
           OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.0.3 
           direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK driver: snd_hda_intel 
           v: kernel bus ID: 00:1f.3 chip ID: 8086:9d71 
           Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX] driver: snd_hda_intel 
           v: kernel bus ID: 01:00.1 chip ID: 10de:0fbc 
           Sound Server: ALSA v: k5.11.0-36-generic 
Network:   Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel port: e000 bus ID: 03:00.0 
           chip ID: 8086:24f3 
           IF: wlp3s0 state: up mac: <filter> 
Drives:    Local Storage: total: 942.70 GiB used: 42.32 GiB (4.5%) 
           ID-1: /dev/nvme0n1 vendor: Silicon Power model: SPCC M.2 PCIe SSD size: 476.94 GiB 
           speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           ID-2: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB 
           speed: 6.0 Gb/s serial: <filter> 
Partition: ID-1: / size: 455.29 GiB used: 21.10 GiB (4.6%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 704.5 MiB used: 113.4 MiB (16.1%) fs: ext4 dev: /dev/sda2 
           ID-3: swap-1 size: 980.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-3:2 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID 
           driver: logitech-djreceiver,usbhid rev: 2.0 chip ID: 046d:c52b 
           Device-2: 1-5:3 info: Chicony USB2.0 HD UVC WebCam type: Video driver: uvcvideo 
           rev: 2.0 chip ID: 04f2:b59c 
           Device-3: 1-7:4 info: Atmel Atmel maXTouch Digitizer type: HID 
           driver: hid-generic,hid-multitouch,usbhid rev: 2.0 chip ID: 03eb:8ab2 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 51.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 3100 
Repos:     No active apt repos in: /etc/apt/sources.list 
           No active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           No active apt repos in: /etc/apt/sources.list.d/linuxuprising-apps-focal.list 
           No active apt repos in: /etc/apt/sources.list.d/lutris-team-lutris-focal.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //mirror.os6.org/linuxmint.com/packages uma main upstream import backport
           2: deb http: //mirrors.accretive-networks.net/ubuntu focal main restricted universe multiverse
           3: deb http: //mirrors.accretive-networks.net/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //mirrors.accretive-networks.net/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
           No active apt repos in: /etc/apt/sources.list.d/steam.list 
Info:      Processes: 216 Uptime: 46m Memory: 11.59 GiB used: 1.27 GiB (11.0%) Init: systemd 
           v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Client: Unknown python3.8 client 
           inxi: 3.0.38
Runing steam on terminal:

Quote:
maverick@TopGun:~$ steam
Running Steam on linuxmint 20.2 64-bit
STEAM_RUNTIME is enabled automatically
Steam runtime environment up-to-date!
Steam client's requirements are satisfied
WARNING: Using default/fallback debugger launch
/home/maverick/.local/share/Steam/ubuntu12_32/steam
[2021-09-25 20:49:26] Startup - updater built Sep 17 2021 04:27:28
Installing breakpad exception handler for appid(steam)/version(1631912732)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
SteamUpdateUI: An X Error occurred
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 50
xerror_handler: X failed, continuing
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2021-09-25 20:49:26] Loading cached metrics from disk (/home/maverick/.local/share/Steam/package/steam_client_metrics.bin)
[2021-09-25 20:49:26] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2021-09-25 20:49:26] Using the following download hosts for Public, Realm steamglobal
[2021-09-25 20:49:26] 1. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1631912732)
[2021-09-25 20:49:26] Checking for update on startup
[2021-09-25 20:49:26] Checking for available updates...
[2021-09-25 20:49:26] Downloading manifest: http://media.steampowered.com/client...lient_ubuntu12
Installing breakpad exception handler for appid(steam)/version(1631912732)
[2021-09-25 20:49:27] Download skipped: /client/steam_client_ubuntu12 version 1631912732, installed version 1631912732, existing pending version 0
[2021-09-25 20:49:27] Nothing to do
[2021-09-25 20:49:27] Verifying installation...
[2021-09-25 20:49:27] Performing checksum verification of executable files
[2021-09-25 20:49:27] Verification complete
Loaded SDL version 2.0.17-6744061
Gtk-Message: 20:49:27.742: Failed to load module "gail"
Gtk-Message: 20:49:27.742: Failed to load module "atk-bridge"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Steam: An X Error occurred
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 152
Serial number of failed request: 52
xerror_handler: X failed, continuing
assert_20210925204926_1.dmp[19465]: Uploading dump (out-of-process)
/tmp/dumps/assert_20210925204926_1.dmp
/home/maverick/.local/share/Steam/steam.sh: line 772: 19434 Segmentation fault (core dumped) $STEAM_DEBUGGER $DEBUGGER_ARGS "$STEAMROOT/$STEAMEXEPATH" "$@"
maverick@TopGun:~$ assert_20210925204926_1.dmp[19465]: Finished uploading minidump (out-of-process): success = yes
assert_20210925204926_1.dmp[19465]: response: CrashID=bp-c26411e3-3864-46e6-96cc-f31aa2210925
assert_20210925204926_1.dmp[19465]: file ''/tmp/dumps/assert_20210925204926_1.dmp'', upload yes: ''CrashID=bp-c26411e3-3864-46e6-96cc-f31aa2210925''
^C
maverick@TopGun:~$
 
Old 09-28-2021, 09:10 AM   #2
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 72
This is a common issue on your laptop
Quote:
Intel Core i7-7500U
Low power consumption it will use the on APU graphics.
I do not use steam but I am sure you can find the answer by looking up.
How to set the game to use nvida.

It is supposed to on start look at your hardware then grab the graphics.
Seems this is a steam issue. Now you have nvida it will will try to deal with
xwayland vulkan etc.
Fact comes down to where is glew and your opengl.
question should be how to get Steam to recognize my nvidia card when an intel APU is present.

Unfortunately most cases of your laptop are on windows.
in gaming when the game starts some how we need to tell the game to use option nvidia.

The reason I think this is a steam build issue is because most game developers write
into the start wrapper to use dedicated graphics.
Sure some one here has a simple fix.
Code:
Gtk-Message: 20:49:27.742: Failed to load module "gail"
Gtk-Message: 20:49:27.742: Failed to load module "atk-bridge"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
please install gail atk-bridge
https://askubuntu.com/questions/5485...and-atk-bridge
https://askubuntu.com/questions/5413...gh-each-update
I wish you luck this must be very frustrating.

Last edited by lovemeslk; 09-28-2021 at 09:18 AM.
 
Old 09-29-2021, 12:47 PM   #3
biker_rat
Member
 
Registered: Feb 2010
Posts: 373

Rep: Reputation: 220Reputation: 220Reputation: 220
Look at the readme file on the nvidia website for the nvidia unix driver you used. There are environment variables you need to set so that the nvidia card will be used for graphics acceleration (also you should run nvidia driver with the modeset enabled kernel driver option and probably without an xorg.conf). The instructions are in the readme. If that doesn't work , ask here again.
 
Old 09-29-2021, 02:20 PM   #4
linux1021
Member
 
Registered: Jun 2016
Location: Washington State, USA
Posts: 78

Original Poster
Rep: Reputation: Disabled
Hi! Everybody

First of all Steam is a game management not an actual game. Yes, I know about the low power settings on my laptop to use the IGPU (INTEL build in graphics chip), but I'm using NVIDIA optimus which allows me to choose which graphics controller I want to use or switch to, which is when I switch to NVIDIA graphics card, that steam does not want to run. I do see the errors in the output of running steam on terminal, which are:

Gtk-Message: 20:49:27.742: Failed to load module "gail"
Gtk-Message: 20:49:27.742: Failed to load module "atk-bridge"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Now. for installing gail and atk-bridge, I did a list first of packages to verify the repositories and installation status, and this was my output:

Quote:
maverick@TopGun:~$ apt list -a libatk-adaptor
Listing... Done
libatk-adaptor/focal-updates,now 2.34.2-0ubuntu2~20.04.1 amd64 [installed]
libatk-adaptor/focal 2.34.1-3 amd64

libatk-adaptor/focal-updates 2.34.2-0ubuntu2~20.04.1 i386
libatk-adaptor/focal 2.34.1-3 i386

maverick@TopGun:~$ apt list -a libgail-common
Listing... Done
libgail-common/focal,now 2.24.32-4ubuntu4 amd64 [installed]

libgail-common/focal 2.24.32-4ubuntu4 i386

maverick@TopGun:~$
Knowing that steam likes 32 bit architecture, I asumed that is missing the 32 bit (i386) versions of the libraries. I tried to install libatk-adaptor:i386 and libgail-common:i386, with synaptic and click to install libgail-common:i386, I did not see a libatk-adaptor:i386 version searching in synaptic, then I decided to do it the old slow way of running:

sudo apt-get install libatk-adaptor:i386 libgail-common:i386 in a terminal, and it show me new packages that are requirements to them.

Quote:
maverick@TopGun:~$ sudo apt-get install libatk-adaptor:i386 libgail-common:i386
[sudo] password for maverick:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgail-common:i386 is already the newest version (2.24.32-4ubuntu4).
The following additional packages will be installed:
libatk-bridge2.0-0:i386 libatspi2.0-0:i386
The following NEW packages will be installed:
libatk-adaptor:i386 libatk-bridge2.0-0:i386 libatspi2.0-0:i386
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 144 kB of archives.
After this operation, 574 kB of additional disk space will be used.
Do you want to continue? [Y/n]
So, I installed the new packages by answering yes to the question, and successuflly install everything.

Now, I tried again to run Steam with NVIDIA graphics controller/card turn on.

Quote:
maverick@TopGun:~$ steam
Running Steam on linuxmint 20.2 64-bit
STEAM_RUNTIME is enabled automatically
Steam runtime environment up-to-date!
Steam client's requirements are satisfied
WARNING: Using default/fallback debugger launch
/home/maverick/.local/share/Steam/ubuntu12_32/steam
[2021-09-28 19:21:59] Startup - updater built Sep 17 2021 04:27:28
Installing breakpad exception handler for appid(steam)/version(1631912732)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

SteamUpdateUI: An X Error occurred
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 50
xerror_handler: X failed, continuing
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2021-09-28 19:21:59] Loading cached metrics from disk (/home/maverick/.local/share/Steam/package/steam_client_metrics.bin)
[2021-09-28 19:21:59] Using the following download hosts for Public, Realm steamglobal
[2021-09-28 19:21:59] 1. https://cdn.akamai.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2021-09-28 19:21:59] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2021-09-28 19:21:59] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1631912732)
[2021-09-28 19:21:59] Checking for update on startup
[2021-09-28 19:21:59] Checking for available updates...
[2021-09-28 19:21:59] Downloading manifest: https://cdn.akamai.steamstatic.com/c...lient_ubuntu12
Installing breakpad exception handler for appid(steam)/version(1631912732)
[2021-09-28 19:21:59] Download skipped: /client/steam_client_ubuntu12 version 1631912732, installed version 1631912732, existing pending version 0
[2021-09-28 19:21:59] Nothing to do
[2021-09-28 19:21:59] Verifying installation...
[2021-09-28 19:21:59] Performing checksum verification of executable files
[2021-09-28 19:22:00] Verification complete
Loaded SDL version 2.0.17-6744061
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Steam: An X Error occurred
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 152
Serial number of failed request: 52
xerror_handler: X failed, continuing
assert_20210928192159_1.dmp[8350]: Uploading dump (out-of-process)
/tmp/dumps/assert_20210928192159_1.dmp
/home/maverick/.local/share/Steam/steam.sh: line 772: 8319 Segmentation fault (core dumped) $STEAM_DEBUGGER $DEBUGGER_ARGS "$STEAMROOT/$STEAMEXEPATH" "$@"
maverick@TopGun:~$ assert_20210928192159_1.dmp[8350]: Finished uploading minidump (out-of-process): success = yes
assert_20210928192159_1.dmp[8350]: response: CrashID=bp-9b750e2f-f3e5-433d-9da4-ee7a92210928
assert_20210928192159_1.dmp[8350]: file ''/tmp/dumps/assert_20210928192159_1.dmp'', upload yes: ''CrashID=bp-9b750e2f-f3e5-433d-9da4-ee7a92210928''
^C
maverick@TopGun:~$
Still says it can not load a LibGL driver. The funny thing is I have Lutris installed in this laptop too and it runs on both the INTEL IGPU and the NVIDIA GPU just fine. Any ideas? Thanks for your time and help. Have a nice day.
 
Old 10-01-2021, 01:49 PM   #5
linux1021
Member
 
Registered: Jun 2016
Location: Washington State, USA
Posts: 78

Original Poster
Rep: Reputation: Disabled
Hi! Everybody

I'm just checking if anyone has an idea, to my problem from my last post. Thanks for your time and help. Have a nice day.
 
Old 10-04-2021, 03:29 PM   #6
linux1021
Member
 
Registered: Jun 2016
Location: Washington State, USA
Posts: 78

Original Poster
Rep: Reputation: Disabled
Hi! Everybody

I did a search for the last post on the:

libGL error: failed to load driver: swrast

And found a post, saying it might be for lack of this libraries, which are lib32-nvidia-utils and lib32-mesa. I then try to install them on terminal, like this:

Quote:
root@TopGun:~# sudo apt-get install lib32-nvidia-utils lib32-mesa
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lib32-nvidia-utils
E: Unable to locate package lib32-mesa
root@TopGun:~#
Any ideas? I'm stuck in this one. Thanks for your time and help. Have a nice day.
 
Old 10-04-2021, 07:51 PM   #7
linux1021
Member
 
Registered: Jun 2016
Location: Washington State, USA
Posts: 78

Original Poster
Rep: Reputation: Disabled
Hi! Everybody

I did some more research, and found out that it needed the extra library called libnvidia-gl-470:i386, so I did a:

Quote:
sudo apt install libnvidia-gl-470:i386
Make sure it matches the version series of the NVIDIA driver you are using, by replacing the 470 with your version series.

to install it, and try again on my nvidia card and IT WORKED!!! It launched the login window, and I logged in normally. In the past it only showed a verifying window for 2 seconds, and that was all, now it RUNS STEAM normally.

So, in conclusion on linux mint 20.2 UMA, you have to make sure, you have installed the following libraries:

libatk-adaptor:i386, libgail-common:i386, libnvidia-gl-470:i386 by running this command in terminal:

Quote:
sudo apt install libatk-adaptor:i386, libgail-common:i386, libnvidia-gl-470:i386
Note: At the first time I run steam on terminal, it told me to insert this dev.i915.perf_stream_paranoid=0 in /etc/sysctl.conf to turn on MESA performance option, because it was turn off. You can do it by opening your file manager as root and typing /etc/sysctl.conf in location/address field at the top and hit enter, it will open up in your text editor, then browse down to the end and insert these lines:

# MESA PERFORMANCE
dev.i915.perf_stream_paranoid=0

Then save the file and restart the PC to take affect. Then you can run steam from the menu as normal. Hope that help. Good luck!

Note: I think this will be very useful for linux mint and ubuntu distros at least, and it will be nice if it can the made as a sticky on software, games, laptop forums. So, moderators/administrators if you can please?

Last edited by linux1021; 10-04-2021 at 08:00 PM. Reason: Last minute request note
 
  


Reply

Tags
intel integrated graphics, laptop, nvidia, steam



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: New stable Steam Client up, fixing Steam Survey and NFS mounts on Linux, plus other Steam news LXer Syndicated Linux News 0 01-23-2020 10:24 PM
[SOLVED] Can't install steam on Asus G750JW laptop, tried everything I can think of. vvbudh Debian 2 07-19-2016 05:33 PM
[SOLVED] Turning off Nvidia GPU on Asus N53SV laptop. Nvidia Optimus. Installed Bumblebee Lop3 Linux - Laptop and Netbook 7 10-22-2013 07:11 AM
[SOLVED] To steam or not to steam that is the question? samac Slackware 8 05-09-2013 09:25 PM
Steam on Wine, cannot login,"Steam is having trouble connecting to the Steam servers" cantab Linux - Games 1 06-19-2010 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration