Re: Driver for Thinkpad Hotkeys.

2004-08-17 Thread Niki Denev
[EMAIL PROTECTED] writes:
I updated the driver to be able to change wireless status, by
dev.acpi_tpkey.0.bluetooth,
dev.acpi_tpkey.0.wlan
sysctl value. (WLAN handling may not be correct.)
http://www.init-main.com/acpi_tpkey/acpi_tpkey.c
In message <[EMAIL PROTECTED]>, Niki Denev
 wrote:
On my X31, when i load acpi_tpkey and start 'devd -dD', i get notifications 
only when pressing the Fn+F3 (screen blank) combination.
Am i missing something ?
By default,only  Fn+F3,Fn+F4(Suspend - This is handled by this driver,
 instead of sleep button driver), and Fn+F12(Suspend to Disk)
 will assert notification.
In addition to that, you can transfer control of all *possible* button
to operating system by setting dev.acpi_tpkey.0.key_mask
to dev.acpi_tpkey.0.avail_mask.
This will enable all notifications and disable all default hotkey actions.

P.S.: the acpi_tpkey_kldload.out file contains the console output, when i 
load the driver.
and the acpi_tpkey_notify.out file contains the message i get when pressing 
Fn+F3.
Any other special buttons, (AccessIBM, vol up/down, mute, brightness, key 
light) don't print notify messages, but they continue to work normal.
That's expected. Those button will not produce any ACPI notification,
though it is dealt by ACPI byte code.
Instead of it, those keys set toggle value to RTC ram and you can access
the Fn+SPC(0x20) and AccessIBM(0x8) value by dev.acpi_tpkey.0.misckey .
(Volume and Brightness toggle can be seen in RTC register, but 
it is not exported to user now.)
To assert event from kernel, kernel thread will be needed.


thanks for the clarification.
 - Niki


pgpRo98IRPMjS.pgp
Description: PGP signature


Re: Driver for Thinkpad Hotkeys.

2004-08-17 Thread takawata
I updated the driver to be able to change wireless status, by
dev.acpi_tpkey.0.bluetooth,
dev.acpi_tpkey.0.wlan
sysctl value. (WLAN handling may not be correct.)
http://www.init-main.com/acpi_tpkey/acpi_tpkey.c

In message <[EMAIL PROTECTED]>, Niki Denev
 wrote:
>On my X31, when i load acpi_tpkey and start 'devd -dD', i get notifications 
>only when pressing the Fn+F3 (screen blank) combination.
>Am i missing something ?

By default,only  Fn+F3,Fn+F4(Suspend - This is handled by this driver,
 instead of sleep button driver), and Fn+F12(Suspend to Disk)
 will assert notification.
In addition to that, you can transfer control of all *possible* button
to operating system by setting dev.acpi_tpkey.0.key_mask
to dev.acpi_tpkey.0.avail_mask.
This will enable all notifications and disable all default hotkey actions.



>P.S.: the acpi_tpkey_kldload.out file contains the console output, when i 
>load the driver.
>and the acpi_tpkey_notify.out file contains the message i get when pressing 
>Fn+F3.
>Any other special buttons, (AccessIBM, vol up/down, mute, brightness, key 
>light) don't print notify messages, but they continue to work normal.

That's expected. Those button will not produce any ACPI notification,
though it is dealt by ACPI byte code.
Instead of it, those keys set toggle value to RTC ram and you can access
the Fn+SPC(0x20) and AccessIBM(0x8) value by dev.acpi_tpkey.0.misckey .
(Volume and Brightness toggle can be seen in RTC register, but 
it is not exported to user now.)
To assert event from kernel, kernel thread will be needed.


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


Re: Driver for Thinkpad Hotkeys.

2004-08-17 Thread Niki Denev
[EMAIL PROTECTED] writes:
Hi, I updated ThinkPad Hotkey driver so that it can
* Read Brightness
* Read Volume
* Read Mute status
* Read Keylight status
* AccessIBM, Zoom Screen(Fn+Sp) toggle.
ToDo lists
* Set Brightness
* Set Volume
* Bluetooth attach/detach.
* Userland worker.
These features will come Real Soon Now.
* Wireless LAN indicator 

Will be take more time.
I wrote for ThinkPad X31, but it may work on some other ThinkPad X,R,T,S
series.
Enjoy!
http://www.init-main.com/acpi_tpkey/

On my X31, when i load acpi_tpkey and start 'devd -dD', i get notifications 
only when pressing the Fn+F3 (screen blank) combination.
Am i missing something ?
More info about my setup can be found here : http//totalterror.net/freebsd/
I will gladly provide more info if needed.

P.S.: the acpi_tpkey_kldload.out file contains the console output, when i 
load the driver.
and the acpi_tpkey_notify.out file contains the message i get when pressing 
Fn+F3.
Any other special buttons, (AccessIBM, vol up/down, mute, brightness, key 
light) don't print notify messages, but they continue to work normal.

 - Niki


pgpy6nyMDFI2o.pgp
Description: PGP signature


Re: Driver for Thinkpad Hotkeys.

2004-08-10 Thread Nate Lawson
Takanori Watanabe wrote:
Hi, I updated ThinkPad Hotkey driver so that it can
* Read Brightness
* Read Volume
* Read Mute status
* Read Keylight status
* AccessIBM, Zoom Screen(Fn+Sp) toggle.
ToDo lists
* Set Brightness
* Set Volume
* Bluetooth attach/detach.
* Userland worker.
These features will come Real Soon Now.
* Wireless LAN indicator 

Will be take more time.
I wrote for ThinkPad X31, but it may work on some other ThinkPad X,R,T,S
series.
Enjoy!
http://www.init-main.com/acpi_tpkey/
Thanks for working on this.  After 5.3-RELEASE, I think it would be good 
to import it.

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


Re: Driver for Thinkpad Hotkeys.

2004-08-08 Thread Bruce M Simpson
On Mon, Aug 09, 2004 at 04:03:18AM +0200, Arne Schwabe wrote:
> IIrc correct the WLAN indicator is wired to the minipci for Thinkpads,
> at least the linux madwifi (which is basically our ath driver but our
> ath has not been updated for some very long time) has support for the
> IBM thinkpad wlan led. Maybe that is not the only method of talking to
> the LED :)

GPIO pins, twiddled by the driver, according to Sam. The madwifi stuff
does this. A more significant backport of ath features should really
be done. If I find time, I'll certainly help, given that ath is now
my primary wireless connection.

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


Re: Driver for Thinkpad Hotkeys.

2004-08-08 Thread Arne Schwabe
[EMAIL PROTECTED] writes:

>
> * Wireless LAN indicator 
>
> Will be take more time.
>

IIrc correct the WLAN indicator is wired to the minipci for Thinkpads,
at least the linux madwifi (which is basically our ath driver but our
ath has not been updated for some very long time) has support for the
IBM thinkpad wlan led. Maybe that is not the only method of talking to
the LED :)

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