Configure the Keyboard in Ubuntu



Follow this guide to assign the Cr-48 media keys to their appropriate functions in Ubuntu 10 (see further down for Ubuntu 11.04 "Natty" setup).

  1. Install Ubuntu by following the guide here

  2. Install xbacklight either by using Synaptic Package Manager or by typing this in the terminal: sudo apt-get install xbacklight

  3. Go to System > Preferences > Keyboard Shortcuts

  4. Click the Add button

  5. Under Name: type Brightness up

  6. Under Command: type xbacklight -set 100

  7. Click the Apply button

  8. Click the Add button again

  9. Under Name: type Brightness down

  10. Under Command: type xbacklight -dec 10

  11. Click the Apply button

  12. Scroll down to the bottom of the Keyboard Shortcuts window where you'll find the two shortcuts you just created

  13. Click the right column next to the shortcut Brightness up and the words New shortcut... will appear

  14. Press the appropriate brightness control button on your Cr-48 keyboard to link that button to the shortcut

  15. Repeat the previous two steps for the Brightness down shortcut

  16. Scroll to the top of the Keyboard Shortcuts window and repeat these steps for the volume controls and any other actions you wish to assign to specific keys

  17. It may be necessary to reboot the computer to get everything working



cr-48_media_keys.png
cr-48_keyboard.jpg

Ubuntu 11.04

This version of Ubuntu uses a different mechanism for controlling the display backlight level. Save the following script as "backlight.sh" to your disk, in /home/user/backlight.sh . The script reads from and writes to /sys/class/backlight/i915_backlight/brightness in order to set the brightness of the screen. It is called with either "up" or "down" to increase/decrease the brightness of the screen.

With the file in place in /home/user/backlight.sh (or wherever you wish to store it):
1. Run 'chmod +x /home/user/backlight.sh' to make the script executable
2. Run 'sudo chmod 777 /sys/class/backlight/i915_backlight/brightness' to make the backlight device file writeable by all users (or set the permissions as you see fit, but the user logged into XWindows must have write permissions to the file or changes will not be allowed to the backlight value).
  • At this point, the file can be run at the command line with "/home/user/backlight.sh up" and "/home/user/backlight.sh down"
3. Configure "System" -> "Preferences" -> "Keyboard Shortcuts" and add new mappings for the two backlight buttons on the CR-48. Add two custom shortcuts:
  • Decrease Screen Brightness: set its "Command" field to "/home/user/backlight.sh down" and map it to Ctrl+F6
  • Increase Screen Brightness: set its "Command" field to "/home/user/backlight.sh up" and map it to Ctrl+F7