LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-01-2014, 02:42 PM   #1
blindmansleeps
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Touchpad disabling when lid close


Hi all--

I'm not sure if this is best place for this, but bear with me.

I'm in Linux Mint Qiana KDE. Thus far, I've really enjoyed the distro. However, I've encountered a frustrating bug. My touchpad disables after the lid is closed, and does not re-enable once the lid is opened. I discovered a workaround for this problem--just a simple command to run in the terminal.

So, I've turned this command into a script that I'm wanting to execute automatically when the lid opens. But I can't seem to locate where I should inject the reference. Any recommendations?
 
Old 08-03-2014, 03:00 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,818

Rep: Reputation: 607Reputation: 607Reputation: 607Reputation: 607Reputation: 607Reputation: 607
in /etc/acpi there are events and scripts.

The thing to do is kill acpid, restart at once with appid -l, and open a terminal in which you run tail -f on /var/log/messages. Then you can activate and deactivate any acpi triggers of interest, lid button, brightness up/down, etc, and the exact event will be added to syslog.

With that data, you can script for lid open --> your action. Put a script in the events dir to call your script.
 
Old 08-03-2014, 10:55 AM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 12,486

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Also check bios for any options such as do what when lid closes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No suspend on lid close AllanP Linux - Laptop and Netbook 26 05-19-2012 12:38 PM
Do nothing on close lid hda7 Debian 2 01-03-2012 10:15 AM
[SOLVED] How can I close lid without sleep? tquang Linux - Laptop and Netbook 5 07-12-2011 02:42 AM
Disabling actions on laptop lid close TheStarLion Linux - Laptop and Netbook 3 04-05-2010 05:33 PM
Lid Close = Sleep mangogreg Linux - Hardware 2 08-28-2008 03:17 PM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration