Bug 18182 - lxinput: keyboard repeat rate requires conversion when passed to xset
Summary: lxinput: keyboard repeat rate requires conversion when passed to xset
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory MGA5-32-OK MGA5-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2016-04-11 13:38 CEST by Nicolas Salguero
Modified: 2016-04-13 19:39 CEST (History)
2 users (show)

See Also:
Source RPM: lxinput
CVE:
Status comment:


Attachments

Description Nicolas Salguero 2016-04-11 13:38:26 CEST
Hi,

This is an upstream bug: https://sourceforge.net/p/lxde/bugs/815/.  The problem is that xset expects the keyboard repeat rate to be passed to it in characters per second but it is passed in milliseconds per character instead. This causes the repeat rate to go down instead of up (or vice versa) after the user logs out and in.

Moreover, to configure the keyboard via xset, lxinput creates a .desktop file in $HOME/.config/autostart/ which contains "NotShowIn=GNOME;KDE;XFCE;" whereas it should contain "OnlyShowIn=LXDE;".

Best regards,

Nico.
Comment 1 Nicolas Salguero 2016-04-11 13:50:06 CEST
Suggested advisory:
========================

The updated package passes to xset the keyboard repeat rate in the format expected by xset (characters per second) and ensures that the configuration done by lxinput only applies to LXDE.
========================

Updated packages in core/updates_testing:
========================
i586:
lxinput-0.3.4-2.1.mga5.i586.rpm

x86_64:
lxinput-0.3.4-2.1.mga5.x86_64.rpm

Source RPMs:
lxinput-0.3.4-2.1.mga5.src.rpm

Status: NEW => ASSIGNED
Assignee: bugsquad => qa-bugs
Source RPM: (none) => lxinput

Comment 2 Len Lawrence 2016-04-11 21:08:57 CEST
Tested in i586 virtualbox.
Before update:
Tried it out under Mate then switched to LXDE.

LXDE: 
Played with keyboard settings....
autostart]$ cat LXinput-setup.desktop
[Desktop Entry]
Type=Application
Name=LXInput autostart
Comment=Setup keyboard and mouse using settings done in LXInput
NoDisplay=true
Exec=sh -c 'xset m 20/10 10 r rate 1000 90 b on'
NotShowIn=GNOME;KDE;XFCE;

Had been expecting about 11 characters per second, not 90.

After updating used the gui to set a delay of 1000ms and a 200ms repeat interval.
$ cat .config/autostart/LXinput-setup.desktop
[Desktop Entry]
Type=Application
Name=LXInput autostart
Comment=Setup keyboard and mouse using settings done in LXInput
NoDisplay=true
Exec=sh -c 'xset m 20/10 10 r rate 1000 5 b on'
OnlyShowIn=LXDE;

The repeat rate looks reasonable and the settings took effect immediately.

Logged out and into KDE4.  The new settings were not applied.
Logged into Mate.  Again the keyboard settings had not been changed by the
LXDE configuration.
Tried LXDE again and found the slower settings in place.
  
Update OK for i586.

URL: (none) => MGA5-32-OK
CC: (none) => tarazed25

Len Lawrence 2016-04-11 21:10:57 CEST

URL: MGA5-32-OK => (none)
Whiteboard: (none) => MGA5-32-OK

Comment 3 Len Lawrence 2016-04-11 22:10:37 CEST
Tests on x86_64 proceeded in the same way and returned the same results.  Confirmed that after the update lxinput settings affected only the LXDE desktop.

Good for 64-bit and can be validated.
Len Lawrence 2016-04-11 22:11:15 CEST

Keywords: (none) => validated_update
Whiteboard: MGA5-32-OK => MGA5-32-OK MGA5-64-OK
CC: (none) => sysadmin-bugs

Comment 4 claire robinson 2016-04-13 18:51:35 CEST
Advisory uploaded.

Whiteboard: MGA5-32-OK MGA5-64-OK => advisory MGA5-32-OK MGA5-64-OK

Comment 5 Mageia Robot 2016-04-13 19:39:54 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGAA-2016-0064.html

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.