Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Mar 2008 22:31:48 +0200
From:      Alberto Rizzi <greenant@fastmail.fm>
To:        freebsd-mobile@freebsd.org
Subject:   Re: ThinkPad X61s functions keys
Message-ID:  <47EFF8B4.8050709@fastmail.fm>
In-Reply-To: <Pine.BSF.3.96.1080330210026.19099A-100000@gaia.nimnet.asn.au>
References:  <Pine.BSF.3.96.1080330210026.19099A-100000@gaia.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Ian Smith ha scritto:
> On Sat, 29 Mar 2008, Dan Langille wrote:
>> 
>> Good catch.  Thank you.  It is 1.  The copy/paste was done outside my 
>> testing.  Despite the /etc/sysctl.conf entry, I must set this value 
>> manually as it is always zero after boot.
> 
> Seems odd if setting dev.acpi_ibm.0.events=1 in /etc/sysctl.conf doesn't
> show up after boot?  Could something(?) be resetting it to 0 afterwards?
> 
/etc/sysctl.conf gets invoked when you enter in multiuser mode. Are you 
booting multiuser or single user? Maybe you misspelled something in 
/etc/sysctl.conf? Please cat /etc/sysctl.conf

>> dev.acpi_ibm.0.%desc: IBM ThinkPad ACPI Extras
>> dev.acpi_ibm.0.%driver: acpi_ibm
>> dev.acpi_ibm.0.%location: handle=\_SB_.PCI0.LPC_.EC__.HKEY
>> dev.acpi_ibm.0.%pnpinfo: _HID=IBM0068 _UID=0
>> dev.acpi_ibm.0.%parent: acpi0
>> dev.acpi_ibm.0.initialmask: 2060
>> dev.acpi_ibm.0.availmask: 16777215
>> dev.acpi_ibm.0.events: 0
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> An unfortunate paste. I assure you, it is 1.
> 
>> dev.acpi_ibm.0.eventmask: 2060
>> dev.acpi_ibm.0.hotkey: 3491
>> dev.acpi_ibm.0.lcd_brightness: 0
>> dev.acpi_ibm.0.volume: 7
>> dev.acpi_ibm.0.mute: 0
>> dev.acpi_ibm.0.thinklight: 0
>> dev.acpi_ibm.0.bluetooth: 0
>> dev.acpi_ibm.0.wlan: 1
>> dev.acpi_ibm.0.fan_speed: 3815
>> dev.acpi_ibm.0.fan_level: 0
>> dev.acpi_ibm.0.fan: 1
>> dev.acpi_ibm.0.thermal: 41 47 47 38 33 -1 30 -1

When you put .events=1, .eventmask is updated with the value in .availmask
In your example, eventmask != availmask, so the paste is correct and you 
didn't activate .events

Try logging in in multi user mode and sysctl dev.acpi_ibm.0
Then set .events=1 and redump dev.acpi_ibm.0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47EFF8B4.8050709>