Slimbook Battery doesn't launch
Opened this issue · 1 comments
thegrasshopper104 commented
If I launch the app, I get this dialog and then nothing happens.
Installed from here.
OS: OpenSuse Tumbelweed
Device: Slimbook Hero
Cannot open log file /var/slimbookbattery.log, using /tmp/slimbookbattery.log
2024-06-10 16:58:39,009 - 779 - ERROR - TDP Controller not installed
2024-06-10 16:58:39,019 - 1786 - ERROR - Unexpected error
Traceback (most recent call last):
File "/usr/lib64/python3.11/configparser.py", line 805, in get
value = d[option]
~^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 1006, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 998, in __missing__
raise KeyError(key)
KeyError: 'saving_tdpsync'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1784, in __init__
self.set_ui()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 2000, in set_ui
self.general_page_grid = GeneralGrid(self)
^^^^^^^^^^^^^^^^^
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 715, in __init__
super(GeneralGrid, self).__init__(parent, *args, **kwargs)
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 117, in __init__
self.complete_values()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 844, in complete_values
button.set_active(config.getboolean("TDP", field))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 844, in getboolean
return self._get_conv(section, option, self._convert_to_boolean,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 824, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 819, in _get
return conv(self.get(section, option, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 808, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'saving_tdpsync' in section: 'TDP'
Cannot open log file /var/slimbookbattery.log, using /tmp/slimbookbattery.log
Using /etc/tlp.conf
2024-06-10 16:58:39,193 - aronkvh - <module>:79 - DEBUG - ******************************************************************************
2024-06-10 16:58:39,193 - aronkvh - <module>:83 - INFO - SlimbookBattery-Commandline, executed as: aronkvh
2024-06-10 16:58:39,193 - aronkvh - <module>:87 - DEBUG - Username: aronkvh - Homedir: /home/aronkvh
2024-06-10 16:58:39,193 - aronkvh - main:150 - DEBUG - Arguments: restore
Traceback (most recent call last):
File "/usr/lib64/python3.11/configparser.py", line 805, in get
value = d[option]
~^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 1006, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 998, in __missing__
raise KeyError(key)
KeyError: 'modo_actual'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/sudocommands.py", line 707, in <module>
main(sys.argv)
File "/usr/share/slimbookbattery/src/sudocommands.py", line 154, in main
battery_mode = config.get("CONFIGURATION", "modo_actual")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 808, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'modo_actual' in section: 'CONFIGURATION'
<Gtk.Grid object at 0x7f9bc6820300 (GtkGrid at 0x56395b5fa290)>
2024-06-10 16:58:39,214 - 779 - ERROR - TDP Controller not installed
2024-06-10 16:58:39,224 - 1796 - ERROR - Unexpected error
Traceback (most recent call last):
File "/usr/lib64/python3.11/configparser.py", line 805, in get
value = d[option]
~^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 1006, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 998, in __missing__
raise KeyError(key)
KeyError: 'saving_tdpsync'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1784, in __init__
self.set_ui()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 2000, in set_ui
self.general_page_grid = GeneralGrid(self)
^^^^^^^^^^^^^^^^^
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 715, in __init__
super(GeneralGrid, self).__init__(parent, *args, **kwargs)
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 117, in __init__
self.complete_values()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 844, in complete_values
button.set_active(config.getboolean("TDP", field))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 844, in getboolean
return self._get_conv(section, option, self._convert_to_boolean,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 824, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 819, in _get
return conv(self.get(section, option, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 808, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'saving_tdpsync' in section: 'TDP'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.11/configparser.py", line 805, in get
value = d[option]
~^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 1006, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 998, in __missing__
raise KeyError(key)
KeyError: 'saving_tdpsync'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1794, in __init__
self.set_ui()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 2000, in set_ui
self.general_page_grid = GeneralGrid(self)
^^^^^^^^^^^^^^^^^
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 715, in __init__
super(GeneralGrid, self).__init__(parent, *args, **kwargs)
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 117, in __init__
self.complete_values()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 844, in complete_values
button.set_active(config.getboolean("TDP", field))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 844, in getboolean
return self._get_conv(section, option, self._convert_to_boolean,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 824, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 819, in _get
return conv(self.get(section, option, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 808, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'saving_tdpsync' in section: 'TDP'
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 2067, in manage_events
self.apply_conf()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 2148, in apply_conf
self.general_page_grid.save_selection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'save_selection'
Using /etc/tlp.conf
2024-06-10 16:58:42,475 - aronkvh - <module>:79 - DEBUG - ******************************************************************************
2024-06-10 16:58:42,475 - aronkvh - <module>:83 - INFO - SlimbookBattery-Commandline, executed as: aronkvh
2024-06-10 16:58:42,475 - aronkvh - <module>:87 - DEBUG - Username: aronkvh - Homedir: /home/aronkvh
2024-06-10 16:58:42,475 - aronkvh - main:150 - DEBUG - Arguments: restore
Traceback (most recent call last):
File "/usr/lib64/python3.11/configparser.py", line 805, in get
value = d[option]
~^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 1006, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 998, in __missing__
raise KeyError(key)
KeyError: 'modo_actual'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/sudocommands.py", line 707, in <module>
main(sys.argv)
File "/usr/share/slimbookbattery/src/sudocommands.py", line 154, in main
battery_mode = config.get("CONFIGURATION", "modo_actual")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 808, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'modo_actual' in section: 'CONFIGURATION'
<Gtk.Grid object at 0x7f9bc6820680 (GtkGrid at 0x56395b7d05c0)>
2024-06-10 16:58:42,499 - 779 - ERROR - TDP Controller not installed
Traceback (most recent call last):
File "/usr/lib64/python3.11/configparser.py", line 805, in get
value = d[option]
~^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 1006, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/collections/__init__.py", line 998, in __missing__
raise KeyError(key)
KeyError: 'saving_tdpsync'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 2059, in manage_events
self.set_ui()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 2000, in set_ui
self.general_page_grid = GeneralGrid(self)
^^^^^^^^^^^^^^^^^
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 715, in __init__
super(GeneralGrid, self).__init__(parent, *args, **kwargs)
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 117, in __init__
self.complete_values()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 844, in complete_values
button.set_active(config.getboolean("TDP", field))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 844, in getboolean
return self._get_conv(section, option, self._convert_to_boolean,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 824, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 819, in _get
return conv(self.get(section, option, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/configparser.py", line 808, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'saving_tdpsync' in section: 'TDP'
necrx7 commented
Hello, I have the same problem. I'm on Debian Testing.
Cannot open log file /var/slimbookbattery.log, using /tmp/slimbookbattery.log
2024-07-22 16:06:37,398 - 779 - ERROR - TDP Controller not installed
2024-07-22 16:06:37,427 - 1784 - ERROR - Unexpected error
Traceback (most recent call last):
File "/usr/lib/python3.12/configparser.py", line 767, in get
value = d[option]
~^^^^^^^^
File "/usr/lib/python3.12/collections/__init__.py", line 1015, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/collections/__init__.py", line 1007, in __missing__
raise KeyError(key)
KeyError: 'saving_tdpsync'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1782, in __init__
self.set_ui()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1998, in set_ui
self.general_page_grid = GeneralGrid(self)
^^^^^^^^^^^^^^^^^
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 715, in __init__
super(GeneralGrid, self).__init__(parent, *args, **kwargs)
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 117, in __init__
self.complete_values()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 844, in complete_values
button.set_active(config.getboolean("TDP", field))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 806, in getboolean
return self._get_conv(section, option, self._convert_to_boolean,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 786, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 781, in _get
return conv(self.get(section, option, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 770, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'saving_tdpsync' in section: 'TDP'
Cannot open log file /var/slimbookbattery.log, using /tmp/slimbookbattery.log
Using /etc/tlp.conf
2024-07-22 16:06:37,812 - /bin/sh: 1: last: not found - <module>:79 - DEBUG - ******************************************************************************
2024-07-22 16:06:37,812 - /bin/sh: 1: last: not found - <module>:83 - INFO - SlimbookBattery-Commandline, executed as: /bin/sh: 1: last: not found
2024-07-22 16:06:37,812 - /bin/sh: 1: last: not found - <module>:87 - DEBUG - Username: /bin/sh: 1: last: not found - Homedir: /root/bin/sh: 1: last: not found
2024-07-22 16:06:37,813 - /bin/sh: 1: last: not found - main:150 - DEBUG - Arguments: restore
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/sudocommands.py", line 707, in <module>
main(sys.argv)
File "/usr/share/slimbookbattery/src/sudocommands.py", line 154, in main
battery_mode = config.get("CONFIGURATION", "modo_actual")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 759, in get
d = self._unify_values(section, vars)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 1132, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'CONFIGURATION'
<Gtk.Grid object at 0x7f4ad0f15cc0 (GtkGrid at 0xde0d750)>
2024-07-22 16:06:37,903 - 779 - ERROR - TDP Controller not installed
2024-07-22 16:06:37,923 - 1794 - ERROR - Unexpected error
Traceback (most recent call last):
File "/usr/lib/python3.12/configparser.py", line 767, in get
value = d[option]
~^^^^^^^^
File "/usr/lib/python3.12/collections/__init__.py", line 1015, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/collections/__init__.py", line 1007, in __missing__
raise KeyError(key)
KeyError: 'saving_tdpsync'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1782, in __init__
self.set_ui()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1998, in set_ui
self.general_page_grid = GeneralGrid(self)
^^^^^^^^^^^^^^^^^
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 715, in __init__
super(GeneralGrid, self).__init__(parent, *args, **kwargs)
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 117, in __init__
self.complete_values()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 844, in complete_values
button.set_active(config.getboolean("TDP", field))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 806, in getboolean
return self._get_conv(section, option, self._convert_to_boolean,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 786, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 781, in _get
return conv(self.get(section, option, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 770, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'saving_tdpsync' in section: 'TDP'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.12/configparser.py", line 767, in get
value = d[option]
~^^^^^^^^
File "/usr/lib/python3.12/collections/__init__.py", line 1015, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/collections/__init__.py", line 1007, in __missing__
raise KeyError(key)
KeyError: 'saving_tdpsync'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1792, in __init__
self.set_ui()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 1998, in set_ui
self.general_page_grid = GeneralGrid(self)
^^^^^^^^^^^^^^^^^
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 715, in __init__
super(GeneralGrid, self).__init__(parent, *args, **kwargs)
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 117, in __init__
self.complete_values()
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 844, in complete_values
button.set_active(config.getboolean("TDP", field))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 806, in getboolean
return self._get_conv(section, option, self._convert_to_boolean,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 786, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 781, in _get
return conv(self.get(section, option, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/configparser.py", line 770, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'saving_tdpsync' in section: 'TDP'
^CTraceback (most recent call last):
File "/usr/share/slimbookbattery/src/slimbookbatterypreferences.py", line 2406, in <module>
Gtk.main()
File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 1692, in main
with register_sigint_fallback(Gtk.main_quit):
File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__
next(self.gen)
File "/usr/lib/python3/dist-packages/gi/_ossighelper.py", line 237, in register_sigint_fallback
signal.default_int_handler(signal.SIGINT, None)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/bin/slimbookbattery", line 52, in <module>
main()
File "/usr/bin/slimbookbattery", line 49, in main
subprocess.run(['/usr/bin/env', 'python3', '/usr/share/slimbookbattery/src/slimbookbatterypreferences.py'])
File "/usr/lib/python3.12/subprocess.py", line 550, in run
stdout, stderr = process.communicate(input, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1201, in communicate
self.wait()
File "/usr/lib/python3.12/subprocess.py", line 1264, in wait
return self._wait(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 2053, in _wait
(pid, sts) = self._try_wait(0)
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 2011, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)