Commit graph

690 commits

Author SHA1 Message Date
Martin Pitt 368d325ba8 modem-modeswitch: fix ZTE MF6xx rule
https://launchpad.net/bugs/281335
2009-11-06 00:12:21 +01:00
David Zeuthen 66094a4a7f ata_id: export more advanced ATA features 2009-11-04 16:37:06 +01:00
Martin Pitt f0f7a43f4e extras/keymap/README.keymap.txt: Fix bug report link
udev-extras is gone, ask people to file bugs against udev.
2009-11-02 16:22:14 +01:00
David Zeuthen 5448cc56f6 gudev: remove G_UDEV_API_IS_SUBJECT_TO_CHANGE since API is now stable
Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-10-29 18:46:50 +01:00
Martin Pitt 1150c6e641 keymap: add HP 2230s
Taken from hal-info commit e6389d9fa.

http://bugs.freedesktop.org/show_bug.cgi?id=21527
2009-10-29 13:23:14 +01:00
Martin Pitt 5f4f842a82 keymap: add HP Pavillion dv6315ea
Taken from hal-info commit eba65779.
2009-10-29 13:21:07 +01:00
Martin Pitt 0ddfae5fff keymap: Add Logitech Wave cordless
https://launchpad.net/bugs/215035
2009-10-15 00:13:17 +02:00
Martin Pitt e13eecbdf3 keymap: make USB keyboards really work
Calling usb_id and GOTO in one rule did not make sense at all.
2009-10-11 20:02:11 +02:00
Martin Pitt e8f04b65f3 keymap: fix usb_id invocation
For deciding whether to call usb_id, test the property which we are actually
querying further down.

https://launchpad.net/215035
2009-10-11 18:18:43 +02:00
Martin Pitt 5fa1d79421 keymap: Add Logitech Wave USB
This introduces a new rules section for USB keyboards, too.

https://launchpad.net/bugs/215035
2009-10-08 21:43:38 +02:00
Maxim Levitsky a05cd7ea3e keymap for Acer Aspire 5720 2009-10-07 14:47:20 +02:00
William Jon McCann bded570432 udev-acl: catch up with ConsoleKit 0.4.1 2009-09-27 06:37:26 -07:00
Harald Hoyer 676cea155a scsi_id: prevent buffer overflow in check_fill_0x83_prespc3()
see https://bugzilla.redhat.com/show_bug.cgi?id=516920
2009-09-17 00:06:03 +02:00
Kay Sievers 24355313dc scsi_id: delete copy of bsg.h
It's provided by the kernel since 2.6.23.
2009-09-14 14:33:26 +02:00
Martin Pitt 7f06ec2e19 extras/keymap: Rename KEY_COFFEE to KEY_SCREENLOCK
Unfortunately KEY_COFFEE is the canonical name in linux/input.h, and the more
sensible KEY_SCREENLOCK is an alias. Manually override this particular case,
since it's better to have "screenlock" in keymaps.

However, we still keep the automatic filtering for the general case, to avoid
introducing this problem again when input.h changes.
2009-09-09 15:22:48 +02:00
Martin Pitt 6983c0d0f2 extras/keymap: fix hash table collisions
More than one key name was mapped to the same key, due to linux/input.h
defining some aliases (in particular, KEY_HANGUEL, KEY_SCREENLOCK,
KEY_MIN_INTERESTING). These caused hash table collisions.

Changed the generation of the tables to ignore these aliases, and updated all
keymaps to use the canonical name.

This was detected by llvm-clang-analyzer. Thanks to Lennart Poettering for
doing these checks and pointing this out!

https://launchpad.net/bugs/426647
2009-09-09 11:09:17 +02:00
Kay Sievers 78715f65c9 fix randonm findings from llvm-clang-analyzer
Thanks to Lennart for the log file!
2009-09-08 22:11:04 +02:00
Martin Pitt bfde03a149 modem-modeswitch rules: Match more devices
extras/modem-modeswitch/61-mobile-action.rules: Match on device class/subclass
"00" as well, some devices like the Vodafone K3565-Z have that.

https://launchpad.net/bugs/281335
2009-09-07 19:37:43 +02:00
Daniel Mierswa 959e8b5dec use nanosleep() instead of usleep()
POSIX.1-2001 declares usleep() function obsolete and POSIX.1-2008
removes it.

[Kay Sievers]
  - include time.h
  - use const for timespec
  - scsi_id: drop rand() in retry loop
  - modem-probe: rename msuspend() to msleep()
2009-08-30 23:58:57 +02:00
Martin Pitt bc19bff974 Revert "extras/keymap: Fix case matching for Micro-Star"
This reverts commit 66bf63c05c.

Further debugging in https://launchpad.net/bugs/178860 showed that for some
weird reason the correct key codes already come out of the "Video Bus" input
device, and the previous commit would cause them to appear a second time
through the standard keyboard device.

This is a kernel bug in the end, but let's not break working things
prematurely.
2009-08-26 22:39:32 +02:00
Martin Pitt 66bf63c05c extras/keymap: Fix case matching for Micro-Star
Some Micro-Star boards apparently have mixed case vendor, instead of all-caps.
Update the glob to catch all such cases.

https://launchpad.net/bugs/178860
2009-08-26 19:09:06 +02:00
Martin Pitt d25b7205db extras/keymap: Fix hold key on Acer Aspire 6920
The Hold key locks the panel and is hardwired. It doesn't have a sensible
keycode to map to, and shouldn't be overloaded either.
2009-08-24 17:59:42 +02:00
Martin Pitt 3c47b388ee extras/modem-modeswitch: eject ZTE MF6xx fake CD-ROMs
modem-modeswitch does not fully work on ZTE MF6xx modems, their fake CD-ROMs
need to be properly ejected in order for the actual modem to appear. Add udev
rule for this device (19d2:2000 in CD-ROM mode).

https://launchpad.net/bugs/281335
2009-08-24 12:02:07 +02:00
Martin Pitt 5daaf29d71 extras/keymap: Add Acer Aspire 6920
https://launchpad.net/bugs/407940
2009-08-24 08:36:30 +02:00
Mario Limonciello 8a0217ffd4 hid2hci: remove superfluous bmAttributes match
For the retrigger of the device on remove we were trying to match bmAttributes
of self powered which is unnecessary.
2009-08-20 19:43:51 +02:00
Kay Sievers c8663095e3 rule_generator: net - fix MATCHDEVID
This got lost for some reason with an earlier change.

Thanks to Marco d'Itri <md@linux.it> for noticing.
2009-08-16 21:12:04 +02:00
Kay Sievers 11a421dab5 udev-acl: allow to skip ACL handling 2009-08-14 20:13:20 +02:00
Diego Elio 'Flameeyes' Pettenò 90b955b836 Fix “make distcheck” run outside of the source directory.
Pass the path to keys.txt as second parameter of check-keymaps.sh so that
it can be found in the right path.
2009-08-08 22:13:25 +02:00
Alan Jenkins 214a6c791c fix spelling
Fix spelling in docbook comments, code comments, and a local variable
name.  Thanks to "ispell -h" for docbook HTML and "scspell" for source
code.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-08-08 15:42:05 +02:00
Diego Elio 'Flameeyes' Pettenò bd2dab9ce5 Fix building of documentation when doing out-of-source builds.
Since gtk-mkhtml is executed in a sub-directory of the build directory, and
make does not know of that, the $(buildir) variable will still be "." and
the $(srcdir) will not properly be found. For this reason, use the absolute
variants for the two functions, which won't be changing.
2009-08-07 21:54:35 +02:00
Diego Elio 'Flameeyes' Pettenò eab32c2529 Use the keymap check during “make distcheck” rather than “check”.
Since the check-keymaps.sh script checks for validity the source directory
and the Makefile.am file, instead of running it during user-oriented “make
check”, run it during developed-oriented “make distcheck”.

An invalid keymap will abort the execution which will prevent shipping
an incomplete Makefile.am.

To properly support out-of-source builds, pass as single parameter to the
test the path to the source directory.
2009-08-07 20:05:55 +02:00
Diego Elio 'Flameeyes' Pettenò 33eb18305d Finally, also merge gudev into the top-level Makefile.am.
The Introspection rules are not tested yet; more touch-ups have been made
for them.
2009-08-07 19:15:30 +02:00
Diego Elio 'Flameeyes' Pettenò 7d701b0e26 Merge keymap building in the top-level Makefile.am.
Slight adjustment around the tests and the rules for the new working
directory.
2009-08-07 19:15:29 +02:00
Diego Elio 'Flameeyes' Pettenò b02140b6bc Also merge into the top-level Makefile.am the simpler extras. 2009-08-07 19:15:29 +02:00
Diego Elio 'Flameeyes' Pettenò 59d93adb29 Merge libudev, udev, and the unconditional extras in a single Makefile.am.
Instead of using multiple recursive Makefile.am files, use a single
Makefile.am that sets and builds all the basic suite of libraries and
binaries for udev. This reduces the number of files in the source tree, and
also reduces drastically the build time when using parallel-make.

With this setup, all the compile steps will be executed in parallel, and
just the linking stage will be (partially) serialised on the libraries
creation.
2009-08-07 19:15:28 +02:00
Martin Pitt 4de08374d0 extras/keymap: Fix Bluetooth key on Acer Aspire 6920
See https://launchpad.net/bugs/407940
2009-08-07 15:41:54 +01:00
Martin Pitt 5e22aab2e9 extras/keymap: Add Samsung NC20
Reported by Dirk Thierbach <dthierbach@gmx.de> on hal ML.
2009-08-07 11:11:48 +01:00
Mario Limonciello 8aba9a4bca hid2hci: install re-trigger for hid device when recovering from S3 2009-08-07 02:23:44 +02:00
Anssi Hannula 2a0c6867cb udev-acl: add joystick devices
User needs read-write access to joystick devices in order to use force
feedback features.
2009-08-05 05:08:45 +02:00
Kay Sievers 2a827c959a make: build internal tools against libudev-private.la 2009-07-25 20:37:45 +02:00
Kay Sievers 4b6769f612 hid2hci: rewrite (and break) rules and device handling
We must never access random devices in /dev which do not belong to
the event we are handling. Hard-coding /dev/hidrawX, and looping over all
devices is absolutely not acceptable --> hook into hidraw events.

We can not relay on (rather random) properties merged into the parent
device by earlier rules --> use libudev to find the sibling device
with a matching interface.

Libusb does not fit into udev's use case. We never want want to scan
and open() all usb devices in the system, just to find the device
we are already handling the event for --> put all the stupid scanning
into a single function and prepare for a fixed libusb or drop it later.
2009-07-24 18:06:22 +02:00
Kay Sievers 58230a77d3 path_id: fix typo in comment 2009-07-23 20:30:52 +02:00
Martin Pitt 0dcf1ce1f7 extras/keymap: Fix crash for unknown keys
The keymap table has some holes in it, which caused the interactive mode to
crash for unknown keys. In these cases, print the numeric key code instead.
2009-07-23 19:00:38 +02:00
Erik Forsberg 53842b5382 extras/modem-modeswitch: Add Huawei E1550 GSM modem
What's odd is that this is a huawei modem, not an option modem, so one would
expect it to work better with usb_modeswitch and it's -H (huawei) mode - but
that's not the case, I've tested that as well.

https://launchpad.net/bugs/401655
2009-07-23 16:40:25 +02:00
Kay Sievers 1b691f831b path_id: make global variable static 2009-07-22 19:09:48 +02:00
Kay Sievers 9821e70264 hid2hci: remove hid structures and include kernel header 2009-07-22 01:03:33 +02:00
Mario Limonciello 5bacd2aadc hid2hci: support to hid2hci for recovering Dell BT devices after S3 2009-07-22 00:33:27 +02:00
Kay Sievers 7a1566b0ee v4l_id: exit with 0 when --help is given 2009-07-21 01:36:42 +02:00
Martin Pitt 9093c7c132 extras/keymap: Add Samsung SX22S
Reported on hal ML by Sergey Astanin <s.astanin@gmail.com>.
2009-07-20 17:59:11 +02:00
Martin Pitt 0b8d9a7333 extras/keymap: teach findkeyboards about USB keyboards 2009-07-18 16:59:46 +02:00