[FIXED] Cinnamon 2.6 : power manager not working

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
papa33

[FIXED] Cinnamon 2.6 : power manager not working

Post by papa33 »

Hello,

I can't get the power manager to work from the control center :

Code: Select all

cinnamon-settings power
Python module

(cinnamon-settings.py:6287): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:157:38: Missing name of pseudo-class

(cinnamon-settings.py:6287): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:169:23: Missing name of pseudo-class
Loading Power module
Traceback (most recent call last):
  File "/usr/lib/cinnamon-settings/cinnamon-settings.py", line 582, in <module>
    window = MainWindow()
  File "/usr/lib/cinnamon-settings/cinnamon-settings.py", line 89, in wrapper
    res = func(*arg)
  File "/usr/lib/cinnamon-settings/cinnamon-settings.py", line 297, in __init__
    self.go_to_sidepage(cat, path)
  File "/usr/lib/cinnamon-settings/cinnamon-settings.py", line 115, in go_to_sidepage
    sidePage.build()
  File "/usr/lib/cinnamon-settings/bin/SettingsWidgets.py", line 329, in build
    self.module.on_module_selected()
  File "/usr/lib/cinnamon-settings/modules/cs_power.py", line 168, in on_module_selected
    self.build_battery_page()
  File "/usr/lib/cinnamon-settings/modules/cs_power.py", line 244, in build_battery_page
    if device[1] == UPowerGlib.DeviceKind.UPS and device_states[i] == UPowerGlib.DeviceState.DISCHARGING:
NameError: global name 'device_states' is not defined
Any ideas how to fix this?
Thanks in advance.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29595
Joined: Wed Jul 06, 2011 3:58 am

Re: Cinnamon 2.6 : power manager not working

Post by xenopeek »

Howdy. As Cinnamon 2.6 is still in public testing, please use GitHub to report issues. The developers work on GitHub. You can report the issue here (you'll need to register an account): https://github.com/linuxmint/Cinnamon/issues
Image
User avatar
clem
Level 12
Level 12
Posts: 4308
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Re: Cinnamon 2.6 : power manager not working

Post by clem »

It's ok no need. Fixed in master.
Image
Locked

Return to “Cinnamon”