Commit Graph
3932 Commits
Author SHA1 Message Date
Michael Witten 620da34de2 Docs: udev.xml: Fix dangling modifier 2011-04-11 05:49:41 +00:00
Michael Witten d0878effb9 Docs: udev.xml: Improved word order 2011-04-11 05:49:41 +00:00
Michael Witten 2d74bc7579 Docs: udev.xml: Clarify through a change in word ordering 2011-04-11 05:49:41 +00:00
Michael Witten e8b5e4e590 Docs: udev.xml: `comma-separated' is a better description 2011-04-11 05:49:40 +00:00
Michael Witten 509c02f160 Docs: udev.xml: char' -> character' 2011-04-11 05:49:40 +00:00
Michael Witten 21188522ae Docs: udev.xml: Add comma 2011-04-11 05:49:40 +00:00
Michael Witten f61501b0f8 Docs: udev.xml: Actually make a separate paragraph 2011-04-11 05:49:40 +00:00
Michael Witten f2db23cd0d Docs: udev.xml: Use normal sentence structure 2011-04-11 05:49:39 +00:00
Michael Witten 57e804843b Docs: udev.xml: Clean up introduction to substitutions.
For one thing, they are not at all like printf conversion specifications.
2011-04-11 05:49:39 +00:00
Michael Witten 0fbda083a2 Docs: udev.xml: a' -> the' 2011-04-11 05:49:39 +00:00
Michael Witten 793681cb55 Docs: udev.xml: Clean up WAIT_FOR description 2011-04-11 05:49:39 +00:00
Michael Witten ad9c70a836 Docs: udev.xml: commandline' -> command line' 2011-04-11 05:49:38 +00:00
Michael Witten b6a49cd681 Docs: udev.xml: which' -> content of which' 2011-04-11 05:49:38 +00:00
Michael Witten 2f16de298f Docs: udev.xml: Add missing `.'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:38 +00:00
Michael Witten c24dfc80c6 Docs: udev.xml: Clean up description of LABEL assignment key
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:38 +00:00
Michael Witten 1d14abe61f Docs: udev.xml: Clean up description of RUN assignment key
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:37 +00:00
Michael Witten ed9c5fb721 Docs: udev.xml: Clean up description of ENV assignment key
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:37 +00:00
Michael Witten 9f38b806d2 Docs: udev.xml: Clean up description of SYMLINK assignment key
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:37 +00:00
Michael Witten ac1ba8e487 Docs: udev.xml: Clean up description of NAME assignment key
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:37 +00:00
Michael Witten 2c47027b31 Docs: udev.xml: Clean character range description
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:36 +00:00
Michael Witten 954e9c52d1 Docs: udev.xml: Clean `*' description
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:36 +00:00
Michael Witten 401e59e9ae Docs: udev.xml: a shell style' -> shell-style'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:36 +00:00
Michael Witten 2e9820e374 Docs: udev.xml: Clarify PROGRAM key
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:36 +00:00
Michael Witten 65e039c2e2 Docs: udev.xml: Use `unless' for clarity
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:35 +00:00
Michael Witten 2e7f69ebbf Docs: udev.xml: Add a few more words for context
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:35 +00:00
Michael Witten 2bf11540cf Docs: udev.xml: Remove unnecessary repitition
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:35 +00:00
Michael Witten 55f5037ce8 Docs: udev.xml: `comma-separated' is a better description
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:34 +00:00
Michael Witten b834042f05 Docs: udev.xml: Use `assignment' consistently
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:34 +00:00
Michael Witten 57c0409fce Docs: udev.xml: ,' -> :'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:34 +00:00
Michael Witten feedf8f3ee Docs: udev.xml: key value' -> key-value'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:34 +00:00
Michael Witten c3cba32f18 Docs: udev.xml: ,' -> ;'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:33 +00:00
Michael Witten d4a7bf2583 Docs: udev.xml: Clarification through proper wording
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:33 +00:00
Michael Witten 933b56237d Docs: udev.xml: Use present tense
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:33 +00:00
Michael Witten 17fd0f60f2 Docs: udev.xml: are' -> is'; the subject is `Access'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:33 +00:00
Michael Witten 0e846301f4 Docs: udev.xml: Remove commas (and unnecessary repetition)
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:32 +00:00
Michael Witten 0e4fa2abfe Docs: udev.xml: Offset daemon name with commas
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:32 +00:00
Kay Sievers 9602509521 selinux: firmware - do not label files in runtime dir 2011-04-08 03:08:16 +02:00
Kay Sievers 51f43b5329 selinux: do not label files in runtime dir
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-08 01:09:20 +02:00
Seth Forshee 5e0ec43fc4 keymap: Support Dell Latitude XT2 tablet-mode navigation keys
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-05 19:38:36 +02:00
Martin Pitt 55eb500cc5 Avoid spinning up CD on pressing eject button
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-04-04 11:47:54 +02:00
Martin Pitt 9bb54267a1 Revert "Do not build extras with --disable-extras"
This reverts commit 905818f596.

We do want to build some extras, just not the ones with extra dependencies.
Thanks to Juergen Daubert for pointing this out.
2011-03-31 19:23:19 +02:00
Thomas Egerer 6ee9b2cb8c udevd: add 'N:' to optstring in getopt_long 2011-03-31 17:26:37 +02:00
Lee, Chun-Yi ff4a035a8a Add rule for Acer Aspire One ZG8 to use acer-aspire_5720 keymap
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-31 16:37:31 +02:00
Kay Sievers daf32d3217 systemd: let settle depend on trigger, do not block basic with trigger 2011-03-31 13:16:42 +02:00
David Zeuthen 42b9482ab2 Run ata_id on non-removable USB devices
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-30 10:28:24 -04:00
Kay Sievers a138cd0714 version bump 2011-03-30 16:03:56 +02:00
Kay Sievers 30b0fee9be release 167 2011-03-30 15:58:14 +02:00
Kay Sievers 7ce99fece5 systemd: udev.socket - disable implicit dependencies
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-29 17:59:29 +02:00
Kay Sievers ce440d1c1b systemd: do not enable udev-settle.service by default
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-29 01:14:53 +02:00
Kay Sievers b4155660f2 libudev: make valgrind happy
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-28 14:34:05 +02:00