Tlpui doesnt open and i dont know if its working

when i try to open tlpui from terminal it says this and doesnt open:

Traceback (most recent call last):
  File "/usr/bin/tlpui", line 33, in <module>
    sys.exit(load_entry_point('TLPUI==1.4.0.post1', 'gui_scripts', 'tlpui')())
  File "/usr/lib/python3.10/site-packages/tlpui/", line 31, in main
  File "/usr/lib/python3.10/site-packages/tlpui/", line 41, in init_tlp_file_config
    settings.tlpconfig_defaults = get_tlp_config_defaults(tlpversion)
  File "/usr/lib/python3.10/site-packages/tlpui/", line 27, in get_tlp_config_defaults
    tlpconfig_defaults = extract_default_tlp_configs(f"{settings.workdir}/defaults/tlp-{tlpversion}.conf")
  File "/usr/lib/python3.10/site-packages/tlpui/", line 41, in extract_default_tlp_configs
    fileopener = open(filename)
FileNotFoundError: [Errno 2] no such directory: '/usr/lib/python3.10/site-packages/tlpui/defaults/tlp-1_5.conf'

this happened after an system update

sudo pacman -R tlpui && sudo pacman -S tlpui

didn’t work.

It probably has to do with the Python upgrade. I’ve notified the package maintainer to come and take a look at this thread.


It appears to be a version mismatch with tlp and tlpui.

What is the output of:

pacman -Qi tlp tlpui
Name : tlp
Version : 1.5.0-2
Description : Linux Advanced Power Management
Architecture : any
Licenses: GPL2
Groups : None
Provided: None
Dependencies: hdparm iw pciutils perl rfkill systemd usbutils
Optional Dependencies: acpi_call: ThinkPad battery functions, Sandy Bridge and
                         bash-completion: Bash completion [installed]
                         ethtool: Disable Wake On Lan
                         smartmontools: Display S.M.A.R.T. data in tlp-stat
                         tp_smapi: ThinkPad battery functions
                         x86_energy_perf_policy: Set energy versus performance
                         policy on x86 processors
Needed: tlpui
Optional: None
Conflicts : laptop-mode-tools pm-utils
Changed : None
Installation Size: 459.83 KiB
Packer : Mark Wagie <>
Build Date : Wed 12 Jan 2022 07:14:28
Upload Date : Fri 14 Jan 2022 02:34:55
Installation Reason : Directly installed
Setup Script: Yes
Verified by: Signature

Name : tlpui
Version :
Description : A GTK user interface for TLP written in Python
Architecture : any
Licenses: GPL2
Groups : None
Provided: None
Dependencies: tlp python-gobject
Preferential Dependencies: None
Required: None
Optional: None
Conflicts : None
Changed : None
Installation Size: 1010.12 KiB
Packer : Mark Wagie <>
Build Date : Mon 13 Dec 2021 08:02:14
Upload Date : Sat Jan 22, 2022 02:05:17
Installation Reason : Directly installed
Setup Script: No
Verified by: Signature

Just as I suspected. You have tlp 1.5.0 with tlpui 1.4.0 which is not compatible with tlp 1.5.0.

Apparently I forgot to push tlpui 1.5.0 to stable, sorry about that. You’ll see tlpui 1.5.0-1 in the stable branch here shortly.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.