Latest XBMCbuntu doesn’t wake up via remote anymore

February 3rd, 2013 No comments

This short post describes a fix for a standby/wakeup problem with XBMC, latest XBMCbuntu (fully updated with Kernel 3.2.0-37-generic-pae and XBMC 2:11.0~git20120423.cd20772-1).

For some reason I couldn’t resume/wakeup from suspend my XBMC system via the remote anymore. In earlier versions you might had something like

echo USB3 > /proc/acpi/wakeup

in your /etc/rc.local. This configured your system tro accept USB-wakup calls via the “USB3″ port. So to get it to work again, the first thing is to comment that line out. Then

root@xbmc:~# dmesg | grep -i flirc
[    2.014322] input: flirc as /devices/pci0000:00/0000:00:1d.3/usb5/5-2/5-2:1.0/input/input2
[    2.014636] generic-usb 0003:20A0:0001.0001: input,hidraw0: USB HID v1.01 Keyboard [ flirc] on usb-0000:00:1d.3-2/input0

If you do a

root@xbmc:~# cat /proc/acpi/wakeup
USB3	  S3	*enabled   pci:0000:00:1d.3

shows you two things: First, 1d.3 is “USB3″. Then usb5 is what we need in our next step. The new line for /etc/rc.local is as follows:

echo "enabled" >  /sys/bus/usb/devices/usb5/power/wakeup

and that needs to go before the “exit 0″ line of course.

Categories: XBMC Tags:

An XBMC installation

January 30th, 2013 No comments

xbmcpicThis is just a quick description of my XBMC system what I setup quite some time ago. The installation and setup is fairly easy, if you have some Linux background you do it in one evening.

The base hardware is a ZOTAC ZBOX ID42 with 4GB memory and a 320GB 2.5″ harddisc. The ID42 has an integrated NVidia Ion chipset, which is quite decent (and gives you decent HD quality playback). You can see it a bit on the picture in the top right corner.

Then I didn’t want to have yet another remote at the livingroom table and went for a decent Logitech universal remote. These are universal remotes, not that rubbish you can buy elsewhere. Their middle-range of remotes have a nifty feature called “activities” which makes basically your range of somehow connected TV “multimedia” devices be seen as just one device. It let’s you define that Volume is your soundsystem, not your TV. It is worth the money, looks good and the quality and “finger feeling” is just awesome (as compared to any other remote I have ever used).

I nearly forgot, you certainly need something on your ID42 that your button presses on your shiny remote make something happen. FLIRC is the way to go. It is fairly in-expensive, but most importantly, just works with your remote. Its software is installed fairly easy and configured and then, it just works – again.

My ID42 has still Eden (version 11) of XBMC installed. Version 12 (“Frodo”) just came out recently and has a huge range of features, like “Live TV”. My theme is “Aeon Nox”, which is the most configurable and beautiful them I could find. Please checkout their video demos, they are really helpful, as they explain how to setup it up properly.

I am nearly at the end of my setup, I don’t think I have forgotten something. Maybe one thing, if you want to give XBMC a try, you can either try to use “XBMCbuntu”, that’s a Live-CD, what can be installed. Alternatively, you can give OpenElec a go, which is XBMC as an embedded system, very slick and slim – and the installation on a Raspberry Pi is done in 10 minutes – seriously! More on this another time.

Categories: XBMC Tags:

Automatically learn Spam/Ham on your own IMAP server

January 30th, 2013 No comments

There are these little things on your server, you set them up once – then a long time passes – and then you realize, it is really helping you a lots and (most importantly) it is still working.

One of these things for me is how I handle Spam/Ham on my IMAP server. I had initially the idea to automate this as much as possible and let the computer/machine do the work (and I don’t have to worry about it anymore).

I have a number of IMAP folders, obviously “INBOX”, “LearnAsHam”, “LearnAsSpam” and “Spam”. If I have an email in my “INBOX” what is spam I’ll move it into “LearnAsSpam”. It will be picked up by a process I’ll explain later and moved into “Spam”. If there is a false positive in “Spam” I move it to “LearnAsHam” and after a process picks it up it ends up in “INBOX” again.

And this “process” is basically fetchmail feeding it through sa-learn with “–spam” or “–ham” as its parameter.

The relevant shell commands I think I got from here. A bit of a biest, but they’ll work.

Categories: Scripting Tags:

What is the answer to this captcha?

January 30th, 2013 No comments

Screenshot from 2012-07-13 22:48:36

… best captcha I ever had. And yes, I do play chess… *g

Categories: Fun Tags:

How do I test my IPv6 capable mailserver? II

June 26th, 2012 No comments

Now you have IPv6 enabled on your mail server but you don’t know any email address what is actually IPv6 enabled as well?

Here are two – what I just tested:

  • my own… hehe.

Both are sending back the mail headers and the first one also shows you DNS info for the return path.

Categories: IPv6 Tags: