On 25/1/23 21:25, Frederic Muller wrote:
On 25/01/2023 17:01, Barry Scott wrote:

On 25/01/2023 06:30, Frederic Muller wrote:
Hi!

It seems i can only stay in Power Saver mode, balanced seems to be clickable but quickly reverts to Power Saver and Performance is not even clickable.

Any idea if there is any way to do that 'manually' as my laptop is really slow now.

I don't know the answer but have you looked for logs in the journal related to power?

I wonder if there are clues there as to what is happening.

Barry

I didn't. I however tried to run that auto-updater script I found on the topic and it doesn't work:

#!/bin/bash

dbus-monitor --system "type='signal',path='/org/freedesktop/UPower/devices/battery_BAT0',member='PropertiesChanged'" | while read LINE; do
    echo ${LINE} | grep battery_BAT0 | grep -q PropertiesChanged
    if [ $? -eq 0 ]; then
        BATT_STAT=$(dbus-send --print-reply=literal --system --dest=org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT0 org.freedesktop.DBus.Properties.Get string:org.freedesktop.UPower.Device string:State | awk '{ print $3; }')
        if [ $BATT_STAT -eq 1 ] || [ $BATT_STAT -eq 4 ]; then
            LEVEL=$(powerprofilesctl list | grep -q performance && echo "performance" || echo "balanced")
        elif [ $BATT_STAT -eq 5 ]; then
            LEVEL="balanced"
        else
            LEVEL="power-saver"
        fi
    echo "Changing power level to ${LEVEL}"
    gdbus call --system --dest net.hadess.PowerProfiles --object-path /net/hadess/PowerProfiles --method org.freedesktop.DBus.Properties.Set 'net.hadess.PowerProfiles' 'ActiveProfile' "<'${LEVEL}'>" > /dev/null
    [[ $? -ne 0 ]] && echo "Could not change power level to ${LEVEL}!"
    fi
done


Where do I find the logs?
Where are you finding the power settings. I'm not using a laptop but in KDE in the system settings under Power Management I don't seem to have the options you are referring to.

regards,
Steve


Thank you.

Fred
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to