Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Steam/Some apps causing X freeze
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Eniax
n00b
n00b


Joined: 06 Feb 2018
Posts: 23

PostPosted: Tue Mar 27, 2018 2:07 am    Post subject: Steam/Some apps causing X freeze Reply with quote

I followed the guide to make steam work on Gentoo and things have been mostly fine, except in some cases it'll freeze up the desktop entirely.

Sound, etc will still play, but X is totally locked except the mouse. I can get into a terminal with ctrl+alt+F1 but if I got back to F7, the screen is totally black, but the mouse is available and registers when I hover over a clickable link, edge of a box for resizing, etc.

The only resolution I've found is a hard reboot which sucks because then I lose all the work in whatever applications I had before.

Here is my team startup/shutdown log: https://paste.pound-python.org/show/9zTgqfSaD3RhBJplsKMT/


Nvidia driver version: 390.42
X server version: 1.19.5 (11905000)

Kernel version 4.14.12.

Please let me know if I can provide any further information.

Thanks
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue Mar 27, 2018 1:44 pm    Post subject: Reply with quote

You mentioned "some cases," so the first thing I'd like to know is whether specific actions cause the screen to black out.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Eniax
n00b
n00b


Joined: 06 Feb 2018
Posts: 23

PostPosted: Tue Mar 27, 2018 2:59 pm    Post subject: Reply with quote

audiodef wrote:
You mentioned "some cases," so the first thing I'd like to know is whether specific actions cause the screen to black out.


No real specific actions will cause this. If i launch steam from the kde launcher ("run steam" which is just the binary in /usr/local/bin) it's pretty consistent.

So far it's happened with qupzilla, both on the stock kernel with the 387 Nvidia driver and the 4.14 with 390.xx kernel/drivers. This application is totally unusable, but firefox works just fine. This freeze renders the system totally unoperable and I have to power cycle it.

Occasionally, but less so, it will freeze in the same manner that steam does with StarCraft II under wine. The client will launch just fine, but the game itself will cause a freeze like steam

Both of these tend to happen when I have a lot of things open, but if i'm on a fresh restart and it's the first application i open, then it's less prone to recreate the issue.

I have checked X logs and system logs and neither seem to mention anything about any crashes or hangs.

My guess is some nvidia driver issue or a memory issue, but I'm not really sure what would be my next thing to test/look for...
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue Mar 27, 2018 4:26 pm    Post subject: Reply with quote

This might not be helpful, but when I had a working Steam installation on Gentoo, I used the steam overlay and emerged the steam client and thereafter Steam updates were self-managed as they are on Windows. Did you do it this way?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Eniax
n00b
n00b


Joined: 06 Feb 2018
Posts: 23

PostPosted: Tue Mar 27, 2018 5:33 pm    Post subject: Reply with quote

audiodef wrote:
This might not be helpful, but when I had a working Steam installation on Gentoo, I used the steam overlay and emerged the steam client and thereafter Steam updates were self-managed as they are on Windows. Did you do it this way?



I don't think so. I just followed the Gentoo steam guide up to the point where you manually extract the tar and the client sets itself up. It does check for updates on it's own but I'm not using any special repository.

I guess I should have made this post in the desktop environment section since it's triggered by other sources as well, but steam is by far the most common culprit.

Can I just delete the steam directory from my home and add in the overlay, then emerge?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Wed Mar 28, 2018 1:19 am    Post subject: Reply with quote

As a standard question, is this problem reproducible on an untainted kernel?
Back to top
View user's profile Send private message
Eniax
n00b
n00b


Joined: 06 Feb 2018
Posts: 23

PostPosted: Wed Mar 28, 2018 2:13 am    Post subject: Reply with quote

Hu wrote:
As a standard question, is this problem reproducible on an untainted kernel?


I unfortunately do not have another machine in which to test the base kernel. I needed this kernel because my motherboard has ALC1220 codecs which are 4.11+.

If my 390.42 nvidia drivers work with the 4.9.x gentoo factory kernel, I can give it a shot. Can you confirm? Or would I have to go back and switch to nouveau etc.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Wed Mar 28, 2018 3:34 am    Post subject: Reply with quote

Proprietary drivers taint the kernel. You would need to test with Nouveau. You should be able to install both Nouveau and nVidia proprietary drivers side-by-side, and pick one at boot time.
Back to top
View user's profile Send private message
Eniax
n00b
n00b


Joined: 06 Feb 2018
Posts: 23

PostPosted: Wed Mar 28, 2018 4:27 am    Post subject: Reply with quote

Hu wrote:
Proprietary drivers taint the kernel. You would need to test with Nouveau. You should be able to install both Nouveau and nVidia proprietary drivers side-by-side, and pick one at boot time.


I've been suspicious of the nvidia driver freezing my X server. I didn't have such serious issues on Fedora, but the nvidia drivers did give me all sorts of hangs and other issues. I do often play StarCraft II, Dota, and Counter strike and while it's been some time since I've tried nouveau with these games, I've read that the nvidia driver performance is significantly better.

I've read the wiki which is how i got the nvidia driver installed, but i'm not sure how to get rid of it.
emerge --depclean nvidia drivers and then set VIDEO_CARDS = "nouveau (or nv)" in make.conf?

what about the /etc/X11/xorg.conf.d/nvidia.conf files? What about the eselsect set openGL nvidia? Will all of these things need to be edited or removed upon removal of the driver itself?

Also does nouveau/nvidia work better with certain cards? I am currently using a GTX1060, but I do have an older Kepler 680 which I can swap out.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Mar 28, 2018 12:19 pm    Post subject: Reply with quote

Although I am not an expert, I have some experience with Nvidia vs. Nouveau. If you really want good 3D and smooth framerates, you are better off getting the Nvidia drivers to work.

When I did manual kernel configs years ago, I occasionally ran into freezes/crashes/lockups with Nvidia and X, and it was always a matter of kernel modules and drivers. Now that I use genkernel (which still allows for complete control via --menuconfig) I don't have those issues.

So my advice is:

* genkernel the latest stable gentoo-sources-4.9, leave the defaults for now

* recompile latest nvidia-drivers against that (I have done this and the above step, this should work.) Do this by putting VIDEO_CARDS="nvidia" in make.conf and running emerge -uDN world

* eselect opengl nvidia

* eselect opencl nvidia

* restart X

* make sure the Nvidia drivers are loaded and working. If glxgears runs and nvidia-settings runs, success. glxgears will not run if 3D glx is not present and nvidia-settings will complain if the drivers are not in use

* run a non-Steam game that needs 3D. Doom3 demo, maybe?

* if all is good so far, play your Steam games. If you have issues at this point, you know it's Steam because you've proven that your system/Nvidia driver setup works.

Hope this helps.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Thu Mar 29, 2018 2:08 am    Post subject: Reply with quote

Due to ongoing non-cooperation from nVidia, the Nouveau driver isn't as good as many people would like. The nVidia proprietary drivers will likely give you better performance, if you can tolerate the considerable downsides they bring:
  • Sometimes incompatible with current kernels, requiring custom patches to get working
  • Sometimes responsible for severe brokenness, as reported here
  • May drop support for cards before the cards age out of useful life
Back to top
View user's profile Send private message
Eniax
n00b
n00b


Joined: 06 Feb 2018
Posts: 23

PostPosted: Thu Mar 29, 2018 4:22 pm    Post subject: Reply with quote

After some further testing, I find it to be intermittent. I switched steam to the steam-launcher from the overlay listed in the wiki guide. This version allows me to launch the steam client consistently in a variety of scenarios that previously caused issues without any freezing. Sometimes I can get a freeze if I open a bunch of apps like spotify/code::blocks etc quickly which definitely makes me think this is a driver issue.

Some games work, some don't. Namely Dota2 and Counter-Strike (i guess valve stuff works well) launch without issue. They seem to work without any problems, and must be launched from the client.

Witcher 3 requires a bunch of libraries I don't have installed so I didn't test that one.

Cities:skylines, and other games that have a steam prompt prior to launch will freeze the X server. Ones that ask about resolution, leveraging the beta version, etc.

System Shock 2 works, but only launched from the directory with the global version of wine rather than whatever version steam packages with it.

I was unable to downgrade my nvidia driver to the 387.xx that's still stable due to some error, something about gpl_intel (don't exactly recall) so I spose i'll stick with this one for now and mask any updates.

Quote:
* genkernel the latest stable gentoo-sources-4.9, leave the defaults for now


I've never been successful in getting genkernel to make a bootable kernel. glxgears did work and the drivers seem to be "functioning." While not ideal, I can drop into a shell and restart xdm. What really sucks is that X doesn't seem to log an error so there are no messages in any logs.

Thank you both for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum