I am James Ots and that's my real blog, but I've created this one so I can blog about Android, Linux and geeky things like that.
Saturday, April 07, 2007
Sub-pixel Antialiasing in openSUSE 10.2
Last time I blogged about getting fonts to look better in 10.1, I had a load of comments telling me I should just turn of antialiasing because text looks better without it. Well, I like antialiasing, and especially sub-pixel antialiasing. On my 1900x1200 display it looks great. So there!
Saturday, March 10, 2007
My Subwoofer Is Woofing
Today I discovered that openSUSE 10.2 uses version 1.0.12 rc2 of the alsa drivers, and they don't support the subwoofer. So I downloaded alsa-driver-1.0.13, configured it with ./configure --with-cards=hda-intel, ran make, and then make install-modules, rebooted my machine, and the sub was working. Oh and that model=ref line was added to /etc/modprobe.d/sound, so now the first line is options snd-hda-intel enable=1 index=0 model=ref.
There's only one slight problem - the master volume control doesn't adjust the subwoofer (shown as LFE in the mixer), and muting the sound also doesn't mute the sub. But other than that it works!
Saturday, February 24, 2007
Appreciating KDE More
I'm looking forward to version four. I've been keeping an eye on SVN and things are looking pretty cool. It's still too much of a moving target for me to contribute at the moment (I don't have much time at the moment as I have a new job, and need to be learning about work code rather than KDE code right now), but I'm quite excited about the future of KDE.
Friday, February 09, 2007
New Things
I now have a new job, which is as a Software Architect. And it's a very cool company to work for, and I'm coding in Java, so I'm enjoying it a lot.
One of the first things I got at this job was a new laptop. It's a Dell Inspiron 9400, with 2Gb of RAM, 100Gb of hard drive space, a 1920x1200 17" display and built in Intel wireless and bluetooth. And it has an Intel graphics card too, which is great, because it means I get to use open source drivers.
The downside is that it has Windows XP installed on it, which I have to use at work. Which means I will now be becoming a big advocate of making sure KDE4 will work on Windows. I'd forgotten just how awkward so many Windows programmes are. Things I particularly miss are konversation, kopete, kmail, rsibreak, knotes, knetworkmanager, kio, alt-clicking to move windows, alt-right clicking to resize them... and the list goes on. At least I get to use IntelliJ IDEA to develop in. It might not be FOSS, but it is a fantastic piece of software and well worth paying for, if you're a professional Java developer.
When I'm not at work however, I get to run Linux. I'm not allowed to dual-boot my machine, but fortunately the laptop supports booting off USB devices, so I've connected an external USB drive to the machine and installed openSUSE on that. I had a few problems getting grub to boot properly - as grub renumbers its drives when it boots from USB, and openSUSE's installer doesn't take that into account. And then I had problems getting the 1920x1200 resolution to work, but I managed to sort that out using 915resolution. So now I have an awesome linux box to play with. (I'll post details off how I got everything working properly later).
I ran hdparm and compared my external 4200rpm drive with the internal 5200rpm one, and with the internal 7200rpm drive on my old machine. And the speeds of unbuffered reads were pretty much proportional to the speeds of the drives, while buffered reads were three times faster on the new machine than the old one. So having the drive on a USB connection seems to be having nearly no impact on performance. Which is nice. I just have to be very careful not to disconnect the drive while it's in use.
Since I have a second external drive, I'm thinking of installing another, cut down version of linux on it, specifically for developing KDE4 on. I want to have KDE3 installed in such a way that KDE4 won't see it at all - so no references to any of it in /etc. I don't want any KDE3 apps to show up in the menus of KDE4, and I don't want any clever openSUSE modifications to things - I want it to be pretty much a standard Linux installation. So I have to decide - should I use Ubuntu, Kubuntu, Fedora, Gentoo or Debian? Or something else?
Friday, January 26, 2007
Daily Surprises
Actually, I got a free Vista DVD at work yesterday - sent automatically by Microsoft in their action pack. I tried to update my Windows 2000 VMware image just to see what Vista is like. The installer said I didn't need to enter the product key, but if I didn't I might lost information, programmes and settings, and might need to buy a new copy of Vista. And then when I clicked Next it told me I only had 5Gb of free space so it couldn't continue. Oh well, I'll stick with Windows 2000 for when I really have to use Windows. Which isn't very often.
Sunday, January 21, 2007
Simple KDE4
CMakeLists.txt:
project( test1 )
find_package( KDE4 REQUIRED )
include_directories( ${KDE4_INCLUDES} )
set( SRC test1.cpp )
kde4_automoc( ${SRC} )
kde4_add_executable( test1 ${SRC} )
target_link_libraries( test1 ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} )test1.cpp
#include <KDE/KCodecs>
#include <QtCore>
#include <iostream>
int main(int argc, char *argv) {
KMD5 context( "Hello, world" );
std::cout << "Digest output: " << context.hexDigest().data() << std::endl;
}Very simple - but now I can start experimenting with the other kdelibs classes until I understand them well. Then I will be able to understand the rest of KDE better.
Friday, December 22, 2006
Powersave Wierdness
I'm not quite sure why this is happening, but since upgrading the openSUSE 10.2 (which went like a dream, by the way), kpowersave keeps switching back to dynamic mode, even though I want it to run in powersaving mode all the time. And I need it to run in powersave mode, because my laptop crashes when it's run at full speed. Which I think probably means the processor is dying, since the fans still run fine, and it reports that the temperature isn't getting too high, and I've tried swapping out the memory, removing the wireless card, running with nv drivers instead of nvidia - but it still hangs randomly. It was doing it on SUSE 10.1 as well, and the upgrade didn't fix it, so I don't think it's software. So it'd be nice to get kpowersave to keep the computer running at 1.2MHz again. I thought there was an option for it in 10.1, but I can't find it now.