summaryrefslogtreecommitdiff
path: root/extras
AgeCommit message (Collapse)Author
2009-11-3070-acl.rules: Use new-style input propertiesMartin Pitt
ID_CLASS is deprecated for input devices. Use new ID_INPUT_JOYSTICK instead.
2009-11-30extras: Add input_idMartin Pitt
input_id probes input/event devices for their class (keyboard, keys, mouse, touchpad, tablet, joystick). This is based on the corresponding hal code in hald/linux/device.c, input_test_{abs,rel,...}. This should provide enough functionality to get hal-less X.org working (which in particular needs to know exactly which devices are touchpads). Replace the brittle hacks in 60-persistent-input.rules with checking for the new ID_INPUT_* flags. This keeps the old ID_CLASS properties for now (but they are to be removed later on). Note: The current code has several hacks still, which are to be replaced with proper libudev calls later on.
2009-11-23modem-modeswitch: 61-option-modem-modeswitch.rules is only for Option NV devicesDan Williams
Make people aware that they shouldn't add devices not manufactured by Option NV to 61-option-modem-modeswitch.rules. modem-modeswitch only supports ejecting the fake CD for Option NV devices at this time. People should be using (and fixing) usb_modeswitch instead of modem-modeswitch.
2009-11-23Revert "extras/modem-modeswitch: Add Huawei E1550 GSM modem"Dan Williams
This reverts commit 53842b53820a0f0b2b0ff5b28caf01e3f7e26f22. The 'option-zerocd' method should *only* be used with Option NV devices since other manufacturers have completely different methods for killing their fake driver CD.
2009-11-23Revert "modem-modeswitch: add a device"Dan Williams
This reverts commit 5052297b6a8928d3ccfdd9996b71fdfff8bc8921. The 'option-zerocd' method should *only* be used with Option NV devices since other manufacturers have completely different methods for killing their fake driver CD.
2009-11-23scsi_id: Export WWN and Unit Serial NumberDavid Zeuthen
Since the Unit Serial Number and the WWN are useful bits of information export them as properties in the udev database. These bits of information are often printed on the physical disk, see http://people.freedesktop.org/~david/FUJITSU-MAY2036RC-sas-disk-picture.jpg and displaying them separately in the UI (or in /dev/disk) might help users identify the physical disk. This patch exports these bits of information as ID_WWN and ID_SCSI_SERIAL. Note that ata_id also use the ID_WWN property since commit 66094a4a7fc1d303e80785d586800eae9841502b (2009-11-04). Also print out ID_SCSI=1 so users of the udev database knows the disk speaks SCSI. Here's the scsi_id output from one of my SAS disks with these changes: ID_SCSI=1 ID_VENDOR=FUJITSU ID_VENDOR_ENC=FUJITSU\x20 ID_MODEL=MAY2036RC ID_MODEL_ENC=MAY2036RC\x20\x20\x20\x20\x20\x20\x20 ID_REVISION=0103 ID_TYPE=disk ID_SERIAL=3500000e01b83f520 ID_SERIAL_SHORT=500000e01b83f520 ID_WWN=0x500000e01b83f520 ID_SCSI_SERIAL=B3G1P8500RWT Unfortunately we can't overload ID_SERIAL for two reasons 1. ID_SERIAL (and ID_SERIAL_SHORT) exported by scsi_id isn't really the unit serial number (as defined by SCSI) - it is sometimes the WWN (since it is more unique than the Unit Serial Number) and complex rules (to make the serial unique) govern what value to use. 2. It would break existing setups if the value of ID_SERIAL changed Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-20README.keymap.txt: small clarificationMartin Pitt
2009-11-20ata_id: skip ATA commands if we find an optical driveKay Sievers
Some drives are reported to erase CD-RW media with the ATA commands we send. Thanks to Christoph Stritt <phoenix@jobob.com> for his debugging. Original bug is here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556635
2009-11-12modem-modeswitch: add a deviceHarald Hoyer
2009-11-10cdrom_id: Still check profiles even if there is no mediaDavid Zeuthen
Even when there is no medium in the drive, we should still check the profiles supported by the drive. Otherwise we fail to detect things like Blu-ray drives. See https://bugzilla.gnome.org/show_bug.cgi?id=600273 for more information. Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-09gudev: Remove LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE from priv headerDavid Zeuthen
Since libudev is no longer unstable either. Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-08gudev: Fix up GUdevDeviceNumberDavid Zeuthen
Actually dev_t is an unsigned quad type (e.g. 64-bit even on 32-bit x86) so defining it to be an integer is wrong and not future proof. Thus, redefine it to actually be a dev_t (as originally wanted) and instead add a work-around for GNOME bug #584517, see https://bugzilla.gnome.org/show_bug.cgi?id=584517 for details. This way, GObject Introspection will still work. This change is technically an API/ABI break but - all released GUdev versions requires the user to understand that the API/ABI is unstable by requiring the G_UDEV_API_IS_SUBJECT_TO_CHANGE symbols to be defined - functions using GUdevDeviceNumber are rarely used so we don't bump the so number. Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-06modem-modeswitch: fix ZTE MF6xx ruleMartin Pitt
https://launchpad.net/bugs/281335
2009-11-04ata_id: export more advanced ATA featuresDavid Zeuthen
2009-11-02extras/keymap/README.keymap.txt: Fix bug report linkMartin Pitt
udev-extras is gone, ask people to file bugs against udev.
2009-10-29gudev: remove G_UDEV_API_IS_SUBJECT_TO_CHANGE since API is now stableDavid Zeuthen
Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-10-29keymap: add HP 2230sMartin Pitt
Taken from hal-info commit e6389d9fa. http://bugs.freedesktop.org/show_bug.cgi?id=21527
2009-10-29keymap: add HP Pavillion dv6315eaMartin Pitt
Taken from hal-info commit eba65779.
2009-10-15keymap: Add Logitech Wave cordlessMartin Pitt
https://launchpad.net/bugs/215035
2009-10-11keymap: make USB keyboards really workMartin Pitt
Calling usb_id and GOTO in one rule did not make sense at all.
2009-10-11keymap: fix usb_id invocationMartin Pitt
For deciding whether to call usb_id, test the property which we are actually querying further down. https://launchpad.net/215035
2009-10-08keymap: Add Logitech Wave USBMartin Pitt
This introduces a new rules section for USB keyboards, too. https://launchpad.net/bugs/215035
2009-10-07keymap for Acer Aspire 5720Maxim Levitsky
2009-09-27udev-acl: catch up with ConsoleKit 0.4.1William Jon McCann
2009-09-17scsi_id: prevent buffer overflow in check_fill_0x83_prespc3()Harald Hoyer
see https://bugzilla.redhat.com/show_bug.cgi?id=516920
2009-09-14scsi_id: delete copy of bsg.hKay Sievers
It's provided by the kernel since 2.6.23.
2009-09-09extras/keymap: Rename KEY_COFFEE to KEY_SCREENLOCKMartin Pitt
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-09extras/keymap: fix hash table collisionsMartin Pitt
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-08fix randonm findings from llvm-clang-analyzerKay Sievers
Thanks to Lennart for the log file!
2009-09-07modem-modeswitch rules: Match more devicesMartin Pitt
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-08-30use nanosleep() instead of usleep()Daniel Mierswa
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-26Revert "extras/keymap: Fix case matching for Micro-Star"Martin Pitt
This reverts commit 66bf63c05cdc4e9b09818aa5fab0b9d319a1c91c. 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-26extras/keymap: Fix case matching for Micro-StarMartin Pitt
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-24extras/keymap: Fix hold key on Acer Aspire 6920Martin Pitt
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-24extras/modem-modeswitch: eject ZTE MF6xx fake CD-ROMsMartin Pitt
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-24extras/keymap: Add Acer Aspire 6920Martin Pitt
https://launchpad.net/bugs/407940
2009-08-20hid2hci: remove superfluous bmAttributes matchMario Limonciello
For the retrigger of the device on remove we were trying to match bmAttributes of self powered which is unnecessary.
2009-08-16rule_generator: net - fix MATCHDEVIDKay Sievers
This got lost for some reason with an earlier change. Thanks to Marco d'Itri <md@linux.it> for noticing.
2009-08-14udev-acl: allow to skip ACL handlingKay Sievers
2009-08-08Fix “make distcheck” run outside of the source directory.Diego Elio 'Flameeyes' Pettenò
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-08fix spellingAlan Jenkins
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-07Fix building of documentation when doing out-of-source builds.Diego Elio 'Flameeyes' Pettenò
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-07Use the keymap check during “make distcheck” rather than “check”.Diego Elio 'Flameeyes' Pettenò
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-07Finally, also merge gudev into the top-level Makefile.am.Diego Elio 'Flameeyes' Pettenò
The Introspection rules are not tested yet; more touch-ups have been made for them.
2009-08-07Merge keymap building in the top-level Makefile.am.Diego Elio 'Flameeyes' Pettenò
Slight adjustment around the tests and the rules for the new working directory.
2009-08-07Also merge into the top-level Makefile.am the simpler extras.Diego Elio 'Flameeyes' Pettenò
2009-08-07Merge libudev, udev, and the unconditional extras in a single Makefile.am.Diego Elio 'Flameeyes' Pettenò
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-07extras/keymap: Fix Bluetooth key on Acer Aspire 6920Martin Pitt
See https://launchpad.net/bugs/407940
2009-08-07extras/keymap: Add Samsung NC20Martin Pitt
Reported by Dirk Thierbach <dthierbach@gmx.de> on hal ML.
2009-08-07hid2hci: install re-trigger for hid device when recovering from S3Mario Limonciello