On 07/01/2011 10:23 PM, Ritesh Raj Sarraf wrote: > On 07/01/2011 06:17 PM, Raphael Plasson wrote: >> > >> > I did put the file "lmt-udev", in /lib/udev/, set it as executable, and >> > rebooted. No change, the are still the same "udevd: failed to execute >> > /usr/sbin/laptop_mode" appearing on the very early boot process. > Yes, I have to look into this. I just have been too busy. I need to > create the same setup as you guys, i.e. /usr/ on a different partition. > > Hopefully, this weekend.
I have a fix for this now. I just tested it on my VM and it seems to work. I still need your test results. Attached are 2 files: lmt-udev - Copy this file into /lib/udev and ensure that its permissions are 755. You can use the "chmod +x /lib/udev/lmt-udev" command 99-laptop-mode.rules - Copy this file into /lib/udev/rules.d/ folder. That should be it. Please let me know if that fixes the problem. -- Ritesh Raj Sarraf | http://people.debian.org/~rrs Debian - The Universal Operating System
#!/bin/sh -e ( . /lib/udev/hotplug.functions wait_for_file /usr/sbin/laptop_mode if [ x$1 -eq xusb ]; then exec /usr/sbin/laptop_mode "force modules=usb-autosuspend devices=%k" elif [ x$1 -eq xauto ]; then exec /usr/sbin/laptop_mode "auto" else echo "Running laptop-mode in default auto mode" exec /usr/sbin/laptop_mode "auto" fi ) &
ACTION=="change", SUBSYSTEM=="power_supply", RUN+="/lib/udev/lmt-udev auto" ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="/lib/udev/lmt-udev auto" ACTION=="add", SUBSYSTEM=="usb", RUN+="/lib/udev/lmt-udev usb"
signature.asc
Description: OpenPGP digital signature