** Description changed:

  Binary package hint: udev-extras
  
  Release: Jaunty (9.04)
  Package tested: udev-extras-20090602+1-2~jaunty1
  
  Prior to installing udev-extras from Pitti PPA, this Laptop had a lot of
  issues in terms of some unknown and some incorrect keymaps with hal,
  although the Sound Up/Down/Mute, LCD/display toggle, and Suspend Fn keys
  worked out of the box in both hal and udev-extras
  
  Example snippet from syslog:
  ---------------------------------------
  Jul 17 21:33:32 jas-everex kernel: [ 3452.528080] atkbd.c: Unknown key 
pressed (translated set 2, code 0x7f on isa0060/serio0).
  Jul 17 21:33:33 jas-everex kernel: [ 3452.674895] atkbd.c: Unknown key 
released (translated set 2, code 0x7f on isa0060/serio0).
  Jul 17 21:33:35 jas-everex kernel: [ 3454.685330] atkbd.c: Unknown key 
pressed (translated set 2, code 0x6f on isa0060/serio0).
  Jul 17 21:33:35 jas-everex kernel: [ 3454.872654] atkbd.c: Unknown key 
released (translated set 2, code 0x6f on isa0060/serio0).
  Jul 17 21:33:38 jas-everex kernel: [ 3457.951496] atkbd.c: Unknown key 
pressed (translated set 2, code 0x67 on isa0060/serio0).
  Jul 17 21:33:38 jas-everex kernel: [ 3458.199592] atkbd.c: Unknown key 
pressed (translated set 2, code 0x67 on isa0060/serio0).
  Jul 17 21:33:38 jas-everex kernel: [ 3458.270450] atkbd.c: Unknown key 
released (translated set 2, code 0x67 on isa0060/serio0).
  Jul 17 21:49:14 jas-everex kernel: [ 4394.577450] atkbd.c: Unknown key 
pressed (translated set 2, code 0x65 on isa0060/serio0).
  Jul 17 21:49:15 jas-everex kernel: [ 4394.785012] atkbd.c: Unknown key 
released (translated set 2, code 0x65 on isa0060/serio0).
  
  
  I followed the very helpful information in 
/usr/share/doc/udev-extras/README.keymap.txt to resolve these issues and to 
create a keymap for this lappy to solve all the problematic Fn Keys :)
  By the way, there's a little typo in that README.keymap.txt: "cat cat 
/sys/class/dmi/id/product_name" <- cat twice
  
  
  system vendor and product
  ------------------------------------
  j...@jas-everex:~$ cat /sys/class/dmi/id/sys_vendor
  Everex         
  j...@jas-everex:~$ cat /sys/class/dmi/id/product_name
  XT5000T 
  
  
  Key mapping from step 3 (see attached everex-stepnote_xt5000t file)
  
-------------------------------------------------------------------------------------------
  /lib/udev/keymaps/everex-stepnote_xt5000t
  
  
  `sudo /lib/udev/keymap input/event5 > /tmp/orig-map.txt` Output
  
--------------------------------------------------------------------------------------
  http://ubuntu.pastebin.com/f1cabf855
  
  
  `udevadm info --export-db > /tmp/udev-db.txt` Output
  ------------------------------------------------------------------------
  http://ubuntu.pastebin.com/fa41a52d
  
  
  Rule added in file: "/lib/udev/rules.d/95-keymap.rules"
  After the line: 'LABEL="keyboard_vendorcheck"'
  
  ENV{DMI_VENDOR}=="Everex*", ATTR{[dmi/id]product_name}=="XT5000T",
  RUN+="keymap $name everex-stepnote_xt5000t"
  
  That fixed all the unknown keys (brightness up/down Fn keys, touchpad
  on/off toggle Fn key, fan speed control button) and redefined web, mail,
  and media buttons
  
  Unfortunately gnome-power-manager does not offer support for this
- laptop's video backlight dimming feature (Nvidia 7600), so I had to
- install nvclock-0.8b4-1ubuntu2 to use it's native backlight controls
- feature, as there was also a bug in smartdimmer with increasing
+ laptop's video backlight dimming feature (Nvidia Geforce 7600 Go), so I
+ had to install nvclock-0.8b4-1ubuntu2 to use it's native backlight
+ controls feature, as there was also a bug in smartdimmer with increasing
  backlight brightness (because the driver expects increments of 10 at
  least, while smart dimmer does increments of 5)
  
- And as a workaround, to use my Fn brightness keys in gnome, I created a file 
~/.xbindkeysrc with the following 4 lines:
+ One you installed nvclock, you can adjust your screen's brightness level
+ from command line using nvclock -S option... For more info, see `nvclock
+ -h`
+ 
+ Workaround to get Brightness Fn keys working in GNOME:
+ ----------------------------------------------------------------------------
+ 1. Go to: System -> Preferences -> Keyboard Shortcuts
+ 
+ 2. Scroll down to the end of the list to see the category "Custom
+ Shortcuts"
+ 
+ 3. Click "Add" to add a custom shortcut
+ Name: Brightness Down
+ Command: /usr/bin/nvclock -S -10
+ Then click "Apply" to add it.
+ 
+ 4. Click "Add" to add another custom shortcut
+ Name: Brightness Up
+ Command: /usr/bin/nvclock -S +10
+ Then click "Apply" to add it.
+ 
+ 5. Click the text "Disabled" in the shortcut column for the "Brightness
+ Down" entry, then press Fn+F8
+ 
+ 6. Click the text "Disabled" in the shortcut column for the "Brightness
+ Up" entry, then press Fn+F9
+ 
+ Note on steps #5 and #6:
+ If your keybinding setup as described above was completed successfully in 
udev (or udev-extras from Pitti's PPA), you should see "XF86MonBrightnessDown" 
automatically filled in when you press Fn+F8, and "XF86MonBrightnessUp" when 
you press Fn+F9..
+ 
+ Or, if you're not using GNOME, or like a more window-manager-independant
+ workaround, try the next "alternative" workaround (though it didnt
+ really work all the time for me in gnome, and had to `killall xbindkeys`
+ and rerun `xbindkeys` many times)
+ 
+ Alternative Workaround to get Brightness Fn keys working in Xorg
+ 
---------------------------------------------------------------------------------------
+ 1. Create a file ~/.xbindkeysrc with the following 4 lines:
  "/usr/bin/nvclock -S -10"
    XF86MonBrightnessDown
  "/usr/bin/nvclock -S +10"
    XF86MonBrightnessUp
  
- and ran `xbindkeys` and now my brightness Fn keys just work :D
- and of course added `/usr/bin/xbindkeys` to gnome startup
+ 2. Run `xbindkeys` on the shell (as user, not root) and the brightness
+ Fn keys should just work :D
  
- Hope this helps, and thanks for this :)
+ 3. Of course, don't forget to add `/usr/bin/xbindkeys` to your window manager 
startup so you don't have to run xbindkeys manually everytime you login to your 
desktop
+ (example: in gnome, System -> Preferences -> Startup Applications)
+ 
+ Hope this helps, and big thank you to Martin Pitt for the back-ported
+ udev-extras package for jaunty :)

-- 
Everex Stepnote XT5000T keymap
https://bugs.launchpad.net/bugs/400921
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to