Showing posts with label KDE4. Show all posts
Showing posts with label KDE4. Show all posts

Saturday, December 26, 2009

Getting Bluetooth A2DP to work in Mandriva 2010

One of the grips I've always had with KDE4 is it's rather poor bluetooth integration. For most of 2008 and 09, I've tried in vain to make my really nice bluetooth stereo headphones to work on Linux. I started to see a glimpse of it in 2009.1 where it would work for 2 minutes before crashing pulseaudio.

Now with 2010 out I decided to give it another go. Finding instructions for doing it is not particularly easy. There is no single place that provided something that will just work on Mandriva. So I decided to document my steps here.

Lets start with the require packages you will need to install.
kbluetooth
bluez
bluez-alsa
pulseaudio-module-bluetooth
*There's much more, but they should already be installed.

Start kbluetooth (it's somehow under the Internet category)
Make sure your bluetooth adapter is detected & showing a MAC address. Give it a sensible name.
The kbluetooth device manager gui only works for input devices. So don't bother trying to pair the headphones with it. We'll need to do it from a konsole.

Put you bluetooth headphones into pairing mode. (usually done by holding the power button until it blinks) Then do this:
$ hcitool scan

This should discover your headphones and list it's MAC address. Now connect to the MAC. (seems like only root can do these steps)
# hcitool cc 00:00:00:00:00:00

kbluetooth should now popup and request for the pin. (It's usually 0000)
Now lock down the pairing:
# hcitool auth 00:00:00:00:00:00

That's it for pairing. Now we need to tell alsa about the new audio device. Open up the file .asoundrc in your home directory (create it if it's not there), and put this in it:

pcm.bluetooth {
type bluetooth
device "00:00:00:00:00:00"
}

Replace with the MAC address of your headphones of course.

Now you need to reboot. Next you'll need to tell pulseaudio about your new output device.

$ pactl load-module module-alsa-sink device="bluetooth"

Now open the PulseAudio Volume Control. (pavucontrol) You should see bluetooth listed as another output device. You can now make it the default or you could assign the output device on a per application basis.

Now, the part the sucks. Pulseaudio will not remember these setting across reboots, you will need to rerun the pactl command everytime you want to use the headphones. One easy way to do this is to put an icon on the panel to run the command.

Another thing to be aware of is if you are playing something & you disconnect the headphones somehow, pulseaudio will segfault. So remember to stop playback and switch the default output back to your soundcard before turning off your headphones.

Enjoy. :)

Friday, November 27, 2009

Moving up to Mandriva 2010

Just upgraded my Dell Mini to Mandriva 2010. Been running it for a few weeks and working through the issues. I must say, although I welcome the improvements that KDE 4.3 brings, this release was nowhere near as solid as 2009.1. It's riddled with many serious bugs and annoyances.
One bug that seems to still be unresolved is the haldaemon bug where the system will sometimes fail to mount external drives, requiring a restart of haldaemon.

A quick rundown of some of the things needed to make this release fully functional on a Dell Vostro A90 (Inspiron Mini 9):
- Audio still didn't work. I still had to add the following line into /etc/modprobe.conf
options snd-hda-intel index=0 model=dell
- I used the same method as before to install aircraft-manager. This worked just fine.
- Disable speedboot by editing /etc/sysconfig/speedboot. Setting "speedboot=no". This stops some weird ACPI bugs.

Some observations:
- The intel driver has stabilized and no longer freezes
- Idle CPU is generally lower & better behaved than KDE 4.2

All the bugs are reported & being worked on, so lets hope that in the following weeks updates will work out all the issues. Overall, I'd say if you are already running 2009.1 and are thinking of upgrading. Wait a month or so, you'll have better experience by then.

Sunday, May 17, 2009

Mandriva 2009.1 - Working out the kinks

I've made some discoveries and found some weird problems here & there with my newly installed Mandriva 2009.1. So I'm documenting my findings and fixes/workarounds as I needed.

1. Kwin effects when enabled will make X freeze up intermittently . There is already a bug report on this issue & it seems to be caused by the intel driver. The workaround is to change the default Render acceleration mode from EXA to UXA. This is done by editing /etc/X11/xorg.conf and adding the following line into the "Device" section:

Option "AccelMethod" "UXA"

This did solve the freeze problem, but video playback was a little choppy when using some desktop effect. I can live with this since it's about the same on compiz as well.

2. The default IaOra window decoration had a display bug when using compiz on KDE4. Whenever the window was maximised, the titlebar would disappear. (It actually became tranparent). I saw this bug when I used compiz instead of Kwin during the time I was still investigating the Kwin bug. I did not find this bug reported, I asked around, but no one else had this bug. It might be caused by residual config from my old compiz. (I didn't do a clean install) Anyhow, this problems goes way then I use a different window decoration theme. So I've switched to using Ozone.

3. I didn't like any of the plasmoids for system monitoring. I was very used to using superkaramba's cynapsys theme. I found that I can still install & use superkaramba & run my favorite sys_mon theme. This is a pleasant surprise. I also found the yaWP and ktorrent plasmoids to be very useful.

4. Virtually all the hotkeys on my laptop worked out of the box. Volume control, media playback control, LCD brightness control & wireless switch are all working perfectly and with OSD to boot. The only one that didn't work was the 'launch media player' key, which I've never used anyway.

That's all I can remember for now. These are all very minor issues, overall this release has been awesome.

Saturday, May 16, 2009

Mandriva One 2009.1 Spring

Wow. It's be a while since my last blog.

I was holding out upgrading to Mandriva 2009 because I found KDE4 to be not functional enough for my everyday use. But a few weeks ago Mandriva 2009.1 Spring was released & I just had to give it a test drive.

I bit the bullet & immediately upgraded my laptop to 2009.1 from 2008.1. This was skipping a release, so I thought wise not to do an online upgrade, but simply to format the root partition & reinstall fresh, but keeping my old home partition.

This ran into a snag as I was installing from LiveCD & it did not manage to migrate my KDE3 setting & left me with a very messed up desktop. To fix it. I had to logout, delete my old .kde directory in my home & login again.
This fixed everything up but also managed to wipe out all my KDE settings. Which I believe is fine because KDE4 should not be using them anyway.

Overall I found Mandriva 2009.1 to be another solid release. I'll still be holding out for my main desktop cuz I have alot of custom hacks that I need to research b4 bitting the bullet.