Re: Script to monitor battery status on X220

2012-07-20 Thread Erich Dollansky
Hi, On Friday 20 July 2012 16:13:56 Matthias Apitz wrote: > El día Friday, July 20, 2012 a las 03:45:23PM +0700, Erich Dollansky escribió: > > > > ... > > > Is it necessary to poll? Usually devd generates an event when the > > > battery status and/or percentage changes. Just read the events from

Re: Script to monitor battery status on X220

2012-07-20 Thread Matthias Apitz
El día Friday, July 20, 2012 a las 03:45:23PM +0700, Erich Dollansky escribió: > > ... > > Is it necessary to poll? Usually devd generates an event when the > > battery status and/or percentage changes. Just read the events from > > /var/run/devd.pipe. > > > this is a good idea. I did not like t

Re: Script to monitor battery status on X220

2012-07-20 Thread Erich Dollansky
Hi, On Friday 20 July 2012 12:31:08 Lars Engels wrote: > On Fri, Jul 20, 2012 at 10:04:59AM +0700, Erich Dollansky wrote: > > Hi, > > > > I forget yesterday to share these two scripts: > > > > http://www.alogreentechnologies.com/freebsd/checkbattery > > > > checks the battery status of an X220

Re: Script to monitor battery status on X220

2012-07-19 Thread Lars Engels
On Fri, Jul 20, 2012 at 10:04:59AM +0700, Erich Dollansky wrote: > Hi, > > I forget yesterday to share these two scripts: > > http://www.alogreentechnologies.com/freebsd/checkbattery > > checks the battery status of an X220 and shuts the machine down when the > battery falls to 2% or below. >

Script to monitor battery status on X220

2012-07-19 Thread Erich Dollansky
Hi, I forget yesterday to share these two scripts: http://www.alogreentechnologies.com/freebsd/checkbattery checks the battery status of an X220 and shuts the machine down when the battery falls to 2% or below. The status is checked every minute. It calls the following script to shut the mach

Re: Status on X220

2012-04-25 Thread Gleb Kurtsou
On (23/04/2012 08:16), Ganael LAPLANCHE wrote: > On Fri, 20 Apr 2012 08:14:17 +0200, Lars Engels wrote > > Hi everyone, > > > This is the same for my x200, but you can make it work: > > On 9.0-RELEASE you have to configure through device.hints(5), > > in CURRENT you can configure it on thy fly.

Re: Status on X220

2012-04-25 Thread Kevin Oberman
On Mon, Apr 23, 2012 at 1:16 AM, Ganael LAPLANCHE wrote: > On Fri, 20 Apr 2012 08:14:17 +0200, Lars Engels wrote > > Hi everyone, > >> This is the same for my x200, but you can make it work: >> On 9.0-RELEASE you have to configure through device.hints(5), >>  in CURRENT you can configure it on thy

Re: Status on X220

2012-04-23 Thread Ganael LAPLANCHE
On Fri, 20 Apr 2012 08:14:17 +0200, Lars Engels wrote Hi everyone, > This is the same for my x200, but you can make it work: > On 9.0-RELEASE you have to configure through device.hints(5), > in CURRENT you can configure it on thy fly. See snd_hda(4) > how to do this. FYI, this is what I had to

Re: Status on X220

2012-04-20 Thread Oleksandr Tymoshenko
On 19/04/2012 8:17 PM, Kevin Oberman wrote: > I made a quick attempt at the card reader, but had no luck finding a > driver that would work. Still, the system has worked for me for at > least 6 months, now. It seems the driver you need is sdhci (alogn with mmc and mmcsd). X220 card reader suppo

Re: Status on X220

2012-04-20 Thread Hannes Mehnert
Hi, On 04/20/2012 09:30, Kevin Oberman wrote: > Hmm. Almost works. If is set hw.snd.default_unit=1, the speakers are > off whether the headphones are plugged in an I get the same behavior. It would be nice if there would be some event triggered if a headphone is plugged in. What is notable is th

Re: Status on X220

2012-04-20 Thread Kevin Oberman
On Fri, Apr 20, 2012 at 12:11 AM, Hannes Mehnert wrote: > Hi, > > On 04/20/2012 05:17, Kevin Oberman wrote: >> Minor note. Sound card seems to work OK through the speakers, but I >> have failed to find the magic to make the headphone jack work. I have >> not tried very hard, either. > > The headph

Re: Status on X220

2012-04-20 Thread Hannes Mehnert
Hi, On 04/20/2012 05:17, Kevin Oberman wrote: > Minor note. Sound card seems to work OK through the speakers, but I > have failed to find the magic to make the headphone jack work. I have > not tried very hard, either. The headphone jack is also a microphone input. It is detected as a separate ou

Re: Status on X220

2012-04-20 Thread Kevin Oberman
On Thu, Apr 19, 2012 at 11:14 PM, Lars Engels wrote: > On Thu, Apr 19, 2012 at 08:17:55PM -0700, Kevin Oberman wrote: >> >> Minor note. Sound card seems to work OK through the speakers, but I >> have failed to find the magic to make the headphone jack work. > > This is the same for my x200, but yo

Re: Status on X220

2012-04-19 Thread Lars Engels
On Thu, Apr 19, 2012 at 08:17:55PM -0700, Kevin Oberman wrote: > > Minor note. Sound card seems to work OK through the speakers, but I > have failed to find the magic to make the headphone jack work. This is the same for my x200, but you can make it work: On 9.0-RELEASE you have to configure thr

Re: Status on X220

2012-04-19 Thread Andriy Gapon
on 20/04/2012 06:43 Erich Dollansky said the following: > Hi, > > On Friday 20 April 2012 10:17:55 Kevin Oberman wrote: >> On Thu, Apr 19, 2012 at 6:25 PM, Erich Dollansky >> wrote: >> >> Minor note. Sound card seems to work OK through the speakers, but I >> have failed to find the magic to make

Re: Status on X220

2012-04-19 Thread Kevin Oberman
On Thu, Apr 19, 2012 at 8:43 PM, Erich Dollansky wrote: > Hi, > > On Friday 20 April 2012 10:17:55 Kevin Oberman wrote: >> On Thu, Apr 19, 2012 at 6:25 PM, Erich Dollansky >> wrote: >> >> Minor note. Sound card seems to work OK through the speakers, but I >> have failed to find the magic to make

Re: Status on X220

2012-04-19 Thread Erich Dollansky
Hi, On Friday 20 April 2012 10:17:55 Kevin Oberman wrote: > On Thu, Apr 19, 2012 at 6:25 PM, Erich Dollansky > wrote: > > Minor note. Sound card seems to work OK through the speakers, but I > have failed to find the magic to make the headphone jack work. I have > not tried very hard, either. I k

Re: Status on X220

2012-04-19 Thread Kevin Oberman
On Thu, Apr 19, 2012 at 6:25 PM, Erich Dollansky wrote: > Hi, > > thanks for the answer. > > More inside the e-mail. > > On Friday 20 April 2012 07:31:51 matt wrote: >> On 04/19/12 17:01, Erich Dollansky wrote: >> > >> > there are so many different news about the X220 here that it is not so >> >

Re: Status on X220

2012-04-19 Thread Erich Dollansky
Hi, thanks for the answer. More inside the e-mail. On Friday 20 April 2012 07:31:51 matt wrote: > On 04/19/12 17:01, Erich Dollansky wrote: > > > > there are so many different news about the X220 here that it is not so > > clear to me whether an install will result in a usable system. > > > > >

Re: Status on X220

2012-04-19 Thread matt
On 04/19/12 17:01, Erich Dollansky wrote: Hi, there are so many different news about the X220 here that it is not so clear to me whether an install will result in a usable system. If everything works fine, there should be one for me tomorrow ready to get FreeBSD. My plan is to start with a pl

Status on X220

2012-04-19 Thread Erich Dollansky
Hi, there are so many different news about the X220 here that it is not so clear to me whether an install will result in a usable system. If everything works fine, there should be one for me tomorrow ready to get FreeBSD. My plan is to start with a plain 9.0 installation and upgrade it then to