YoCodingMonster / OpenFreezeCenter-Lite

OpenFreezeCenter-Lite allows users to read/write and control the EC of laptops, specially MSI!
MIT License
15 stars 3 forks source link

ISSUE #6 i5-11400H - MSI GF63 Thin 11UC - Arch Linux #7

Open onlymikey opened 2 months ago

onlymikey commented 2 months ago

Device: MSI GF63 Thin 11uc OS: Arch Linux Desktop: Hyprland

I'm getting this weird log on nohup.out when executing the python script:

        1 :- Close this(Before closing read all the steps)
        2 :- boot into windows
        3 :- set the fan profile to auto
        4 :- boot back to linux and then [SELECT NO]1 -> Set Fan Profile
2 -> Battery charge threshold
3 -> Monitorting
Choise -> Traceback (most recent call last):
  File "/home/Mikey/Desktop/OFC-l/OpenFreezeCenter-Lite.py", line 139, in <module>
    CONFIG_FILE = open(PATH_TO_CONFIG, "r")
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/Mikey/Desktop/OFC-l/config.py'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/Mikey/Desktop/OFC-l/OpenFreezeCenter-Lite.py", line 145, in <module>
    CONFIG.append(global_var_check(CHOICE, LINE_YES, LINE_NO))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/Mikey/Desktop/OFC-l/OpenFreezeCenter-Lite.py", line 130, in global_var_check
    INPUT = input(CHOICE)
            ^^^^^^^^^^^^^
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/Mikey/Desktop/OFC-l/OpenFreezeCenter-Lite.py", line 157, in <module>
    function()
  File "/home/Mikey/Desktop/OFC-l/OpenFreezeCenter-Lite.py", line 115, in function
    FUNC = int(input("1 -> Set Fan Profile\n2 -> Battery charge threshold\n3 -> Monitorting\nChoise -> "))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 9] Bad file descriptor

All dependencies are installed, also secure boot is disabled and ec_sys module is loaded