Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with power management settings #251

Open
AveoCross opened this issue Feb 3, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@AveoCross
Copy link

commented Feb 3, 2019

 * csd version - 4.03+cindy
 * Distribution - LMDE 3 64bit

Issue
Power settings doesn't work anymore - when i click on "Power Settings" in System Settings nothing appears. And in battery menu i see my battery with "unknown" below. I can set screen brightness without issues and icon is refreshing battery percentage level fine.

Expected behaviour
I should have access to power management settings in system settings panel.

Other information
I think that's because i accidentally removed some packages but i don't know what.
I reinstalled cinnamon-settings-daemon and mint-meta-cinnamon.
When i type "csd-power" i'm getting:
(csd-power:5148): power-plugin-WARNING **: Unable to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(csd-power:5148): power-plugin-WARNING **: IsInhibited failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(csd-power:5148): power-plugin-WARNING **: IsInhibited failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(csd-power:5148): power-plugin-WARNING **: IsInhibited failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

@AveoCross

This comment has been minimized.

Copy link
Author

commented Feb 10, 2019

My friend, which is more linux-savy, did some testing and we're verified that its not a problem with missing packages but with too new packages. Out of the box, after installing LMDE 3 Cindy everything works fine, but after update power settings panel breaks.
Output of cinnamon-settings power:
aveo@aveotp:~$ cinnamon-settings power
True
Using pam module (python3-pampy)
Loading Power module
('/org/freedesktop/UPower/devices/battery_BAT0', 'SANYO', '92P1137', 2, '. GThemedIcon battery-good-symbolic gpm-battery-060 battery-good ', 55.0, 2153990960, 21888, 0)
Traceback (most recent call last):
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 619, in
window = MainWindow()
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 329, in init
self.go_to_sidepage(cat, path, user_action=False)
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 133, in go_to_sidepage
sidePage.build()
File "/usr/share/cinnamon/cinnamon-settings/bin/SettingsWidgets.py", line 123, in build
self.module.on_module_selected()
File "/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py", line 186, in on_module_selected
self.build_battery_page()
File "/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py", line 291, in build_battery_page
primary_settings.add_row(self.set_device_battery_primary(device))
File "/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py", line 380, in set_device_battery_primary
details = UPowerGlib.Device.state_to_string(state)
TypeError: Expected a UPowerGlib.DeviceState, but got int

Also - when i remove laptop's battery and run it on charger, settings panel works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.