Bug 18773

Summary: udev hwdb is broken after booting new kernel
Product: Mageia Reporter: Tamás Hajdu <fathom>
Component: RPM PackagesAssignee: Thomas Backlund <tmb>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: marja11
Version: 5   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: kernel-desktop-latest-4.4.13-1.mga5 CVE:
Status comment:

Description Tamás Hajdu 2016-06-23 13:00:59 CEST
Description of problem:
I have a logitech m560 mouse, which needs to have udev hwdb rule to get special keys working properly. 
Here is the hwdb rule for this mouse:

# Logitech M-560
keyboard:usb:v046DpC52B*
 KEYBOARD_KEY_70007=back                # Back button sends second keycode. 700E3 is the first and already mapped.
 KEYBOARD_KEY_700E7=274                 # Forward as middle
 KEYBOARD_KEY_7002B=prog1               # Will Send tab when move right with middle button click
 KEYBOARD_KEY_70072=prog1               # Will send f23 when move left with middle button click
 KEYBOARD_KEY_700E2=reserved            # Will Send leftalt when move left with middle button click
 KEYBOARD_KEY_700E3=reserved            # Will Send leftmeta when move right with middle button click. Also is sent when use Back button.
 KEYBOARD_KEY_90004=left                # Left Scroll Click map to Left
 KEYBOARD_KEY_90005=right               # Right Scroll Click map to Right 

After installing and booting up kernel 4.4.13, this rule stops working.

Version-Release number of selected component (if applicable):
4.4.13

How reproducible:
Always

Steps to Reproduce:
1. Add the rule
2. Reboot to 4.4.13 kernel
3. Mouse rules does not work any more
Marja Van Waes 2016-06-23 17:20:29 CEST

CC: (none) => marja11
Assignee: bugsquad => tmb

Comment 1 Tamás Hajdu 2016-08-01 02:03:09 CEST
Still applies to kernel 4.4.16-desktop-1.mga5
Comment 2 Tamás Hajdu 2016-08-07 14:05:37 CEST
Hello,

It turns out that this mouse got a driver from kernel 4.2. https://github.com/CzBiX/logitech-m560

Unfortunately this does not enable the plus buttons by default, but at least the strange double codes sent by the middle button are now handled normally.

I suggest as a default to add these buttons to xbindkeysrc the following:
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
b:11
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
b:10

This assigns forward and backward to those buttons on the side.

Status: NEW => RESOLVED
Resolution: (none) => INVALID