]> err.no Git - systemd/log
systemd
13 years agoDocs: udev.xml: Fix dangling modifier
Michael Witten [Mon, 11 Apr 2011 04:16:31 +0000 (04:16 +0000)]
Docs: udev.xml: Fix dangling modifier

13 years agoDocs: udev.xml: Improved word order
Michael Witten [Mon, 11 Apr 2011 03:51:43 +0000 (03:51 +0000)]
Docs: udev.xml: Improved word order

13 years agoDocs: udev.xml: Clarify through a change in word ordering
Michael Witten [Mon, 11 Apr 2011 03:50:42 +0000 (03:50 +0000)]
Docs: udev.xml: Clarify through a change in word ordering

13 years agoDocs: udev.xml: `comma-separated' is a better description
Michael Witten [Mon, 11 Apr 2011 03:50:11 +0000 (03:50 +0000)]
Docs: udev.xml: `comma-separated' is a better description

13 years agoDocs: udev.xml: `char' -> `character'
Michael Witten [Mon, 11 Apr 2011 03:44:43 +0000 (03:44 +0000)]
Docs: udev.xml: `char' -> `character'

13 years agoDocs: udev.xml: Add comma
Michael Witten [Mon, 11 Apr 2011 03:43:16 +0000 (03:43 +0000)]
Docs: udev.xml: Add comma

13 years agoDocs: udev.xml: Actually make a separate paragraph
Michael Witten [Mon, 11 Apr 2011 01:30:25 +0000 (01:30 +0000)]
Docs: udev.xml: Actually make a separate paragraph

13 years agoDocs: udev.xml: Use normal sentence structure
Michael Witten [Mon, 11 Apr 2011 01:29:37 +0000 (01:29 +0000)]
Docs: udev.xml: Use normal sentence structure

13 years agoDocs: udev.xml: Clean up introduction to substitutions.
Michael Witten [Mon, 11 Apr 2011 01:12:52 +0000 (01:12 +0000)]
Docs: udev.xml: Clean up introduction to substitutions.

For one thing, they are not at all like printf conversion specifications.

13 years agoDocs: udev.xml: `a' -> `the'
Michael Witten [Mon, 11 Apr 2011 01:07:35 +0000 (01:07 +0000)]
Docs: udev.xml: `a' -> `the'

13 years agoDocs: udev.xml: Clean up WAIT_FOR description
Michael Witten [Mon, 11 Apr 2011 01:00:57 +0000 (01:00 +0000)]
Docs: udev.xml: Clean up WAIT_FOR description

13 years agoDocs: udev.xml: `commandline' -> `command line'
Michael Witten [Mon, 11 Apr 2011 00:57:39 +0000 (00:57 +0000)]
Docs: udev.xml: `commandline' -> `command line'

13 years agoDocs: udev.xml: `which' -> `content of which'
Michael Witten [Mon, 11 Apr 2011 00:56:21 +0000 (00:56 +0000)]
Docs: udev.xml: `which' -> `content of which'

13 years agoDocs: udev.xml: Add missing `.'
Michael Witten [Fri, 8 Apr 2011 23:34:52 +0000 (23:34 +0000)]
Docs: udev.xml: Add missing `.'

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clean up description of LABEL assignment key
Michael Witten [Fri, 8 Apr 2011 23:32:52 +0000 (23:32 +0000)]
Docs: udev.xml: Clean up description of LABEL assignment key

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clean up description of RUN assignment key
Michael Witten [Fri, 8 Apr 2011 23:32:09 +0000 (23:32 +0000)]
Docs: udev.xml: Clean up description of RUN assignment key

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clean up description of ENV assignment key
Michael Witten [Fri, 8 Apr 2011 23:24:03 +0000 (23:24 +0000)]
Docs: udev.xml: Clean up description of ENV assignment key

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clean up description of SYMLINK assignment key
Michael Witten [Fri, 8 Apr 2011 23:21:51 +0000 (23:21 +0000)]
Docs: udev.xml: Clean up description of SYMLINK assignment key

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clean up description of NAME assignment key
Michael Witten [Fri, 8 Apr 2011 23:17:39 +0000 (23:17 +0000)]
Docs: udev.xml: Clean up description of NAME assignment key

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clean character range description
Michael Witten [Fri, 8 Apr 2011 21:45:16 +0000 (21:45 +0000)]
Docs: udev.xml: Clean character range description

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clean `*' description
Michael Witten [Fri, 8 Apr 2011 21:41:32 +0000 (21:41 +0000)]
Docs: udev.xml: Clean `*' description

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: `a shell style' -> `shell-style'
Michael Witten [Fri, 8 Apr 2011 21:40:34 +0000 (21:40 +0000)]
Docs: udev.xml: `a shell style' -> `shell-style'

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clarify PROGRAM key
Michael Witten [Fri, 8 Apr 2011 21:39:33 +0000 (21:39 +0000)]
Docs: udev.xml: Clarify PROGRAM key

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Use `unless' for clarity
Michael Witten [Fri, 8 Apr 2011 21:31:20 +0000 (21:31 +0000)]
Docs: udev.xml: Use `unless' for clarity

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Add a few more words for context
Michael Witten [Fri, 8 Apr 2011 21:30:04 +0000 (21:30 +0000)]
Docs: udev.xml: Add a few more words for context

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Remove unnecessary repitition
Michael Witten [Fri, 8 Apr 2011 21:26:51 +0000 (21:26 +0000)]
Docs: udev.xml: Remove unnecessary repitition

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: `comma-separated' is a better description
Michael Witten [Fri, 8 Apr 2011 21:23:46 +0000 (21:23 +0000)]
Docs: udev.xml: `comma-separated' is a better description

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Use `assignment' consistently
Michael Witten [Fri, 8 Apr 2011 21:15:25 +0000 (21:15 +0000)]
Docs: udev.xml: Use `assignment' consistently

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: `,' -> `:'
Michael Witten [Fri, 8 Apr 2011 21:13:37 +0000 (21:13 +0000)]
Docs: udev.xml: `,' -> `:'

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: `key value' -> `key-value'
Michael Witten [Fri, 8 Apr 2011 21:08:15 +0000 (21:08 +0000)]
Docs: udev.xml: `key value' -> `key-value'

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: `,' -> `;'
Michael Witten [Fri, 8 Apr 2011 17:28:58 +0000 (17:28 +0000)]
Docs: udev.xml: `,' -> `;'

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Clarification through proper wording
Michael Witten [Fri, 8 Apr 2011 17:25:05 +0000 (17:25 +0000)]
Docs: udev.xml: Clarification through proper wording

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Use present tense
Michael Witten [Fri, 8 Apr 2011 16:50:42 +0000 (16:50 +0000)]
Docs: udev.xml: Use present tense

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: `are' -> `is'; the subject is `Access'
Michael Witten [Fri, 8 Apr 2011 16:41:14 +0000 (16:41 +0000)]
Docs: udev.xml: `are' -> `is'; the subject is `Access'

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Remove commas (and unnecessary repetition)
Michael Witten [Fri, 8 Apr 2011 16:39:17 +0000 (16:39 +0000)]
Docs: udev.xml: Remove commas (and unnecessary repetition)

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoDocs: udev.xml: Offset daemon name with commas
Michael Witten [Fri, 8 Apr 2011 16:37:31 +0000 (16:37 +0000)]
Docs: udev.xml: Offset daemon name with commas

Signed-off-by: Michael Witten <mfwitten@gmail.com>
13 years agoselinux: firmware - do not label files in runtime dir
Kay Sievers [Fri, 8 Apr 2011 01:08:16 +0000 (03:08 +0200)]
selinux: firmware - do not label files in runtime dir

13 years agoselinux: do not label files in runtime dir
Kay Sievers [Thu, 7 Apr 2011 23:03:49 +0000 (01:03 +0200)]
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.

13 years agokeymap: Support Dell Latitude XT2 tablet-mode navigation keys
Seth Forshee [Tue, 5 Apr 2011 16:43:00 +0000 (11:43 -0500)]
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>
13 years agoAvoid spinning up CD on pressing eject button
Martin Pitt [Mon, 4 Apr 2011 09:47:54 +0000 (11:47 +0200)]
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.

13 years agoRevert "Do not build extras with --disable-extras"
Martin Pitt [Thu, 31 Mar 2011 17:23:19 +0000 (19:23 +0200)]
Revert "Do not build extras with --disable-extras"

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.

13 years agoudevd: add 'N:' to optstring in getopt_long
Thomas Egerer [Thu, 31 Mar 2011 15:25:31 +0000 (17:25 +0200)]
udevd: add 'N:' to optstring in getopt_long

13 years agoAdd rule for Acer Aspire One ZG8 to use acer-aspire_5720 keymap
Lee, Chun-Yi [Thu, 31 Mar 2011 10:01:05 +0000 (18:01 +0800)]
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>
13 years agosystemd: let settle depend on trigger, do not block basic with trigger
Kay Sievers [Thu, 31 Mar 2011 11:15:47 +0000 (13:15 +0200)]
systemd: let settle depend on trigger, do not block basic with trigger

13 years agoRun ata_id on non-removable USB devices
David Zeuthen [Wed, 30 Mar 2011 12:11:03 +0000 (08:11 -0400)]
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>
13 years agoversion bump
Kay Sievers [Wed, 30 Mar 2011 14:03:56 +0000 (16:03 +0200)]
version bump

13 years agorelease 167
Kay Sievers [Wed, 30 Mar 2011 13:58:14 +0000 (15:58 +0200)]
release 167

13 years agosystemd: udev.socket - disable implicit dependencies
Kay Sievers [Tue, 29 Mar 2011 15:59:29 +0000 (17:59 +0200)]
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

13 years agosystemd: do not enable udev-settle.service by default
Kay Sievers [Mon, 28 Mar 2011 23:14:53 +0000 (01:14 +0200)]
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.

13 years agolibudev: make valgrind happy
Kay Sievers [Mon, 28 Mar 2011 12:34:05 +0000 (14:34 +0200)]
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.

13 years agolibudev: docs - add udev_get_run_path()
Kay Sievers [Fri, 25 Mar 2011 16:58:30 +0000 (17:58 +0100)]
libudev: docs - add udev_get_run_path()

13 years agolibudev: export udev_get_run_path()
Kay Sievers [Fri, 25 Mar 2011 14:43:01 +0000 (15:43 +0100)]
libudev: export udev_get_run_path()

13 years agokeymap: continue reading keymap after invalid scancodes
Seth Forshee [Thu, 24 Mar 2011 15:33:54 +0000 (16:33 +0100)]
keymap: continue reading keymap after invalid scancodes

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.

13 years agoman: remove trigger --type=failed handling
Kay Sievers [Wed, 23 Mar 2011 22:56:15 +0000 (23:56 +0100)]
man: remove trigger --type=failed handling

13 years agosystemd: use sockets.target not socket.target
Kay Sievers [Wed, 23 Mar 2011 19:35:19 +0000 (20:35 +0100)]
systemd: use sockets.target not socket.target

13 years agosystemd: bind udev control socket in systemd and split udev.service
Kay Sievers [Wed, 23 Mar 2011 15:40:23 +0000 (16:40 +0100)]
systemd: bind udev control socket in systemd and split udev.service

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.

13 years agorules: run ata_id only on SPC-3 or later optical drives
Kay Sievers [Wed, 23 Mar 2011 11:11:38 +0000 (12:11 +0100)]
rules: run ata_id only on SPC-3 or later optical drives

13 years agouse /run/udev/ if possible and fall back to /dev/.udev/
Kay Sievers [Wed, 23 Mar 2011 01:31:09 +0000 (02:31 +0100)]
use /run/udev/ if possible and fall back to /dev/.udev/

13 years agoudevd: initialize fds, for proper close() on exit
Kay Sievers [Wed, 23 Mar 2011 00:45:21 +0000 (01:45 +0100)]
udevd: initialize fds, for proper close() on exit

13 years agoudevd: use facility == LOG_DAEMON when writing to /dev/kmsg
Kay Sievers [Wed, 23 Mar 2011 00:41:25 +0000 (01:41 +0100)]
udevd: use facility == LOG_DAEMON when writing to /dev/kmsg

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).

13 years agoupdate sd-daemon.[ch]
Kay Sievers [Wed, 23 Mar 2011 00:34:29 +0000 (01:34 +0100)]
update sd-daemon.[ch]

13 years agofstab_import: remove from configure
Kay Sievers [Sat, 19 Mar 2011 17:28:57 +0000 (18:28 +0100)]
fstab_import: remove from configure

13 years agosystemd: remove deprecated udev-retry.service
Kay Sievers [Sat, 19 Mar 2011 17:13:01 +0000 (18:13 +0100)]
systemd: remove deprecated udev-retry.service

13 years agofstab_import: disable build
Kay Sievers [Sat, 19 Mar 2011 17:11:12 +0000 (18:11 +0100)]
fstab_import: disable build

13 years agoinput_id: silent gcc warnings
Kay Sievers [Sat, 19 Mar 2011 16:04:56 +0000 (17:04 +0100)]
input_id: silent gcc warnings

13 years agoinput_id: Rewrite debug logging to use standard udev info()
Martin Pitt [Fri, 18 Mar 2011 15:18:17 +0000 (16:18 +0100)]
input_id: Rewrite debug logging to use standard udev info()

13 years agoinput_id: Cover key devices which only have KEY_* > 255
Martin Pitt [Fri, 18 Mar 2011 13:45:42 +0000 (14:45 +0100)]
input_id: Cover key devices which only have KEY_* > 255

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).

13 years agoinput_id: Avoid memory overflow with too long capability masks
Martin Pitt [Fri, 18 Mar 2011 12:56:32 +0000 (13:56 +0100)]
input_id: Avoid memory overflow with too long capability masks

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.

13 years agoinput_id: Add some debugging output
Martin Pitt [Fri, 18 Mar 2011 12:42:02 +0000 (13:42 +0100)]
input_id: Add some debugging output

If $DEBUG is set, output the capability bitmaps to stderr.

13 years agoinput_id: Consistently use tabs for indentation
Martin Pitt [Fri, 18 Mar 2011 12:32:55 +0000 (13:32 +0100)]
input_id: Consistently use tabs for indentation

13 years agoudev-acl/70-acl.rules: tag ID_REMOTE_CONTROL with acl
Harald Hoyer [Thu, 17 Mar 2011 19:36:20 +0000 (20:36 +0100)]
udev-acl/70-acl.rules: tag ID_REMOTE_CONTROL with acl

Used by "concordance" to access Logitech Harmony programmable remote
controls.

http://www.phildev.net/concordance/

13 years agoNEWS: clarify /dev/.run/ requirements
Kay Sievers [Wed, 16 Mar 2011 17:58:03 +0000 (18:58 +0100)]
NEWS: clarify /dev/.run/ requirements

13 years agocdrom_id: Don't ignore profiles when there is no media available
David Zeuthen [Tue, 15 Mar 2011 16:05:00 +0000 (12:05 -0400)]
cdrom_id: Don't ignore profiles when there is no media available

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>
13 years agomove /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd startup
Kay Sievers [Tue, 15 Mar 2011 16:26:08 +0000 (17:26 +0100)]
move /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd startup

13 years agoRemap MSI Laptop touchpad on/off key to F22 and F23
Lee, Chun-Yi [Thu, 10 Mar 2011 02:17:12 +0000 (10:17 +0800)]
Remap MSI Laptop touchpad on/off key to F22 and F23

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>
13 years agoudevadm: info - make attribute array static and const
Thomas Egerer [Tue, 8 Mar 2011 08:57:17 +0000 (09:57 +0100)]
udevadm: info - make attribute array static and const

13 years agoudev-acl: move sg rule to optical drive rule
Kay Sievers [Mon, 7 Mar 2011 15:10:50 +0000 (16:10 +0100)]
udev-acl: move sg rule to optical drive rule

13 years agoudev-acl: add /dev/sgX nodes for CD-ROM
Andrey Borzenkov [Sun, 6 Mar 2011 09:01:22 +0000 (12:01 +0300)]
udev-acl: add /dev/sgX nodes for CD-ROM

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>
13 years agolibudev: bump minor version
Kay Sievers [Sat, 5 Mar 2011 05:27:31 +0000 (06:27 +0100)]
libudev: bump minor version

13 years agolibudev: resolve ifindex in udev_device_new_from_id_filename()
Kay Sievers [Sat, 5 Mar 2011 05:26:39 +0000 (06:26 +0100)]
libudev: resolve ifindex in udev_device_new_from_id_filename()

13 years agolibudev: udev_device_get_sysattr_list_entry() update
Kay Sievers [Fri, 4 Mar 2011 22:00:52 +0000 (23:00 +0100)]
libudev: udev_device_get_sysattr_list_entry() update

13 years agotest-libudev: add short options
Kay Sievers [Fri, 4 Mar 2011 21:56:54 +0000 (22:56 +0100)]
test-libudev: add short options

13 years agolibudev: use sysfs attr ilist interface for attribute walk
Thomas Egerer [Fri, 4 Mar 2011 16:06:43 +0000 (17:06 +0100)]
libudev: use sysfs attr ilist interface for attribute walk

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
13 years agolibudev: allow to get list of all available sysfs attrs for a device
Thomas Egerer [Fri, 4 Mar 2011 16:06:41 +0000 (17:06 +0100)]
libudev: allow to get list of all available sysfs attrs for a device

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
13 years agoRemap Acer WMI touchpad toggle key to F21 used by X
Lee, Chun-Yi [Tue, 1 Mar 2011 11:16:45 +0000 (19:16 +0800)]
Remap Acer WMI touchpad toggle key to F21 used by X

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>
13 years agocdrom_id: cd_media_toc() extend toc size to 65536
Harald Hoyer [Thu, 24 Feb 2011 15:57:05 +0000 (16:57 +0100)]
cdrom_id: cd_media_toc() extend toc size to 65536

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>
13 years agokeymap: Fix Acer Aspire 5920G media key
Martin Pitt [Sun, 20 Feb 2011 16:58:55 +0000 (17:58 +0100)]
keymap: Fix Acer Aspire 5920G media key

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

13 years agoupdate some comments
Kay Sievers [Tue, 15 Feb 2011 21:27:33 +0000 (22:27 +0100)]
update some comments

13 years agoudevadm: enumerate - update prev pointer properly
Kei Tokunaga [Tue, 15 Feb 2011 09:59:24 +0000 (18:59 +0900)]
udevadm: enumerate - update prev pointer properly

When I tried to boot a system with 256 disks x 4 paths with
device-mapper, udevadm trigger (--type=devices) that was called
from start_udev ended up dumping a core due to a segmentation
fault.

In udev_enumerate_get_list_entry(), if it finds the devices that
should be delayed, it calls syspath_add().  If realloc() in
syspath_add() allocates the required memory at a different memory
address, referring prev->len afterward causes the segmentation
fault.

Signed-off-by: Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com>
13 years agov4l_id: Drop videodev.h check again
Martin Pitt [Tue, 15 Feb 2011 16:33:05 +0000 (17:33 +0100)]
v4l_id: Drop videodev.h check again

It only uses v4l2 now.

13 years agov4l_id: remove left-over variable
Kay Sievers [Tue, 15 Feb 2011 16:27:29 +0000 (17:27 +0100)]
v4l_id: remove left-over variable

13 years agov4l_id: kill the v4l1 ioctl
Kay Sievers [Tue, 15 Feb 2011 16:24:32 +0000 (17:24 +0100)]
v4l_id: kill the v4l1 ioctl

Recent kernels do not have v4l1 anymore.

13 years agoMerge branch 'master' of git+ssh://master.kernel.org/pub/scm/linux/hotplug/udev
Kay Sievers [Tue, 15 Feb 2011 16:24:12 +0000 (17:24 +0100)]
Merge branch 'master' of git+ssh://master.kernel.org/pub/scm/linux/hotplug/udev

13 years agoDo not build extras with --disable-extras
Martin Pitt [Tue, 15 Feb 2011 15:37:26 +0000 (16:37 +0100)]
Do not build extras with --disable-extras

13 years agoFix building with --disable-extras
Martin Pitt [Tue, 15 Feb 2011 15:31:49 +0000 (16:31 +0100)]
Fix building with --disable-extras

We always need to define automake conditionals, otherwise configure fails with
--disable-extras.

13 years ago60-persistent-input.rules: Do not create duplicate links
Martin Pitt [Tue, 15 Feb 2011 14:39:42 +0000 (15:39 +0100)]
60-persistent-input.rules: Do not create duplicate links

Commit 5e9eb156c added new symlinks for multi-interface USB input devices.
However, we do not actually need the one for interface number "00", as we
already have the symlink without the interface number.

13 years agoOnly build v4l_id if V4L1 header file is available
Martin Pitt [Tue, 15 Feb 2011 13:20:21 +0000 (14:20 +0100)]
Only build v4l_id if V4L1 header file is available

13 years ago60-persistent-input.rules: Support multiple interfaces
Martin Pitt [Tue, 15 Feb 2011 12:06:18 +0000 (13:06 +0100)]
60-persistent-input.rules: Support multiple interfaces

Create /dev/input/by-id symlinks containing the USB interface number so that
each interface in a multi-interface USB input device gets its own symlink.

Thanks to a7x <ubuntu-a7x@scientician.org>!

https://launchpad.net/bugs/626449

13 years agoversion bump
Kay Sievers [Thu, 10 Feb 2011 08:23:45 +0000 (09:23 +0100)]
version bump

13 years agorelease 166
Kay Sievers [Thu, 10 Feb 2011 08:07:06 +0000 (09:07 +0100)]
release 166