front | idx | new | login |

Choose default ALSA card


defaults.pcm.!card 1
defaults.ctl.!card 1

Card number can be checked from e.g. alsamixer or /proc/asound/cards.

#public #note


disable touchpad

Disabling X240 synaptics touchpad in thinkpad/lenovo. The problem is that the buttons are parts of the touchpad, so one can't just disable the whole touchpad.

  • sudo vi /usr/share/X11/xorg.conf.d/50-synaptics.conf
  • Change SoftButtonAreas within InputClass to Option "SoftButtonAreas" "64% 0 1 42% 36% 64% 1 42%"
  • add Option "AreaBottomEdge" "1" to disable the bottom of the touchpad
  • save and re-login
#public #note

wicd debian

intall debian w/ e.g. xfce4

sudo install rcconf

sudo rcconf, check that networkmanager is disabled or not installed

check that /etc/network/interfaces only has lo configured

sudo apt-get install wicd-curses wicd wicd-cli

install linux firmware package if needed

sudo /etc/init.d/wicd start

edit /etc/wicd/manager-settings.conf

  • defined wireless_interface (wlan0 likely)
sudo wicd-curses (or use via notification area) to connect

#public #note


Qemu Linux Curses Guest

Framebuffer needs to be disabled with -curses, or you'll just get something like "1024x768 Graphics Mode".

Disable framebuffer module loading in Linux:

  • echo 'blacklist vga16fb' >> /etc/modprobe.d/blacklist-fdev.conf
Disable framebuffer in grub:
  • edit /etc/default/grub
  • update GRUB_CMDLINE_LINUX_DEFAULT="fbcon=map:99 text"
  • uncomment GRUB_TERMINAL=console
  • sudo update-grub
#public #note

sshfs fuse mount


sudo apt-get install sshfs
sudo usermod -aG fuse $(whoami) # if necessary


sshfs user@the.server.tld:dir mountpoint


fusermount -u mountpoint

#public #note


Proprietary JDK on Debian

In case you must use the proprietary Oracle JDK:

  • grab the JDK
  • sudo apt-get install java-package
  • make-jpkg downloadedpackage.tar.gz
    • may need to install some additional dependencies before this succeeds
  • install the package. e.g: sudo dpkg -i oracle-java8-jdk_8u92_amd64.deb
  • run update-alternatives for java if necessary
#public #note

Resurrecting a T450 back to life

This probably holds also for other Lenovo Thinkpads.


Machine won't boot. Nothing seems to bring it back to life. Brick state.

Common fix

There is a small hole on the backside of the laptop. In T450 it's roughly at the other side of the touchpad. There is no text or symbol next to the hole.

You need to press the magic button in the hole.

This apparently resets something related to battery state.


You need have a correct combination of:

  • having or not having the battery
  • having or not having the charger connected
  • pressing the magic button before or after power button
This has worked at least three times for me so far.



Owl Lisp

Owl Lisp is a purely functional dialect of Scheme. It is based on the applicable subset of R7RS standard, and liberally extended with features necessary for functional operation. Owl can be used on most UNIX-like systems, such as Linux, BSDs and OS X. Programs are typically compiled via C to standalone binaries, so Owl isn't needed to run programs written in it.



#public #stub




Pohja: 2.5dl vehnäjauhoja, 0.3dl öljyä, 0.5tl suolaa, 11g kuivahiivaa, 1.4dl vettä

Tomaattikastike: tomaattimurskaa, pyrettä, vähän hunajaa ja maun mukaan mausteita


  • Lämmitä pannu vähän yli 200C (hella 4)
  • Öljyä ja nokare voita
  • Taikina pannulle ja levittele
  • Muotoile tarkemmin tomaattikastiketta levittäessä
  • Raasta päälle juusto ja lisää täytteet
  • Laske lämpö max 200 (hella 3)
  • Anna kypsyä kannen alla 15min





Calendar test

19.3.2016, Saturday, week 12

  • Another todo
  • Reminder to do something
  • it's a day
20.3.2016, Sunday, week 12
  • it's a day
21.3.2016, Monday, week 13
  • It's an odd Monday
  • it's a day
  • it's also monday
22.3.2016, Tuesday, week 13
  • it's a day
23.3.2016, Wednesday, week 13
  • it's a day
24.3.2016, Thursday, week 13
  • it's a day
25.3.2016, Friday, week 13
  • it's a day
26.3.2016, Saturday, week 13
  • it's a day
every day: it's a day every Monday: it's also monday every Monday in odd weeks: It's an odd Monday
Page content processed by kal
#type:kal #public #testing
@aohelin | aoh@github