DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th September 2014
bela bela is offline
New User
 
Join Date: Dec 2013
Posts: 1
Default ThinkLight interaction

Hi all,
I'm running OpenBSD on an older Thinkpad, the ones that still have the ThinkLight led above the screen. Is there a way to interact(make it blink for example) with the ThinkLight led without using the keyboard keys? I know this is possible(and easy) under Linux and FreeBSD, but I have no idea for OpenBSD, neither man nor google were of any help...
Reply With Quote
  #2   (View Single Post)  
Old 11th September 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I do not own a thinkpad but found this wiki.

The manual for acpithinkpad(4) indicates that various hotkeys are supported but does not specifically mention the Thinklight.

Quote:
$ man acpithinkpad
ACPITHINKPAD(4) OpenBSD Programmer's Manual ACPITHINKPAD(4)

NAME
acpithinkpad - IBM/Lenovo ThinkPad ACPI support

SYNOPSIS
acpithinkpad* at acpi?

DESCRIPTION
The acpithinkpad driver provides ACPI support for IBM/Lenovo ThinkPad
laptops. It responds to various hotkey button presses such as the
brightness adjustment and wireless toggle keys.

SEE ALSO
acpi(4), intro(4)

HISTORY
The acpithinkpad driver first appeared in OpenBSD 4.4.

OpenBSD 5.5 May 31, 2008 OpenBSD 5.5
Reply With Quote
  #3   (View Single Post)  
Old 11th September 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome!

The driver refers to the light, but does not apparently manipulate it.
Code:
$ grep -i light /usr/src/sys/dev/acpi/acpithinkpad.c
#define THINKPAD_BUTTON_THINKLIGHT    0x1012
#define THINKPAD_BACKLIGHT_CHANGED    0x6050
        case THINKPAD_BACKLIGHT_CHANGED:
        case THINKPAD_BUTTON_THINKLIGHT:
$
Reply With Quote
  #4   (View Single Post)  
Old 11th September 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Initially I read your post as wondering if the ThinkLight actually worked.

Quote:
Is there a way to interact(make it blink for example) with the ThinkLight led without using the keyboard keys?
If key presses produce the desired response but you wish to use the pointing device, you might be able to use something like /x11/xdotool . When xdotool is called it can send a keyboard event. You can use xev to determine the keycodes to feed to xdotool.
Reply With Quote
Reply

Tags
thinklight openbsd led acpi

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


All times are GMT. The time now is 05:50 PM.


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