LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-21-2024, 02:43 PM   #1
sox
LQ Newbie
 
Registered: Jan 2019
Posts: 20

Rep: Reputation: Disabled
GPU performance


Hi,
Since very beginning as I installed kubuntu I have problem with youtube fhd 60fps stuttering. Last time I installed nvidia drivers using ubuntu-drivers autoinstall command. Now when I use performance setting youtube works very good, but battery is draining extremely fast. After switching to on demand or powersaveing mode battery is fine, but youtube videos are freezing as before.

How to deal with that? How to force system to use gpu only when it is really need? Truly believe this is possible because on debian distro everything was working fine out of the box without any additional configuration from user side.
 
Old 02-21-2024, 04:40 PM   #2
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 482

Rep: Reputation: 179Reputation: 179
Plug your laptop into the wall . At home all my laptops are on the wire. Even traveling, my laptop will normally be plugged in (hotel room, or where-ever). I guess for those times you aren't in range of a socket you could just put up with a smaller area on the screen and not go FHD or not watch video . Don't know of a software setting to do either or.
 
Old 02-21-2024, 08:24 PM   #3
ballsystemlord
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 214

Rep: Reputation: Disabled
Quote:
Originally Posted by sox View Post
Hi,
Since very beginning as I installed kubuntu I have problem with youtube fhd 60fps stuttering. Last time I installed nvidia drivers using ubuntu-drivers autoinstall command. Now when I use performance setting youtube works very good, but battery is draining extremely fast. After switching to on demand or powersaveing mode battery is fine, but youtube videos are freezing as before.

How to deal with that? How to force system to use gpu only when it is really need? Truly believe this is possible because on debian distro everything was working fine out of the box without any additional configuration from user side.
Is the laptop a dual GPU laptop? What GPU is it? What CPU is in the laptop? What quality of video are you getting from youtube?

If you just have to change the power governor, why not just create a simple script to handle that for you? The Linux Kernel, it's drivers, and the whole OS, have no idea what you're doing in Firefox. So they have no idea when to change the power governor.

That being said, I think that there is more going on here than just a power governor problem. But I need to know more about the system first.
 
Old 02-22-2024, 02:27 PM   #4
sox
LQ Newbie
 
Registered: Jan 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Cpu i7-4710HQ and gpu geforce 860m. Switching gpu mode requires system reboot. I have problems with 1080p60 youtube videos.

Fun fact is it sometimes works fine only on integrated gpu itself. I was thinking it depends on battery charge level, but it is not. Sometimes youtube plays well on low battery without dc plugged in, sometimes it stuttering on fully charged battery and plugged power adapter. Also it not depends on temperature. I was observing it for months, but couldn't find anything specific, totally random.
 
Old 02-25-2024, 11:31 PM   #5
ballsystemlord
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 214

Rep: Reputation: Disabled
You mentioned that you used nvidia drives before, are you using the nvidia proprietary drivers now?

You mentioned that this problem did not happen before, can you describe the system that you were using before? How is it different from the current system?

To fix this, the easiest way is to figure out what thing in the new system is different and is causing this problem.
 
Old 02-26-2024, 02:23 PM   #6
sox
LQ Newbie
 
Registered: Jan 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
I'm using open drivers installed via ubuntu-drivers autoinstall command, before i had no gpu drivers installed at all. Previously i was using debian 10 and 11, also on windows it was fine. On debian there were no gpu drivers installed either. Right now I have kubuntu 22.04 lts and this problem occurs from the very beginning.


It would be perfect if there was no need to use gpu at all to run youtube, but I think it may be easier to workaround this issue with it.
 
Old 02-26-2024, 09:00 PM   #7
ballsystemlord
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 214

Rep: Reputation: Disabled
Okay. Install Debian 10 onto a USB thumb drive. This will take a while to install, so you may want to grab a coffee or something while you're waiting.
Then boot the Debian 10 system and verify that youtube videos play without issue.

Now you should have 2 systems, one that we know works, and one that we know doesn't work properly. If that is true, then on each system run:
Code:
uname -a > tmp.txt; sudo lsmod >> tmp.txt;
post the results of this command line here. They will be in the file "tmp.txt" on each system. Don't forget to tell us which set of results belong to which system.

This will tell us which kernels and GPU drivers each system is running.

Also, do both systems use Xorg? Or does one use Xorg and one wayland? Or do both use wayland?
If you don't know, you can find out by running, on each system:
Code:
ps -e | grep -Ei '(xorg|wayland)'

Last edited by ballsystemlord; 02-27-2024 at 10:48 PM.
 
Old 02-29-2024, 04:01 AM   #8
sox
LQ Newbie
 
Registered: Jan 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Outputs in attachment, both are xorg. Before making output I run youtube and both were working properly.
Attached Files
File Type: txt deb10.txt (5.4 KB, 1 views)
File Type: txt kub22.txt (6.0 KB, 0 views)
 
Old 02-29-2024, 04:08 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by sox View Post
I'm using open drivers installed via ubuntu-drivers autoinstall command, before i had no gpu drivers installed at all. Previously i was using debian 10 and 11, also on windows it was fine. On debian there were no gpu drivers installed either. Right now I have kubuntu 22.04 lts and this problem occurs from the very beginning.


It would be perfect if there was no need to use gpu at all to run youtube, but I think it may be easier to workaround this issue with it.
It means - at least for me - your video drivers are not installed properly. Or probably you have a codec related issue. Your host runs some kind of software emulation instead of using your real hardware, the capabilities of your gpu.

Last edited by pan64; 02-29-2024 at 05:40 AM.
 
Old 02-29-2024, 10:09 PM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by sox View Post
before i had no gpu drivers installed at all.
No Gnu/Linux system with sufficiently old (somewhere in the 6-12 months older than the distro and kernel range) but non-ancient AMD, Intel or NVidia GPUs who has working X ever has no graphics drivers installed. The installer by default always and necessarily installs a default set of FOSS graphics drivers based upon any identifiable GPUs found. However, when two GPUs are present, the installer may not do so well in determining which drivers to install. Typically, special software and/or drivers are required in these situations that the installer won't do at all or won't get right, and the admin must put in some post-installation effort. Intel + NVidia generically speaking means Optimus, and typically implies Prime, depending on distro naming. This primer may help understand.

Last edited by mrmazda; 02-29-2024 at 10:36 PM.
 
  


Reply



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
Handbrake GPU Acceleration - Inexpensive AMD GPU for Old PC Mr. Macintosh Linux - Software 8 01-03-2018 03:11 PM
Does blacklisting discrete GPU driver completely disables discrete GPU, or using acpi_call is better decision? SuperPrower Linux - Hardware 2 08-21-2017 08:32 PM
how can I setup the amd GPU as a default gpu instead of intel graphics? divinefishersmith Linux - Newbie 33 08-22-2015 06:03 PM
Tried to swap GPU in HP workstation. GPU not working good. LexMK Linux - Hardware 1 06-21-2013 06:59 PM

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

All times are GMT -5. The time now is 01:10 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