Skip to main content
added 582 characters in body
Source Link

#####Update: ###Thank you @dirkt. Please take a look at the details:

  1. I use Ubuntu 16.04.1 LTS Unity
  2. /dev/input/event11: RK61 Bluetooth keyboard
  3. sudo lsof /dev/input/event11 output: acpid, Xorg
  4. evtest --grab /dev/input/eventX result: you are right, because the brightness of the Laptop screen brightness of the Laptop screen staystay the same (I've pressed Fn + 1 => F1)!

###Trying to kill acpid process: 5. sudo kill 757 // killing acpid process 6. sudo lsof /dev/input/event11 output: Xorg // OK acpid killed 7. Pressing F1 -> Brightness is changing! // FAIL

###Here is my rdesc file: https://pastebin.com/vxDvwMwr

###Here is the hexdump: https:// pastebin.com/eT9mNnGV

Also I tried to change keycode via xkbcomp and it doesn't help.

Please write any thoughts. Thank you!

###Thank you @dirkt. Please take a look at the details:

  1. I use Ubuntu 16.04.1 LTS Unity
  2. /dev/input/event11: RK61 Bluetooth keyboard
  3. sudo lsof /dev/input/event11 output: acpid, Xorg
  4. evtest --grab /dev/input/eventX result: you are right, because the brightness of the Laptop screen stay the same (I've pressed Fn + 1 => F1)!

###Trying to kill acpid process: 5. sudo kill 757 // killing acpid process 6. sudo lsof /dev/input/event11 output: Xorg // OK acpid killed 7. Pressing F1 -> Brightness is changing! // FAIL

##Update: ###Thank you @dirkt. Please take a look at the details:

  1. I use Ubuntu 16.04.1 LTS Unity
  2. /dev/input/event11: RK61 Bluetooth keyboard
  3. sudo lsof /dev/input/event11 output: acpid, Xorg
  4. evtest --grab /dev/input/eventX result: you are right, because the brightness of the Laptop screen stay the same (I've pressed Fn + 1 => F1)!

###Trying to kill acpid process: 5. sudo kill 757 // killing acpid process 6. sudo lsof /dev/input/event11 output: Xorg // OK acpid killed 7. Pressing F1 -> Brightness is changing! // FAIL

###Here is my rdesc file: https://pastebin.com/vxDvwMwr

###Here is the hexdump: https:// pastebin.com/eT9mNnGV

Also I tried to change keycode via xkbcomp and it doesn't help.

Please write any thoughts. Thank you!

added 582 characters in body
Source Link

###Thank you @dirkt. Please take a look at the details:

  1. I use Ubuntu 16.04.1 LTS Unity
  2. /dev/input/event11: RK61 Bluetooth keyboard
  3. sudo lsof /dev/input/event11 output: acpid, Xorg
  4. evtest --grab /dev/input/eventX result: you are right, because the brightness of the Laptop screen stay the same (I've pressed Fn + 1 => F1)!

###Trying to kill acpid process: 5. sudo kill 757 // killing acpid process 6. sudo lsof /dev/input/event11 output: Xorg // OK acpid killed 7. Pressing F1 -> Brightness is changing! // FAIL

###Thank you @dirkt. Please take a look at the details:

  1. I use Ubuntu 16.04.1 LTS Unity
  2. /dev/input/event11: RK61 Bluetooth keyboard
  3. sudo lsof /dev/input/event11 output: acpid, Xorg
  4. evtest --grab /dev/input/eventX result: you are right, because the brightness of the Laptop screen stay the same (I've pressed Fn + 1 => F1)!

###Trying to kill acpid process: 5. sudo kill 757 // killing acpid process 6. sudo lsof /dev/input/event11 output: Xorg // OK acpid killed 7. Pressing F1 -> Brightness is changing! // FAIL

added 45 characters in body
Source Link

I bought compact keyboard. F1 = Fn + 1 and F2 = Fn + 2 ... enter image description here But F1-F12 keys don't work on my Ubuntu 16.04. For example F1 makes brightness up. I checked keycodes of F1-F12 keys and they are invalid. So F1 returns 232 keycode (instead 67).

I tried fix it using: xmodmap -e "keycode 232 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1" But it didn't help. F1 still change brightness. I tried remap other F1-F12 keys and no results. Xmodmap works only for non functional keys.

Is it possible to fix F1-F12 keys? (Swap keycodes?)

Xmodmap configured correct but F1 still change brightness:

$ xmodmap -e "keycode 232 = F1 F1 F1 XF86Switch_VT_1" # IT DON'T HELP!!

$ xmodmap -pke # everything is OK!
keycode  67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1 F1 F1 XF86Switch_VT_1
keycode 232 = F1 F1 F1 XF86Switch_VT_1

$xev # take a look: XKeysymToKeycode = 67... F1... everything is OK again...
KeyRelease event, serial 40, synthetic NO, window 0x5000001,
    root 0xf5, subw 0x0, time 921326, (236,-87), root:(236,403),
    state 0x0, keycode 232 (keysym 0xffbe, F1), same_screen YES,
    XKeysymToKeycode returns keycode: 67
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
$sudo evtest 
Event: time 1497517949.369064, -------------- SYN_REPORT ------------
Event: time 1497517949.458895, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 0

$ setxkbmap -print
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)" };
    xkb_types     { include "complete"  };
    xkb_compat    { include "complete+ledscroll(group_lock)"    };
    xkb_symbols   { include "pc+us+inet(evdev)+capslock(swapescape)"    };
    xkb_geometry  { include "pc(pc105)" };
};

P.S. Also F1-F12 work properly on Windows.

I bought compact keyboard. F1 = Fn + 1 and F2 = Fn + 2 ... enter image description here But F1-F12 keys don't work on my Ubuntu 16.04. For example F1 makes brightness up. I checked keycodes of F1-F12 keys and they are invalid. So F1 returns 232 keycode (instead 67).

I tried fix it using: xmodmap -e "keycode 232 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1" But it didn't help. F1 still change brightness. I tried remap other F1-F12 keys and no results. Xmodmap works only for non functional keys.

Is it possible to fix F1-F12 keys? (Swap keycodes?)

Xmodmap configured correct but F1 still change brightness:

$ xmodmap -e "keycode 232 = F1 F1 F1 XF86Switch_VT_1" # IT DON'T HELP!!

$ xmodmap -pke # everything is OK!
keycode  67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1 F1 F1 XF86Switch_VT_1
keycode 232 = F1 F1 F1 XF86Switch_VT_1

$xev # take a look: XKeysymToKeycode = 67... F1... everything is OK again...
KeyRelease event, serial 40, synthetic NO, window 0x5000001,
    root 0xf5, subw 0x0, time 921326, (236,-87), root:(236,403),
    state 0x0, keycode 232 (keysym 0xffbe, F1), same_screen YES,
    XKeysymToKeycode returns keycode: 67
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
$sudo evtest 
Event: time 1497517949.369064, -------------- SYN_REPORT ------------
Event: time 1497517949.458895, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 0

$ setxkbmap -print
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)" };
    xkb_types     { include "complete"  };
    xkb_compat    { include "complete+ledscroll(group_lock)"    };
    xkb_symbols   { include "pc+us+inet(evdev)+capslock(swapescape)"    };
    xkb_geometry  { include "pc(pc105)" };
};

I bought compact keyboard. F1 = Fn + 1 and F2 = Fn + 2 ... enter image description here But F1-F12 keys don't work on my Ubuntu 16.04. For example F1 makes brightness up. I checked keycodes of F1-F12 keys and they are invalid. So F1 returns 232 keycode (instead 67).

I tried fix it using: xmodmap -e "keycode 232 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1" But it didn't help. F1 still change brightness. I tried remap other F1-F12 keys and no results. Xmodmap works only for non functional keys.

Is it possible to fix F1-F12 keys? (Swap keycodes?)

Xmodmap configured correct but F1 still change brightness:

$ xmodmap -e "keycode 232 = F1 F1 F1 XF86Switch_VT_1" # IT DON'T HELP!!

$ xmodmap -pke # everything is OK!
keycode  67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1 F1 F1 XF86Switch_VT_1
keycode 232 = F1 F1 F1 XF86Switch_VT_1

$xev # take a look: XKeysymToKeycode = 67... F1... everything is OK again...
KeyRelease event, serial 40, synthetic NO, window 0x5000001,
    root 0xf5, subw 0x0, time 921326, (236,-87), root:(236,403),
    state 0x0, keycode 232 (keysym 0xffbe, F1), same_screen YES,
    XKeysymToKeycode returns keycode: 67
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
$sudo evtest 
Event: time 1497517949.369064, -------------- SYN_REPORT ------------
Event: time 1497517949.458895, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 0

$ setxkbmap -print
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)" };
    xkb_types     { include "complete"  };
    xkb_compat    { include "complete+ledscroll(group_lock)"    };
    xkb_symbols   { include "pc+us+inet(evdev)+capslock(swapescape)"    };
    xkb_geometry  { include "pc(pc105)" };
};

P.S. Also F1-F12 work properly on Windows.

Added xmodmap, xev, setxkbmap outputs; debug;
Source Link
Loading
Source Link
Loading