How to make M1330's eject button work with Ubuntu

One problem i had with my dell is not really a critical issue more of an annoyance. The fancy eject button just above my the dell’s keyboard those not work. I would have to manually right click and eject any mounted cd from its icon on the desktop. it would make my life easier if solved. well i have found a solution

open terminal

Application/Accessories/Terminal

and run this command.

sudo gedit /etc/sysctl.conf

now add this line to the bottom of the config text file that opens

# allow eject of cdrom using eject button
dev.cdrom.lock=0

save and close.

The eject botton should now work.