Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] shutdown on powerbutton ThinkPad
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 216
Location: Italy

PostPosted: Mon Sep 28, 2015 9:16 am    Post subject: [solved] shutdown on powerbutton ThinkPad Reply with quote

Hi all.

On most laptops I have used, and even some desktop, a touch of the power button shuts down the machine cleanly.

This worked on my ThinkPad T23 for a long time without me remembering any particular "tweak" I had to do with gentoo. I sure had acpi enabled in the kernel, but I don't remember anything fancy.

I know have a R52 Thinkpad and power-down doesn't work. My T23 has been stolen, so I cannot check/compare kernel configuration and such stuff.

Any suggestions? I have both acpi as well as thnkpad buttons enabled in the kernel.

Riccardo
_________________
Unix is user friendly. It is only careful selecting its friends.


Last edited by multix on Tue Oct 06, 2015 1:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2541
Location: Near Toronto

PostPosted: Mon Sep 28, 2015 12:15 pm    Post subject: Reply with quote

have you verified the files in /etc/acpi and /etc/acpi/actions
are in place and correct?

Mine works (T440S), /etc/acpi/default.sh calls /etc/acpi/actions/powerbtn.sh
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 216
Location: Italy

PostPosted: Thu Oct 01, 2015 7:32 am    Post subject: Reply with quote

yes, in default.sh I see that in the buotton section for action power powerbtn.sh is called.
this script then calls shutdown -h now


So... it looks all fine, these files were installed by default, I didn't touch them.

I suspect then that no event gets generated?
I have ACPI but not APM in my kernel. This is my config:

Code:

  │ ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
  │ │                  [*] Suspend to RAM and standby                                                           │ │
  │ │                  [*] Hibernation (aka 'suspend to disk')                                                  │ │
  │ │                  ()  Default resume partition                                                             │ │
  │ │                  [ ] Opportunistic sleep                                                                  │ │
  │ │                  [ ] User space wakeup sources interface                                                  │ │
  │ │                  -*- Device power management core functionality                                           │ │
  │ │                  [*]   Power Management Debug Support                                                     │ │
  │ │                  [ ]     Extra PM attributes in sysfs for low-level debugging/testing                     │ │
  │ │                  [ ]     Test suspend/resume and wakealarm during bootup                                  │ │
  │ │                  [*] Suspend/resume event tracing                                                         │ │
  │ │                  [ ] Enable workqueue power-efficient mode by default                                     │ │
  │ │                  [*] ACPI (Advanced Configuration and Power Interface) Support  --->                      │ │
  │ │                  [ ] SFI (Simple Firmware Interface) Support  ----                                        │ │
  │ │                  < > APM (Advanced Power Management) BIOS support  ----                                   │ │
  │ │                      CPU Frequency scaling  --->                                                          │ │
  │ │                      CPU Idle  --->                                                                       │ │
  │ │                  [ ] Cpuidle Driver for Intel Processors                                                  │ │

_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 216
Location: Italy

PostPosted: Tue Oct 06, 2015 1:42 pm    Post subject: Reply with quote

Well... acpid wasn't running, so of course I wasn't getting an event :) Shutdown now works fine.
_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum