Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw

Monday, September 5, 2011

Enable wakeup from suspend with usb keyboard or mouse in Linux Ubuntu

This guide is exactly what you need :)

In short;
1.) Enable it in your bios
2.) echo DEVNAME > /proc/acpi/wakeup
3.) Correct DEVNAME is found using the following script:

grep "USB.*pci" /proc/acpi/wakeup | cut -d ':' -f 2- | while read aaa; do find /dev/.udev -name "*$aaa*" -print -exec grep "$aaa" /proc/acpi/wakeup \; -exec echo \; ; done
4.) Add cmd(2.)) to /etc/init.d/wakeup

Your wakeup file should look something like this:

# Set /proc/acpi/wakeup to allow devices to wake system
# sudo sh -c "echo USBX > /proc/acpi/wakeup"
echo USB4 > /proc/acpi/wakeup

5.) Enable wakeup to boot at startup:
update-rc.d wakeup defaults
6.) Done...

Ubuntu natty with xbmc dharma won't shut down from menu

Solved this by editing /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla

and replacing it with the following. Just make sure "xbmc", marked red, is the correct user...

[Actions for xbmc user]

Thanks to

Monday, August 1, 2011

Saved radio presets disappears on car stereo

Solution: You have probably just installed your car stereo wrong. Take a look at the wiring where you will have one red and one yellow cable. It should be possible to switch these around. Do that, and it should work.

Happened and solved with my Pioneer car stereo..

Wednesday, June 29, 2011

Mediakeys for spotify in Linux

There is two ways of doing this.

1.) Native Spotify player for Linux (requires Unlimited or Premium)
Create spotify-control containing this (credits go to this allenap):

#!/usr/bin/env python

import dbus
import sys

if __name__ == '__main__':
    session = dbus.SessionBus.get_session()
    spotify = session.get_object(
    for command in sys.argv[1:]:
        getattr(spotify, command)()

chmod 755 spotify-control

Next, put the file into i.e. /usr/bin/
Now you got a cmd way of controling your spotify player.. spotify-control Previous, spotify-control Next and spotify-control PlayPause...

If you are using fluxbox as I am, add the following to your ~/.fluxbox/keys

# Spotify
Mod4 Right :Exec $(spotify-control Next)
Mod4 Left :Exec $(spotify-control Previous)
Mod4 space :Exec $(spotify-control PlayPause)

Save, "reconfigure" (or restart fluxbox), and you are done..
Now you can use your windows button + Right/Left for Next/Previous or Space to pause :)

2.) If you are using spotify via wine..
This way is a bit more "unslick" and nasty.. But it works..
You do it the same way, except you use the following script located here..

Saturday, June 18, 2011

Add temperature to conky

After some recent debian updates, the proc files which conky got it's temperatures from disappeared. I found a way though to work around this, and get the temp into conky.

1.) First, open your console.
2.) Type acpi -t. This way you will see which sensors you can grab the temperatures from. You will get an output looking something like this:
Thermal 0: ok, 55.0 degrees C
Thermal 1: ok, 35.4 degrees C
Thermal 2: ok, 50.0 degrees C
Thermal 3: ok, 58.0 degrees C
Thermal 4: active, 60.0 degrees C
3.) Decide which thermal sensor you want the temperature from. In my case I found out the cpu was "Thermal 3". Now we are gonna sort out this line.
4.) Type: acpi -t | grep "Thermal 3". You should now get only the Thermal 3 line. So far so good. Now we need to sort out only the temperature, using "cut".
5.) Type: acpi -t | grep "Thermal 3" | cut -c16-19. The -c- might be different from you. Adjust it so you now get an output displaying ONLY the temperature.
6.) When you've made the correct command line, add it to your conkyrc like this:

${execi 1 acpi -t | grep "Thermal 3" | cut -c16-19}C

Laptop running warm and noisy fans

After some years of use my laptop started getting really warm when the work load increased. As a result of the heat, the fans also started making a lot of noise. This problem did not exist when I got it, or the first years..

The cause was pretty obvious. Dust and dirt had piled up inside my laptop, and especially on the fan(s). My laptop only have 1 fan, so I went straight for it. Following the service manual for my computer (hp nx7400) I removed the keyboard, and the fan came to sight.

Next I got the vacuum cleaner. Yep, that's right, the good ol' vacuum cleaner. It might be an idea to add a thinner tip on it while doing this. I didn't though. Next, the clue is to hold the fan so it wont spin when vacuum cleaning it. If you dont the fan might ending up spinning backwards, which could break it. While holding the fan, clean it thoroughly until it's dust free.. Next clean any heatsinks and other visible dust.

Now reassemble, and hopefully it should not run warm that easy, and the fans shouldn't spin up all the time! At least it worked great for me!

Monday, May 2, 2011

Import old GED 5.0 file from family tree maker to new version

This is a quick hotfix for this. If you exported your old family tree maker file to a GED file version 5.0, you can't open it again in newer versions. But it's actually saved in 5.3, which is pretty similar to 5.5. Simply open the GED file in notepad, find the line which specifies the version (5.3), rename it to 5.5, save, and open it in family tree maker 2011 or whatever you are running ;)

PS... Scrapbook elements gets lost in the GED format..

Remove whitelist in NX7400 bios

Yes, it's possible! As well as you will get SLIC tables. This should remove any 104 or 105 errors on NX7400. There is also available bioses for other HP models for this...

First of all, I take no responsibility in case you brick/ruin your bios :P

Now to it...
1.) Download this toolkit to make a bootable USB key with rompaq which is the flashing tool. Follow the readme, and everything will start automaticly when booting up...
2.) Boot up with this, make a backup of your current bios. If you have a nx7400 you will get a file named: 68YGU.BAK
3.) Download your new bios from here (NX7300/NX7400).
4.) Open the file, and extract the .bin file to the usb key, and rename it to 68YGU.BIN.
5.) Reboot, and chose to upgrade bios.
6.) You are done :-)

For more info, and complete list of bios'es available check here.

Update 30. March 2012:
Installed a newest generation Intel 5300 wifi card which handles up to 450mbps without a problem on my hp nx7400. As this card has three antenna plugs, and the nx7400 only contains two I just connected wire 1 to connector 1, and wire 2 to connector 2 (they are marked on the wifi card) and let the connector 3 stay unconnected. Great signal as is to my old router. You can buy extra cables on ebay for a couple of dollars if you want.

The wifi card I installed is the following: INTEL WLAN 5300 533AN_MMWG. This is the FULL HEIGHT version.

Friday, April 15, 2011

Splitting files with mencoder Linux Debian

mencoder full.avi -ovc copy -oac copy -endpos 01:00:00 -o part1.avi
mencoder full.avi -ovc copy -oac copy -ss 01:00:00 -o part2.avi

Thursday, April 7, 2011

rtorrent with web frontend and categories

Yes, it's possible..

What you need is to install rutorrent (webfrontend) and two plugins get(?) and autotools..

Friday, April 1, 2011

Solution: Flash drive identified as SDA during ubuntu install

Problem: My Gigabyte motherboard identified my USB Flash Drive as SDA, so it swapped place with my drive which appeared as SDB during install.

This is only a problem when it comes to the MBR installation, which will be installed to sda, nomather if you chose to install your system to sdb.

Boot your system again, but remember to keep your usb drive inside the first time you boot. Then simply run this cmd:

sudo grub-install /dev/sda

Just make sure your linux drive this time is identified as sda :)

Monday, January 17, 2011

Cheap SD cards for ipad 2

As we know the iPad 2 will be equipped with SD card slots. This enables you to easily view photos, video and listen to music from devices such as digital cameras, digital video recorders and others.

Navigating through what card you should buy isn't always the easiest task as there is multiple types of cards, speed-classifications and especially great price-gaps. Knowing where to buy these cards for the best price available is a huge advantage. I will tell you my tips on where to get these cards the cheapest way.

My favourite places for buying these cards is:
1.) - Greate prices and thrusted shop to buy from.
2.) - Great prices, but not so easy to navigate and not so many sorts of cards available.
3.) - Great prices, but you can't always thrust the sellers.

Friday, January 14, 2011

Solution: How to enable iphone personal hotspot?

This is a new feature which came with iOS 4.3. First make sure you got this version or newer. Enabling the feature isn't that hard actually, and it enables you to share your internet connection on a wireless connection (wifi) so others can use your phones internet connection.

Just go to your phones home screen, go to settings, and then select "Personal Hotspot". Tap "Wi-Fi password" and set a good password, next tap the "Personal Hotspot" switch to enable it, and you are done.

Now there will appear a new Wireless Network which you can connect to on other devices and you got an internet connection.

Cheap wireless whdi graphics card?

The first wireless graphics card has finally been released. It's called GeForce GTX460 WHDI 1024MB PCIe 2.0 and can transfer video to WHDI enabled devices. It can in this way stream uncompressed 1080p video to devices which support WHDI.

What the price will be we dont know yet, but I guess the price will be high at first, but lets hope it decreases to an affordable level on a later stage.

You can read more about it here.

How to multitouch on iPad

Here is a quick video to demonstrate how to multitouch on the iPad, a feature which came with iOS 4.3. You can use four or five fingers to pinch to the home screen, swipe up to reveal multitasking bar or swipe left or right between apps..

Tuesday, January 11, 2011

Fix: This accessory is not optimized for this iphone

Ok, this problem usually comes from either dust in the ports (docking or audio port) or water damage. In my case it was dust in the docking port, which easily got fixed!

PS! Do this on your own risk :-) I don't take any responsibility for you ruining your phone :-)

How to fix:
Dust in port: Turn off the phone and use a DRY toothbrush, and clean out the dirt.

Water: This one is harder, and might not work if this is the case. Turn the phone off, and try to dry it either by putting it in a bag of rice to dry it out, use a hairdryer or/and put it on some warm place to dry the moisture.