Skip to content

Instantly share code, notes, and snippets.

@chrische
chrische / status.py
Last active May 3, 2022 09:07
Swaybar Status Line Script
#!/usr/bin/env python
# A status line script
# Works well with Swaybar
#
# Created by chrische (https://github.com/chrische)
# Inspired by: https://unix.stackexchange.com/questions/473788/simple-swaybar-example#520995
from datetime import datetime
from psutil import sensors_battery
from socket import gethostname, gethostbyname
@chrische
chrische / notes-00-lenovo-thinkvision-p44w-10-linux-update.md
Last active June 7, 2023 10:45
How to update Lenovo ThinkVision P44w-10 to the newest firmware under Linux

The Situation

Connecting a ThinkPad X1 Carbon 7th Generation with a ThinkVision P44w-10 monitor via USB-C on both ends creates power delivery and screen blanking issues. According to Lenovo's support website this issue affects "some ThinkPads including X1 and X1 Yoga and other notebooks by USB Type C" and "P44w-10 and Y44w-10 monitors". Furthermore, it does not need to be applied to monitors manufactured after December 1st 2020. In case the monitor's firmware is below version LT1.5, it is recommended to be updated first. Lenovo published instructions on how to update the monitor on Windows, using WinISP. However, there does not seem to be an applicable guide for Linux yet.

This document is work in progress. Executing the following commands may damage your hardware and/or leave it in an undefined state. The author is not liable for any damage done.

$ dmesg