DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th August 2008
pax's Avatar
pax pax is offline
FreeBSD baby
 
Join Date: Jul 2008
Location: Serbia, Belgrade/Pozarevac
Posts: 9
Default Problem with lid switch Inspiron 1300 sysctl: unknown oid 'hw.acpi.video.lcd0.active'

As you can see from topic title, I have problem to set up my laptop (Dell Inspiron 1300) lid switch so system can turn off and on my monitor as I close and open lid... I added event to /etc/devd.conf:


Code:
notify 10 {
match "system" "ACPI";
match "subsystem" "Lid";
action "/etc/rc.lid $notify";
};
and created rc.lid file:

Code:
#!/bin/sh

if [ "$1" = "0x00" ]; then
logger -t Lid Closed
sysctl hw.acpi.video.lcd0.active=0
else
logger -t Lid Opened
sysctl hw.acpi.video.lcd0.active=1
fi
but I did not get the proper behavior... I looked up /var/log/messages (from other machine using ssh access to my FreeBSD system) and saw proper messages Lid: Closed and Lid: Opened as I closed and opened the lid... But monitor was turned off all time, so I needed to restart system...

After that I loaded acpi_video module using kldload and repeated the same procedure described above, with same results (display has been turned of first time I closed lid, and it have not turned on as I opened it...). Then I restarted system again, and try to see what will happen when I try to run sysctl command from console... The output was:

Code:
[root@technodrome ~]# sysctl hw.acpi.video.lcd0.active=1
sysctl: unknown oid 'hw.acpi.video.lcd0.active'
Now, I looked at:

Code:
sysctl -a | grep acpi | more
and found just this concerning laptop lid:

Code:
....
hw.acpi.lid_switch_state: NONE
....
dev.acpi_lid.0.%desc: Control Method Lid Switch
dev.acpi_lid.0.%driver: acpi_lid
dev.acpi_lid.0.%location: handle=\_SB_.LID_
dev.acpi_lid.0.%pnpinfo: _HID=PNP0C0D _UID=0
dev.acpi_lid.0.%parent: acpi0
dev.acpi_lid.0.wake: 1
...
As you can see, somehow I miss hw.acpi.video.lcd0.active so I can use lid closing an opening...

Do I need to load some kernel module, or need to recompile or install something to get this working?

Thank everyone for help.

Regards,
pax
Reply With Quote
  #2   (View Single Post)  
Old 6th August 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Default

As I understand, you want your screen to turn off when the lid is closed and back again after opening the lid?

Under root privilege:

#sysctl hw.acpi.reset_video=1

Now close the lid and open it again, the light should be back.

For permanent setting:

# echo "hw.acpi.reset_video=1" >> /etc/sysctl.conf
Reply With Quote
  #3   (View Single Post)  
Old 6th August 2008
pax's Avatar
pax pax is offline
FreeBSD baby
 
Join Date: Jul 2008
Location: Serbia, Belgrade/Pozarevac
Posts: 9
Default

Quote:
Originally Posted by 18Googol2 View Post
As I understand, you want your screen to turn off when the lid is closed and back again after opening the lid?

Under root privilege:

#sysctl hw.acpi.reset_video=1

Now close the lid and open it again, the light should be back.

For permanent setting:

# echo "hw.acpi.reset_video=1" >> /etc/sysctl.conf
Yes, you have understood what I want, but setting hw.acpi.reset_video to 1 did not give any positive results, and even after putting it in sysctl.conf and rebooting system screen turning of and on did not worked...
__________________
FreeBSD technodrome.ranix.net 6.3-RELEASE i386 GENERIC
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NetBSD on Dell Inspiron 5150 kdu NetBSD Installation and Upgrading 5 10th June 2009 01:12 AM
root: unknown user roddierod FreeBSD General 9 28th April 2009 10:18 PM
sysctl and cpu information and temperature neurosis FreeBSD General 11 22nd October 2008 09:16 PM
Get sysctl value from a C program DNAeon FreeBSD Ports and Packages 3 29th September 2008 07:28 PM
postfix + dovecot LDA: bounce, user unknown cbrace FreeBSD General 1 9th May 2008 05:19 PM


All times are GMT. The time now is 02:47 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick