Fixing Xmonad Enter Bindings

So I switched over Xmonad during the Ubuntu-za jam with the help of Vaughan I say help but it was more like me copying his configurations over to my machine with very minor tweaking.

His configuration contains a few handy key bindings, one of which is super+shift+enter which opens up a terminal.  The problem was in the process of copying configs over this binding didn’t seem to work. We tried the standard things

  1. Absolute binary paths is /usr/bin/xterm
  2. Changing terminals to gnome-terminal
  3. Good old windows trick of rebooting
  4. xmonad –recompile

None of them seemed to work and we were out o luck so we just decided to remap it to super+shift+g (not 100% sure why G though).  This worked but it bugged me to no end. I eventually got some help in #xmonad on freenode  by vav.

Xev you can get what keycodes are emitted.

xev | grep keysym
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
state 0x0, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES

As you can see it see it seems to be when num-lock is on the keyevent fired for Enter key changes, I am not sure if this is a Xserver bug or not but other computers don’t seem to exhibit the same behavior?

Any how once you have that worked out fixing it is trivial just simply bind to both key events.

((modm .|.  shiftMask, xK_Return), spawn $ XMonad.terminal conf )
, ((modm .|.  shiftMask, xK_KP_Enter), spawn $ XMonad.terminal conf )

I hope that this might help some one Googling.

Thursday, April 1st, 2010 Ubuntu Comments Off on Fixing Xmonad Enter Bindings

ZA Jammed Like Champions

Awhile ago I posted that Ubuntu-za and clug was planning a Jam. Well on Sunday it actually happened and +- 20 people showed up. I consider that to be pretty awesome.


  • Tumbleweed explained basic bug reporting, Debian packaging, translations and gave us a quick demo on building Hello.
  • Almost every one upgraded/reinstalled to Lucid some people even did both
  • Some one made a 3D render animation of Tux (I really need to find out what his name was and if we can get hold of it)
  • Mythbuntu crept into peoples boot screens. See LP bug A fix has since been released
  • Michiel started translating things into Afrikaans
  • I started using xmonad
  • Coke was drunk
  • Pizza’s were eaten (Thanks Clug)
  • Coffee was made (thanks tumbleweed+maia)
  • Milk was spilt
  • And nothing blew up

Some Pics

Tags: , , , , , ,

Monday, March 29th, 2010 Ubuntu Comments Off on ZA Jammed Like Champions

Ubuntu-za Is Jamming

So I guess it is about time I finally blog about it. Ubuntu-za in conjunction with Clug will be hosting a Jam. I just want to thank Stefano and Maia for all their hard work in setting it up and being so proactive.

Maia long with a few other people from -za have wiped up a pretty cool post for the even if I do say so my self.


You can find the source for both the English and Afrikaans versions on Spread Ubuntu.

As you can see from the post the event will be at the Shuttleworth Labs at UCT directions between 10am – 5pm on Sunday the 28th March 2010. If you can’t make it for the full time don’t worry just pop in at any point. We will have the full LEG mirror so even if you wont have to worry about downloading all those big packages or worrying about downloading large ISO’s just for testing.

Reasons to come

  • Having fun learning from others.
  • Get help installing Ubuntu
  • Trying out the development release. Don’t worry you don’t need to be a developer or even an experienced Ubuntu user.
  • Translations
  • Want to save bandwith and come copy the repos
  • Learn how to report bugs so that they might actually get fixed!
  • Learn packaging
  • Watch some cool pre-release demos from Lucid

In preparation  for this event I went and upgraded my laptop to Lucid. I don’t really know how long it took because I did the very trusting thing and went to sleep after entering Y.


I did wake up with a nice shiny blue screen asking me if I wanted to overwrite my grub menu selected keep original and about 5minutes later I had a nice shinny purple lucid looking screen. Woohoo.

I also then reporting my first Lucid theme bug. Before I have every one goes on about oh noes not another move buttons to the right bug report this one is slightly different. It actually requests if the buttons are by default on the left can we make the theme previews or at least the default theme on the left too.

Tags: , ,

Friday, March 19th, 2010 Ubuntu 1 Comment

Broadcom BCM4322 Wireless On Ubuntu Karmic

I recently tried setting up a Dell Laptop with a Broadcom wireless driver. It was the only thing that wasn’t auto detected and setup correctly. Which got me a bit worried.

[email protected]:~$ lspci | grep -i net
0e:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)

One of the first hits in Google was from Dimitar while this blog post has nice detailed instructions. It seems to miss points that make Linux so amazing the first being package management and on this point being able to upgrade your kernel. I found that blog post to be very informative and detailed but the part that made me question things was

Then click on the “Status” button and select “Installed”. Then search for “linux-”. Select all packages that start with “linux-” and then Package -> Lock Version.

What so I wouldn’t be able to do kernel updates? That wasn’t going to do at all. So I did what any good Floss user would do and read the read me from the BroadCom driver page

Some distros (Ubuntu and Fedora at the least) already have a version of
this driver in their repositories precompiled, tested and ready to go.
You just use the package manager to install the proper package. If
its available for your distro, this is usually an easier solution. See
the end of this document for further discussion.

This is something I haven’t seen that often official drivers pointing you to the Distro maintained versions. Linux has come along way in recent years. Any how for all those that happen to stumble here from Google and other places. I just want to mention the easier way to get the drivers working is written in the readme. 🙂

Go to System->Administration->Hardware Drivers
Choose the Broadcom STA wireless driver

Sometimes the driver does not show up in the Hardware Drivers choices. In
this case, try reintalling the driver from the GUI or shell like this:

From the GUI:
Package Manager (System>Administration>Synaptic Package Manager). Click the
Reload button in the upper left corner of Synaptic to refresh your index then
search for and reinstall the package named bcmwl-kernel-source.

From the shell:
sudo apt-get update
sudo apt-get –reinstall install bcmwl-kernel-source

In either GUI or text case, after reinstalling, reboot your machine.

Now go back to System->Administration->Hardware Drivers
and you should see the driver enabled and working.

I really hope this helps some one from compiling their own driver and having to maintain it between kernel upgrades. Btw I have upgraded my Karmic kernel to the latest with it still working.

Tags: , , , , ,

Monday, March 15th, 2010 Ubuntu 10 Comments

Stellenbosch Ubuntu Hour Report Back

A few days ago I mentioned Ubuntu Hour.Well we put some details and a pic on our wiki. All in all I think it was good start, I got to start my morning off with a decent cup of coffee that I didn’t have to make my self. Even though it was small I think we showed off Ubuntu well with T-Shirts, Stickers and 2 tables with 3 laptops powered by Ubuntu.

I know the timing isn’t great for work people (9am – 10am) so maybe we can think about switching it around or have another one at a pub after work for some beers? One of the main reasons for this time is the idea of starting something like this is to try make it fit into your routine not change your routine to fit it since this makes it easier to keep up with it in the long run.

Tags: , ,

Friday, February 5th, 2010 Ubuntu Comments Off on Stellenbosch Ubuntu Hour Report Back