2008-12-30
2008-12-28
Fedora and the WizardPen Tablet of Genius
A few days on from some OS experimentation, and Fedora 10 on the eee is still running strong. Since then i have experimented with several tasks that i normally attempt on a new OS. One of these tasks is to get my tablet ( Genius MousePen 8x6 ) working. Other than being really good ( enough for me to stop using openSUSE on my eee ), it seems that Fedora has a few other surprises.
Downloading the wizardpen driver from the usual place, and performing the usual configure and make on the extracted source, the wizardpen_drv.so file is located in src/.libs. Once this is copied to the Xorg input modules directory ( /usr/lib/xorg/modules/input/ ), the next step involves editing the x.org config file, usually located at /etc/X11/xorg.conf.
So, as i have done for the last 8 years, i opened up a terminal and cd to /etc/X11, and vi xorg.conf. Momentarily i assumed that i had made a mistake, since "new file" was printed at the bottom of the screen. After triple checking the directory and filenames, i realised that there was no xorg.conf in this directory. My first reaction was that ( being a Fedora newbie ) it must have been in a different directory, so after searching through all the obvious directories and finding nothing, i decided to check online. The first relevant forum post states that Fedora does not have an xorg.conf file anymore. Once i had recovered from this news that had just shattered my view of the XServer, i read on. Turns out that it's all auto configured, since X can now dynamically load input drivers instead of having a single fixed config file. After a few minutes of thought and a considerably strong drink to calm the nerves, i looked up some more details on getting the tablet to work. ( Note: it is possible to have an xorg.conf, but it needs to be generated by installing system-config-display and saving those settings, thereafter X will use the newly generated xorg.conf )
With some decent Google search terms, i located a suitable forum post about using the wizardpen tablet under Fedora. Reading down to an entry by user Vikswd, i followed his/her simple instructions, logged out, plugged in the tablet, and it was working. Besides the initial recovery time after seeing no xorg.conf, this was the shortest time that it has taken to get my tablet working under any OS. I suspect that this setup might work for any Linux using the new Xorg with hot pluggable input ( 1.5 i believe ), but i have not tested it and will the moment i have a chance. This is how it's done:
- Make sure you have built and installed wizardpen_drv.so into the /usr/lib/xorg/modules/input directory. If you don't know how to do this there are many forum posts on the subject and it is really simple.
- Find the hardware name of your device by performing either:
cat /proc/bus/input/devices
or
grep -i name /proc/bus/input/devices
In the output will most likely be something like UC-LOGIC Tablet WP8060U... remember this. - Create a new file: /usr/share/hal/fdi/policy/20thirdparty/99-x11-wizardpen.fdi
- Edit this new file as root user, and put in the following content:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<deviceinfo version="0.2">
<device>
<!-- This MUST match with the name of your tablet -->
<match key="info.product" contains="NAME OBTAINED FROM STEP 2">
<merge key="input.x11_driver" type="string">wizardpen</merge>
<merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
<merge key="input.x11_options.TopX" type="string">10</merge>
<merge key="input.x11_options.TopY" type="string">10</merge>
<merge key="input.x11_options.BottomX" type="string">32747</merge>
<merge key="input.x11_options.BottomY" type="string">32762</merge>
<merge key="input.x11_options.MaxX" type="string">32747</merge>
<merge key="input.x11_options.MaxY" type="string">32762</merge>
</match>
</device>
</deviceinfo> - Plug in the tablet, and log out. This should do it. If not, hit Ctrl+Alt+Backspace for good measure ( twice if openSUSE 11 or above ) and that's it. Pressure sensitivity will work in Gimp by activating it under input devices in Gimp Preferences.
- As noted in the forum post, if something did go wrong, check your /var/log/Xorg.0.log for a (EE) line, possibly by doing something like grep EE /var/log/Xorg.0.log
That is really quick and easy, took me less time to do than running the tablet driver installer on Windows! Since then, i have been thoroughly enjoying having my tablet working again, since it has been roughly a year since i actually tried to draw anything. Some 800x480 KDE/eee backgrounds that i have done can be found here. The XML posted above is very similar to the traditional config, and modifying it would be a simple matter of adapting your usual settings ( based on the output of the wizardpen-calibrate app that gets built with the driver ). As always with my posts ( especially the How-To style ones ), any extra notes or different methods are appreciated in the comments. The more we can help the community, the better.
2008-12-24
Ubuntu and Back Again, a Scenic Journey
Following my blog entry on the unetbootin application, it was only logical that i review what exactly i did with the app. Since many people who have read my blog see me as a hater of freedom and an exclusively openSUSE user, i thought its about time i gave the free software community's little darling, Ubuntu, another shot. It's been a while since i've installed an OS other than openSUSE, mostly due to moving across the world and not really having a spare PC to mess around with ( since the EEE was also my wife's work PC, and the scene isn't pretty if i break it for a day ). Last time i tried a different OS must be about the same time last year ( Christmas cheer and all ), and it was Ubuntu. This time, i've experimented a bit and went through several OSes, and my results are not what some readers might expect. Even i didn't expect what happened...
I'm a software enthusiast, always looking to try something that looks interesting, free or not. As a programmer i prefer seeing source code, and my intrigue in different software often stems from wondering how it works. When people insist that something is good, then i must try it. Discovering unetbootin was an indirect result of this. People keep telling me how good Ubuntu is, so i thought i should try it on the EEE.
ubuntu-eee:
Knowing that there is a large EEE community, i figured that i'd try out the first EEE distro that i found, ubuntu-eee. Turns out that this uses unetbootin to get it onto a flash drive and boot ubuntu-eee. And hence my discovery of this awesome application. So i did the deed, and fired up ubuntu-eee. As you'd expect from a EEE distro, everything worked out of the box. It even had a "cute" netbook interface which made me feel like i was operating a mobile phone, but knowing that it was easy to get rid of, i proceeded to install the os ( which is really simple with Ubuntu as always ). Install was easy, everything went as expected, and i booted to the netbook interface. A few terminal lines later ( i felt right at home because apt's terminal interface isn't so different from zypper - i know apt came first don't crucify me for that ), and i had a sort of traditional Ubuntu interface. Gnome menu bar and desktop. Now i'm a KDE user, and my reasons for not using Gnome could be an entire blog post, so i need KDE installed. And not just any KDE, i want to be using at least 4.1.2 or ( preferably ) 4.2 Beta 2. Then i discovered that ubuntu-eee was based on 8.04LTS, and i needed to upgrade to 8.10 to get any decent KDE 4 support ( as per a forum post i found ). Sadly upgrading Ubuntu works only half of the time ( heard too many complaints from Ubuntu users ) and requires 1.2GB of harddrive space, which my EEE 701 can't handle. So without being able to upgrade i couldn't find a way of getting KDE 4. So i figured i'd move on to more familiar ground, and decided to check out what unetbootin could do.
openSUSE Factory:
As a normal openSUSE user who likes to have the latest software ( even unstable versions sometimes ), openSUSE Factory is a logical choice. I finally discovered the flexibility of the SUSE installer, the fact that a 20MB image can install from anywhere! A network connection is all that is required, so after using unetbootin to get the image onto the USB stick, i noted down the Factory url and rebooted. The installer started up in an old school NCurses environment and asked me for CDROM 1. Hitting cancel, i was given the option to perform a network install and all was needed was to enter the URL, and the usual graphical openSUSE installer popped up. As much as this was more complicated that from a live disk, it's rather flexible so i wasn't unimpressed. 3GB of rpm downloads later, and i had what appeared to be openSUSE 11.1. Interestingly it was labeled as openSUSE 11.2 Alpha, but at first i took no heed to this. Only when i attempted to use the great 1-Click install mechanism, did that become a problem. For some reason, it refused to register me as openSUSE Factory, and YaST wouldn't install anything from the 1-Click install site. This is a big piece of why i like openSUSE so much, and i figured that without this, i might as well be using Mandriva or Fedora ( for want of another RPM distro ). Gladly, all EEE features were working as expected. Other than that, it was kind of slow, considerably more so than the openSUSE 10.3 install i had left just 3 days before. I figured some of that was to do with KDE 4 running ( as opposed to XFCE which i had ) but none-the-less it was too slow for my daily use. I figured after a day or so, that i didn't give an Ubuntu based distro a decent chance, and since a colleague was saying that my experience of Ubuntu was poor because it was ubuntu-eee, i thought i should keep up the experiment.
Kubuntu 8.10:
So i got the next distro and booted it up. As per usual, Kubuntu came as a live distro, with option to install, so i jumped right in. After the painless install process, i booted into a clean Kubuntu install for the first time. There were two things that i noticed instantly. Firstly, there were updates available. Secondly, my wifi driver wasn't working and i had no internet access. So how exactly did it know about the updates? I'm still debating the ways in which this might have occured but haven't yet thought up a reasonable answer. Maybe it should have been called Omnipotent Ibex. So i pulled out a lan cable, fired up konqueror and did some browsing. It turns out that even though 8.10 claims that the EEE 701 wifi card is in the driver list ( in use and working ), it isn't. Many posts are in forums about this, and there is no official kernel support for this card. There is however a EEE kernel which i proceeded to install following a few command line tricks. It was at this point i really missed the 1-Click install, since i prefer as little command line interaction as possible. So after a reboot, everything was working ( and i put that lan cable away ). So now to get some software. The Adept software manager was the only software installer available, so i played around for a while and wasn't too impressed. I needed finer control of the packages i wanted, and i remembered that Synaptic package manager should be here somewhere. Oddly i had to install it! This is really odd for me, because even OpenOffice was installed, which should never be on the EEE 701. Given that, i installed Synaptic and removed Oo, and then continued setting up all my usual stuff, gimp, abiword and others. One thing that did impress me was that since the install, compositing had been running perfectly ( thanks KWin ), and really smoothly too. Being somewhat impressed i kept playing around for a while, but couldn't help feeling that it was still not much faster than openSUSE, even without Compositing. Boot time was still long, and as with every distro i've tried on either of the ( widescreen ) laptops, boot process still spams text ( in Kubuntu's case, it starts with a graphical logo and then returns to a full text boot ). Feeling somehwat ok with Kubuntu, i only have a few complaints. Firstly, there is no centralized system admin tools, and knowing that only Mandriva and SUSE focus on this, i'm ok to accept it if decent admin tools are provided. With Kubuntu this was borderline, but still ok. It's enough for most users, and i could see why people would be more than happy to accept this given that their hardware all worked perfectly with the OS. I really dislike the Synaptic package manager, as it it somewhat difficult to tweak the installed packages to a point where there is minimal disk usage, but everything still works. Some packages won't deselect no matter what, and i feel that i need more control over my system. Overall though it felt good, if not a little to slow. Yes, i am giving Kubuntu an thumbs up! There is also something about Ubuntu, which is my main reason for not using it, that it feels very raw. It's hard to describe, but i've always thought of Ubuntu as feeling like someone might imagine a community distro. There's something rough about it, like a bunch of people hacked together some tools and gave it a name. Maybe it's because i have very little Debian experience, and that is just the feel of Debian, but i like things to feel like they are products, not progressions. This aside, i could live with Kubuntu, and so, i decided to download some Live ISO's ( onto an external HDD ) and try out unetbootin's set up from ISO feature. And then i met Fedora 10.
Fedora 10:
At first booting the live distro with no intention to install, something struck me. There was no streaming text on boot. It seems that if Fedora cannot find a resolution for boot, it does an NCurses style loading bar which still looks impressive given i've been staring at scrolling text for the last year. A small thing, but still a nice little bit of polish. KDE 4.1.3 starts up, and i notice immediately that it feels just like what i'm used to, on the other laptop! The speed was incredible. Granted, the compositing was disabled, it felt ridiculously fast. I also realised that the wireless networking was working perfectly and somehow seemed to connect quicker than i've ever seen network manager connect. This wasn't just perception, and i think there is some preloading trick somewhere, or maybe i'm just used to bad drivers. It seems like a Fedora KDE live cd, is really a KDE cd! There was no OpenOffice ( for that i'm grateful ), and KOffice was installed by default. There was almost nothing non-KDE or non-Fedora, which was interesting, because even ubuntu using some Gnome stuff on Kubuntu. I also noticed that they had backported panel hiding to plasma, which was a pleasant surprise ( given on Kubuntu i was used to having the panel on the left ). Menu icon was themed ( unlike Kubuntu ) and overall it felt really well put together. The Fedora themes are also beautiful, and i must admit that i've always disliked the default color scheme of Ubuntu and openSUSE always overdoes the green, so the blue of Fedora 10 is a rather nice change. Given that i was rather taken aback by a distro i've never given more than 20 minutes to, i figured i'd install it knowing that i could always go back to Kubuntu. The install was the simplest yet, even easier than Kubuntu's which really impressed me. Simple process, done, and after a reboot, i had a Fedora 10 EEE. Again the boot process was covered up by the nice loading bar. Desktop speed was even faster installed, to be expected, and overall a great feel. Trying to install software wasn't as simple as on Kubuntu, given that the software installer is the rather new KPackageKit, but once i was used to it, it was relatively impressive. It still needs some work, but i have a lot of faith in the KDE team, so i'm willing to keep using it. One issue, for example, was that it wouldn't install a non-trusted RPM, so i was forced to do a command line install. Seems this is a known issue and i think it has to do with PolicyKit. On that note, Fedora has a really nice Authorizations dialog, allowing you to set things like that and grant the user whatever permissions are needed Generally the tools were just enough for my EEE, and the OS was the fastest so far. As far as KDE use goes, they did really well, by far better than Kubuntu and openSUSE. Although i miss YaST, Fedora makes me feel comfortable enough to not need it. I decided to try one more Live distro, Mandriva 2009.0, but that failed on boot, although i won't deny being slightly relieved that i didn't have to relinquish Fedora.
The result really surprised me in the end, but i have to say that Fedora is the best distro i've put on the EEE so far! The perfect tradeoff between speed and beauty ( with KDE 4.1 ), they have really done a fantastic job of making sure that the core elements are provided without losing any performance. I still need to retry Mandriva and openSUSE 11.1 ( not that factory nonsense ) to be fair, but i'm not convinced that they will be able to dethrone Fedora.
2008-12-23
Get Your Fresh OS on a Stick!
Recently i discovered an application that falls into a class of applications that stick in my mind for a long time. This includes apps like the SysInternals process manager for Windows ( because sometimes i like end task to end a task ). This application is called unetbootin and can be found here.
It is an app that allows you to install one of many listed operating systems onto a flash drive or potentially any disk. It makes the disk bootable, and comes with a list of most of the decently known Linux distros. And i say decently known, because distros such as Mint, CentOS, DSL, Puppy and others are included. It also allows you to download an iso image of your favourite distro and let unetbootin use the iso to create a bootable USB stick for you. It has a really simple interface and very seldom fails to do what you expect of it.

So why would i want something like this. Other than not caring to have lots of dvd's to burn, i also have an Asus EEE 701 with no external dvd drive, all i have is an old 1GB USB stick. So OS installation is not easy. Unetbootin allows me to change my OS as often as i want, which is exactly what i have done. The article following this will cover my adventures in switching OS... a few times.
2008-12-17
Making Games and Stuff
Since i am a game developer, it might be nice for any readers that i might have to see what i have done. I work for a dutch game developer Codeglue, and our first iPhone game hit the App Store yesterday. The game is on special at $2.99 until 5 Jan. Myself and Harald Maasen were the two lead developers on the project, with my main focus being on the graphics engine ( or at least that's what i'm most proud of ). The game is called HydroTilt, and its basically a 3D puzzle game based on rolling a water droplet around a level, collecting a "cool" block that turns you into ice, and carrying it to the finish. The levels become progressively harder with more puzzles to solve, and a skill based challenge in getting the elusive crystal to unlock a special treat. On the surface it sounds like a great idea, but it really needs to video to show how awesome this game is:
As you can see, the graphics are really easy on the eyes and the gameplay is intuitive. We at Codeglue are really proud of this game ( especially the game's lead designer Tom Rutjens ) and hope to see it do well in the App Store. The game is produced by Peter de Jong, and published by Publisher X. A review was done by Touch Arcade here, and i will probably post many more links to reviews of the game. if any reader does download it, i would greatly appreciate it if you could post a video of the credits on youtube, veoh or any other video site and send me a link. Other than having my name in it, there is something special about the credits ;)
2008-12-13
Lancelot, and the Knights of the Plasma Widget
As controversial as it has been, i've been a supporter of KDE 3's Kickoff menu ( as introduced by openSUSE Linux ), and hence a supporter of the new KDE 4 default menu. There are some vocal protesters, but i feel that this sort of menu is a huge leap forward in general, and something with the ability to type instead of searching through tonnes of submenus is a great relief to me. Adding a few tabs for useful items adds more usability and helps with the overall feel of the menu. While i have heard of the Lancelot menu/application launcher, i had never used it until today. So what is Lancelot? I think the best description requires some images. So i opened up KSnapshot and used some of its great features to just snap a picture the KDE default menu and then Lancelot.
KDE 4 default menu has the text entry bar at the top, allowing me to type just a few letters to find the application i am looking for. The tabs at the bottom allow me to select applications and browse the menu in a simple, yet sophisticated manner. Instead of cascading submenus all over, the menu that you browse to scrolls into the pane as the previous one scrolls out, keeping things small and ordered. The biggest disadvantage is that it is difficult to navigate up the tree of this menu quickly, as there is only a button to take you back up one level. The concept of breadcrumbs ( as with Dolphin or Finder's path bars ) would be great.
Lancelot has some similarities with overall appearance and feel. Also having several tabs for different things, although it does put the Shutdown/Logout items on the main canvas of the menu. Again, it has a text entry bar, allowing me to locate applications within seconds instead of browsing the whole menu. Another brilliant feature is that Lancelot has not only breadcrumbs, but also shows the previous menu in a compressed space next to your current ( you can configure the number of parent menus visible ). Here you have the option to select the menu you would like to be in from the breadcrumbs or the previous menus on the side.
As someone who is a stickler for usability and efficiency, this sort of project is really brilliant. The fact that there is competition between different menu systems is part of what gives open-source operating systems an edge over the commercial ones. The lack of alternatives in Windows and Mac limit their drive to improve the existing one, and result in the lack of efficiency in operating your desktop. While the days of Linux playing catchup to proprietary systems are gone, i feel that the KDE project is now the leader in innovation over all the platforms. Plasma is ever so controversial, but many great innovations have been, and the ideas in Plasma are going to be copied and change the desktop forever. Widgets like Lancelot are proof thereof, congrats to Ivan Čukić and the other guys working on it. The main issues people have with Plasma are to do with stability, and i still find the occasional issue ( normally because i still have old libraries ), but 4.2 is looking to be a release that might lead to mainstream uptake of the KDE 4 series. On another note, well done to the openSUSE team, the openSUSE Plasma theme is really looking great!
2008-12-11
More Pre-installs, More Market Share
This comes just a month after the news that the Windows market share has dropped below 90%, i might wonder if this news might encourage other manufacturers to do the same. So what does this mean for the Linux community. Truth is that most Linux users won't buy this particular PC, but it is targeted at businesses and schools anyway. What it does mean is that, in my opinion, Linux market share is about to hit the 1% mark. And it will continue to head up, as long as hardware manufacturers do this. The advantages of this knock back onto the causes. As more hardware manufacturers decide to pre-install Linux, drivers for Linux will improve and more applications that are important to people will become available ( or better ), and so more hardware manufacturers will pre-install Linux. This is exactly the sort of effect that has been created by Netbooks and their ongoing growth. Linux drivers are at their most compatible, i was greatly surprised a few months back when i installed openSUSE 11.0 Linux onto an Acer Travelmate laptop and didn't need any drivers, special installs or hacks to get anything working. Everything was perfect out of the box, and that is really impressive considering the usual issues with laptop WiFi, Lan and function keys. Added to this, i haven't had any issues with Linux ( openSUSE and Mandriva at least, Ubuntu had some issues with two network cards back then ) on a desktop for years. Now with MadWifi available under GPL v2, it can be integrated into the mainstream kernel, adding more network support. Add to this a whole list of out of tree drivers being cleaned up and new ones being added by the Linux Driver Project, and things are looking great for the future of pre-installed Linux.
So where do these market share stats come from? Here! It's interesting to note that Apple's market share also jumped a percentage point in correlation with the iPhone sales boosts. Interesting considering that you need a Mac to develop for an iPhone huh? I wonder how many Mac minis are going to start gathering dust after the iPhone fad dies down?
EDIT: There are also stats available here ( thanks L4Linux ) which put Linux market share at 2.11%. This stats site has a smaller sampling area than the other one i listed ( 50 million p/m vs 160 million p/m ), but it is still interesting to see.
