ALSA and Pulseaudio random jots
Background This is just things I wrote down while trying to make aplay play sound through a fake module-based Pulseaudio sink. Spoiler: I failed. Spoiler II: Sometimes people ask me question about...
View ArticleALSA’s file plugin for playing back a raw pipe file
Motivation On an embedded system, I have a device file /dev/xillybus_audio, which can be opened for read and/or write. One can write raw (signed 16 bit Little Endian Rate 48000 Hz stereo) samples to...
View ArticleChecking my mouse wheel on Linux
I had some problem with my mouse wheel (on Microsoft Wireless Mobile mouse 3500, by the way): The scrolling would sometimes be jerky. I was turning the wheel to scroll down, and there were small jumps...
View ArticleAutomatic mount stops after kernel upgrade and sysfs
I really have this thing about backward compatibility, which is why I chose to enable the CONFIG_SYSFS_DEPRECATED and CONFIG_SYSFS_DEPRECATED_V2 kernel flags when compiling kernel 3.12 for Fedora 12....
View ArticleWine: Picasa failed to start Fedora 12 after a kernel upgrade
I upgraded my kernel from 2.6.35 to 3.12, and Picasa 2.7 failed to start. Instead of starting, tons of winedbg processes were created at a rapid speed. If I didn’t kill everything related to Picasa...
View ArticleWifi Access Point on my desktop with USB dongles
Introduction These are my rather messy notes as I set up a wireless access point on my desktop (Fedora 12) running a home-compiled 3.12.20 Linux kernel. Somewhere below (see “Rubbish starts here”) I’ve...
View ArticleExecuting user-space programs from a different Linux distro
While trying to use executables from one ARM-based distribution to another, it failed to run, even before trying to load any libraries. The ARM architectures were compatible (armhf in both cases) so it...
View ArticleManually installing launcher icons for Xilinx tools on a Gnome desktop
So I installed Vivado on my Centos 6.5 64-bit Linux machine, and even though it promised to install icons on my desktop, it didn’t. This is how I installed them manually. There is surely a simpler way,...
View ArticleSimple GPIO on Zybo using command-line on Linux
Running Xillinux on the Zybo board, this is how I toggled a GPIO pin from a plain one-liner bash script in Linux. The same technique can be used for other Zynq-7000 boards (Zedboard in particular) to...
View ArticleThunderbird / Firefox: Re-sending a sent mail
The idea is to take a mail that has already been send (and is hence in the “sent” folder and send it again with sendmail. Why? In my case the idea is that Thunderbird and sendmail connect to different...
View ArticleSOLVED: Lenovo Yoga 2 13″ with “hardware-disabled” Wifi
Overview Having a Lenovo Yoga 2 13″ (non-pro) running Ubuntu 14.04.1, I couldn’t get Wireless LAN up and running, as the WLAN NIC appeared to be “hardware locked”. This is the summary of how I solved...
View ArticleDebian package notes (when apt and Automatic Updater in Ubuntu isn’t good...
Just a few jots on handling packages in Ubuntu. This post is a true mess. Pinning The bottom line seems to be not to use the Software Updater, but instead go # apt-get upgrade How to prevent certain...
View ArticleLinux/Gnome: When selection of text goes inactive as soon as the mouse button...
… go though any gitk window on the desktop, and click on it, to release it from some unexpected GUI state. Just wanted that written down for the next time I try to select a segment in XEmacs or the...
View ArticleMuseScore notes on Fedora Core 12
Random notes playing with MuseScore 0.9.6 (pun not intended): Installation (after grabbing the RPM file from the web): # yum install --nogpgcheck MuseScore-0.9.6-1.fc12.x86_64.rpm Which installs the...
View ArticleVivado 2014.1 / Linux Ubuntu 14.04 license activation notes
Introduction After installing Vivado 2014.1 on my laptop running Ubuntu 14.04 (64 bits), I went for license activation. All I wanted was a plain node-locked license. Not a server, and not a floating...
View ArticleFixing the mouse sensitivity on Gnome 2
This related to my Fedora 12 machine with a Logitech M705 mouse. It had a generally bad feeling, I would say. This is actually written on this post already, with some more details on this one, but I...
View ArticleMaking a video clip visualizing sound with libvisual on Ubuntu 14.04
Intro The purpose of this mini-project was to create a video clip with visualized audio, instead of just a dull still frame. Libvisual is the commonly used graphics engine for Linux’ media players, but...
View ArticleConsole kit stop and start on Fedora 12
Not clear if this is really useful, but since I’m at it: I killed the Console Kit daemon as root (by process number) and nothing happened except for the following in /var/log/messages: Apr 14 17:24:52...
View ArticleInstall an HP USB printer on Fedora 12
Just a quick note: The printer was connected via USB, but I sent jobs to it, and nothing happened. Solution: As root, type hp-setup and flow with the wizard (I unchecked the “fax” part). As non-root...
View ArticleImageMagick convert from pdf to jpg
To convert all pdfs into a jpgs with fairly good resolution (Linux, bash): for i in *.pdf ; do convert -density 300 "$i" "${i%%.*}.jpg" ; done Without the -density parameter, the result is pretty lousy.
View Article