Skip to content

Instantly share code, notes, and snippets.

View kikislater's full-sized avatar
🏄‍♂️

Sylvain POULAIN kikislater

🏄‍♂️
View GitHub Profile
@kikislater
kikislater / huawei_e8372_config.md
Created January 9, 2024 13:35 — forked from aayubkh/huawei_e8372_config.md
Huawei E8372 Linux Configuration and Setup

Dependencies

  1. usb_modeswitch, usb_modeswitch-data
  2. libusb1
  3. libusb-devel(Fedora), libusb-dev(Debian based)

Configuration

By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make sure you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):

    sudo su
    lsusb | grep Huawei
@kikislater
kikislater / 99-tlp.conf
Last active June 29, 2025 12:07
TLP for Lenovo Thinkpad P14s Gen 5 AMD (Works with T14 Gen 5 as well)
################################################################################
########### 2025 June 29 - TLP P14s Gen 5 AMD by Sylvain POULAIN ############
########### 2025: - Changed ondemand governor with reduced cpu freq ############
########### - Removed Wifi powersaving causing bugs
################################################################################
# Content of /etc/tlp.d/99-tlp.conf for P14s Gen 5 AMD
# (Also works with T14 Gen 5 : same hardware, same motherboard)
################################################################################
# Complete hardware list => https://linux-hardware.org/?probe=1c547a828f
################################################################################
@kikislater
kikislater / user.js
Last active May 22, 2025 05:43
Fast and energy efficient Firefox (Used on Thinkpad P14s Gen5 - Ryzen 7)
// === Basic UI ===
user_pref("browser.tabs.warnOnClose", false);
user_pref("browser.tabs.warnOnCloseOtherTabs", false);
user_pref("browser.tabs.drawInTitlebar", false);
// user_pref("browser.tabs.firefox-view", false);
user_pref("browser.aboutwelcome.enabled", false);
// === Performance ===
user_pref("layers.acceleration.disabled", true); // Ensure GPU acceleration if available
user_pref("layers.acceleration.force-enabled", false);