[Pkg-acpi-devel] Bug#612628: udev: removal of uinput rule breaks acpi-fakekey
Sven Joachim
svenjoac at gmx.de
Wed Feb 9 17:53:56 UTC 2011
On 2011-02-09 18:09 +0100, Marco d'Itri wrote:
> reassign 612628 acpi-fakekey
> thanks
>
> On Feb 09, Sven Joachim <svenjoac at gmx.de> wrote:
>
>> The removal of the input/uinput symlink breaks the acpi-fakekey package
>> whose initscript now refuses to start:
> It should have been fixed long ago.
Opening /dev/uinput instead of /dev/input/uinput works for me:
--8<---------------cut here---------------start------------->8---
diff --git a/debian/patches/acpi_fakekey.diff b/debian/patches/acpi_fakekey.diff
index 6a2a2cb..ea1ed4b 100644
--- a/debian/patches/acpi_fakekey.diff
+++ b/debian/patches/acpi_fakekey.diff
@@ -155,7 +155,7 @@ diff -Nru /tmp/clWVJzRiJd/acpi-support-0.115/Makefile /tmp/Umsn0ebzYy/acpi-suppo
+ struct uinput_user_dev dev;
+ fd_set sfd;
+
-+ if ((fd = open("/dev/input/uinput", O_WRONLY | O_NDELAY)) == -1)
++ if ((fd = open("/dev/uinput", O_WRONLY | O_NDELAY)) == -1)
+ fail("open device");
+
+ memset(&dev, 0, sizeof(dev));
--8<---------------cut here---------------end--------------->8---
Don't know if there are older kernels that don't have /dev/uinput,
though.
Cheers,
Sven
More information about the Pkg-acpi-devel
mailing list