|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg)Hello, I'm running 8-CURRENT and Xorg on the above mentioned laptop. I'd like to have powered off the display on Lid close, and powered on again on open; I watched the devd(8) events in both cases: close: setting system=ACPI setting subsystem=Lid setting type=\_SB_.LID_ setting notify=0x00 Processing notify event ... open: setting system=ACPI setting subsystem=Lid setting type=\_SB_.LID_ setting notify=0x01 Processing notify event ... but they are not estimated in /etc/devd.conf. Any hint for a good devd.conf entry to make that working? Thx in advance Btw: I don't want suspend/resume. matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@...> - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. _______________________________________________ freebsd-mobile@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..." |
|
|
Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg)On Thu, Aug 20, 2009 at 10:10:55AM +0200, Matthias Apitz wrote:
> > Hello, > > I'm running 8-CURRENT and Xorg on the above mentioned laptop. > > I'd like to have powered off the display on Lid close, and powered on > again on open; I watched the devd(8) events in both cases: > > close: > setting system=ACPI > setting subsystem=Lid > setting type=\_SB_.LID_ > setting notify=0x00 > Processing notify event > ... > > open: > setting system=ACPI > setting subsystem=Lid > setting type=\_SB_.LID_ > setting notify=0x01 > Processing notify event > ... > > but they are not estimated in /etc/devd.conf. Any hint for a good > devd.conf entry to make that working? Thx in advance > > Btw: I don't want suspend/resume. notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action"$PATH_TO_YOUR_SCRIPT $notify"; }; And in your script you turn off the backlight with xbacklight -set 0 when notify is 0x00 and xbacklight -set 100 for 0x01. HTH Lars |
|
|
Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg)El día Tuesday, September 08, 2009 a las 10:21:23AM +0200, Lars Engels escribió:
> > but they are not estimated in /etc/devd.conf. Any hint for a good > > devd.conf entry to make that working? Thx in advance > > > > Btw: I don't want suspend/resume. > > Try this: > > notify 10 { > match "system" "ACPI"; > match "subsystem" "Lid"; > action"$PATH_TO_YOUR_SCRIPT $notify"; > }; > > And in your script you turn off the backlight with > xbacklight -set 0 > when notify is 0x00 and > xbacklight -set 100 > for 0x01. Thanks for your hint; I'm using since some time now: cat /usr/local/etc/devd/lid.conf # # When the the Lid is open / closed .... # # <guru@...>, August 2009 # notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; match "notify" "0x00"; action "/usr/local/bin/xset -display :0.0 s 1"; }; notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; match "notify" "0x01"; action "/usr/local/bin/xset -display :0.0 s 120"; }; Thx matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@...> - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. _______________________________________________ freebsd-mobile@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..." |
|
|
Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg)In message <20090908144050.GA6014@...>, Matthias Apitz writes: > El día Tuesday, September 08, 2009 a las 10:21:23AM +0200, Lars Engels escribió > : > > > > but they are not estimated in /etc/devd.conf. Any hint for a good > > > devd.conf entry to make that working? Thx in advance > > > > > > Btw: I don't want suspend/resume. > > > > Try this: > > > > notify 10 { > > match "system" "ACPI"; > > match "subsystem" "Lid"; > > action"$PATH_TO_YOUR_SCRIPT $notify"; > > }; > > > > And in your script you turn off the backlight with > > xbacklight -set 0 > > when notify is 0x00 and > > xbacklight -set 100 > > for 0x01. > > Thanks for your hint; I'm using since some time now: > > cat /usr/local/etc/devd/lid.conf > # > # When the the Lid is open / closed .... > # > # <guru@...>, August 2009 > # > notify 10 { > match "system" "ACPI"; > match "subsystem" "Lid"; > match "notify" "0x00"; > action "/usr/local/bin/xset -display :0.0 s 1"; > }; > notify 10 { > match "system" "ACPI"; > match "subsystem" "Lid"; > match "notify" "0x01"; > action "/usr/local/bin/xset -display :0.0 s > 120"; > }; > > Thx I call this on lid events which works even when X isn't running. :-) Mark notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action "/etc/rc.lid $notify"; }; /etc/rc.lid: #!/bin/sh # deal with lid switch events if [ "x$1" = x0x00 ]; then /usr/bin/logger -t Lid Closed at `/bin/date` /sbin/sysctl hw.acpi.video.lcd0.active=0 else /usr/bin/logger -t Lid Opened at `/bin/date` /sbin/sysctl hw.acpi.video.lcd0.active=1 fi -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@... _______________________________________________ freebsd-mobile@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..." |
|
|
Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg)El día Wednesday, September 09, 2009 a las 09:46:36AM +1000, Mark Andrews escribió:
> I call this on lid events which works even when X isn't running. :-) Would be nice, but ... > notify 10 { > match "system" "ACPI"; > match "subsystem" "Lid"; > action "/etc/rc.lid $notify"; > }; > > /etc/rc.lid: > #!/bin/sh > # deal with lid switch events > > if [ "x$1" = x0x00 ]; then > /usr/bin/logger -t Lid Closed at `/bin/date` > /sbin/sysctl hw.acpi.video.lcd0.active=0 > else > /usr/bin/logger -t Lid Opened at `/bin/date` > /sbin/sysctl hw.acpi.video.lcd0.active=1 > fi ... I don't have 'hw.acpi.video.lcd0.active', only: # sysctl -a | fgrep hw.acpi hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S3 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: NONE hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 1 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.acline: 1 hw.acpi.battery.life: 80 hw.acpi.battery.time: -1 hw.acpi.battery.state: 2 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 42,5C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 0 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: -1 hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 107,0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: -1 hw.acpi.thermal.tz0._TC2: -1 hw.acpi.thermal.tz0._TSP: -1 hw.acpi.cpu.cx_lowest: C1 # sysctl -a | fgrep lcd0 matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@...> - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. _______________________________________________ freebsd-mobile@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..." |
|
|
Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg)> Date: Thu, 10 Sep 2009 14:14:59 +0200
> From: Matthias Apitz <guru@...> > Sender: owner-freebsd-mobile@... > > El día Wednesday, September 09, 2009 a las 09:46:36AM +1000, Mark Andrews escribió: > > > I call this on lid events which works even when X isn't running. :-) > > Would be nice, but ... > > > notify 10 { > > match "system" "ACPI"; > > match "subsystem" "Lid"; > > action "/etc/rc.lid $notify"; > > }; > > > > /etc/rc.lid: > > #!/bin/sh > > # deal with lid switch events > > > > if [ "x$1" = x0x00 ]; then > > /usr/bin/logger -t Lid Closed at `/bin/date` > > /sbin/sysctl hw.acpi.video.lcd0.active=0 > > else > > /usr/bin/logger -t Lid Opened at `/bin/date` > > /sbin/sysctl hw.acpi.video.lcd0.active=1 > > fi > > ... I don't have 'hw.acpi.video.lcd0.active', only: > > # sysctl -a | fgrep hw.acpi > hw.acpi.supported_sleep_state: S3 S4 S5 > hw.acpi.power_button_state: S5 > hw.acpi.sleep_button_state: S3 > hw.acpi.lid_switch_state: NONE > hw.acpi.standby_state: NONE > hw.acpi.suspend_state: S3 > hw.acpi.sleep_delay: 1 > hw.acpi.s4bios: 1 > hw.acpi.verbose: 0 > hw.acpi.disable_on_reboot: 0 > hw.acpi.handle_reboot: 0 > hw.acpi.reset_video: 0 > hw.acpi.acline: 1 > hw.acpi.battery.life: 80 > hw.acpi.battery.time: -1 > hw.acpi.battery.state: 2 > hw.acpi.battery.units: 2 > hw.acpi.battery.info_expire: 5 > hw.acpi.thermal.min_runtime: 0 > hw.acpi.thermal.polling_rate: 10 > hw.acpi.thermal.user_override: 0 > hw.acpi.thermal.tz0.temperature: 42,5C > hw.acpi.thermal.tz0.active: -1 > hw.acpi.thermal.tz0.passive_cooling: 0 > hw.acpi.thermal.tz0.thermal_flags: 0 > hw.acpi.thermal.tz0._PSV: -1 > hw.acpi.thermal.tz0._HOT: -1 > hw.acpi.thermal.tz0._CRT: 107,0C > hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 > hw.acpi.thermal.tz0._TC1: -1 > hw.acpi.thermal.tz0._TC2: -1 > hw.acpi.thermal.tz0._TSP: -1 > hw.acpi.cpu.cx_lowest: C1 > # sysctl -a | fgrep lcd0 Are you loading acpi_video? Even if you do, if you have a Radeon, I am not sure it will turn off the back-light, but, if this is an issue, you can install the radeontool and add the appropriate commands to devd.conf in addition to the sysctl. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@... Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 _______________________________________________ freebsd-mobile@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..." |
|
|
Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg)El día Thursday, September 10, 2009 a las 10:28:22AM -0700, Kevin Oberman escribió:
> Are you loading acpi_video? > > Even if you do, if you have a Radeon, I am not sure it will turn off the > back-light, but, if this is an issue, you can install the radeontool and > add the appropriate commands to devd.conf in addition to the sysctl. With loading acpi_video it works now in console mode, i.e. the LCD goes off and on on lid close/open. When I have X11 up and running (the Nvidia driver), the LCD goes off as well, but on return I only see the console message of the X11 startup-session (i.e. the console from where I launched 'startx') and I'm unable to switch to any other virtual screen and also not to the X11 session; zapping X11 with Ctrl-Alt-BS does not work either and I have had to reboot with power-off/on. Any idea? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@...> - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. _______________________________________________ freebsd-mobile@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..." |
| Free embeddable forum powered by Nabble | Forum Help |