Re: events for lid stopped working

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

 



On Thu, 04 Oct 2007, Peter Jordan wrote:
> Henrique de Moraes Holschuh, 10/04/07 17:37:
> > Could you open a wishlist bug on bugzilla.kernel.org against ACPI, asking
> > them for a way to get the relevant information in button events, instead of
> > an useless event count?  Maybe if they added a guarantee that all odd events
> > are "close" and all even events are "open" would be enough...
> 
> I think that they do so, but how can i filter the odd and even events of
> a hexadecimal number system in a bash script?

In bash, I just grep for "open" in procfs's dir for the LID.  It will be a
lot more difficult when procfs goes away and you need to get that data over
netlink (unless it is in sysfs somewhere).

That said, use bash math and the modulo operator. Should be enough.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux