1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
Commit Graph

3852 Commits

Author SHA1 Message Date
Kay Sievers
20bee04c19 libudev: udev_device_get_sysattr_list_entry() update 2011-03-04 23:00:52 +01:00
Kay Sievers
d53a3878d2 test-libudev: add short options 2011-03-04 22:56:54 +01:00
Thomas Egerer
95ce1875d7 libudev: use sysfs attr ilist interface for attribute walk
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
2011-03-04 21:51:32 +01:00
Thomas Egerer
f180ad259f libudev: allow to get list of all available sysfs attrs for a device
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
2011-03-04 21:51:03 +01:00
Lee, Chun-Yi
30c2b6f10f 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>
2011-03-01 12:54:00 +01:00
Harald Hoyer
551b143e13 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>
2011-02-24 16:59:21 +01:00
Martin Pitt
7ae8a463be 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
2011-02-20 17:58:55 +01:00
Kay Sievers
0c19cc73da update some comments 2011-02-15 22:28:31 +01:00
Kei Tokunaga
c54b43e2c2 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>
2011-02-15 22:28:31 +01:00
Martin Pitt
f3f70f8d9e v4l_id: Drop videodev.h check again
It only uses v4l2 now.
2011-02-15 17:33:05 +01:00
Kay Sievers
89284ddac4 v4l_id: remove left-over variable 2011-02-15 17:27:29 +01:00
Kay Sievers
4ace8a43ac v4l_id: kill the v4l1 ioctl
Recent kernels do not have v4l1 anymore.
2011-02-15 17:24:32 +01:00
Kay Sievers
4cbe709522 Merge branch 'master' of git+ssh://master.kernel.org/pub/scm/linux/hotplug/udev 2011-02-15 17:24:12 +01:00
Martin Pitt
905818f596 Do not build extras with --disable-extras 2011-02-15 16:37:26 +01:00
Martin Pitt
c283cd6c59 Fix building with --disable-extras
We always need to define automake conditionals, otherwise configure fails with
--disable-extras.
2011-02-15 16:31:49 +01:00
Martin Pitt
32567f8c95 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.
2011-02-15 15:39:42 +01:00
Martin Pitt
0c0b3f97ca Only build v4l_id if V4L1 header file is available 2011-02-15 14:20:21 +01:00
Martin Pitt
5e9eb156c0 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
2011-02-15 13:06:18 +01:00
Kay Sievers
f22f103661 version bump 2011-02-10 09:23:45 +01:00
Kay Sievers
0852794347 release 166 2011-02-10 09:07:06 +01:00
Matthew Garrett
0028a9224f keymap: Remove wlan from Dell
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-10 06:42:01 +01:00
Kay Sievers
50863e4a23 update gitignore 2011-02-09 22:12:15 +01:00
Kay Sievers
46df5b1bae ata_id: do not print empty serial numbers to avoid unwanted trailing '_' 2011-02-09 22:12:15 +01:00
Jürgen Kaiser
54453a9510 keymap: Add Acer Aspire 8930
http://bugs.debian.org/612512

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-02-09 17:10:32 +01:00
Kay Sievers
b6910d2251 extras: qemu - fix typo 2011-01-25 21:46:12 +01:00
Kay Sievers
06bd02c563 make: fix qemu rules file name 2011-01-25 16:14:04 +01:00
Gerd Hoffmann
4e54f5334e extras: add rules for qemu guests
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-25 16:14:04 +01:00
Martin Pitt
2514465f6a keymap: Explain how to end the program
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-16 21:12:32 +01:00
Martin Pitt
90f182c3d6 keymap: More robust state machine
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-16 21:10:03 +01:00
Martin Pitt
45019c0e88 keymap: Move reading of event in separate function 2011-01-16 19:25:04 +01:00
Martin Pitt
9b444cb29a keymap: Add Lenovo ThinkPad X201 tablet
https://launchpad.net/bugs/702426
2011-01-13 10:10:27 -06:00
Martin Pitt
e302c4b33d keymap: Update README.keymap.txt
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-07 12:12:57 +01:00
Martin Pitt
df6b2cf573 keymap: Add Acer TravelMate C310
Thanks to Dieter Herrmann for the report!
2011-01-07 12:09:45 +01:00
Kay Sievers
378380397c man: fix typo
Found by: Minh Ha-Duong.
2011-01-04 18:32:46 +01:00
Chris Bagwell
0d8b6be5f5 Remap Eee PC touchpad toggle key to F21 used by X
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>
2011-01-03 09:31:45 +01:00
Kay Sievers
e99cc72398 man: generate html pages for www.kernel.org
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/
2010-12-26 16:01:13 +01:00
Kay Sievers
0e6a2e7d3c version bump 2010-12-16 13:37:45 +01:00
Kay Sievers
f3f86e483a release 165 2010-12-16 13:17:02 +01:00
Kay Sievers
b4dd18ae52 update NEWS 2010-12-16 10:12:22 +01:00
David Zeuthen
d4c2307cc2 gudev: Add Device.get_usec_since_initialized
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-12-15 10:46:34 -05:00
Kay Sievers
2363d33e10 gudev: bump minor version 2010-12-15 09:06:05 +01:00
Kay Sievers
9c6a11b1c6 libudev: record and export "age" of device record 2010-12-15 08:58:46 +01:00
Kay Sievers
93a724d3f8 libudev: fix renamed device nodes detection logic 2010-12-15 08:58:45 +01:00
David Zeuthen
ab17a7ef55 Add g_udev_device_get_is_initialized() method
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-14 12:50:04 -05:00
David Zeuthen
0976fd063e Add GUdevEnumerator type and Device.get_tags() method
Also add JS example to check the added API works.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-12-14 12:37:40 -05:00
Kay Sievers
48a0170b11 libudev: enumerate - allow to filter-out not-already-initialized devices 2010-12-14 14:18:32 +01:00
Kay Sievers
ff0e1f4e5d check ifindex > 0 instead of subsystem == "net" 2010-12-14 11:27:02 +01:00
Kay Sievers
14996e80d4 udevd: write full database file for (unsupported) renamed device nodes 2010-12-14 02:30:36 +01:00
Kay Sievers
cad40a5fe7 udevd: switch to common id_filename functions 2010-12-12 20:07:15 +01:00
Kay Sievers
24d1076696 udevd: simplify udev database and fix DEVNAME handling 2010-12-11 14:00:46 +01:00