Display fps with WINE and osd_cat

September 12th, 2011

When adjusting performance settings of Windows games run in Linux with WINE it would be very handy to see the actual fps (frames per second) on the screen like FRAPS for Windows does. WINEDEBUG=fps can do that on the command line. But it can’t be seen if the application is running in full screen.

A combination of osd_cat and a short bash function does the trick.

sudo apt-get install xosd-bin

then add the following line to your .bashrc

winefps () { WINEDEBUG=fps wine "$1" 2>&1 | tee /dev/stderr | grep --line-buffered "^trace:fps:" | osd_cat -c white -s 1 -l2; }

and finally run

. ~/.bashrc

I use the WINEPREFIX a lot, so my command to start e. g. ExampleGame.exe would be

WINEPREFIX=~/.wine/ExampleGame/ winefps ExampleGame.exe

which is equivalent to

WINEPREFIX=~/.wine/ExampleGame/ WINEDEBUG=fps wine ExampleGame.exe 2>&1 | tee /dev/stderr | grep --line-buffered "^trace:fps:" | osd_cat -c white -s 1 -l2

and displays your current fps on screen. osd_cat options like colour can of course be adjusted. See man osd_cat.

Smooth desktop graphics in Natty

May 9th, 2011

I updated to Ubuntu 11.04 Natty Narwhal the other day and was pleased so far how things went. All my essential applications were functional and ran smooth. But wait, smooth? Having those eagle eyes of mine I realized a hickup in graphics display here and there. Especially during movies I find that unacceptable. First I figured Intel drivers for my x4500MHD or the newer Xorg stack. But the solution turned out to be Compiz.

Unlike Maverick I had to switch off sync to vblank for opengl and general in natty via compizconfig-settings-manager and also adjust refresh rate to 60 Hz. After that everything was smooth again!

Sopcast links in Chromium (Ubuntu 10.10)

May 2nd, 2011

gconftool-2 --set --type=string /desktop/gnome/url-handlers/sop/command 'sopcast-player "%s"'
gconftool-2 --set --type=bool /desktop/gnome/url-handlers/sop/enabled true
gconftool-2 --set --type=bool /desktop/gnome/url-handlers/sop/need-terminal false

…and you’re done!

802.11n with Ralink rt2870 on Kernel 2.6.38

April 29th, 2011

For those who are not satisfied with running their nice Ralink 802.11n USB device only at G speed, here’s what I did. Since kernel 2.6.35 upwards driver version 2.4.0.1 doesn’t compile anymore due to some function renaming. usb_buffer_alloc() was renamed to usb_alloc_coherent()
and usb_buffer_free() was renamed to usb_free_coherent(). I’m actually running 2.6.38 on Lucid and what I had to do was to replace those functions (3 each) in include/os/rt_linux.h and os/linux/rt_usb_util.c.

After that the driver compiles flawlessly, installs and works!

Sopcast on Ubuntu 10.10 Maverick Meerkat Beta

September 12th, 2010

Those who already updated from Lucid to Maverick will sadly realize that sopcast-player refuses to work with Maverick’s VLC 1.1.4. If sp-sc is installed you nevertheless can watch your favorite channel by using the terminal way mentioned already here.

In a terminal enter

sp-sc sop://broker.sopcast.com:3912/6000 3908 8908

which starts sopcast playing channel 6000 on your local port 8908. In order to watch this channel with mplayer just enter in another terminal

mplayer http://localhost:8908/tv.asf

It might take a few seconds for sp-sc to establish connections in terminal one and get the stream going. So be patient before trying to play the stream in the second terminal.

Mediathek – TV-Programme downloaden

November 29th, 2009

Mit Hilfe des wunderbaren Java-Programms Mediathek lassen sich Sendungen aus diversen TV-Mediatheken (ARD, ZDF, Arte, 3Sat, MDR, Schweizer Fernsehen) einfach downloaden und abonnieren. Aktuell ist die Version 1.4.1. Es empfiehlt sich, die Variante mit Bibliotheken (Mediathek_mit_libs_1.4.1.zip) runterzuladen und zu entpacken. Danach in das Verzeichnis wechseln, in welches man entpackt hat und Mediathek mit

java -jar Mediathek.jar

starten.

Funktionsweise und Bedienung werden in der Anleitung ausführlich erläutert.

SopCast Player 0.3.3 released

November 28th, 2009

Version 0.3.3 of the great SopCast Player has been released the other day along with sp-auth 3.2.6. A PPA for Ubuntu Karmic Koala is also available. Simply

sudo add-apt-repository ppa:jason-scheunemann/ppa

to add the repository.

sudo apt-get install sopcast-player

installs all the necessary software.

Information about how to open Sop links from Firefox can be found in the wiki.

SopCast Player

SopCast Player

Add repositories the karmic way

November 2nd, 2009

As of Karmic Koala Ubuntu introduces a new and simplified way to add repositories. From the command line you would just add

sudo add-apt-repository ppa:xorg-edgers/ppa

to register for example the Xorg-Edgers repository with APT and acquire the public key if required in one step.

I usually make use of a couple of third party repositories like Medibuntu, Xorg-Edgers, SMPlayer and XBMC SVN. Beeing a heavy user of Guake terminal this is just a very convenient and fast way to work with repositories.

SopCast Player and Karmic Koala

October 23rd, 2009

SopCast Player won’t work in Karmic Koala. That’s because the lack of libstdc++5 which can however easily be installed from the Jaunty repositories http://packages.ubuntu.com/jaunty/libstdc++5.

No sound after suspend in Karmic on nx8220

October 20th, 2009

I recently discovered that I wouldn’t have sound over the internal speakers of my nx8220 after waking up from suspend in Karmic Koala Beta. This seems to be a known regression in the Kernel and I wasn’t in the mood of trying to fix it the hard way. What I found out though is that

sudo alsa force-reload

brings sound back.