2013. február 21., csütörtök

Slow wireless performance

I had slow wireless performance with Atheros AR928X card in my 2510p notebook with Ubuntu Precise and A-Link RR24AP-N station. I tried all sorts of tweaks with the atk9k kernel driver, but nothing seemed to fix my issues, the wireless speed was dropped to 10-13 Mb/s after a successful connection to the WEP protected wireless network. The solution was to disable the "Aggregation" in the Advanced settings of my router.

2013. február 14., csütörtök

A possible fix for choppy Bluetooth headset connection under KUbuntu

I tried some different Bluetooth headsets and transmitters with my laptops these weeks to have a low-cost, but satisfactory wireless audio experience. The initial trials were disappointing.

I use Koss Porta Pro for listening music and other contents, so it was a starting point to compare the quality. I bought a Sony DR-BT22A headset which was praised by several reviews and customers on Amazon, but it is quite bad quality compared to the Koss. I also bought a Rapoo H3010 wireless headset, which has almost the same quality like the Sony, but the headset+the transmitter are rechargable via USB, it lasts for several hours. The Rapoo's transmitter is connected to a sound source via a standard audio jack, so it is very handy to my home theater system where I don't expect high sound quality for movies; without losing a USB port.

What was a surprise that I tested a Nokia BH-214 transmitter and it is amazing. It is a Bluetooth headset/transmitter with some buttons and you can connect your favorite headphones to the transmitter. At this point, I did not have to deal with any compromise: I get exactly the same sound quality from this transmitter with the Koss Porta Pro instead of directly connecting the headphones to my laptops.

Ok, sound quality is fine, but my Ubuntu Oneiric did not work quite well with the Nokia transmitter. I could pair and connect the transmitter to my machine, but the connection becomes choppy/dropping audio packets after getting disconnected/reconnected because of distance or if I don't listen to something on the connection for a while. After disconnecting/reconnecting the transmitter manually, the connection is good again (except the volume is always dropped to maximum level :( ). The quick fix was to sketch a script to disconnect/reconnect the transmitter, fix the volume level and specify a shortcut in KDE to execute the script.

Note1: First time when you pair/connect your Nokia BH-214, you should change the Master channel in the KMix settings to the headset to control the transmitters sound level (later on KMix switches automatically on reconnection).
Note2: Something was wrong with the KMix by default and it tend to crash when the Bluetooth was used and the Amarok changed tracks. The fix was for me to install a newer version of KMix from a later Ubuntu version.

The script:

# Mute the master volume with KMix
qdbus org.kde.kmix /kmix/KMixWindow/actions/mute com.trolltech.Qt.QAction.trigger
# Disconnect the headset
sudo hcitool dc xx:xx:xx:xx:xx:xx
# Reconnect the headset with kdebluetooth
bluedevil-audio bluetooth://xx-xx-xx-xx-xx-xx
# Wait for a while to get the connection again
sleep 2
# Decrease the volume to reset the master volume from muted to the last level
qdbus org.kde.kmix /kmix/KMixWindow/actions/decrease_volume com.trolltech.Qt.QAction.trigger
# Increase back to the original level
qdbus org.kde.kmix /kmix/KMixWindow/actions/increase_volume com.trolltech.Qt.QAction.trigger



2013. január 27., vasárnap

New AiBO+ demo

I forget to write that I reached an other milestone in my AiBO+ project. I have been implemented a brand new PC application with Qt/Qwt to connect to the dog and transfer the robot states to the computer. This new tool was really needed for me to speed up the debugging and the analysis of the sensor and other data. For fun, I implemented custom gestures and ported the application to Windows and Android.

The usual demo is here:




How to clone a hard drive over the network

1. Download the Clonezilla and burn to CD or USB stick.
2. Boot two computers with the needed hard drives with the Clonezilla image.
3. On the source computer follow the steps and select the copy over network from this source computer.
4. During the final steps, the Clonezilla will write on the console what commands should be executed on the target machine.
5. Go to the console on the target machine and execute the needed commands. After a few questions, the cloning will start. Yuppee!

2013. január 10., csütörtök

Rfkill hard blocking problem under Ubuntu natty

I experienced hard blocked wlan devices on my HP 2510p laptop with Ubuntu. Like this:

$ rfkill list all

0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

4: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: yes


The solution was on an Ubuntu forum topic: go to BIOS and restore the defaults.

2012. december 12., szerda

Why don't use qrand() in a cross-platform Qt project...

I noticed in my project that the qrand() does not work (as expected) in the MinGW Qt, it provides 16 bit numbers between 0 and 32767. D'oh! It is a better choice to use the random module from boost.

2012. december 1., szombat

Darázsfészek készült...

...ma este. Ez volt az alaprecept:

http://www.nosalty.hu/recept/darazsfeszek-2

Ami más volt: a szárított élesztő helyett 2.5 deka nyers élesztőt használtam, 2 tojássárgája helyett beleraktam a két egész tojást, nem használtam citromhéjat és vaníliarudat a töltelékbe, valamint normál dió helyett brazil diót használtam. A sütőformát belülről bár kikentem vajjal, de aztán liszttel és cukorral szórtam meg. A sütésnél nekem 200 fokon nagyon gyorsan (1-2 perc alatt) megkapta a tetejét, lehetetlen lett volna ilyen hőfokon 20 percig sütni. A végén 30 percet sült 175 fokon, és remek lett: a tészta is megsült, de nem volt száraz, kicsit lucskos maradt a töltelék miatt. Emiatt a tejes locsolás is a sütőbe tevés előtt történt meg: tejjel meg legyintettem kicsit tojáskenő ecsettel aztán vaníliáscukrot szórtam rá.