FS#30108 - [systemd-tools] The script keyboard-force-release.sh is buggy

Attached to Project: Arch Linux
Opened by Olivier (olive) - Saturday, 02 June 2012, 12:42 GMT
Last edited by Dave Reisner (falconindy) - Monday, 04 June 2012, 14:02 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
The script /usr/lib/udev/keyboard-force-release.sh is buggy. This script need to be run (from /usr/lib/udev/rules.d/95-keyboard-force-release.rules) in order to force a release event on some laptop multimedia keys. The bug have been introduced in the update from udev 182-4 to systemd-tools 184-2. I attach the needed correction.

Additional info:
* package version(s)
systemd-tools 184-2
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Dave Reisner (falconindy)
Monday, 04 June 2012, 14:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  testing/systemd-tools-184-3
Comment by Dave Reisner (falconindy) - Saturday, 02 June 2012, 18:45 GMT Comment by Olivier (olive) - Saturday, 02 June 2012, 21:57 GMT
Good. Don't forget to correct the shebang too (missing the exlamation mark)
Comment by Dave Reisner (falconindy) - Saturday, 02 June 2012, 22:07 GMT
Technically this still runs fine without the proper shebang, but it should indeed be fixed as well.
Comment by Olivier (olive) - Saturday, 02 June 2012, 22:22 GMT
Are you sure? In my case it didn't run with the proper shebang (and I took some time to see this... run udevd in debug mode). It will run if you launch it by hand from a terminal using bash but it is not what udevd do.
Comment by Dave Reisner (falconindy) - Saturday, 02 June 2012, 22:31 GMT
Ah right, that's a shell feature. Patch sent a while ago anyways.
Comment by Lukasz (xorgx3) - Sunday, 03 June 2012, 12:18 GMT
Probably I have this bug and it very annoying me. I used above patch instead of keyboard-force-release.sh, but still this same i.e when I push key my volume crazy :)
How fast fix them?
Comment by Olivier (olive) - Sunday, 03 June 2012, 13:32 GMT
@Lukasz

I answer you in the forum (which is more appropriate):

https://bbs.archlinux.org/viewtopic.php?pid=1110435#p1110435

Loading...