• Sound troubles

    Out 5 2007, 17h14

    I've been on Ubuntu for a while now. All going well except for a small problem concerning my sound.

    For some reason the Alsa drivers have a tendency to just stop working.. More specifically, the sound doesn't seem to work anymore after a reboot. No errors, no logs, I just can't hear anything. I've been pulling my hair out over this because I was not able to solve it.

    I tried completely uninstalling the Alsa-base and linux-sound-base modules (which, when using Gnome, also means it uninstalls the entire Gnome Display Manager... Some dependency right there :p).

    After re-installing it all, the sound was not back though. The only thing left to do was to reinstall Ubuntu entirely. So, that's what I did. Luckily the sound did work again after the lenghty process of setting up all the drivers and modules.

    But, it did not last. Only 2 days after the reinstall, the sound stopped working again! Of course I had no intention of reinstalling the whole OS again. There /had/ to be a reason this was happening and i wanted to find out what it was.

    After some puzzling and searching through configuration files, I discovered that Alsa had 'magically' set my on-board sound card as my default sound device, instead of the SoundBlaster.
    While this sucked, at least it was a clue as to why my sound stopped working (There are no speakers attached to the onboard soundcard).

    So, I set out to find how I could make Alsa accept my Soundblaster as primary device. After some googling I found that the foolowing should work.

    1. Create a file in your Home directory called '.asoundrc'.
    2. Open it in a texteditor and copy/paste this into it:

    --- START COPY ---
    pcm.!default {
    type hw
    card 1
    }
    ctl.!default {
    type hw
    card 1
    }
    --- END COPY ---

    In this file 'card #' is the number of the soundcard you want to use. You can look up a list of available cards and their index on your system, by using the following command in a terminal: sudo cat /proc/asound/cards

    For me, the output looks something like (The formatting is messed up in this blog):
    -------------------------------------------------------------------
    0 [V8235]: VIA8233 - VIA 8235 VIA 8235 with AD1980 at 0xe000, irq 19
    1 [Live]: EMU10K1 - SBLive! Platinum [CT4760P] SBLive! Platinum [CT4760P] (rev.5, serial:0x80401102) at 0xd800, irq 20
    -------------------------------------------------------------------

    As you can see, my Soundblaster is at index 1, so I used 'card 1' in the .asoundrc file.

    3. Save the file and close it.
    4. Restart Gnome/KDE. You don't have to reboot the entire machine, just restart the display manager. Ctrl-alt-backspace will do this quickly.

    This solved the problem for me! So, if all is well, the sound should no longer just stop working. \o/
  • Extend

    Set 19 2007, 16h06

    Today i bought me a new 320GB harddrive to replace the broken one.
    I prefer 2 seperate drives to ddivide the System files/programs and my own files (Music, code, games etc).

    The new drive took a bit of puzzling to get to work in linux (mostly cos im still a linux noob), but it's working just fine now.

    400GB's of total diskspace now.. Eventhough it's not phenomenal (considering I know some ppl who have crossed the TB boundary long ago), but for me that's a large improvement over the 120GB I used to be stuck with :)
  • Something to do

    Set 17 2007, 10h36

    All the basic stuff now seems to working fine in Ubuntu, so I have taken to finding something to actually do besides tweaking the OS.

    A friend recently got his hands on the most excellent PC game 'Stubbs the Zombie - Rebel without a Pulse'. Ofcourse it's for Windows only so getting it to run on linux could prove a bit of a problem.

    But, t turned out easier than I thought. I download the sourcecode for wine-0.9.45 and compiled it without any modifications or patches. The process took a while, but there where no errors what so ever.

    After that it was a simple matter of mounting the Stubbs DVD and running Setup.exe. A thing to note is that while installing, the progress bar in the Wine generated dialog does not seem to work. The program is installing though, so don't worry and just keep it runnning. Eventually you will see a new dialog telling you the install was successful.

    The game starts and works brilliantly (including sound!). Even the Gfx performance is a lot better than I expected it to be.
    The only issue remaining is that I can't seem to get it run Fullscreen without having the standard Ubuntu task bars still visible. It can be run in windowed mode just fine, but the mouse movement is messed up as the pointer is not bound to the game window and it keeps leaving the window, making camera movement a bit of a pain in the ass.

    I shall investigate this further and hope I can fix it.

    edit: I managed to get it running fullscreen without the Ubuntu task bars, but the mouse is still messed up, as the pointer is not kept cantered. This makes continuous camera movement impossible and tends to get a bit annoying as I constantly have to go to the game menu to 'reset' the mouse position to a place where i can continue rotating the camera to an angle I want.
  • The journey continues...

    Set 16 2007, 13h49

    I have finall got everything I need working in Ubuntu 7. MP3's, Video, Gfx card, Sound drivers.

    I installed amaroK as the mp3 player of choice, because I have had some great experiences with it in the past. And to my joy it turns out that the Linux version of the Last.fm software has built-in support for scrobbling data from amaroK, so no extra plugin's needed. \o/

    The compilation process for the last.fm software was relatively painless. I was missing some libraries in the standard Ubuntu install, but they where quickly added through the Synaptic Package Manager (g++, QT4 and all their dependencies). After that the compiling was no problem.

    Getting amaroK to actually play mp3's proved a lil more difficult. Apparently the libXine Extended Codec Library was ot part of the standard Ubuntu package so I had to add it manually. amaroK should now play local mp3 files, but it still doesn't play streaming audio from the web. I shall investigate further.

    ps: Upon investigating some of the settings of amaroK, i discovered that I do not need the last.fm software separately. amaroK itself has the built-in ability to send my playlist information straight to my last.fm profile. Nice!
  • New Beginnings

    Set 15 2007, 17h17

    Today my primary Harddrive finally went to a better place.
    This has been a while coming, but I never could be bothered to take pre-emptive measures. For a few months it's been slowing down dramaticly and it literally took 25 minutes (!) to reboot the damn thing. Contrary to what some of you may think, this was not Windows' fault. I formatted and installed Linux a while ago to see if that would help, but it didn't. It was definatly a hardware problem.

    So here I was today, facing the ultimate horror; My PC did not work anymore. No music, no games, no chatting, no porn (:p), nothing.

    I decided to take drastic action this time and removed the faulty drive from my system, set the second one to serve as Master and format everything to install Ubuntu Linux instead of XP.

    While I have used Ubuntu before, it was still a bit of a tender issue because the second drive contained all my Music, Code, Pictures, etc etc. But after some reflecting I thought 'What the hell' and went ahead with it anyways.

    So here I am, unleashed upon the web through Linux and rejoicing at the fact my PC no longer takes 25 minutes to boot up and is generally just working like a charm again. \o/

    Now I have some patching and installing to do to get this baby up to speed.

    Time for coffee :p


    ps: The faulty drive appears to be permanently gone. I ran it through Partition Magic 8.. It could not even finish the Testing sequence, let alone fix anything. The damn thing was just completely and totally fried. Time to go shopping for a new one I guess. I've been stuck with 120GB of total HD space for far to long while eveyone else seems to be talking about Terrabytes these days rather than Gigabyte's :p

    mm All my music is gone.. so i guess i have some.. err.. 'acquiring' to do :p