Debian ready for your netbook?
April 28th, 2012 by Gary Richards - Categories: Linux, Operating SystemsA few years ago I caved and began using Ubuntu on various machines just because it was quick and easy. No more compiling stuff constantly on my Gentoo machines. Far less issues trying to get totally random packages that I might want to use than i’ve had in the past with Fedora/Redhat…
Recently with various upgrades and now the new Ubuntu LTS Precise, I found my netbook (a 1.6GHz Intel Atom with 2GB ram) was starting to struggle a little bit. Their unity interface was pretty slow, so I tried switching to xfce. Things were better, but everything still seemed slower than it needed to be. From boot through login and to the stage where I was able to type into a terminal was now about 45 seconds. I felt like I was running Windows on a significantly underpowered machine again! By the time i’d logged in and was using my terminal, I was using around 800MB of RAM. Once you fire up your browser, mail, etc. I was using almost all my 2GB of RAM. So I began to look for alternatives.
The obvious choice seeing as i’ve become so much more comfortable with Debian style systems from all the Ubuntu work i’ve done is Debian. I use it on a whole bunch of servers, but decided to see what I could do with it on my netbook.
I set out to try and give myself similar to what I am currently using on Ubuntu so that I had some sort of comparison. So the plan was a graphical login manager, xfce as the desktop environment, the fairly standard apps that we’re all so used to. And the simplicity of things like network-manager and related applets etc.
As you may expect, Ubuntu and Debians setups are still quite similar, therefore most of the packages in one are available for the other. It didn’t take long to get Debian Wheezy installed to a stage where I was presented with the still rather unattractive xdm, logged in to be presented with xfce. I have wired networking. So I installed Iceweasel (yeah Iceweasel, it’s what everyone else calls firefox) and as expected it worked fine (i’m even writing this post on it!). I could go and install thunderbird (or whatever its name is in debian) or evolution but i’m sure they will work fine too. So I set out to see if some of the other features that I use most days work.
Suspend… nope. Things happen, the screensaver locks, but no suspend.
Wireless… I already knew from past experience that I would need to make sure various firmware was installed, so I won’t go into it too much. Basically in the non-free part of the wheezy distribution contains various packages with firmware in the name. Install the relevent one and away you go. I had a wlan0 device, and iwlist scan showed me some access points.
Network-manager and its applet… Easy enough to install and network-manager itself seems to be doing something. But I can’t actually configure a wireless network within the applet because whenever I try it tells me
(32) Not authorized to control networking.
I thought it was as simple as forgetting to add myself to the netdev group. But it wasn’t. I could login as root and configure things. So there was definitely somethign permission related. I searched and found various debian bugs with people having similar issues. Most suggestions seemed to be related to your login manager not talking with console kit correctly. There was one suggestion to add a small config snippet somewhere under the policykit config. But that was like voodoo to me. I tried it and I was able to control networking. I didn’t really like it but thought I would live with it for the moment as it meant that I could continue my work on the sofa rather than at my desk!
I then tried out bluetooth. I had a similar issue. The bluetooth applet couldn’t start due to permissioning problems of /dev/rfkill. Further searching… Ok, similar suggestions. The permissions of /dev/rfkill are ‘wrong’ but various things should take care of this for you so long as the whole policykit/consolekit stuff is working. It seemed that more voodoo would be required, so I left it for now. I did look at ck-list-sessions. And just like everything I read, it told me
ACTIVE = false
People appear to have raised relevent bugs against things like xdm because they don’t support the neccessary things properly. So there’s not much I can do. One solution is to install gdm, but when I looked at that you pull in almost all of gnome by the looks of it. So i’d rather not. My ultimate goal was to have as little unnecessary stuff as possible afterall!
At this stage I started to get a little fed up, i’d spent most of the morning fighting stuff that should just work. I’m sure I was missing something, so I went to shutdown the machine… But no, I could logout, but the shutdown and restart buttons are greyed out. Once logged out, I could see a plain xdm login screen, with no buttons or anything other than a box to type my username.
I gave up for a bit and came back to it today. I started looking at alternative lightweight display managers/login managers whatever you want to call them. And came across lightdm. It seems to be nice and simple, it’s just a bit nicer looking than xdm and most of all it looked like it had a button I could click to shut my machine down after I logged out of xfce.
Installation was easy as ever, 4 additional packages on what I already have installed, confirming that I wanted to use it instead of xdm and that was it. I rebooted to try it (I probably could have switched runlevels, but remember i’ve got a machine that now boots in 10 seconds rather than 45 so it’s a novelty again!).
I was presented with the login box and all seemed well. I logged in, great. Everything still works…. lets logout. Erm? What happened? Now I can shutdown AND restart from within xfce? Why?
So I begin to wonder… does lightdm actually support the whole policykit/consolekit/whatever stuff that xdm doesn’t? I quickly find that now I can start the bluetooth applet and it no longer complains about not being able to access rfkill. I try to suspend… and the netbook suspends. I revert the voodoo config addition that I did to allow me to configure wifi access points. I rebooted again (yep, still all about the novelty) and wow… I can configure access points with network manager applet.
So, i’ve wasted 3 or so hours trying to work out why everything wasn’t working, when it seems that xdm itself is the problem as it doesn’t correctly support stuff.
The last few things I tried out where:
Screen brightness – check, works like a charm
Audio – I can control volume with the volume keys, mute with the mute key. That seems to be enough for now.
The only outstanding things now are that I can’t scroll with the right side of my track pad yet. And some other special keyboard keys don’t work. Such as teh suspend key, the wifi kill switch (not the software one that I fixed by switching to lightdm, the ‘hardware’ one).
That’s about it. Oh, all in all, once logged in my netbook now uses 200MB of RAM. With firefox open with about 10 tabs and a terminal with a few tabs. I’m currently just pushing past 400M.
Oh and my netbook feels like a new one once again!
So my conclusion… Yes, get rid of Ubuntu and get Debian on your netbook! Just remember to use lightdm instead of xdm if you’re not planning to use gnome and all should mostly be well!