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

200 Commits

Author SHA1 Message Date
Kay Sievers
3252936093 libudev: enumerate - scan /sys/module 2011-06-18 22:50:55 +02:00
Kay Sievers
6297c2d4e4 delete mobile-action-modeswitch which has moved to usb_modeswitch 2011-06-18 22:38:39 +02:00
Bastien Nocera
24569e24dc accelerometer: add orientation property 2011-06-06 18:44:09 +02:00
Kay Sievers
6cadb40abf make: use 'git tag' 2011-06-03 14:38:43 +02:00
Kay Sievers
ea69e8217b Makefile: add tar-sync 2011-05-30 02:06:12 +02:00
Kay Sievers
5a6583ecb4 systemd: split socket file 2011-05-25 00:56:48 +02:00
Kay Sievers
666fcf03bc libudev: export symbols explicitely and individually from C code not from separate file or prefix match 2011-05-20 14:41:10 +02:00
Kay Sievers
f0ed90b767 build: use --gc-sections, -fvisibility=hidden
After:
  # ls -l /sbin/udevadm /sbin/udevd /lib/udev/*_id
  -rwxr-xr-x 1 root root  22984 May 18 18:19 /lib/udev/ata_id
  -rwxr-xr-x 1 root root  31208 May 18 18:19 /lib/udev/cdrom_id
  -rwxr-xr-x 1 root root  27128 May 18 18:19 /lib/udev/input_id
  -rwxr-xr-x 1 root root  31272 May 18 18:19 /lib/udev/path_id
  -rwxr-xr-x 1 root root  31896 May 18 18:19 /lib/udev/scsi_id
  -rwxr-xr-x 1 root root  35456 May 18 18:19 /lib/udev/usb_id
  -rwxr-xr-x 1 root root   6416 May 18 18:19 /lib/udev/v4l_id
  -rwxr-xr-x 1 root root 130320 May 18 18:19 /sbin/udevadm
  -rwxr-xr-x 1 root root 134648 May 18 18:19 /sbin/udevd

Before:
  # ls -l /sbin/udevadm /sbin/udevd /lib/udev/*_id
  -rwxr-xr-x 1 root root  27208 May 18 18:22 /lib/udev/ata_id
  -rwxr-xr-x 1 root root  35456 May 18 18:22 /lib/udev/cdrom_id
  -rwxr-xr-x 1 root root  39584 May 18 18:22 /lib/udev/input_id
  -rwxr-xr-x 1 root root  39600 May 18 18:22 /lib/udev/path_id
  -rwxr-xr-x 1 root root  36056 May 18 18:22 /lib/udev/scsi_id
  -rwxr-xr-x 1 root root  43712 May 18 18:22 /lib/udev/usb_id
  -rwxr-xr-x 1 root root   6504 May 18 18:22 /lib/udev/v4l_id
  -rwxr-xr-x 1 root root 142656 May 18 18:22 /sbin/udevadm
  -rwxr-xr-x 1 root root 142888 May 18 18:22 /sbin/udevd
2011-05-18 18:29:24 +02:00
Kay Sievers
4b718be86d libudev: queue - always rebuild queue file when nothing is queued anymore 2011-05-16 19:13:42 +02:00
Koen Kooi
16efbde01a configure: reintroduce introspection flags to fix crosscompilation 2011-05-10 14:52:59 +02:00
Kay Sievers
07f1d2860e delete hid2hci which moved to the bluez tree 2011-04-29 14:31:53 +02:00
Kay Sievers
d5d6a7f304 configure: allow to enable/disable extras individually
- remove gobject introspection switch
      - disable hid2hci by default (moved to bluez)
      - disable action-modeswitch by default (will move to usb_modeswitch)
      - disable edd_id by default (problems with disk signatures)
      - disable legacy floppy by default (no more nasty device node hacks by default)
2011-04-29 14:27:11 +02:00
Kay Sievers
f2f3b88072 hid2hci: prepare move to bluez package 2011-04-27 01:10:04 +02:00
Kay Sievers
8958da13c7 libudev: list - use bit flags for 'sort' and 'unique' 2011-04-24 00:22:23 +02:00
Kay Sievers
09913ced8c libudev: bump revision 2011-04-13 18:46:02 +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
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
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
079f5697c1 systemd: use sockets.target not socket.target 2011-03-23 20:35:19 +01:00
Kay Sievers
fc1de713f5 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.
2011-03-23 16:40:23 +01:00
Kay Sievers
baf2b4eb0b systemd: remove deprecated udev-retry.service 2011-03-19 18:13:01 +01:00
Kay Sievers
21c53d918a fstab_import: disable build 2011-03-19 18:11:12 +01:00
Kay Sievers
5f59fa0900 move /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd startup 2011-03-15 17:26:08 +01:00
Kay Sievers
218e47ae0f libudev: bump minor version 2011-03-05 06:27: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
Martin Pitt
905818f596 Do not build extras with --disable-extras 2011-02-15 16:37:26 +01:00
Martin Pitt
0c0b3f97ca Only build v4l_id if V4L1 header file is available 2011-02-15 14:20:21 +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
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
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
2363d33e10 gudev: bump minor version 2010-12-15 09:06:05 +01: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
4281da1fa6 udevd: use dev_t or netif ifindex as database key
We need to preserve the database of network interfaces while we
rename them. Use the kernel's numbers wherever possible, instead
of the device names.

Fix wrong database filenames which contain a '/', translated
from '!' in the kernel name.

Fix segfault for kobject pathes where the subsystem can not be
determined from sysfs.
2010-12-10 01:18:15 +01:00
Martin Pitt
a2f8d21431 keymap: Fix struck Touchpad key on Dell Latitude E series
https://launchpad.net/bugs/686662
2010-12-08 16:21:02 +01:00
Bastien Nocera
ecfad20871 keymap: Add force release for HP touchpad off
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-06 09:16:23 -04:00
Martin Pitt
2f151e0fbf keymap: Add Sony Vaio VGN71
https://launchpad.net/bugs/625770
2010-10-25 22:01:03 -04:00
Kay Sievers
cdb1d7608a libudev: return kernel provided devnode when asked before we handled any rules 2010-10-22 13:56:16 +02:00
Kay Sievers
fc416258f3 udevd: do not wrongly delay events for devices with swapped names
Renaming network devices might delay events for the other device, which has
the same devpath in the meantime as the original event. Causing a delay until
the timout of the event is reached.

Look at the ifindex/devnum of the devices to check if they are really
the same devices.
2010-10-13 13:08:29 +02:00
David Zeuthen
18f5c802df Install libgudev-1.0.so in prefix / instead of prefix /usr
This is to match where libudev.so is installed and it works because
all dependent libraries are already installed in / instead of /usr on
most distros:

 $ ldd /usr/lib64/libgudev-1.0.so
         linux-vdso.so.1 =>  (0x00007fff44dff000)
         libudev.so.0 => /lib64/libudev.so.0 (0x0000003bf2600000)
         libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x0000003fb5200000)
         libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x0000003fb4e00000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003d5b000000)
         librt.so.1 => /lib64/librt.so.1 (0x0000003d5b800000)
         libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x0000003fb4a00000)
         libc.so.6 => /lib64/libc.so.6 (0x0000003d5ac00000)
         /lib64/ld-linux-x86-64.so.2 (0x0000003d5a800000)

With this change it is possible to write libgudev applications that
can be installed in /bin or /sbin and can run without /usr being
mounted. This is needed for e.g. udisks, NetworkManager and other
subsystem-specific daemons.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-10-11 12:10:02 -04:00
Kay Sievers
392ef7a28a udevd: add sd-daemon.c 2010-10-07 14:59:11 +02:00
Kay Sievers
0bd77e2acd systemd: hook into basic.target instead of sysinit.target 2010-09-29 00:49:24 +02:00
Martin Pitt
b2ad12eb02 Add automatic rules syntax check
Add test/rule-syntax-check.py, a script for checking the syntax of all udev
rules files passed as command line arguments.

Add a wrapper test/rules-test.sh which calls rule-syntax-check.py on all udev
rules that we ship, but does nothing if Python is not available. Integrate this
into make check/distcheck.
2010-09-21 12:45:52 +02:00
Kay Sievers
a04879b564 systemd: enable all udev services unconditionally 2010-09-03 13:30:57 +02:00
Martin Pitt
acf865b68e keymap: Add Onkyo PC
Thanks to Pau Oliva!

https://launchpad.net/bugs/612529
2010-08-22 11:00:34 +02:00
David Woodhouse
9cd075e35b Add keymap for Lenovo IdeaPad S10-3
Tested on S10-3, but presumably applicable to all IdeaPads.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-12 20:13:26 +02:00
Kay Sievers
ebd189621f do not rename the database on device rename
Harald Hoyer discovered some incorrect behavior while debugging
problems with network interface renaming:

Udev events might be queued for devices which are renamed. A new
device registered the same time may claime the old name and create
a database entry for it. The current rename logic would move over
this databse entry to the wrong device.
2010-08-11 14:34:32 +02:00
Kay Sievers
2ec30504d6 libudev: bump minor so version after adding symbols 2010-07-19 14:08:21 +02:00
Martin Pitt
0fade61274 keymap: Add Logitech Cordless Wave Pro
https://launchpad.net/bugs/592371
2010-07-05 09:35:36 +02:00
Matthew Garrett
8bc376a373 keymap: Add support for IBM-branded USB devices
These seem to use a different layout to the Lenovo-branded devices

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-07-02 15:52:07 +02:00
Michael Meeks
86a62b0cf2 gudev: respect possibly given LD_LIBRARY_PATH
michael@linux-iwk5:/opt/hgnome/src/udev> make V=1
make --no-print-directory all-recursive
Making all in .
PKG_CONFIG_PATH=./data:$PKG_CONFIG_PATH \
        LD_LIBRARY_PATH=./extras/gudev \
        /opt/hgnome/bin/g-ir-scanner -v \
                --namespace GUdev \
..
                ./extras/gudev/gudevdevice.c
/opt/hgnome/bin/python: error while loading shared libraries:
libpython2.5.so.1.0: cannot open shared object file: No such file or
directory
make[2]: *** [extras/gudev/GUdev-1.0.gir] Error 127
2010-06-29 17:38:36 +02:00
Kay Sievers
f0565500f4 make: fix 'make distcheck'
udev-159.tar.gz
2010-06-25 10:42:33 +02:00
Kay Sievers
08b4c88353 make: pre-process and install systemd service files when needed 2010-06-25 10:30:55 +02:00
Kay Sievers
492da5ef53 rules: remove unused subdir 2010-06-24 09:35:39 +02:00
Maxim Levitsky
674c3412bb mtd_probe: add autodetection for xD cards
commit 2599cabd36770785a13bf884049d649d385fd80c
Author: Maxim Levitsky <maximlevitsky@gmail.com>
Date:   Fri Jun 18 02:08:48 2010 +0300

Add autodetection for xD/smartmedia cards
This can easily be extended for other types of FTL

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
2010-06-23 22:20:29 +02:00
Martin Pitt
dcaa863948 Revert "add Vala vapi for gudev-1.0"
Argh, recent vala already ships with a gudev vapi.

This reverts commit 6a7b5ec771.
2010-06-13 10:08:22 +02:00
Martin Pitt
6a7b5ec771 add Vala vapi for gudev-1.0
Add gudev-1.0.vapi. This is based on the output of

  vapigen  --library gudev-1.0 GUdev-1.0.gir

with fixes to array/list semantics and include file names.
2010-06-13 00:47:16 +02:00
Kay Sievers
727b12d650 libudev: fix fd leak in udev_enumerate_scan_devices() when tags are searched
Thanks to Lennart for finding this.
2010-06-05 10:30:36 +02:00
Kay Sievers
d43099830b make: fix rules/ subdir names 2010-05-30 15:16:53 +02:00
Kay Sievers
860a404ddc make: mkdir /lib/udev/devices/ 2010-05-30 15:13:48 +02:00
Kay Sievers
e5e3f0ca64 rules: delete pilot rules and remove redhat directory 2010-05-28 13:59:23 +02:00
Kay Sievers
a4555e40d2 Makefile.am: silent build mkdir 2010-05-25 15:08:01 +02:00
Kay Sievers
e0d9c042f8 libudev: fix udev_queue_get_seqnum_sequence_is_finished() with empty queue file
We an empty or garbage-collected queue file, we might not have a record
for the first sequence we wait for, and therefore must not wait for it.
2010-05-25 12:17:43 +02:00
Kay Sievers
63749b1a5f man: directly use 'refentry'
And make Lennart happy! :)
2010-05-24 17:00:15 +02:00
Kay Sievers
0c5c48040a libudev: add O_CLOEXEC 2010-05-14 14:52:18 +02:00
Harald Hoyer
c0b19a1717 Makefile.am: add LGPL COPYING file to EXTRA_DIST
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-27 18:57:02 +02:00
Kay Sievers
28460195c2 add TAG= to improve event filtering and device enumeration 2010-04-22 18:12:36 +02:00
Yury G. Kudryashov
4101ce14b3 configure.ac: ddd --with-firmware-path option
In NixOS we need to use non-standard firmware path: we have no /lib.
2010-04-20 07:02:58 +02:00
Kamal Mostafa
db57bdda04 keymap: Unite laptop models needing common volume-key release quirk
Many laptop models need the same volume-key release quirk. Currently, two
models have identical force-release-maps/ keymap files (dell-studio-1557 and
fujitsu-amilo-si1848) and two more need to be added (Mitac and Coolbox QBook).

This replaces the identical force-release-maps files with one
'common-volume-keys' file to make adding new models easier.

There is no obvious DMI commonality between the models needing the quirk (i.e.
they do not all share the same BIOS), so it will remain necessary to scan for
each model separately in 95-keyboard-force-release.rules.

https://launchpad.net/bugs/565459

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-19 08:48:34 +02:00
Dan Williams
4dd9b29135 modeswitch: morph into tool that only switches Mobile Action cables
Remove option modeswitching code; use usb_modeswitch already, people.
2010-03-18 17:13:59 -07:00
Martin Pitt
a245a97b4e input_id: Fix linking
Link against libudev-private.a instead of libudev.a, to avoid runtime
dependency to libudev.
2010-03-10 12:17:03 +01:00
Andy Whitcroft
da96a11b9c keymap: Add Fujitsu Amilo 1848+u force-release quirk
The Fujitsu Amilo Si 1848+u laptop requires the volume and mute keys
quirking.

https://launchpad.net/bugs/530089

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-02 14:00:32 +01:00
Kay Sievers
e0fcf21c03 libudev: bump minor version 2010-02-18 11:03:09 +01:00
Martin Pitt
4ca91a04e8 keymap: Add Toshiba Satellite M30X
Thanks to Alessio Gaeta!

https://launchpad.net/bugs/510019
2010-02-15 13:15:25 +01:00
Jerone Young
b15bb80190 Force key release for volume keys on Dell Studio 1557
Dell Studio 1557 does not generate a release code when the volume keys
are pressed, causing them to generate infinite key presses. This forces
key release of these keys.

Signed-off-by: Jerone Young <jerone.young@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-02-13 12:53:12 +01:00
Martin Pitt
4c514e3173 keymap: Fix LG X110
The LG X110 is not a perfect clone of the MSI Wind after all, and needs its own
keymap. Thanks to Konstantin Lavrov!

https://launchpad.net/bugs/520650
2010-02-12 19:25:47 +01:00
Kay Sievers
26420abf54 delete outdated and unmaintained writing_udev_rules
Many statements in this document are no longer correct, or even
suggest things we do not want to support, or do not work at all
with the current version of udev.

Any new documentation should better be added to the udev man page,
which is usually kept up-to-date.
2010-01-25 10:48:04 +01:00
Kay Sievers
d8f33f0252 keymap: linux/input.h - get absolute include path from gcc 2010-01-25 08:22:47 +01:00
Martin Pitt
9a6741ba2f keymap: move force-release directory
Move extras/keymap/keymaps/force-release/ to
extras/keymap/force-release-maps/, so that check-keymaps.sh does not stumble
over the directory. It's also a more logical source layout.
2010-01-21 00:55:59 +01:00
Kay Sievers
7c34949019 libudev: device - create db file atomically
We need to prevent that libudev parses half-written database files.

Also for "change" events, we need to make sure, that database files
always exist to be read by libudev, and that they are not first deleted
before they are re-created.
2010-01-13 13:26:56 +01:00
Marco d'Itri
6714dc2015 build: keymap - create subdir 2010-01-07 16:18:18 +01:00
Jerone Young
5da8438016 keymap: Lenovo Thinkpad USB Keyboard with Tracepoint
Add support for special function keys on Lenovo Thinkpad USB Keyboard
Tracepoint.

    - VoIP hotkey "FN+F6" is mapped to camera, and may need to change
      if there is a standard VoIP hotkey defined.
    - Mute Microphone key has not been defined, as there is no
      standard key defined for it yet.

Signed-off-by: Jerone Young <jerone.young@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-01-03 11:42:12 +01:00
Daniel Drake
bf088a572e keymap: Add OLPC XO key mappings
This supports both XO-1 and XO-1.5.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2009-12-27 11:36:36 +01:00
Kay Sievers
f46d2e54a8 remove UDEV_RUN environment variable
It handles only RUN but not IMPORT and PROGRAM. There is no sane way
to suppress program execution. Most important programs run with IMPORT
these days. Also events can no longer suppressed with the libudev
netlink messages, so UDEV_RUN does nothing useful and is just
inconsistent.
2009-12-25 15:23:45 +01:00
Piter PUNK
6fb1b637d4 firmware: convert shell script to C 2009-12-15 16:28:52 +01:00
Kay Sievers
3c1898863f remove remaining support for CONFIG_SYSFS_DEPRECATED 2009-12-15 16:14:14 +01:00
Kay Sievers
78171d9549 floppy: fix rule to create additional floppy device nodes 2009-12-15 15:07:25 +01:00
Johannes Stezenbach
8350d0b9ec keymap: handle atkbd force_release quirk
Some laptop keyboards don't generate release events
for some hotkeys.  Since linux-2.6.32 the list of scancodes
for which to enable the force_release quirk can be set
via sysfs.
Apply this to Samsung N130.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2009-12-14 19:19:35 +01:00
Kay Sievers
baf2e222d5 fix both in-tree and out-of-tree builds
On Thu, Dec 3, 2009 at 14:31, Daniel Elstner <daniel.kitta@googlemail.com> wrote:
> However, I'd recommend to look first in the build directory, and then in
> the source directory to match the behavior of make with VPATH builds.
> The idea is that a file in the build tree, if it exists, overrides a
> file of the same name in the source tree.
2009-12-03 14:36:36 +01:00
Kay Sievers
83d288085f really really fix both in-tree and out-of-tree builds
The include is still missing:
  GEN    extras/gudev/GUdev-1.0.gir
  In file included from <stdin>:4:
  /home/kay/work/src/udev/extras/gudev/gudev.h:26:34: error: gudev/gudevenumtypes.h: No such file or directory

Also prepend $(builddir).
2009-12-03 13:58:18 +01:00
Daniel Elstner
a4035cce36 really fix both in-tree and out-of-tree builds
Makefile.am (extras/gudev/GUdev-1.0.gir): Look for gudevenumtypes.h
in both the build directory and the source directory, so that it works
in either case.
2009-12-03 13:57:44 +01:00
Kay Sievers
17b9404053 Revert "Fix out-of-tree builds"
This reverts commit 326e15a8ed.

The issue in:
  http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=7fa9bb9dbf538bf3c8a25a6699f65a8ac9cc8bbf
still exists. We need to find a reliable way not to break
"make distcheck" here.
2009-12-02 12:56:06 +01:00
Martin Pitt
5b9204787f input_id: code cleanup
Now use libudev to clean up hardcoded /sys/ and /device/ paths, and to also
support direct input device arguments. Now both "input4" and "event4" will
work.
2009-12-02 11:14:19 +01:00
Scott James Remnant
326e15a8ed Fix out-of-tree builds
gudevenumtypes.h won't be under $(top_srcdir) when built out-of-tree
from GIT.

Signed-off-by: Scott James Remnant <scott@ubuntu.com>
2009-12-02 01:20:03 +00:00
Martin Pitt
a6cf773401 extras: Add input_id
input_id probes input/event devices for their class (keyboard, keys, mouse,
touchpad, tablet, joystick). This is based on the corresponding hal code in
hald/linux/device.c, input_test_{abs,rel,...}.

This should provide enough functionality to get hal-less X.org working (which
in particular needs to know exactly which devices are touchpads).

Replace the brittle hacks in 60-persistent-input.rules with checking for the
new ID_INPUT_* flags. This keeps the old ID_CLASS properties for now (but they
are to be removed later on).

Note: The current code has several hacks still, which are to be replaced with
proper libudev calls later on.
2009-11-30 18:38:43 +01:00
Kay Sievers
7fa9bb9dbf Revert "gudev: fix out-of-tree build"
This reverts commit b15b089138.

This breaks "make distcheck". The header is distributed in the tarball,
and does not live in builddir.
2009-11-10 15:09:27 +01:00
Marco d'Itri
b15b089138 gudev: fix out-of-tree build 2009-11-10 06:49:48 +01:00
Kay Sievers
882bcd951c gudev: fix pkg-config call to work with "make distcheck" 2009-11-10 06:49:48 +01:00
David Zeuthen
4e3664f22b gudev: Fix up GUdevDeviceNumber
Actually dev_t is an unsigned quad type (e.g. 64-bit even on 32-bit
x86) so defining it to be an integer is wrong and not future
proof. Thus, redefine it to actually be a dev_t (as originally wanted)
and instead add a work-around for GNOME bug #584517, see

https://bugzilla.gnome.org/show_bug.cgi?id=584517

for details. This way, GObject Introspection will still work.

This change is technically an API/ABI break but

 - all released GUdev versions requires the user to understand that
   the API/ABI is unstable by requiring the G_UDEV_API_IS_SUBJECT_TO_CHANGE
   symbols to be defined

 - functions using GUdevDeviceNumber are rarely used

so we don't bump the so number.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-08 12:31:35 -05:00