Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
power settings not working
power settings not working
Hi
On Stretch / KDE my system power settings are not working. My laptop suddently powers off without applying any of the differents steps I defined in the system configuration settings.
Thanks for your answers
On Stretch / KDE my system power settings are not working. My laptop suddently powers off without applying any of the differents steps I defined in the system configuration settings.
Thanks for your answers
-
- Posts: 108
- Joined: 2011-02-25 13:40
Re: power settings not working
Strange. My laptop was working OK with Stretch / Gnome, but with Buster / Gnome (clean install, not upgrade) I have automatic suspends. I saw a message that it would suspend due to inactivity. It seems that the settings are not applied. I've noticed that also other settings, not just the ones about power control, are not working, like switching the lock screen background. I have made my choices in settings, they seem to be accepted, but they don't get applied. Probably a bug.
-
- Posts: 154
- Joined: 2019-04-29 01:17
- Been thanked: 2 times
Re: power settings not working
Power management does strange things to one of my laptops so I have it disabled.
I know this isn't a fix but if you don't absolutely need it I would disable it.
I know this isn't a fix but if you don't absolutely need it I would disable it.
Re: power settings not working
Thanks for your replies. Power settings were working correctly before Stretch upgrade.
Ain't another way to manage that than KDE system settings page ? At command line I mean
Ain't another way to manage that than KDE system settings page ? At command line I mean
-
- Posts: 108
- Joined: 2011-02-25 13:40
Re: power settings not working
I think I've found out what's going on. Reading this discussion https://gitlab.gnome.org/GNOME/gnome-co ... /issues/22 at gitlab, it seems that a change was made in the gnome-settings-daemon in order to comply with European and American power-saving regulations. Now, the power settings are, to my understanding, in a per user bases. So, as long the user stays logged-in, the power settings of the user are been used. I think this also is the case if the user logs-in and then locks the screen (while still being logged-in). If the user logs out, then the GDM settings are the ones being used.
If you type this command in a terminal you can see the power settings for the GDM user, which in Debian is Debian-gdm (with a capital D):
Using this command I have changed the settings of GDM user for when the laptop is plugged in to 0 (which means never):
So now it looks like this:
Basically I changed the value of the line:
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 1200 to
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
Obviously the line org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 1200 is for when the laptop is on battery.
For now it seems to work.
Probably somewhere in there there must be the setting for the background that is being used when only GDM is running. I wish there was a GUI for changing these settings .
If you type this command in a terminal you can see the power settings for the GDM user, which in Debian is Debian-gdm (with a capital D):
Code: Select all
sudo -u Debian-gdm dbus-launch gsettings list-recursively org.gnome.settings-daemon.plugins.power
Code: Select all
sudo -u Debian-gdm dbus-launch gsettings list-recursively org.gnome.settings-daemon.plugins.power
org.gnome.settings-daemon.plugins.power power-button-action 'suspend'
org.gnome.settings-daemon.plugins.power idle-dim true
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 1200
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 1200
org.gnome.settings-daemon.plugins.power ambient-enabled true
org.gnome.settings-daemon.plugins.power idle-brightness 30
Code: Select all
sudo -u Debian-gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
Code: Select all
sudo -u Debian-gdm dbus-launch gsettings list-recursively org.gnome.settings-daemon.plugins.power
org.gnome.settings-daemon.plugins.power power-button-action 'suspend'
org.gnome.settings-daemon.plugins.power idle-dim true
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 1200
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
org.gnome.settings-daemon.plugins.power ambient-enabled true
org.gnome.settings-daemon.plugins.power idle-brightness 30
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 1200 to
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
Obviously the line org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 1200 is for when the laptop is on battery.
For now it seems to work.
Probably somewhere in there there must be the setting for the background that is being used when only GDM is running. I wish there was a GUI for changing these settings .
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: power settings not working
https://packages.debian.org/buster/dconf-editorEmperor Penguin wrote:I wish there was a GUI for changing these settings
deadbang
-
- Posts: 108
- Joined: 2011-02-25 13:40
Re: power settings not working
@Head_on_a_Stick: But can a user run dconf as another user? The problem is that, now, the dconf changes the user's settings only. But we need to change the Debian-gdm user settings to take effects when the system is on the login screen.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: power settings not working
Emperor Penguin wrote:But can a user run dconf as another user?
Code: Select all
sudo -u Debian-gdm dconf-editor
deadbang
-
- Posts: 154
- Joined: 2019-04-29 01:17
- Been thanked: 2 times
Re: power settings not working
If it just me or is it odd that an application like that never asks for permission or priveleges?(yes i realize running a gui as root has it's risks)Head_on_a_Stick wrote:https://packages.debian.org/buster/dconf-editorEmperor Penguin wrote:I wish there was a GUI for changing these settings
It just does whatever I tell it to without question.
So it scares me and I don'tuse it often.
-
- Posts: 108
- Joined: 2011-02-25 13:40
Re: power settings not working
I knew about this command, but it didn't work for me.
It stops with an error.
It works fine for the current user, but not as another user than the one running.
Code: Select all
sudo -u Debian-gdm dconf-editor
Code: Select all
No protocol specified
Unable to init server:
(dconf-editor:9709): Gtk-WARNING **: 11:12:26.227: cannot open display: :1
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: power settings not working
The program only applies settings for the normal user so it shouldn't ask for root privileges.theblueplll wrote:If it just me or is it odd that an application like that never asks for permission or priveleges?(yes i realize running a gui as root has it's risks)
It just does whatever I tell it to without question.
Are you using the Wayland session? Try with X instead.Emperor Penguin wrote:It stops with an error.
deadbang
-
- Posts: 108
- Joined: 2011-02-25 13:40
Re: power settings not working
@Head_on_a_Stick: I have tried it in both, even though by accident. My system sometimes recognize wayland and sometimes it doesn't and falls back to using X11 (that's another bug I'm having). But the command "sudo -u Debian-gdm dconf-editor" could not run as another user. Anyway, for now, the command line gave me a solution. Thank you.
Re: power settings not working
So the problem of that post was on KDE, not GNOME, does anyone know about system power settings not taken in account ?
Re: power settings not working
kmc@kmcs:~$ apt policy upower powerdevil
upower:
Installed: 0.99.9-3
Candidate: 0.99.10-1
Version table:
0.99.10-1 100
100 http://httpredir.debian.org/debian sid/main amd64 Packages
*** 0.99.9-3 100
100 /var/lib/dpkg/status
0.99.4-4+b1 500
500 http://httpredir.debian.org/debian stretch/main amd64 Packages
powerdevil:
Installed: 4:5.8.4-1
Candidate: 4:5.8.4-1
Version table:
4:5.14.5-1 100
100 http://httpredir.debian.org/debian sid/main amd64 Packages
*** 4:5.8.4-1 500
500 http://httpredir.debian.org/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status
upower:
Installed: 0.99.9-3
Candidate: 0.99.10-1
Version table:
0.99.10-1 100
100 http://httpredir.debian.org/debian sid/main amd64 Packages
*** 0.99.9-3 100
100 /var/lib/dpkg/status
0.99.4-4+b1 500
500 http://httpredir.debian.org/debian stretch/main amd64 Packages
powerdevil:
Installed: 4:5.8.4-1
Candidate: 4:5.8.4-1
Version table:
4:5.14.5-1 100
100 http://httpredir.debian.org/debian sid/main amd64 Packages
*** 4:5.8.4-1 500
500 http://httpredir.debian.org/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status
Re: power settings not working
The thread is a bit confusing.
Do you have both gnome and KDE installed ? Or KDE ?
Did you have a look in power settings of systemsettings5 ?
You mix Stretch and SID: compatibility problem ?
Do you have both gnome and KDE installed ? Or KDE ?
Did you have a look in power settings of systemsettings5 ?
You mix Stretch and SID: compatibility problem ?
Re: power settings not working
Well It' a KDE install but lookin at the install is a bit confusing. Looks to be a buster but stretch sources.lists with sid preferences . I don't know what has been done on that laptop :
Code: Select all
kmc@kmcs:~$ cat /etc/issue
Debian GNU/Linux buster/sid \n \l
kmc@kmcs:~$ cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 8 _stretch_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150908-22:00]/ stretch main
deb http://httpredir.debian.org/debian/ stretch main contrib non-free
deb-src http://httpredir.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
# stretch-updates, previously known as 'volatile'
deb http://httpredir.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ stretch-updates main contrib non-free
#backports
deb http://httpredir.debian.org/debian stretch-backports main contrib non-free
#Unstable
deb http://httpredir.debian.org/debian/ sid main contrib non-free
kmc@kmcs:~$ cat /etc/apt/preferences.d/testing
Package: *
Pin: release n=sid
Pin-Priority: 100
Re: power settings not working
Code: Select all
kmc@kmcs:~$ uname -a
Linux kmcs 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64 GNU/Linux
Code: Select all
sudo apt install acpid acpi-support-base acpi-support