summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-14"db_persist=" -> "db_persist"Kay Sievers
2011-04-14udevd: do not nice processesKay Sievers
2011-04-13udevadm: info --cleanup-dbKay Sievers
Most of the udev database from initramfs should be deleted before starting udev in the real root. udevadm: info --cleanup-db deletes all database entries in /run/udev. Events that processed IMPORT{db}, or mark devices explicitely as persistent, will be excluded.
2011-04-13libudev: bump revisionKay Sievers
2011-04-13udevadm: settle - watch queue fileKay Sievers
2011-04-13libudev: ctrl - fix refcounting in connection handlingKay Sievers
2011-04-13udevd: log warning if /run is not writableKay Sievers
2011-04-13trivial cleanupsKay Sievers
2011-04-13udevadm: control - add --exitKay Sievers
2011-04-08selinux: firmware - do not label files in runtime dirKay Sievers
2011-04-08selinux: do not label files in runtime dirKay Sievers
Do not label any files in the udev runtime directory, but only nodes, links and directories below /dev. In case the runtime directory falls back to /dev/.udev, label this directory once at udevd startup, but never anything below it.
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-31Revert "Do not build extras with --disable-extras"Martin Pitt
This reverts commit 905818f5961446ac32d1b2d165185fffddc4915a. We do want to build some extras, just not the ones with extra dependencies. Thanks to Juergen Daubert for pointing this out.
2011-03-31udevd: add 'N:' to optstring in getopt_longThomas Egerer
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-31systemd: let settle depend on trigger, do not block basic with triggerKay Sievers
2011-03-30Run ata_id on non-removable USB devicesDavid Zeuthen
If a USB device is marked as removable, it is often a SATA/PATA disk in an enclosure (note that flash card readers and usb storage sticks are always marked as removable). In this case, try running ata_id (which sends ATA commands wrapped in SCSI ATA PASS THROUGH commands) to get information about the disk. If this fails, just fall back to running usb_id since it could be the device isn't an ATA device at all or the device doesn't have a SAT layer. This extra information is nice to have as it indicates if it is suitable to send e.g. SMART commands to the disk, whether the disk supports power management and so on. Additionally, the VPD and serial number returned by ata_id is usually more accurate as it stems from the disk itself instead of the enclosure. Note that udisks has been doing this for a while KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="udisks-probe-ata-smart $tempnode" so this change shouldn't be too disruptive (udisks-probe-ata-smart also sends ATA commands via the ATA PASS THROUGH command). Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-30version bumpKay Sievers
2011-03-30release 167Kay Sievers
2011-03-29systemd: udev.socket - disable implicit dependenciesKay Sievers
Set hostname to <eeepc>. Found ordering cycle on sysinit.target/start Walked on cycle path to systemd-tmpfiles-setup.service/start Walked on cycle path to local-fs.target/start Walked on cycle path to fedora-storage-init.service/start Walked on cycle path to fedora-wait-storage.service/start Walked on cycle path to udev-settle.service/start Walked on cycle path to udev.service/start Walked on cycle path to udev.socket/start Walked on cycle path to sysinit.target/start Breaking ordering cycle by deleting job systemd-tmpfiles-setup.service/start
2011-03-29systemd: do not enable udev-settle.service by defaultKay Sievers
This barrier service is usually not enabled by default. If enabled, it acts as a barrier for basic.target -- so all later services will wait for udev completely finishing its coldplug run. It might be enabled just unconditionally, or pulled-in on-demand by broken or non-hotplug-aware services that assume a fully populated /dev at startup.
2011-03-28libudev: make valgrind happyKay Sievers
Warning: noted but unhandled ioctl 0x641e with no size/direction hints Syscall param socketcall.setsockopt(optval) points to uninitialised byte(s) at 0x6A30BAA: setsockopt (syscall-template.S:82) by 0x4E36E1C: udev_monitor_filter_update (libudev-monitor.c:347) by 0x4E36ED8: udev_monitor_enable_receiving (libudev-monitor.c:373) by 0x8A9E68E: I830ScreenInit (intel_driver.c:838) by 0x42EE9E: AddScreen (dispatch.c:3890) by 0x471561: InitOutput (xf86Init.c:738) by 0x422C18: main (main.c:205) Location 0x7ff0000c2 is 2 bytes inside local var "filter" declared at libudev-monitor.c:256, in frame #1 of thread 1 Uninitialised value was created by a stack allocation at 0x4E30860: ??? (in /lib64/libudev.so.0.10.0) Thanks to Zdenek Kabelac.
2011-03-25libudev: docs - add udev_get_run_path()Kay Sievers
2011-03-25libudev: export udev_get_run_path()Kay Sievers
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-23man: remove trigger --type=failed handlingKay Sievers
2011-03-23systemd: use sockets.target not socket.targetKay Sievers
2011-03-23systemd: bind udev control socket in systemd and split udev.serviceKay Sievers
We should bind the udev socket from systemd, so we are sure that the abstract namespace socket is always bound by a root process and there is never a window during an update where an untrusted process can steal our socket. Also split the udev.service file, so that the daemon can be updated/restarted without triggering any coldplug events.
2011-03-23rules: run ata_id only on SPC-3 or later optical drivesKay Sievers
2011-03-23use /run/udev/ if possible and fall back to /dev/.udev/Kay Sievers
2011-03-23udevd: initialize fds, for proper close() on exitKay Sievers
2011-03-23udevd: use facility == LOG_DAEMON when writing to /dev/kmsgKay Sievers
Syslog wants to distinguish the sorce of messages. We should indicate that this is a userspace message (LOG_DAEMON) and not a kernel message (LOG_KERNEL).
2011-03-23update sd-daemon.[ch]Kay Sievers
2011-03-19fstab_import: remove from configureKay Sievers
2011-03-19systemd: remove deprecated udev-retry.serviceKay Sievers
2011-03-19fstab_import: disable buildKay 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-16NEWS: clarify /dev/.run/ requirementsKay Sievers
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-08udevadm: info - make attribute array static and constThomas Egerer
2011-03-07udev-acl: move sg rule to optical drive ruleKay Sievers