Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Thinkfan for Thinkpads #25

Open
2 tasks
Tracked by #17
boredsquirrel opened this issue Jan 15, 2023 · 4 comments
Open
2 tasks
Tracked by #17

Thinkfan for Thinkpads #25

boredsquirrel opened this issue Jan 15, 2023 · 4 comments
Assignees
Labels
contributors welcome deep mod includes in depth tweaks | not simple tweaks good first issue Good for newcomers hardware related eg drvs, improvements, patches for hardware priority prioritized system wide modification program option that will modify a system wide setting
Milestone

Comments

@boredsquirrel
Copy link
Collaborator

boredsquirrel commented Jan 15, 2023

sudo rpm-ostree install PyQt5 lm_sensors

sudo printf """thinkpad_acpi fan_control=1""" >> /etc/modprobe.d/thinkpad_acpi.conf
  • function to check if a laptop is thinkpad or not
  • install dependencies and echo fan control in acpi.conf
@iaacornus iaacornus added enhancement good first issue Good for newcomers priority prioritized labels Jan 23, 2023
@iaacornus
Copy link
Collaborator

we should also be able to determine whether the laptop is thinkpad or not

@iaacornus iaacornus pinned this issue Jan 29, 2023
@iaacornus iaacornus added this to the 0.1-alpha milestone Jan 29, 2023
@iaacornus
Copy link
Collaborator

can you implement this on python

@iaacornus iaacornus unpinned this issue Feb 2, 2023
@iaacornus iaacornus added the system wide modification program option that will modify a system wide setting label Feb 2, 2023
@boredsquirrel
Copy link
Collaborator Author

in bash:

sudo dmidecode -s system-family

should show "ThinkPad xxxxx"

in python:

import subprocess

output = subprocess.check_output(command.split()).decode().strip()

# Check if the system family is "ThikPad"
if output == "ThinkPad":
    print("Model number is Thinkpad, installing ThinkFan...")
    # following commands
else:
    print(f"Model number is {output}, skipping commands...")

we could also include multiple models here with various fixes.

AMD Ryzen

Framework Fanctl

Acer Article about EC (lots of projects for specific models existing, dont know if recommended, obsolete, needed etc. Acer Fan controller

HP Fan ctl

Microsoft surface: completely different chapter, custom Kernel etc.

We should implement some sort of "this is not implemented yet" placeholder for these commands

@iaacornus iaacornus added hardware related eg drvs, improvements, patches for hardware deep mod includes in depth tweaks | not simple tweaks labels Mar 4, 2023
@boredsquirrel boredsquirrel closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2023
@boredsquirrel boredsquirrel reopened this Mar 22, 2023
@boredsquirrel
Copy link
Collaborator Author

boredsquirrel commented Mar 22, 2023

please tag as "infos only, not planned" or "contributions welcome" or something

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
contributors welcome deep mod includes in depth tweaks | not simple tweaks good first issue Good for newcomers hardware related eg drvs, improvements, patches for hardware priority prioritized system wide modification program option that will modify a system wide setting
Projects
None yet
Development

No branches or pull requests

2 participants