LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-17-2016, 01:04 PM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Very few devices in /proc/acpi/wakeup on my Samsung NC20


Everything I have googled on the use of this file suggests that it should contain a long list of device names, and this is indeed the case for all the distros on my desktop machine. However Dragora on my Samsung laptop shows only three devices in this file, five if I activate USB wakeup in the BIOS. There are no other BIOS options for enabling wakeup devices.

The devices that I can identify are the power button, the ethernet card and two USB root hubs. The fifth one is called MBTN and is obviously some kind of button but I can't find out from the /sys hierarchy precisely what it is. The lid button (LID0) is not included, nor are the keyboard and trackpad (which I think are PS/2 devices).

I have now got the machine to go to sleep when the lid is closed. I would like it to wake up when I open the lid again or (failing that) when I touch a key. But with no relevant entries in the wakeup file, that doesn't seem to be possible.

I have tried echoing LID0 into the the file, which is what you normally do to enable a device as a wakeup device, but it doesn't seem to work if the device has no entry to start with. It doesn't give me any error messages but it has no effect.
 
Old 05-19-2016, 08:29 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
Hazel,

On my Samsung N220:

Code:
cat /proc/acpi/wakeup 

Device    S-state      Status   Sysfs node
EXP1      S4    *disabled  pci:0000:00:1c.0
EXP2      S4    *disabled  pci:0000:00:1c.1
EXP3      S4    *disabled  pci:0000:00:1c.2
EXP4      S4    *disabled  pci:0000:00:1c.3
PCIB      S3    *disabled  pci:0000:00:1e.0
PWRB      S4    *enabled   platform:PNP0C0C:00

There is no LID0 listed. It must be referenced somewhere surely?

EDIT:

Code:
cat /proc/acpi/button/lid/LID0/state
open
This may help you:
http://askubuntu.com/questions/15240...keup-permanent

For those who are updating to the 3.2 kernel (which should be everyone due to the recent root exploit), you'll notice your USB wakeup is probably broken.

They changed the default wakeup policy (http://www.spinics.net/lists/linux-usb/msg53661.html), so you'll need to make a couple of changes:
You no longer need to enable wakeup in /proc/acpi/wakeup, it's enabled by default
you need to enable wakeup for the USB hub in addition to the device in /sys/bus/usb/devices/*/power/wakeup

So, this:

Code:
echo USB1 > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/3-1/power/wakeup
becomes:

Code:
echo enabled > /sys/bus/usb/devices/usb3/power/wakeup
echo enabled > /sys/bus/usb/devices/3-1/power/wakeup
………………………….................................................
You have probably seen this already:

https://wiki.archlinux.org/index.php...pending_to_RAM

Last edited by beachboy2; 05-19-2016 at 08:34 AM.
 
1 members found this post helpful.
Old 05-19-2016, 12:45 PM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by beachboy2 View Post
Hazel,

On my Samsung N220:

Code:
cat /proc/acpi/wakeup 

Device    S-state      Status   Sysfs node
EXP1      S4    *disabled  pci:0000:00:1c.0
EXP2      S4    *disabled  pci:0000:00:1c.1
EXP3      S4    *disabled  pci:0000:00:1c.2
EXP4      S4    *disabled  pci:0000:00:1c.3
PCIB      S3    *disabled  pci:0000:00:1e.0
PWRB      S4    *enabled   platform:PNP0C0C:00

There is no LID0 listed. It must be referenced somewhere surely?
EDIT:

Code:
cat /proc/acpi/button/lid/LID0/state
open
I have that file too. That's how I know that the lid switch is called LID0. I can make the switch act as a suspend device by putting a case statement in my default acpi handler: if the LID0 event occurs and the LID0 file does not contain the word "open", the computer runs pm-suspend and goes to sleep. But you can't do a wakeup that way.

Yes, I've seen that one. But their problem was rather different. The devices the poster was interested in were in the wakeup file; they just kept getting disabled. The solution was a suspend hook that re-enabled them all. In any case, the devices I am interested in (lid switch and keyboard) are not on the usb bus. On this machine, keyboard and trackpad are PS2 devices.

The Arch wiki looks very promising. Lots of meat! But everything is angled towards systemd and I don't know how much of it is relevant to other init systems (Dragora uses runit). But I'll do some browsing there and see if I can find anything that might work with my system. Thanks for your help.
 
  


Reply



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
[SOLVED] Problem switching between X and virtual console on a Samsung NC20 hazel Linux - Laptop and Netbook 6 04-23-2016 12:42 PM
How to add USB mouse entry in /proc/acpi/wakeup? dariyoosh Linux - Hardware 1 12-06-2012 06:40 AM
ACPI wakeup and suspend2ram, prob with hwclock Jykke Linux - General 0 08-31-2008 02:01 AM
ACPI: 2.6.17.7; nothing in /proc/acpi/fan; fans not running; problem not seen before. zetabill Linux - Kernel 1 07-30-2006 04:27 PM
kernel 2.4.20 & acpi-20021212-2.4.20.diff => no /proc/acpi Tinkster Linux - Software 5 03-24-2003 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:14 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
Open Source Consulting | Domain Registration