You are not logged in.

#1 2024-01-28 13:51:55

Tnnshi
Member
Registered: 2024-01-20
Posts: 5

How to set BAT power usage to performance so its the same when its AC?

Hi,

I'm trying to get the best performance out of my computer/laptop right now and I realize that when I plug my laptop, the performance on arch increases significantly and I can feel smoother in my games.
The thing is when I'm plugged in, the temperature of course is higher and I wanted to play when the laptop is not plugged instead,
this is where the problem starts,

Arch linux slows down my system when I'm not plugged in to of course reserve power, but this is not the case because I wanted to use all the resource that my laptop has to offer.
I've tried some tlp to set so that when my pc is BAT it's running AC conf but it doesn't work,
I've also tried to change the status in charging/discharging in /system/class/power_supply (which is dumb ik) and doesn't work anyway..

So I'm kinda stuck.. If you can help that would be helpful.

Thank you in advance; PS im a beginner;

Offline

#2 2024-01-28 14:07:03

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: How to set BAT power usage to performance so its the same when its AC?

The drop in performance is probably because the battery can't supply enough power to keep the CPU & GPU running at full speed, which is something that can't really be fixed using software. It runs hotter when plugged in because more power is being dissipated, which again can't be mitigated using software without also reducing performance.

Scotty wrote:

Ye cannae change the laws of physics

What is your power supply rated at and what does powertop(8) say the consumption is on battery power?


Jin, Jîyan, Azadî

Offline

#3 2024-01-28 14:55:20

Tnnshi
Member
Registered: 2024-01-20
Posts: 5

Re: How to set BAT power usage to performance so its the same when its AC?

Head_on_a_Stick wrote:

The drop in performance is probably because the battery can't supply enough power to keep the CPU & GPU running at full speed

I mean if I had 100% and put it on performance mode it def gonna use more power but I can't imagine it's not enough power to supply the cpu and gpu.
I mean I use windows before and putting it on performance mode def made power go down faster but still can still be used for 1 hour +-.

Head_on_a_Stick wrote:

What is your power supply rated at and what does powertop(8) say the consumption is on battery power?

Umm.. I'm not really sure what is power supply rated but my powertop outputs

The energy consumed was 3.04 kJ

on BAT..

So are there really no way to set performance mode on battery?

Offline

#4 2024-01-28 15:11:28

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: How to set BAT power usage to performance so its the same when its AC?

Check the content of /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor to see if that changes when on battery compared to AC.

My system doesn't change that at all but I'm using sway. Which desktop environment are you using?

EDIT: so performance doesn't suffer at all under Windows when using the battery?

Last edited by Head_on_a_Stick (2024-01-28 15:16:47)


Jin, Jîyan, Azadî

Offline

#5 2024-01-28 15:16:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,642

Re: How to set BAT power usage to performance so its the same when its AC?

What desktop environment are you using?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2024-01-28 15:31:17

Tnnshi
Member
Registered: 2024-01-20
Posts: 5

Re: How to set BAT power usage to performance so its the same when its AC?

Head_on_a_Stick wrote:

Check the content of /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor to see if that changes when on battery compared to AC.

running cat on BAT returns 4 schedutil, and running cat on AC also returns 4 schedutils.

Head_on_a_Stick wrote:

My system doesn't change that at all but I'm using sway. Which desktop environment are you using?

wayland, or hyprland to be specific

Head_on_a_Stick wrote:

EDIT: so performance doesn't suffer at all under Windows when using the battery?

performance doesn't suffer when using the battery profile "performance" in the control panel

:( no fixes

Last edited by Tnnshi (2024-01-28 15:31:41)

Offline

#7 2024-01-28 15:46:42

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: How to set BAT power usage to performance so its the same when its AC?

You could try GNOME, that offers a "performance" profile that might do what you want. It doesn't work on your lap though, the machine has to be on a solid surface.

I think the profiles hook into firmware settings, if they are available, so it might work the same as under Windows. No idea how to do that under Hyprland though, perhaps ask the developers about it.


Jin, Jîyan, Azadî

Offline

#8 2024-01-28 21:54:03

Tnnshi
Member
Registered: 2024-01-20
Posts: 5

Re: How to set BAT power usage to performance so its the same when its AC?

I've used GNOME before, I haven't scratched the setting much but I felt a lot lighter in hyprland (idk) and it looks better anyway, i dont really want another weekend making config to match my current hypr config, so changing desktop environment is probably out of my choice,

but, Is it really no way to do it tho?
Like, could you maybe fool the computer to thinking that its on AC when it's just battery so that they just use the available energy to their maxes?

Last edited by Tnnshi (2024-01-28 21:54:32)

Offline

Board footer

Powered by FluxBB