mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ACPI buttons in 2.6.12-rc4-mm2
@ 2005-05-22 11:25 Cameron Harris
  2005-07-26 19:44 ` Len Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Cameron Harris @ 2005-05-22 11:25 UTC (permalink / raw)
  To: linux-kernel

I just upgraded from 2.6.11.3 and now my /proc/acpi/button directory
doesn't exist...

$ gzcat /proc/config.gz | grep BUTTON
CONFIG_ACPI_BUTTON=y


And the kernel is detecting my buttons....

$ dmesg | grep LID
[4294668.236000] ACPI: Lid Switch [LID]
$ dmesg | grep PWR
[4294668.235000] ACPI: Power Button (FF) [PWRF]
[4294668.235000] ACPI: Power Button (CM) [PWRB]
$ dmesg | grep SLP
[4294668.236000] ACPI: Sleep Button (CM) [SLPB]
$ find /sys -name "*LID*"
/sys/firmware/acpi/namespace/ACPI/_SB/LID
$ find /sys -name "*PWR*"
/sys/firmware/acpi/namespace/ACPI/_SB/PWRB
/sys/firmware/acpi/namespace/ACPI/PWRF
$ find /sys -name "*SLP*"
/sys/firmware/acpi/namespace/ACPI/_SB/SLPB

All the directories found are empty.

My dsdt is a bit screwed (damn microsoft.. I'm gonna fix it and see if
it make a difference) but it did work before.

$ dmesg | grep DSDT # fyi
[4294667.296000] ACPI: DSDT (v001 Clevo     648FX 0x06040000 MSFT
0x0100000e) @ 0x00000000

Also, sleep doesn't work and has never worked, but that could be
because of the dsdt maybe.

-- 
Cameron Harris

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ACPI buttons in 2.6.12-rc4-mm2
  2005-05-22 11:25 ACPI buttons in 2.6.12-rc4-mm2 Cameron Harris
@ 2005-07-26 19:44 ` Len Brown
  2005-07-26 19:55   ` Matthew Garrett
                     ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Len Brown @ 2005-07-26 19:44 UTC (permalink / raw)
  To: Cameron Harris; +Cc: acpi-devel, linux-kernel

On Sun, 2005-05-22 at 07:25 -0400, Cameron Harris wrote:
> I just upgraded from 2.6.11.3 and now my /proc/acpi/button directory
> doesn't exist...

I deleted /proc/acpi/button on purpose,
did you have a use for those files?

Note that over time everything in /proc/acpi is
going away.  In this case, there didn't seem to be
a case for making appear in /sys.

thanks,
-Len



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ACPI buttons in 2.6.12-rc4-mm2
  2005-07-26 19:44 ` Len Brown
@ 2005-07-26 19:55   ` Matthew Garrett
  2005-07-27 21:18     ` [ACPI] " Pavel Machek
  2005-07-26 20:03   ` Pavel Troller
  2005-07-27 23:09   ` Andrew Morton
  2 siblings, 1 reply; 7+ messages in thread
From: Matthew Garrett @ 2005-07-26 19:55 UTC (permalink / raw)
  To: Len Brown; +Cc: acpi-devel, linux-kernel

Len Brown <len.brown@intel.com> wrote:

> I deleted /proc/acpi/button on purpose,
> did you have a use for those files?

There are various cases where it's useful to know whether a laptop is
shut or not, and /proc/acpi/button seems to be the only place where that
information is made available at the moment.

-- 
Matthew Garrett | mjg59-chiark.mail.linux-rutgers.kernel@srcf.ucam.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ACPI] Re: ACPI buttons in 2.6.12-rc4-mm2
  2005-07-26 19:44 ` Len Brown
  2005-07-26 19:55   ` Matthew Garrett
@ 2005-07-26 20:03   ` Pavel Troller
  2005-07-27 23:09   ` Andrew Morton
  2 siblings, 0 replies; 7+ messages in thread
From: Pavel Troller @ 2005-07-26 20:03 UTC (permalink / raw)
  To: Len Brown; +Cc: Cameron Harris, acpi-devel, linux-kernel

> I deleted /proc/acpi/button on purpose,
> did you have a use for those files?
> 
Hi Len!
  I already wrote 2 mails that I have use for the LID switch status file and
that I don't know how to handle its absence. However, they seem to be dropped
on the floor somewhere :-).
  BTW I have written a small C program which uses dev_acpi module and
evaluates an object, which I'm using to evaluade the _LID method, thus reading
the status of the switch. However, I think that this should be done by the
kernel. So at least, if the buttons allow to read their status, I'm voting for
keeping the possibility to read it.
                                  With regards, Pavel Troller

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ACPI] Re: ACPI buttons in 2.6.12-rc4-mm2
  2005-07-26 19:55   ` Matthew Garrett
@ 2005-07-27 21:18     ` Pavel Machek
  0 siblings, 0 replies; 7+ messages in thread
From: Pavel Machek @ 2005-07-27 21:18 UTC (permalink / raw)
  To: Matthew Garrett; +Cc: Len Brown, acpi-devel, linux-kernel

Hi!

> Len Brown <len.brown@intel.com> wrote:
> 
> > I deleted /proc/acpi/button on purpose,
> > did you have a use for those files?
> 
> There are various cases where it's useful to know whether a laptop is
> shut or not, and /proc/acpi/button seems to be the only place where that
> information is made available at the moment.
> 

Unless it was in obsolete-feature-removal file for a year.... changing userspace
interface is bad idea in the middle of stable series.
				Pavel
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ACPI buttons in 2.6.12-rc4-mm2
  2005-07-26 19:44 ` Len Brown
  2005-07-26 19:55   ` Matthew Garrett
  2005-07-26 20:03   ` Pavel Troller
@ 2005-07-27 23:09   ` Andrew Morton
  2 siblings, 0 replies; 7+ messages in thread
From: Andrew Morton @ 2005-07-27 23:09 UTC (permalink / raw)
  To: Len Brown; +Cc: thecwin, acpi-devel, linux-kernel

Len Brown <len.brown@intel.com> wrote:
>
> On Sun, 2005-05-22 at 07:25 -0400, Cameron Harris wrote:
> > I just upgraded from 2.6.11.3 and now my /proc/acpi/button directory
> > doesn't exist...
> 
> I deleted /proc/acpi/button on purpose,
> did you have a use for those files?

Can we put it back, please?

> Note that over time everything in /proc/acpi is
> going away.  In this case, there didn't seem to be
> a case for making appear in /sys.

That'll be hard.  I guess we could add the new /sys entries, make sure that
userspace tool developers have migrated and then remove the /proc entries
in a year or so.

We cannot go ripping out stuff which applications and users are currently
using without quite a lot of preparation.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [ACPI] Re: ACPI buttons in 2.6.12-rc4-mm2
@ 2005-07-27 20:49 Brown, Len
  0 siblings, 0 replies; 7+ messages in thread
From: Brown, Len @ 2005-07-27 20:49 UTC (permalink / raw)
  To: Pavel Troller; +Cc: Cameron Harris, acpi-devel, linux-kernel

I agree that the value of _LID can be usefult to user-space
and I'll be sure it is restored as a property of the lid device
under sysfs -- available as a simple file read like it
was under /proc.

thanks,
-Len

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-07-27 23:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-22 11:25 ACPI buttons in 2.6.12-rc4-mm2 Cameron Harris
2005-07-26 19:44 ` Len Brown
2005-07-26 19:55   ` Matthew Garrett
2005-07-27 21:18     ` [ACPI] " Pavel Machek
2005-07-26 20:03   ` Pavel Troller
2005-07-27 23:09   ` Andrew Morton
2005-07-27 20:49 [ACPI] " Brown, Len

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®