summaryrefslogtreecommitdiff
path: root/extras
AgeCommit message (Collapse)Author
2011-03-01Remap Acer WMI touchpad toggle key to F21 used by XLee, Chun-Yi
Currently, Acer WMI driver generates KEY_F22 but this will soon change to KEY_TOUCHPAD_TOOGLE. X has defined F21 for the purpose of touchpad toggle and other udev keymaps align with this meaning. Patch aligns Acer WMI hotkey drivers with F21. Tested on Acer TravelMate 8572 notebook using acer-wmi driver. Cc: Carlos Corbacho <carlos@strangeworlds.co.uk> Cc: Matthew Garrett <mjg@redhat.com> Cc: Dmitry Torokhov <dtor@mail.ru> Cc: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Lee, Chun-Yi <jlee@novell.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-02-24cdrom_id: cd_media_toc() extend toc size to 65536Harald Hoyer
Seems like an iDRAC reports a lot of toc entries. "For cd_media_toc() will have to be modified to handle larger tables right now it has an "unsigned char toc[2048]" but the toc can be up to 65536 bytes long . I got a TOC length of 4610 bytes, causing cd_media_toc() to fail." https://bugzilla.redhat.com/show_bug.cgi?id=660367 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-02-20keymap: Fix Acer Aspire 5920G media keyMartin Pitt
From downstream bug: "In Windows this button launch Acer Arcade or Acer Arcade Deluxe application - it's media center like XBMC." https://launchpad.net/bugs/637695
2011-02-15v4l_id: remove left-over variableKay Sievers
2011-02-15v4l_id: kill the v4l1 ioctlKay Sievers
Recent kernels do not have v4l1 anymore.
2011-02-10keymap: Remove wlan from DellMatthew Garrett
The Dell rfkill key is handled by hardware and the dell-laptop driver catches the i8042 event in order to update the rfkill state. Sending wlan to userspace will just result in userspace trying to revert the change the hardware has just made. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-02-09ata_id: do not print empty serial numbers to avoid unwanted trailing '_'Kay Sievers
2011-02-09keymap: Add Acer Aspire 8930Jürgen Kaiser
http://bugs.debian.org/612512 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-01-25extras: qemu - fix typoKay Sievers
2011-01-25extras: add rules for qemu guestsGerd Hoffmann
These patches enable usb autosuspend for the qemu emulated HID devices. This reduces the cpu load for idle guests with a hid device attached because the linux kernel will suspend the usb bus then and qemu can stop running a 1000 Hz to emulate the (active) UHCI controller. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2011-01-16keymap: Explain how to end the programMartin Pitt
Pressing Escape will only actually work if keymap is currently examining the primary keyboard. For other devices the user needs to press Control-C instead.
2011-01-16keymap: More robust state machineMartin Pitt
Some drivers, like thinkpad_acpi, do not send a scan code at all (for known keys), and some send the key code first, then the scan code. Implement a better state machine which acceps them in any order and wait until a SYN event. If the driver does not send SYN events, keymap will also handle this and print out that fact. Thanks to Seth Forshee for pointing out how this really works! https://launchpad.net/bugs/702407
2011-01-16keymap: Move reading of event in separate functionMartin Pitt
2011-01-13keymap: Add Lenovo ThinkPad X201 tabletMartin Pitt
https://launchpad.net/bugs/702426
2011-01-07keymap: Update README.keymap.txtMartin Pitt
Drop orig-map.txt requirement, we don't really use it in practice. Also ask for sending stuff to the mailing list instead of Launchpad.
2011-01-07keymap: Add Acer TravelMate C310Martin Pitt
Thanks to Dieter Herrmann for the report!
2011-01-03Remap Eee PC touchpad toggle key to F21 used by XChris Bagwell
Currently, Eee PC have a hotkey that generates KEY_F13 but this will soon change to KEY_TOUCHPAD_TOOGLE. Both cases do not work well with X. X has defined F21 for the purpose of touchpad toggle and other udev keymaps align with this meaning. Patch aligns Eee PC hotkey drivers with F21. Tested on Eee PC 1005PE using both eeepc-wmi and eeepc-laptop driver (with acpi_osi="!Windows 2009"). Signed-off-by: Chris Bagwell <chris@cnpbagwell.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-12-15gudev: Add Device.get_usec_since_initializedDavid Zeuthen
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-12-14Add g_udev_device_get_is_initialized() methodDavid Zeuthen
Also nuke the "Index of deprecated symbols" since we have no deprecated symbols just yet. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-12-14Add GUdevEnumerator type and Device.get_tags() methodDavid Zeuthen
Also add JS example to check the added API works. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-12-08keymap: Fix struck Touchpad key on Dell Precision M seriesMartin Pitt
https://launchpad.net/bugs/686662
2010-12-08keymap: Fix struck Touchpad key on Dell Latitude E seriesMartin Pitt
https://launchpad.net/bugs/686662
2010-11-29rules: drop alsa jack-plug input devicesKay Sievers
2010-11-26Add ACLs for FFADO supported sound cardsDavid Henningsson
https://launchpad.net/bugs/681755 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-11-26keymap: Add release quirks for two Zepto Znote models and AMILO Xi 2428Andy Whitcroft
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-11-22Add ACL for media player USB devicesMartin Pitt
Originally we added an ACL for some particular mobile phone product IDs to enable users to run e. g. the Android SDK as non-root. This was removed in 232f180 as we don't want to maintain product/vendor ID lists in udev. However, we already know from media-player-info that devices like this are media players. There is little reason to deny user access to those, so add back a generic rule which adds an ACL to media player raw USB devices. https://launchpad.net/bugs/316215
2010-11-1270-acl.rules: add ACLs for ID_PDA devicesHarald Hoyer
2010-11-06extras/keymap: Make touchpad buttons consistentBastien Nocera
We'll need to standardise on the Touchpad related keys in udev, kernel, and X.org. I selected F21 for XF86TouchpadToggle, F22 for XF86TouchpadOn and F23 for XF86TouchpadOff. See: https://bugs.freedesktop.org/show_bug.cgi?id=31333 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-11-06keymap: Add force release for HP touchpad offBastien Nocera
Force the touchpad off/on keys getting released, as they usually only send a "repeat". https://bugzilla.redhat.com/show_bug.cgi?id=623239 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-11-04Use ata_id, not scsi_id, on ATAPI devicesDavid Zeuthen
The major benefit here, is that we get the ATAPI device serial number. With SCSI ID we didn't get this since it's not part of the SCSI INQUIRY command. Specifically this means that we get symlinks to empty optical drives, e.g. /dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376 which we didn't get earlier. So this is a major win. Also make ata_id work on CD-ROM devices when using /dev/bsg nodes so this works on both the scsi_device as well as the block device. We do this, basically, by issuing the ATA IDENTIFY PACKET DEVICE command instead of the ATA IDENTIFY command. We also use 16-byte pass-through ATA passthrough instead of 12-byte passthrough to avoid clashing with the MMC BLANK command. This means that we get this output # udevadm info -q all -p /sys/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 P: /devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 E: UDEV_LOG=3 E: DEVPATH=/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 E: DEVTYPE=scsi_device E: DRIVER=sr E: MODALIAS=scsi:t-0x05 E: SUBSYSTEM=scsi E: ID_ATA=1 E: ID_TYPE=cd E: ID_BUS=ata E: ID_MODEL=VBOX_CD-ROM E: ID_MODEL_ENC=VBOX\x20CD-ROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x 20\x20\x20\x20\x20\x20\x20 E: ID_REVISION=1.0 E: ID_SERIAL=VBOX_CD-ROM_VB2-01700376 E: ID_SERIAL_SHORT=VB2-01700376 instead of just # udevadm info -q all -p /sys/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 P: /devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 E: UDEV_LOG=3 E: DEVPATH=/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 E: DEVTYPE=scsi_device E: DRIVER=sr E: MODALIAS=scsi:t-0x05 E: SUBSYSTEM=scsi E: ID_SCSI=1 E: ID_VENDOR=VBOX E: ID_VENDOR_ENC=VBOX\x20\x20\x20\x20 E: ID_MODEL=CD-ROM E: ID_MODEL_ENC=CD-ROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 E: ID_REVISION=1.0 E: ID_TYPE=cd Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-10-30ata_id: Support SG_IO version 4 interfaceDavid Zeuthen
This makes it possible to use /dev/bsg/* nodes for ata_id: # /lib/udev/ata_id --export /dev/bsg/0\:0\:0\:0 ID_ATA=1 ID_TYPE=disk ID_BUS=ata ID_MODEL=INTEL_SSDSA2MH080G1GC ID_MODEL_ENC=INTEL\x20SSDSA2MH080G1GC\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 ID_REVISION=045C8802 [...] This means that our cd-rom detection as per commit http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=160b069c25690bfb0c785994c7c3710289179107 needs to be reworked since we can't just use the CDROM_GET_CAPABILITY ioctl on a /dev/bsg node (which is a character device). We do this by just sending the SCSI INQUIRY command and checking the type (CD-ROM's are all type 0x05 and disks are type 0x00) before we issue the ATA IDENTIFY command through the SCSI command ATA PASS_THROUGH (12). (Yes, it's a bit perverse how we have to tunnel our ATA commands through a SCSI command but that's how Linux currently work.) We still support for SG_IO version 3 (we fail back if version 4 fails with EINVAL) because testing reveals that some drivers (such as mpt2sas) still only support version 3 on the block nodes. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-10-26cdrom_id: Fix media state for unreadable DVDsJan Drzewiecki
If the disc is unreadable and reading of the first 32 blocks fails set the cd_media status to 0 (not present). This will prevent udev from executing blkid next that tries to determine fs on the disc and which in this case may seem to hang forever locking the drive. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-10-25keymap: Add some more Sony Vaio VGN-* modelsMartin Pitt
https://launchpad.net/bugs/627890
2010-10-25keymap: Add Sony Vaio VGN71Martin Pitt
https://launchpad.net/bugs/625770
2010-10-22keymap: Add Toshiba Satellite U500Martin Pitt
https://launchpad.net/bugs/271706
2010-10-13keymap: Apply force-release rules to all Samsung models.Martin Pitt
The force-release list for Samsung is already an ultralong monster, and reportedly still incomplete (see https://launchpad.net/bugs/574250). Give up and instead apply the force-release quirk to all Samsung models. The worst that can happen is that autorepeat behaves a bit weird, but that's much better than a complete freeze after each keypress.
2010-10-07cdrom_id: request the drive profile features with a dynamic lengthHarald Hoyer
Some drives don't like huge feature buffers, so we query twice. First run for the current profile and to get the length. Second time we query the whole profile feature set.
2010-10-05cdrom_id: Don't read beyond "last track" in TOCMartin Pitt
Read the first and last track from the TOC header, and do not go beyond that stated number of tracks when reading the TOC. Otherwise we interpret random data which leads to bogus tracks. (Reported on an IronKey, which reported 1 data track, and 4 audio tracks which weren't actually present.)
2010-10-05cdrom_id: Fall back to CDROM_DRIVE_STATUS if all MMC commands failMartin Pitt
Reportedly, some "when I'm grown up I want to be a CD drive" fake USB CD sticks like the IronKey neither support the SCSI "GET CONFIGURATION" nor the older (pre-MMC2) "READ DISC INFORMATION" command. In that case, check if cd_media_compat() detected that there is a disc present, and assume that we have a CD-ROM medium.
2010-10-05Revert "cdrom_id: Try reading the medium if all MMC commands fail"Martin Pitt
Turns out we can do this much simpler by assuming that cd_media_compat() works, which seems to be the case for the IronKey. This reverts commit ea88774a922c734afd751a59d8102bfa4806a1a6.
2010-10-05cdrom_id: Try reading the medium if all MMC commands failMartin Pitt
Reportedly, some "when I'm grown up I want to be a CD drive" fake USB CD sticks like the IronKey neither support the SCSI "GET CONFIGURATION" nor the older (pre-MMC2) "READ DISC INFORMATION" command. In that case, check if we can read data from the drive, and assume that we have a CD-ROM medium if it succeeds.
2010-09-25keymap: Add alternate MSI vendor nameLee, Chun-Yi
Add new vendor name "Micro-Star International" in 95-keymap.rules. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-09-20gudev: add a few annotations that newer gobject-introspection versions demandTorsten Schoenfeld
2010-09-14keymap: Add Lenovo Y550Martin Pitt
https://launchpad.net/bugs/543065
2010-09-07gudev: Deliver ::uevent signal in the thread-default main loopDavid Zeuthen
... that the GUdevClient object was constructed in. This change makes GUdev follow the GLib guidelines and, more importantly, makes it possible to actually use the library in a multi-threaded application. Prior to this patch, signals were emitted in the thread that ran the "default" main loop. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-07scsi_id: fix compiler warningsKay Sievers
2010-09-07scsi_id: export target port groupHannes Reinecke
For ALUA support it's useful to have the target port group number of a device. Signed-off-by: Hannes Reinecke <hare@suse.de>
2010-09-03Revert "Add alternative KVM MAC address blacklist"Kay Sievers
This reverts commit 634afac119bbe6bc21719ae3daa45805b1cf3334. 54:52:00 was just a bug in libvirt, and that's better fixed locally, and we should not carry it in udev rules.
2010-09-02Add alternative KVM MAC address blacklistMartin Pitt
Reportedly, older KVM/Qemu instances indeed do use 54:52:00:*, so add this as an alternative.
2010-09-02do not create persistent name rules for VMWare network interfacesMartin Pitt
Not generating persistent MAC address rules will significantly ease cloning of VMs. The kernel reliably sorts eth* enumeration by bus number, so as long as you only have cards from one vendor (or more precisely, drivers), the enumeration will be stable. Having cards from different vendors is very unlikely in VMs. KVM was already covered in the previous commit, this is the equivalent blacklist for VMWare: http://www.coffer.com/mac_find/?string=005056 http://www.coffer.com/mac_find/?string=000c29 https://launchpad.net/bugs/341006