Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux On Laptops
Reload this Page Thinkpad T61 acpid events dock/undock
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux On Laptops Linux on laptop machines, a great place to discuss linux/laptop specific issues.

Reply
 
Thread Tools Display Modes
Old 01-17-2008   #1 (permalink)
juggler885
Just Joined!
 
Join Date: Aug 2006
Posts: 11
Thinkpad T61 acpid events dock/undock

I have a thinkpad T61 and a dock for it. It runs Ubuntu 7.10 fully updated. The problem is that I want to run a bash script when the computer docks and one when the computer undocks.

I know I have to use acpid so when the dock/undock event happens I can run the script, but I can't find the dock or undock event. I have tried acpi_listen and looked at the log file for acpid when I docked and undocked, but I don't see anything about docking (there were other events that happened, but they were about the ac adapter and cpu power usage).

I do know that ubuntu senses the dock/undock because when I type dmesg it says:
ACPI: docking
and
ACPI: undocking

How do I find acpi event for docking?

In the event folder under /etc/acpi/events I would create a file for docking called docking and it would contain:

Code:
#!/bin/bash
#event to run script when docking laptop

event= <what goes here?>
action=/path/to/script
juggler885 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSuse10.2: how to forward syslog events to a remote events manger server? AbdellahT SuSE Linux Help 0 10-06-2007 07:01 PM
vncviewer allows mouse but not keystroke events jbreazeale Linux Applications 1 04-20-2004 05:58 PM




All times are GMT. The time now is 10:29 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0