Closed Alcartez closed 1 year ago
Disable secure boot
Run the following commands to create /etc/modules-load.d/ec_sys.conf and /etc/modprobe.d/ec_sys.conf and rebooted
OpenFreezeCenter-main$ sudo -- bash OpenFreezeCenter-main# cat ./etc/modules-load.d/ec_sys.conf >> /etc/modules-load.d/ec_sys.conf OpenFreezeCenter-main# cat ./etc/modprobe.d/ec_sys.conf >> /etc/modprobe.d/ec_sys.conf
Try installing dependencies manually
etc/modprobe.d and etc/modules-load.d is ec enabled.
No grub in Pop OS! any alternative for systemd-boot
OpenFreezeCenter-main$ sudo -- bash
OpenFreezeCenter-main# cat ./etc/modules-load.d/ec_sys.conf >> /etc/modules-load.d/ec_sys.conf
OpenFreezeCenter-main# cat ./etc/modprobe.d/ec_sys.conf >> /etc/modprobe.d/ec_sys.conf
Still nothing happens. Sending ss on whatsapp.
I fixed the code
Indicator.py
def install_package(package_name):
if dist == "debian" or dist == "ubuntu" or dist == "pop":
cmd = ["sudo", "apt", "install", package_name, "-y"]
elif dist == "fedora" or dist == "centos" or dist == "rhel":
cmd = ["sudo", "dnf", "install", package_name, "-y"]
elif dist == "opensuse" or dist == "sles":
cmd = ["sudo", "zypper", "install", package_name, "-y"]
elif dist == "arch":
cmd = ["sudo", "pacman", "-S", package_name, "--noconfirm"]
else:
raise Exception("Unsupported distribution")
subprocess.check_call(cmd)
Also Appindicator3-0.1 isn't in the default dependency installation
Here's the command to install it.
sudo apt-get install gir1.2-appindicator3-0.1
A little more generic code for indicator.py
import platform
import subprocess
def install_package(package_name):
dist = platform.linux_distribution()[0].lower()
if dist in ["debian", "ubuntu", "pop", "linuxmint", "kali", "mx", "pureos"]:
cmd = ["sudo", "apt", "install", package_name, "-y"]
elif dist in ["fedora", "centos", "rhel"]:
cmd = ["sudo", "dnf", "install", package_name, "-y"]
elif dist in ["opensuse", "sles"]:
cmd = ["sudo", "zypper", "install", package_name, "-y"]
elif dist in ["arch", "garuda", "manjaro"]:
cmd = ["sudo", "pacman", "-S", package_name, "--noconfirm"]
else:
raise Exception("Unsupported distribution")
subprocess.check_call(cmd)
Nothing happens after installing the dependencies using install_deps.sh
Nothing happens after this either