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.
About this post
- Posted
- Archived
- Score
- 91 · 94% up
- Kind
- Text
- ID
- kl9map
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.
Thanks very much, this worked perfectly once I got it figured out. I'll report it to them. Thanks again!!!
In my case, disabling hardware acceleration of every supported app helped.
Note that this may significantly increase CPU load and decrease battery life.
Laptop plugged in 24/7 masterrace ;)
This is the way.
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.
Interestingly enough this didn't happen to me with chromium, only with firefox, but I think I'm sitting on the same issue there
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.
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.
I had this problem and it went away when I switched from directx12 to directx11 in the game options.
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.
So as mentioned, I rolled back my system and finally have time troubleshoot today. Here are my troubleshoot steps:
nvidia-smishows GPU usage is 0%.dmesgoutput is somewhat normallinux-ltskernel 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 lightdmand 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
nvidiais loaded as early as possible.Updated my
/etc/mkinitcpio.conf, runsudo mkinitcpio -P, reboot. Problem solved.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.
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.
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 .
just don't use display managers, make a script that waits a second after bootup and make it do "startx && exit"
I just type startx after I log in. :D
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.
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
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
Deleted before we saved it.