Power Button action

Power Button action

Postby jeenuv on Wed Jul 10, 2013 4:21 pm

I run Mint Olivia 64-bit on Asus X55C laptop.

The problem I face is this: I've set the power button press action as 'Ask Me' in the Power Manager Preferences -> General Tab. However, what happens when I press power button is that the system always shutdown without asking me. Sometimes I leave the system with only the LCD switched off. When I come back, I press the power button thinking that I had left it suspended, and then yucks, it shuts down, losing all my work and browser pages!

The work around I do now is to press Ctrl-Alt-Delete or Menu->Quit and then click shutdown. I'd much rather have the same window pop-up if I press power button.

Any idea what's going wrong?
jeenuv
Level 1
Level 1
 
Posts: 13
Joined: Tue Jun 04, 2013 3:34 pm

Linux Mint is funded by ads and donations.
 

Re: Power Button action

Postby Don_Pedro on Fri Jul 12, 2013 1:40 am

Hi,
same problem on my side: I sat up the power button to suspend.
It shutdonws the laptop when I press

Anybody has the power button working as excepted ?
P.
Mint 16 "Petra", Cinnamon 64-bit 2.0.14 Kernel 3.11.0-12 Dual Boot W7
Toshiba Satellite T135 Intel SU4100 @1.30GHz Ram:4GB DDR3 Intel Mobile 4 Series Chipset Integrated Graphics Controller Firefox/Thunderbird inxi Fxz File
Don_Pedro
Level 3
Level 3
 
Posts: 193
Joined: Sun Jun 23, 2013 11:54 am
Location: Dominican Republic

Re: Power Button action

Postby jeenuv on Sat Jul 13, 2013 2:59 am

I've raised a bug for this.
jeenuv
Level 1
Level 1
 
Posts: 13
Joined: Tue Jun 04, 2013 3:34 pm

Re: Power Button action

Postby jeenuv on Thu Jul 25, 2013 12:49 pm

There's a workaround for this, posted in the bug report.
jeenuv
Level 1
Level 1
 
Posts: 13
Joined: Tue Jun 04, 2013 3:34 pm

Re: Power Button action

Postby Don_Pedro on Thu Jul 25, 2013 8:53 pm

Thank you for the news,
As concerning me I have no powerbtn.sh script at /etc/acpi/

P
P.
Mint 16 "Petra", Cinnamon 64-bit 2.0.14 Kernel 3.11.0-12 Dual Boot W7
Toshiba Satellite T135 Intel SU4100 @1.30GHz Ram:4GB DDR3 Intel Mobile 4 Series Chipset Integrated Graphics Controller Firefox/Thunderbird inxi Fxz File
Don_Pedro
Level 3
Level 3
 
Posts: 193
Joined: Sun Jun 23, 2013 11:54 am
Location: Dominican Republic

Re: Power Button action

Postby jeenuv on Fri Jul 26, 2013 3:13 am

Hm, that's weird. Maybe you can reopen the bug and post a comment there.
jeenuv
Level 1
Level 1
 
Posts: 13
Joined: Tue Jun 04, 2013 3:34 pm

Re: Power Button action

Postby Don_Pedro on Fri Jul 26, 2013 11:50 am

Jeenuv.
a bug is something important.
I cannot post for a bug without investigate myself deaply.
Developers who work on bug issue need to be disturb only for verificated problem.
I will work on it and will get back to you,
Cordially
P.
P.
Mint 16 "Petra", Cinnamon 64-bit 2.0.14 Kernel 3.11.0-12 Dual Boot W7
Toshiba Satellite T135 Intel SU4100 @1.30GHz Ram:4GB DDR3 Intel Mobile 4 Series Chipset Integrated Graphics Controller Firefox/Thunderbird inxi Fxz File
Don_Pedro
Level 3
Level 3
 
Posts: 193
Joined: Sun Jun 23, 2013 11:54 am
Location: Dominican Republic

Re: Power Button action

Postby panchojuan on Wed Sep 04, 2013 12:46 am

I also had the same problem. The workaround was good enough. Hope to see it implemented in later versions.
panchojuan
Level 1
Level 1
 
Posts: 1
Joined: Wed Sep 04, 2013 12:44 am

Re: Power Button action

Postby Pierre on Wed Sep 04, 2013 2:17 am

The problem I face is this: I've set the power button press action as 'Ask Me' in the Power Manager Preferences -> General Tab. However, what happens when I press power button is that the system always shutdown without asking


tap the 'space bar'.
- if nothing happens - then - hit the PWR button :?
Image
User avatar
Pierre
Level 6
Level 6
 
Posts: 1015
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Power Button action

Postby hectormd on Mon Oct 14, 2013 3:12 pm

Hi there I'm new to the forums, so first of all, Hello :P
Since I'm a Linux newbie I found what I think is a brute force workaround for this.
Following Hans-Christoph Steiner (eighthave)'s workaround: https://bugs.launchpad.net/linuxmint/+b ... comments/4
Which sadly didn't work for me, I decided to just comment the line that was sending the shutdown message, and IT JUST BLOODY WORKED!!!

So... what I did... I just commented this line:
Code: Select all
/sbin/shutdown -h now "Power button pressed"

Worked like a charm :D

Detailed process for beginners like me
Open a terminal, type:
Code: Select all
sudo gedit /etc/acpi/powerbtn.sh

In the opened document go to the very last line and add a Hashtag to the beggining of it, so you will end up with this:
Code: Select all
#/sbin/shutdown -h now "Power button pressed"

Save, close, whether this was a right or dumb thing to do, It will work and I haven't had any issues so far :D
hectormd
Level 1
Level 1
 
Posts: 1
Joined: Mon Oct 14, 2013 2:59 pm

Re: Power Button action

Postby p8r on Sun Oct 20, 2013 5:13 pm

hectormd wrote:Detailed process for beginners like me
Open a terminal, type:
Code: Select all
sudo gedit /etc/acpi/powerbtn.sh

In the opened document go to the very last line and add a Hashtag to the beggining of it, so you will end up with this:
Code: Select all
#/sbin/shutdown -h now "Power button pressed"

Save, close, whether this was a right or dumb thing to do, It will work and I haven't had any issues so far :D


wow, nice work, it really works! thanks mate!
User avatar
p8r
Level 1
Level 1
 
Posts: 5
Joined: Mon Oct 14, 2013 3:46 pm

Linux Mint is funded by ads and donations.
 

Return to MATE

Who is online

Users browsing this forum: No registered users and 7 guests