NetBSD-Bugs archive

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

kern/49024: Powerd invokes lid_switch by acpilid only ONCE after boot



>Number:         49024
>Category:       kern
>Synopsis:       Powerd invokes lid_switch by acpilid only ONCE after boot
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 21 02:35:00 +0000 2014
>Originator:     Makoto Fujiwara
>Release:        NetBSD 6.99.47
>Organization:
KINU Corporation
        
>Environment:
        
        
System: NetBSD gw.ki.nu 6.99.47 NetBSD 6.99.47 (GENERIC.201407200700Z) #0: Sun 
Jul 20 09:09:34 UTC 2014 
builds%b43.netbsd.org@localhost:/home/builds/ab/HEAD/i386/201407200700Z-obj/home/source/ab/HEAD/src/sys/arch/i386/compile/GENERIC
 i386
Architecture: i386
Machine: i386
>Description:
Powerd invokes lid_switch by acpilid only ONCE after boot (Panasonic Lets' Note 
R4)
>How-To-Repeat:
(1) Have note-PC cable of hw.acpi.sleep.states = S3, say,
  sysctl hw.acpi.sleep.states           returns
  hw.acpi.sleep.states = S0 S3 S4 S5
(2) Install NetBSD 6.x
(3) Boot the PC and make sure following command makes PC to sleep.
  sysctl -w hw.acpi.sleep.states= 3
(4) Open lid may wake up the PC.
(5) Have /etc/powerd/scripts/lid_switch setup as explained in
   man 4 acpilid
  --------
   (Taking care network device)
  # Suspend.
  #
  if /sbin/sysctl hw.acpi.sleep.state >/dev/null 2>&1; then
     /sbin/sysctl -w hw.acpi.sleep.state=3
  fi

  (Taking care network device)
  ----------
  (and have powerd is enabled in /etc/rc.conf)

(6) check if following works
  (a) closing lid to sleep
  (b) opening lid to wake up
  (c) 'sysctl -w hw.acpi.sleep.states= 3' makes sleep

(6c) always work, but (6a) only works once after boot.
/etc/rc.d/powerd restart does not reset this situation.
Currently reboot is required for (6a) to work.

I have above problem on Panasonic Lets' Note R4 with NetBSD
6.1.3 and 6.99.47 (both i386)
dmesg of 6.99.47 is at
http://www.nycbug.org/index.cgi?action=dmesgd&do=view&id=2552

Thanks a lot,

Re:
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46870
>Fix:
unknown

>Unformatted:
 Powerd invokes lid_switch by acpilid only ONCE after boot (Panasonic Lets' 
Note R4)
        
        


Home | Main Index | Thread Index | Old Index