Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: acpilid works in single user but not in multiuser



Hmmm, looking closer at /etc/powerd/scripts/lid_switch it appears that powerd by default does pretty much nothing on a lid-switch event!

There's some calls to /usr/sbin/apm but they're commented out, and they're also conditionalized on whether apmd is running.

You might want to add a call to logger(1) to display the event on your console...

On Fri, 3 Jul 2009, Paul Goyette wrote:

I'm assuming that you have 'powerd=YES' in your /etc/rc.conf file?

sysmon_pswitch_event() checks to see if powerd process is running; if yes, then the lid event is delivered to powerd. But if powerd is not running (as would be expected in single-user mode), sysmon_pswitch_event does it's own printf()s.

I don't see any obvious error paths in the code that delivers the event to powerd (sysmon_power_daemon_task() in particular), but it might be useful to do throw in some debugging printf()s...


On Fri, 3 Jul 2009, matthew sporleder wrote:

So for a while I've thought the lid switch was broken on my eeepc, but
then today I had a disk problem and ended up in single user mode.  To
my surprise I found out that my lid switch was working again and
reporting to the console!

When I fsck-ed and rebooted I ended up with a non working lid switch
again until I did a "shutdown now".  After that the console is back to
printing out those re-assuring messages from acpilid.  I'm currently
running 5.99.11 from a little while ago.  Any ideas?

Matt


-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index