Skip to content

Can't run a game and youtube at the same time anymore.

So within the last week or so I suspect something got updated that has broken being able to play a game on one monitor and watch youtube on another for me. Lately I've had World of Warcraft up on my main monitor, and Vivaldi browser open on a second with youtube or something going on it. But now if I have wow and youtube at the same time my fps lags like crazy, mouse is very unresponsive, and CPU utilization goes way up. I can leave the browser window open and just swap the second monitor to another workspace (using i3wm) with nothing open and framerate (fps never drops, thinking it's just frametimes, but regardless) goes back to normal, but the second I swap back to the workspace playing youtube the system becomes pretty much unusable. Looking in HTOP with the problem occurring - the command "/usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch" jumps up to 86% CPU utilization. I've tried downgrading nvndia and linux, and just tried downgrading the Xorg packages that were updated recently but none of that has helped. I was hoping someone could provide some troubleshooting advice. Thanks a bunch.

91 points25 comments
Open on Reddit
About this post
Posted
Archived
Score
91 · 94% up
Kind
Text
ID
kl9map

Author

1
posts
8
comments
0
media
View profile

25 comments

Then I'd try kill lightdm and retry with session started via startx. If it helps report to lightdm, if not something else will eat your CPU.

32 points

Thanks very much, this worked perfectly once I got it figured out. I'll report it to them. Thanks again!!!

23 points

I used to have similar issues with Nvidia and two monitors with different refresh rates- 144 Hz and 60 Hz. I only have the 144 Hz one now, though.

7 points

Interestingly enough this didn't happen to me with chromium, only with firefox, but I think I'm sitting on the same issue there

3 points

Yeah I've had certain driver updates cause me grief on that front as well, but moving both displays to 60hz didn't help this go round.

1 points

You may also want to experiment with the linux-lts kernel. There are some NVIDIA specific issues with the very latest series of kernels. If you have GRUB it is simple to start whichever kernel you want at boot time.

5 points

I had this problem and it went away when I switched from directx12 to directx11 in the game options.

3 points

I ran an full update today (28-12-2020), I haven't ran update in a month or so and games that I used to play and runs well got like 6fps after the update. Htop was showing 13 load average.

Following this https://wiki.archlinux.org/index.php/Arch_Linux_Archive#How_to_restore_all_packages_to_a_specific_date, I set the archive date back to 10-12-2020 and did a full system downgrade and it works for me.

1 points

So as mentioned, I rolled back my system and finally have time troubleshoot today. Here are my troubleshoot steps:

  1. First I open the aforementioned game, which is Hearts of Iron IV running on steam and noticed it runs at extremely low FPS
  2. nvidia-smi shows GPU usage is 0%.
  3. dmesg output is somewhat normal
  4. Switching to linux-lts kernel did not solve the problem.

So my initial intuition is that GPU modules are not loaded, or are not "connected". After some googling I have found that it is possible that there will be race condition between xorg and graphics driver. So immediately after that, I did

sudo systemctl restart lightdm and reopened the game and noticed that it runs smoothly. Therefore the problem that needs fixing is initial loading.

Further digging leads me to https://wiki.archlinux.org/index.php/NVIDIA#DRM_kernel_mode_setting, and all that is needed is to ensure everything nvidia is loaded as early as possible.

Updated my /etc/mkinitcpio.conf, run sudo mkinitcpio -P, reboot. Problem solved.

1 points

Off shoot question but why use some hypster wannabe browser that is just Chrome, instead of Firefox?

Pretty soon Firefox is gonna get flooded out of the market with these chromium rebranded browsers and Google will have total control of the internet.

-3 points

Because I like using it, don't care for Firefox much to be honest. I'd probably use Brave for everything if they get it working properly, but at this point I still have issues with it working right. Personal preference I suppose would be the answer to your question, although I don't think I'm going to provide an answer you'll like no matter what I say.

5 points

I feel you. However I quickly swapped away to Firefox once I found out brave was injecting / replacing affiliate links, and arbitrary html+javascript into websites. Which for me is a big no-no. To be fair I should have been using Firefox from the begging with ublock origin, no-script, etc .

3 points

just don't use display managers, make a script that waits a second after bootup and make it do "startx && exit"

-15 points

I just type startx after I log in. :D

6 points

You can add startx into your shell login file (bashrc or similar) and run it automatically on login (based on TTY number and display etc.

5 points

it was an example for people that don't want to see the tty at all, basically the idea is that you just boot up your pc and it starts in xorg without any terminal at all, some people are afraid even of the tty login screen

3 points

Pros:

Video driver problems/updates rarely affect your ability to log in

You can use your computer without X/Wayland if you want, and can reconfigure it if something breaks

You get a login prompt for free without needing to install another package

Might be easier to switch between X and Wayland

It’s text

Cons:

It’s text

You have to type a word after logging in

I have no idea how a display manager works or how to set one up

3 points
unknown author

Deleted before we saved it.

-26 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.