summaryrefslogtreecommitdiff
path: root/extras
AgeCommit message (Collapse)Author
2011-04-15fix more warningsKay Sievers
2011-04-13trivial cleanupsKay Sievers
2011-04-08selinux: firmware - do not label files in runtime dirKay Sievers
2011-04-05keymap: Support Dell Latitude XT2 tablet-mode navigation keysSeth Forshee
The XT2 has a rocker (up/down/enter) and back button on the side in tablet mode, none of which work currently. Add entries for these keys. There is some overlap here with scan codes used in other Dell models, so these buttons are put in a new file specific to this model. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-04-04Avoid spinning up CD on pressing eject buttonMartin Pitt
When the CD tray door is locked and the hardware eject button is pressed, newer kernels (2.6.38+) will send out a change event with a DISK_EJECT_REQUEST==1 property. Do not run cdrom_id and blkid in this case, as the media state and contents does not change, and this only needlessly spins up the drive again right before ejection.
2011-03-31Add rule for Acer Aspire One ZG8 to use acer-aspire_5720 keymapLee, Chun-Yi
Acer Aspire One ZG8's bluetooth HW key emit 0xD9 scancode, it must map to KEY_BLUETOOTH like Acer Aspire 5720. So, add rule for Acer Aspire One ZG8 use acer-aspire_5720 keymap. Tested on Acer Aspire One ZG8 netbook. Signed-off-by: Lee, Chun-Yi <jlee@novell.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-03-24keymap: continue reading keymap after invalid scancodesSeth Forshee
Reading of keymaps is aborted when EINVAL is returned from EVIOCGETKEYCODE. Scan codes are not always continuous ranges of values starting at 0, so this can result in not getting the full keymap for a device. Instead, continue processing if EINVAL is returned.
2011-03-23use /run/udev/ if possible and fall back to /dev/.udev/Kay Sievers
2011-03-19input_id: silent gcc warningsKay Sievers
2011-03-18input_id: Rewrite debug logging to use standard udev info()Martin Pitt
2011-03-18input_id: Cover key devices which only have KEY_* > 255Martin Pitt
We previously only tested the "key" capabilities for keys between 0 and 255 to determine ID_INPUT_KEY. If there are none, also check for keys in the upper block (KEY_OK/0x160 to KEY_TOUCHPAD_OFF/0x214).
2011-03-18input_id: Avoid memory overflow with too long capability masksMartin Pitt
Joey Lee <jlee@novell.com> reported a problem on an MSI laptop which reports a too long capabilities/key: E: EV==3 E: KEY==180000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 This is longer than KEY_MAX and thus caused a memory overflow. Guard against this now and just ignore the excess blocks.
2011-03-18input_id: Add some debugging outputMartin Pitt
If $DEBUG is set, output the capability bitmaps to stderr.
2011-03-18input_id: Consistently use tabs for indentationMartin Pitt
2011-03-17udev-acl/70-acl.rules: tag ID_REMOTE_CONTROL with aclHarald Hoyer
Used by "concordance" to access Logitech Harmony programmable remote controls. http://www.phildev.net/concordance/
2011-03-15cdrom_id: Don't ignore profiles when there is no media availableDavid Zeuthen
Just because the GET CONFIGURATION MMC-2 command returns the current profile as 0 does not mean that we can ignore the profiles describing the capabilities of the drive - it only means that there currently is no recognized media in the drive. Therefore, do process the returned profiles even when cur_profile is 0. This fixes a bug where only ID_CDROM=1 ID_CDROM_CD_R=1 ID_CDROM_CD_RW=1 ID_CDROM_DVD=1 ID_CDROM_DVD_R=1 ID_CDROM_DVD_RAM=1 was returned when there is no media in the drive instead of ID_CDROM=1 ID_CDROM_CD=1 ID_CDROM_CD_R=1 ID_CDROM_CD_RW=1 ID_CDROM_DVD=1 ID_CDROM_DVD_R=1 ID_CDROM_DVD_RW=1 ID_CDROM_DVD_RAM=1 ID_CDROM_DVD_PLUS_R=1 ID_CDROM_DVD_PLUS_RW=1 ID_CDROM_DVD_PLUS_R_DL=1 ID_CDROM_BD=1 ID_CDROM_BD_R=1 ID_CDROM_BD_RE=1 ID_CDROM_HDDVD=1 as is returned now. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-15move /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd ↵Kay Sievers
startup
2011-03-10Remap MSI Laptop touchpad on/off key to F22 and F23Lee, Chun-Yi
MSI Laptop driver will query the real touchpad state then emit KEY_TOUCHPAD_ON/OFF key. Currently, X has defined F22 for touchpad on and F23 for touchpad off. This patch aligns MSI Laptop driver's key with F22 and F23. Tested on MSI U160 netbook using msi-laptop driver. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-03-07udev-acl: move sg rule to optical drive ruleKay Sievers
2011-03-07udev-acl: add /dev/sgX nodes for CD-ROMAndrey Borzenkov
Current wine is using /dev/sgX to access CD-ROM devices. Since distributions switched to using ACL instead of group membership to control device access, wine is not able to access them. Add ACL to device nodes that already get GROUP="cdrom". Ref: https://qa.mandriva.com/show_bug.cgi?id=62114 Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
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>