Re: Laptop lid switch and ACPI

2007-03-06 Thread Norberto Meijome
On Mon, 5 Mar 2007 16:28:06 -0500
frzburn [EMAIL PROTECTED] wrote:

 I need a hint on how to get my screen turn off (backlight too) on my Dell
 Laptop.
 I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.

Hi there,
I am not sure how to switch off the screen on the dell (independent of
ACPI)... in all laptops I've seen, it's fully controlled by the hardware
(bios?). 
Have you got acpi working ? 

If you *do* have ACPI working, and you want to see whether it is firing acpi at
all when you close the lid, you can restart devd in debugging mode:

/etc/rc.d/devd stop
devd -dD

and then try your ACPI events.

Also, you should be able to tell your ACPI module to let you handle the events
manually. For example, with the acpi_ibm.ko, the knob 

dev.acpi_ibm.0.events = 1

tells acpi to pass all acpi messages to devd for handling. Search the logs (in
mobile@ , i believe) - i've posted my config for some sample actions on
different ACPI events.

BTW, you may be able to switch off the display using a user mode application
that is related to your video card. For example, if you have a Radeon card, the
radeontool allows you to switch off the panel and external monitor outputs
(although the ext monitor gets switched on when you switch to X's VT)

HIH,
Beto
_
{Beto|Norberto|Numard} Meijome

Against logic there is no armor like ignorance.
  Laurence J. Peter

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Laptop lid switch and ACPI

2007-03-06 Thread frzburn

Well, I thought about it, and you're right... What I really need is to be
able to do something upon an acpi event, like running a script when I close
my lid...

But I didn't find these info anywhere =(
Please help me! =)

acpi is working, it has control on my fan and monitors my CPU temperature.
I tried devd -dD, and it reacts when I close my lid, but I don't know how to
use this output...

Thanks!

frzburn



On 3/6/07, Norberto Meijome [EMAIL PROTECTED] wrote:


On Mon, 5 Mar 2007 16:28:06 -0500
frzburn [EMAIL PROTECTED] wrote:

 I need a hint on how to get my screen turn off (backlight too) on my
Dell
 Laptop.
 I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.

Hi there,
I am not sure how to switch off the screen on the dell (independent of
ACPI)... in all laptops I've seen, it's fully controlled by the hardware
(bios?).
Have you got acpi working ?

If you *do* have ACPI working, and you want to see whether it is firing
acpi at
all when you close the lid, you can restart devd in debugging mode:

/etc/rc.d/devd stop
devd -dD

and then try your ACPI events.

Also, you should be able to tell your ACPI module to let you handle the
events
manually. For example, with the acpi_ibm.ko, the knob

dev.acpi_ibm.0.events = 1

tells acpi to pass all acpi messages to devd for handling. Search the logs
(in
mobile@ , i believe) - i've posted my config for some sample actions on
different ACPI events.

BTW, you may be able to switch off the display using a user mode
application
that is related to your video card. For example, if you have a Radeon
card, the
radeontool allows you to switch off the panel and external monitor outputs
(although the ext monitor gets switched on when you switch to X's VT)

HIH,
Beto
_
{Beto|Norberto|Numard} Meijome

Against logic there is no armor like ignorance.
  Laurence J. Peter

I speak for myself, not my employer. Contents may be hot. Slippery when
wet.
Reading disclaimers makes you go blind. Writing them is worse. You have
been
Warned.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Laptop lid switch and ACPI

2007-03-06 Thread Kevin Downey

On 3/6/07, frzburn [EMAIL PROTECTED] wrote:

Well, I thought about it, and you're right... What I really need is to be
able to do something upon an acpi event, like running a script when I close
my lid...

But I didn't find these info anywhere =(
Please help me! =)

acpi is working, it has control on my fan and monitors my CPU temperature.
I tried devd -dD, and it reacts when I close my lid, but I don't know how to
use this output...

Thanks!

frzburn



On 3/6/07, Norberto Meijome [EMAIL PROTECTED] wrote:

 On Mon, 5 Mar 2007 16:28:06 -0500
 frzburn [EMAIL PROTECTED] wrote:

  I need a hint on how to get my screen turn off (backlight too) on my
 Dell
  Laptop.
  I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.

 Hi there,
 I am not sure how to switch off the screen on the dell (independent of
 ACPI)... in all laptops I've seen, it's fully controlled by the hardware
 (bios?).
 Have you got acpi working ?

 If you *do* have ACPI working, and you want to see whether it is firing
 acpi at
 all when you close the lid, you can restart devd in debugging mode:

 /etc/rc.d/devd stop
 devd -dD

 and then try your ACPI events.

 Also, you should be able to tell your ACPI module to let you handle the
 events
 manually. For example, with the acpi_ibm.ko, the knob

 dev.acpi_ibm.0.events = 1

 tells acpi to pass all acpi messages to devd for handling. Search the logs
 (in
 mobile@ , i believe) - i've posted my config for some sample actions on
 different ACPI events.

 BTW, you may be able to switch off the display using a user mode
 application
 that is related to your video card. For example, if you have a Radeon
 card, the
 radeontool allows you to switch off the panel and external monitor outputs
 (although the ext monitor gets switched on when you switch to X's VT)

 HIH,
 Beto
 _
 {Beto|Norberto|Numard} Meijome

 Against logic there is no armor like ignorance.
   Laurence J. Peter

I have a Inspiron 8200, and I have the following in /etc/devd.conf to
turn off the screen when the lid is closed:

notify 10 {
  match system  ACPI;
  match subsystem   Lid;
  match notify  0x00;
  action /usr/local/bin/xset -display :0 dpms force off  /tmp/xset.log;
};




--
The biggest problem with communication is the illusion that it has occurred.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Laptop lid switch and ACPI

2007-03-06 Thread Norberto Meijome
On Tue, 6 Mar 2007 17:57:31 -0500
frzburn [EMAIL PROTECTED] wrote:
 But I didn't find these info anywhere =(
 Please help me! =)

Kevin's email may have the answer for you.

 
 acpi is working, it has control on my fan and monitors my CPU temperature.
 I tried devd -dD, and it reacts when I close my lid, but I don't know how to
 use this output...

http://lists.freebsd.org/pipermail/freebsd-mobile/2006-August/008948.html

and
http://lists.freebsd.org/pipermail/freebsd-mobile/2006-August/008959.html

They refer specifically to the config for a Thinkpad Z60m - i'm sure you can
extrapolate from there:)
_
{Beto|Norberto|Numard} Meijome

So limp of brain that for them to conceive an idea is to risk a haemorrhage.
So limp of body that their purple dresses appear no more a dixative of housing
nerves and sinews than when they hang suspended from their hooks Mervin Peake,
Gormenghast, chap. 2, on the Earl's twin sisters

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Laptop lid switch and ACPI

2007-03-06 Thread frzburn

THAT is exactly what I needed!

A lot of thanks to both of you! =D

frzburn


On 3/6/07, Kevin Downey [EMAIL PROTECTED] wrote:


On 3/6/07, frzburn [EMAIL PROTECTED] wrote:
 Well, I thought about it, and you're right... What I really need is to
be
 able to do something upon an acpi event, like running a script when I
close
 my lid...

 But I didn't find these info anywhere =(
 Please help me! =)

 acpi is working, it has control on my fan and monitors my CPU
temperature.
 I tried devd -dD, and it reacts when I close my lid, but I don't know
how to
 use this output...

 Thanks!

 frzburn



 On 3/6/07, Norberto Meijome [EMAIL PROTECTED] wrote:
 
  On Mon, 5 Mar 2007 16:28:06 -0500
  frzburn [EMAIL PROTECTED] wrote:
 
   I need a hint on how to get my screen turn off (backlight too) on my
  Dell
   Laptop.
   I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.
 
  Hi there,
  I am not sure how to switch off the screen on the dell (independent of
  ACPI)... in all laptops I've seen, it's fully controlled by the
hardware
  (bios?).
  Have you got acpi working ?
 
  If you *do* have ACPI working, and you want to see whether it is
firing
  acpi at
  all when you close the lid, you can restart devd in debugging mode:
 
  /etc/rc.d/devd stop
  devd -dD
 
  and then try your ACPI events.
 
  Also, you should be able to tell your ACPI module to let you handle
the
  events
  manually. For example, with the acpi_ibm.ko, the knob
 
  dev.acpi_ibm.0.events = 1
 
  tells acpi to pass all acpi messages to devd for handling. Search the
logs
  (in
  mobile@ , i believe) - i've posted my config for some sample actions
on
  different ACPI events.
 
  BTW, you may be able to switch off the display using a user mode
  application
  that is related to your video card. For example, if you have a Radeon
  card, the
  radeontool allows you to switch off the panel and external monitor
outputs
  (although the ext monitor gets switched on when you switch to X's VT)
 
  HIH,
  Beto
  _
  {Beto|Norberto|Numard} Meijome
 
  Against logic there is no armor like ignorance.
Laurence J. Peter
I have a Inspiron 8200, and I have the following in /etc/devd.conf to
turn off the screen when the lid is closed:

notify 10 {
   match system  ACPI;
   match subsystem   Lid;
   match notify  0x00;
   action /usr/local/bin/xset -display :0 dpms force off 
/tmp/xset.log;
};




--
The biggest problem with communication is the illusion that it has
occurred.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Laptop lid switch and ACPI

2007-03-06 Thread frzburn

OK, so I'm half the way to what I want =/
All these things with acpi work well, but as I got a NVidia card _and_
FreeBSD in amd64, I can't install the NVidia drivers... So I can turn my
screen blank with dpms, but the backlight stays on =(  and this dpms stuff
doesn't work in command-line...

Do you know if there's some way to control the video card/turn the backlight
off without NVidia's drivers? And if I can get this to work in command-line?

I remember that with Gentoo all that stuff worked, even in command-line. But
of course, I had NVidia drivers...


frzburn



On 3/6/07, frzburn [EMAIL PROTECTED] wrote:


THAT is exactly what I needed!

A lot of thanks to both of you! =D

frzburn


On 3/6/07, Kevin Downey  [EMAIL PROTECTED] wrote:

 On 3/6/07, frzburn  [EMAIL PROTECTED] wrote:
  Well, I thought about it, and you're right... What I really need is to
 be
  able to do something upon an acpi event, like running a script when I
 close
  my lid...
 
  But I didn't find these info anywhere =(
  Please help me! =)
 
  acpi is working, it has control on my fan and monitors my CPU
 temperature.
  I tried devd -dD, and it reacts when I close my lid, but I don't know
 how to
  use this output...
 
  Thanks!
 
  frzburn
 
 
 
  On 3/6/07, Norberto Meijome [EMAIL PROTECTED] wrote:
  
   On Mon, 5 Mar 2007 16:28:06 -0500
   frzburn [EMAIL PROTECTED] wrote:
  
I need a hint on how to get my screen turn off (backlight too) on
 my
   Dell
Laptop.
I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.
  
   Hi there,
   I am not sure how to switch off the screen on the dell (independent
 of
   ACPI)... in all laptops I've seen, it's fully controlled by the
 hardware
   (bios?).
   Have you got acpi working ?
  
   If you *do* have ACPI working, and you want to see whether it is
 firing
   acpi at
   all when you close the lid, you can restart devd in debugging mode:
  
   /etc/rc.d/devd stop
   devd -dD
  
   and then try your ACPI events.
  
   Also, you should be able to tell your ACPI module to let you handle
 the
   events
   manually. For example, with the acpi_ibm.ko, the knob
  
   dev.acpi_ibm.0.events = 1
  
   tells acpi to pass all acpi messages to devd for handling. Search
 the logs
   (in
   mobile@ , i believe) - i've posted my config for some sample actions
 on
   different ACPI events.
  
   BTW, you may be able to switch off the display using a user mode
   application
   that is related to your video card. For example, if you have a
 Radeon
   card, the
   radeontool allows you to switch off the panel and external monitor
 outputs
   (although the ext monitor gets switched on when you switch to X's
 VT)
  
   HIH,
   Beto
   _
   {Beto|Norberto|Numard} Meijome
  
   Against logic there is no armor like ignorance.
 Laurence J. Peter
 I have a Inspiron 8200, and I have the following in /etc/devd.conf to
 turn off the screen when the lid is closed:

 notify 10 {
match system  ACPI;
match subsystem   Lid;
match notify  0x00;
action /usr/local/bin/xset -display :0 dpms force off 
 /tmp/xset.log;
 };




 --
 The biggest problem with communication is the illusion that it has
 occurred.




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Laptop lid switch and ACPI

2007-03-05 Thread frzburn

Hi folks!
I need a hint on how to get my screen turn off (backlight too) on my Dell
Laptop.
I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.

That's all!

Thanks! =)

frzburn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]