Restarting I2C when touchpad is not working

January 11, 2022 - Reading time: ~1 minute

After I replaced the Clickpad of my Lenovo L440 with a touchpad (see https://mastodon.xyz/@nause_marc/107111989617471186) the Touchpad would not work occasionally under Debian when returning from suspend. I created a small script called restarti2c.sh with the following content:

sudo /sbin/rmmod i2c_i801 && sudo /sbin/modprobe i2c_i801

This restarts the I2C bus kernel module, which makes the touchpad work again. I run it whenever necessary.


Viewing the output of a C64 on a laptop via an STK1160 based video grabber

January 22, 2020 - Reading time: 2 minutes

I bought a cheap (< €15) USB 2.0 video grabber which is based on the SyntekSTK1160 chipset. My goal was to display the output of my Commodore 64 on the screen of my laptop. The cable which connects the C64 with the video grabber allows me to use an s-video signal.

Commodore 64 connected to Linux system via video grabber

Read more


Fixing failure of software upload to µController

December 5, 2019 - Reading time: ~1 minute

If uploading software from the Arduino IDE or the commandline via avrdude to a microcontroller like an Arduino or an ESP8266 fails due to missing access rights ("Permission denied"), what helps is either

sudo chmod a+rw /dev/ttyUSB0

or adding the user to the group "dialout":

sudo usermod -a -G dialout theuser

See: https://forum.arduino.cc/index.php?topic=495039.0


Repairing the file system of Debian after hard shutdown

October 14, 2019 - Reading time: ~1 minute

Sometimes after a hard shutdown the file system of my laptop is corrupted and Debian starts in maintenance mode.

What helps is repairing the file system using the command

fsck -y /dev/sda1

See: https://serverfault.com/questions/348315/debian-system-wont-boot-due-to-corrupt-file-system