Steam Deck
Cesese 2022年3月16日 8時55分
5
14
2
2
5
Battery Charge Limit
Please allow us to set charge limits on the Steam Deck. It'd be nice if we could do it directly from SteamOS, but even just getting it on the BIOS would be a good start. The best would be, ontop of getting an option in the KDE Advanced Power Settings, to also make it into Steam's power settings menu (with FPS limiting etc.)
I plan on using my SteamDeck a lot plugged in, so I don't want to charge it to 100% when doing that.
< >
76-90 / 116 のコメントを表示
~Senpai 2023年11月19日 10時47分 
NGniusness の投稿を引用:
I guess I should do my due diligence and bump this too. But to not make it low effort, here's some stuff to add to the conversation too.

I'd also love to have this in vanilla SteamOS, since there's obviously demand for it based on the amount of people who have asked me (the PowerTools dev) about the setting. I'm pretty hesitant about recommending this to the average user though, since the default battery charge behaviour is quite good and prevents some issues that can come up if you never let the battery fully charge & discharge.

~Senpai の投稿を引用:
EDIT: One more update here because this is REALLY interesting - It looks like PowerTools recognises if you're on SteamOS 3.5 and alters this setting directly! So previously where PowerTools charge limit would not work with the Deck turned off, now it DOES!

This was added in PowerTools v1.4.0, but it's got a sort of dumb bug: it doesn't disable the charge limit when you turn it off in the PowerTools UI. Should be fixed in next PowerTools update.

For older kernels, PowerTools will fallback to the old slightly sketchy way of setting the battery limit by directly talking to the battery management chip. For people who like the vanilla experience, this is technically possible to do without PowerTools but it's a bit complicated so I don't want encourage regular users to do it. If you're an advanced user, the implementation is the last part of this file https://git.ngni.us/NG-SD-Plugins/PowerTools/src/branch/main/backend/src/settings/steam_deck/util.rs#L104
(e.g. call set(Setting::ChargeMode, ChargeMode::Idle as u8) to do passthrough charging, set(Setting::ChargeMode, ChargeMode::Normal as u8) for regular charging).

Jiggy007 の投稿を引用:
Is the SteamDeck able to enter PSU-mode while docked and plugged to the PSU (PSU = Power Supply Unit / Charger)?

What I want, is: Steamdeck stops using battery when it is in PSU Mode. And I can set a Threshold to not charge the battery while being in PSU Mode. Like.. Max charge 80%. And only start charging when below 75%. And when in PSU Mode, Battery wont be used, AND wont be charged either and just stays at.. lets say 78% (according to the set threshold)

By default, the Steam Deck does this at 90%, though it will charge up to 100% when it goes below 90%. Generally, you don't need to change this since that's a quite reasonable limit. It's commonly called passthrough mode, since the power from the charger is passed directly through to the Steam Deck hardware, bypassing the battery.
Hi NGniusness, with 3.5 coming to stable I've seen a few more people reporting the issue of not being able to turn off the charge limit in Powertools, do you happen to have an ETA on when this might be addressed?

Because of how much I've posted about this in various channels people are now coming to my posts asking about it so I figured I'd try to come to the source :P
NGniusness 2023年11月21日 15時28分 
~Senpai の投稿を引用:
Hi NGniusness, with 3.5 coming to stable I've seen a few more people reporting the issue of not being able to turn off the charge limit in Powertools, do you happen to have an ETA on when this might be addressed?

Because of how much I've posted about this in various channels people are now coming to my posts asking about it so I figured I'd try to come to the source :P
No ETA sorry. The next update is going to be a big one and I only work on PowerTools in my spare time.
~Senpai 2023年11月21日 16時22分 
NGniusness の投稿を引用:
~Senpai の投稿を引用:
Hi NGniusness, with 3.5 coming to stable I've seen a few more people reporting the issue of not being able to turn off the charge limit in Powertools, do you happen to have an ETA on when this might be addressed?

Because of how much I've posted about this in various channels people are now coming to my posts asking about it so I figured I'd try to come to the source :P
No ETA sorry. The next update is going to be a big one and I only work on PowerTools in my spare time.
The transparency is always appreciated :) Thank you
What is the default value for max_charge_level? Is it 0?
I set it at zero and it looks to be ok, but I have one problem:

When the battery is above 90%, if I plug it in I see the green check mark for about 5-10 seconds, and then it goes right back to charging.

Did I miss something that I need to do to get the deck's charging to behave as factor default?
SpazShark の投稿を引用:
What is the default value for max_charge_level? Is it 0?
I set it at zero and it looks to be ok, but I have one problem:

When the battery is above 90%, if I plug it in I see the green check mark for about 5-10 seconds, and then it goes right back to charging.

Did I miss something that I need to do to get the deck's charging to behave as factor default?

Isnt that the default behaviour? on first plug in, it will charge to 100%. And when you let it plugged in, it will just use passthrough. It was always like this for me.

And I checked the hwmon3 settings on SteamOS 3.5.7 (yeah, the max charge settings were moved from hwmon4 to hwmon3 in 3.5.7). I never used charge limit on that Deck, and the default setting said it was set to "0"

But everyone is saying you have to set it to 100 for default. I am kinda confused now, too.
最近の変更はJiggy007が行いました; 2023年11月25日 11時38分
0 means that the charge limit is disabled.
Jiggy007 2023年11月26日 12時46分 
Aviated Views の投稿を引用:
0 means that the charge limit is disabled.

Hello, thanks for that info. So, it is safer to set it back to 0, or to 100, when I want to set it back to default, so, Steam Deck Charge behaviour will be default again (the passthrough at 100% down to 90%, where it is not charged anymore etc)
boatnik 2023年11月29日 14時49分 
Jiggy007 の投稿を引用:
Aviated Views の投稿を引用:
0 means that the charge limit is disabled.

Hello, thanks for that info. So, it is safer to set it back to 0, or to 100, when I want to set it back to default, so, Steam Deck Charge behaviour will be default again (the passthrough at 100% down to 90%, where it is not charged anymore etc)

Thanks for posting that your default value was 0 on a deck that never had the charge limit set. I'm also resetting mine back to 0 for now, but also interested in the "proper" default value (0 or 100).
boatnik の投稿を引用:
Jiggy007 の投稿を引用:

Hello, thanks for that info. So, it is safer to set it back to 0, or to 100, when I want to set it back to default, so, Steam Deck Charge behaviour will be default again (the passthrough at 100% down to 90%, where it is not charged anymore etc)

Thanks for posting that your default value was 0 on a deck that never had the charge limit set. I'm also resetting mine back to 0 for now, but also interested in the "proper" default value (0 or 100).

I can confirm that echo 0 is the default value. Charged my steam deck to 100% and let it plugged in. The battery went down to 99, 98, 97 with passthrough.
Tony 2023年12月28日 1時29分 
I can control my charge limit with PowerTools on 3.5.
~Senpai の投稿を引用:
JDGBOLT の投稿を引用:
Just to throw it out there, the newest deck Linux 6.1 kernels that are inside of the main channel which will eventually launch as 3.5 does have charge limit functionality in place. I currently have my deck setup to have a 90% charge limit, which it'll drop to 80% if it's been plugged in for a while, which seems a decent balance of increasing battery longevity while also still keeping a usable amount of battery life. You just have to do like>

echo 90 > /sys/class/hwmon/hwmon4/max_battery_charge_level

as root and it will stick around and stay that way even when the deck is off or asleep, as it directly talks to the deck's onboard microcontroller that handles the charging, so mine is always limited to 90%. They will probably put in a setting in steamos itself but just thought I would say it's possible right now to have a battery charge limit if you don't mind running the 3.5 prerelease.
Just coming back here to update this:

With the non-dev preview branch now updated to 3.5, you may run into a permissions issue when trying to change this setting in Konsole:

sudo echo 80 > /sys/class/hwmon/hwmon4/max_battery_charge_level
bash: /sys/class/hwmon/hwmon4/max_battery_charge_level: Permission denied

Apparently the ">" operator attempts to run before sudo, meaning that you technically aren't running this command as root and it fails.

To fix this, use this command instead:

echo 80 | sudo tee /sys/class/hwmon/hwmon4/max_battery_charge_level

You can verify this is set with the following command:

cat /sys/class/hwmon/hwmon4/max_battery_charge_level

Happy charge limiting!

EDIT: One more update here because this is REALLY interesting - It looks like PowerTools recognises if you're on SteamOS 3.5 and alters this setting directly! So previously where PowerTools charge limit would not work with the Deck turned off, now it DOES!

I'll keep an eye on things incase I'm wrong but that's a HUGE W for PowerTools if this is true.

Thanks!!! This is almost what I was looking for.

Power Tools has a bug that doesn't allow you to disable the feature. I tried your solution and it didn't work, but I found out that on my version, max_battery_charge_level is on hwmon3 instead of hwmon4.

If you just change the hwmon4 for hwmon3, this works!

If anybody has had the same issue as me, and wants to restore to default, default is 0 (which allows max_battery_charge_level to 100. 0 means off in this case, i.e. no max battery charge level.
+1
resurrection protocols engaged
To the top!
< >
76-90 / 116 のコメントを表示
ページ毎: 1530 50