You are not logged in.

#1 2012-02-13 07:22:21

silverzhao
Member
Registered: 2011-07-05
Posts: 33

[SOLVED]laptop-mode: failed - udev not active?

When I start laptop-mode today, I find these in /var/log/everything.log.

Feb 13 15:08:36 localhost laptop-mode: failed - udev not active?

I just upgraded my system last night. Is there anything wrong?

Last edited by silverzhao (2012-03-02 10:12:29)


What you are you do not see, what you see is your shadow.

Offline

#2 2012-02-13 08:53:49

esdaniel
Member
From: Paris
Registered: 2010-02-01
Posts: 58
Website

Re: [SOLVED]laptop-mode: failed - udev not active?

You will probably have already noted udevd daemon is not running, check using:

# ps -ax | grep udev

I had problems with this last night as well, I hate to confess I borked my system after creating a bad kernel image after trying to downgrade latest package updates, not sure what went wrong though rather than keep that to myself I thought I better share.

There were a few other udpates recently, notably (to me at least) kmod and mkinitcpio. It might well mean you need to rebuild your kernel image though I'd prefer someone else confirm this first. I'd recommend ensuring you've got all the latest updates before trying to fix this further.

To re-build standard kernel i.e. not a custom kernel use:

$ mkinitcpio -p linux

Anyhow, be careful before you tear the system apart trying to fix it, is what I'd like to share.

Last edited by esdaniel (2012-02-13 08:54:09)

Offline

#3 2012-02-13 11:36:01

silverzhao
Member
Registered: 2011-07-05
Posts: 33

Re: [SOLVED]laptop-mode: failed - udev not active?

@esdaniel, thanks for your reply. So you mean to rebuild the kernel? I reinstalled my sytem last night by net-install, and then I have this problem.

$ ps -e | grep udev
  167 ?        00:00:00 udevd
  216 ?        00:00:00 udevd
  217 ?        00:00:00 udevd

As you see, udevd daemon is already running.


What you are you do not see, what you see is your shadow.

Offline

#4 2012-02-14 09:30:11

esdaniel
Member
From: Paris
Registered: 2010-02-01
Posts: 58
Website

Re: [SOLVED]laptop-mode: failed - udev not active?

No need to recompile kernel.
The log messages may well relate to new config options not applicable to your laptop or for which a udev rule could be failing, I'd start by checking /etc/laptop-mode/conf.d/

Offline

#5 2012-02-14 12:42:31

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED]laptop-mode: failed - udev not active?

I'm having this problem too, but everything seems to be working...

Offline

#6 2012-02-15 11:44:22

silverzhao
Member
Registered: 2011-07-05
Posts: 33

Re: [SOLVED]laptop-mode: failed - udev not active?

@esdaniel: I think it may be related to udev, for I see udev has just been upgraded recently.
@nierro: yeah, it seems nothing broken, but just annoying.


What you are you do not see, what you see is your shadow.

Offline

#7 2012-02-15 14:48:17

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED]laptop-mode: failed - udev not active?

May be udev 181 is not well working with laptop-mode-tools? May be we must wait for a lmt update!

Offline

#8 2012-02-20 15:01:02

rjet
Member
Registered: 2012-02-11
Posts: 2

Re: [SOLVED]laptop-mode: failed - udev not active?

I  seem to be having similar problems.  But since I have only just installed laptop-mode for power management I have no idea if its working correctly or not.

Offline

#9 2012-02-20 21:41:35

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED]laptop-mode: failed - udev not active?

I'm seeing this, too. Here's an example:

Feb 20 21:19:02 localhost laptop-mode: Laptop mode 
Feb 20 21:19:02 localhost laptop-mode: enabled, 
Feb 20 21:19:02 localhost laptop-mode: not active [unchanged]
Feb 20 21:19:06 localhost laptop-mode: Laptop mode 
Feb 20 21:19:06 localhost laptop-mode: enabled, not active

appears in messages.log, as expected (I think), but then in errors.log:

Feb 20 21:19:07 localhost laptop-mode: failed - udev not active?
Feb 20 21:19:07 localhost laptop-mode: failed - udev not active?
Feb 20 21:19:07 localhost laptop-mode: failed - udev not active?
Feb 20 21:19:07 localhost laptop-mode: failed - udev not active?
Feb 20 21:19:07 localhost laptop-mode: failed - udev not active?
Feb 20 21:19:07 localhost laptop-mode: failed - udev not active?
Feb 20 21:19:07 localhost laptop-mode: failed - udev not active?
Feb 20 21:19:07 localhost laptop-mode: failed - udev not active?

But udevd is definitely running:

$ ps ax | grep udev
  160 ?        Ss     0:02 /lib/udev/udevd --daemon

I'm not sure how to check whether laptop-mode has really failed or not. It is just a bunch of settings, isn't it? There's no daemon to check...


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2012-02-21 11:00:35

silverlove
Member
Registered: 2012-02-17
Posts: 7
Website

Re: [SOLVED]laptop-mode: failed - udev not active?

Should we report this as a bug?


What you are you do not see, what you see is your shadow.

Offline

#11 2012-02-21 17:47:31

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED]laptop-mode: failed - udev not active?

It may be a good idea

Offline

#12 2012-02-22 00:19:55

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED]laptop-mode: failed - udev not active?

https://bugs.archlinux.org/task/28573

It would be good if other people could add to this report, especially people who have a better sense of what is going on than I do.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#13 2012-02-23 00:16:29

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: [SOLVED]laptop-mode: failed - udev not active?

check if you have this file : /var/run/laptop-mode-tools/enabled
If not, touch it.
I had same problem until I executed laptop-mode status and saw on the output it was complaining the above file did not exist.

Offline

#14 2012-02-23 09:59:04

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED]laptop-mode: failed - udev not active?

This did not fix the problem for me, same errors.log...but as i said above, everything is working, so it doesn't matter a lot!Hope a fix will be released shortly from laptop-mode-tools developer/s

Offline

#15 2012-02-24 02:00:03

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED]laptop-mode: failed - udev not active?

I already have that file...


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#16 2012-02-26 09:40:14

t1nk3r3r
Member
From: The Pacific Northwest
Registered: 2011-03-22
Posts: 79

Re: [SOLVED]laptop-mode: failed - udev not active?

mkinitcpio -p linux

[re]builds the initramfs-linux.img required by the kernel to boot the system.  '/boot/vmlinuz-linux' is the kernel itself.

My outputs for reference (working afaik):

$ ps ax | grep udev
  207 ?        Ss     0:00 /lib/udev/udevd --daemon
  290 ?        S      0:00 /lib/udev/udevd --daemon
  291 ?        S      0:00 /lib/udev/udevd --daemon
 1348 pts/1    S+     0:00 grep udev
$ grep HOOKS /etc/mkinitcpio.conf
HOOKS="base udev autodetect pata scsi sata filesystems usbinput"

Without udev running at all, I doubt you'd have a working system at all (unless you know how to configure /dev otherwise).
It appears that three instances are the norm, and without all three LMT cannot detect it?  Not sure what the trigger is for starting udev...

I think I've seen this before, but can't remember what I did to get out of it (probably wipe/reinstall).


--------------------------The only wasted day is one in which you learn nothing.--------------------------

Offline

#17 2012-02-27 09:48:40

t1nk3r3r
Member
From: The Pacific Northwest
Registered: 2011-03-22
Posts: 79

Re: [SOLVED]laptop-mode: failed - udev not active?

So I might be in the same boat now...
Just finished going through _all_ the .conf files under /etc/laptop-mode and now laptop-mode is failing.
Looking through daemon.log I notice that it occasionally screams "udev not active", but that in and of itself is not total failure.  At least I notice cpufreq governors functioning from conky monitors, and I don't see a [FAIL] at boot.  I believe those messages come from LMT loading before udev has finished initializing, at least it keeps looking.

Now I do get [FAIL], and I can confidently say it is due to some particular setting in LMT.  Now for those of you who haven't been playing with settings recently, it's possible that the udev update changed some things that LMT depends on.  In that case, LMT needs to be updated.

I'll post if I figure out which setting did it for me...


--------------------------The only wasted day is one in which you learn nothing.--------------------------

Offline

#18 2012-02-27 09:54:41

t1nk3r3r
Member
From: The Pacific Northwest
Registered: 2011-03-22
Posts: 79

Re: [SOLVED]laptop-mode: failed - udev not active?

Ha! It was as simple as a stray period in a .conf file (at least for me).

Another reminder to dot your i's, cross your t's, and remove stray characters.


--------------------------The only wasted day is one in which you learn nothing.--------------------------

Offline

#19 2012-03-02 10:11:34

silverzhao
Member
Registered: 2011-07-05
Posts: 33

Re: [SOLVED]laptop-mode: failed - udev not active?

It seems that I've found a solution.
As the first comment says, I just replaced '/sbin/udevadm/' with '/usr/bin/udevadm' in the file /usr/share/laptop-mode-tools/modules/hdparm, and now it seems everything OK.


What you are you do not see, what you see is your shadow.

Offline

#20 2012-03-02 11:51:10

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED]laptop-mode: failed - udev not active?

thanks, this solved the issue for me!

Offline

Board footer

Powered by FluxBB