You are not logged in.

#1 2014-07-05 00:00:45

Latrina
Member
From: Italy - Mexico
Registered: 2014-07-02
Posts: 44

[SOLVED] xbindkeys unable to detect power on button

Hello guys,

its been two days since I have been trying to figure out a way to map the power button of my chromebook c720 in order to call the cinnamon power off / suspend / logout panel when the power button is pressed.

Unfortunately for some reason xbindkeys -k isn't unable to recognize it.

Any suggestions regarding what to do and how to map the power button?

Thanks

Last edited by Latrina (2014-07-07 04:20:59)


Sun Netra T1 DC200  (x6 cluster) OpenBSD 5.4; Sun Ultra 5 OpenBSD 5.4; Futro S500 FreeBSD 10.0; Chromebook c720 ArchLinux; etc

Offline

#2 2014-07-05 00:54:05

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: [SOLVED] xbindkeys unable to detect power on button

The title made me laugh. I was about to reply with "well it won't be able to if it's switched off!" big_smile

Back on topic:

/etc/systemd/logind.conf

https://wiki.archlinux.org/index.php/Po … CPI_events

Offline

#3 2014-07-05 01:54:16

Latrina
Member
From: Italy - Mexico
Registered: 2014-07-02
Posts: 44

Re: [SOLVED] xbindkeys unable to detect power on button

stevenhoneyman wrote:

The title made me laugh. I was about to reply with "well it won't be able to if it's switched off!" big_smile

Back on topic:

/etc/systemd/logind.conf

https://wiki.archlinux.org/index.php/Po … CPI_events

I am glad it made someone laugh.

Anyways,

in /etc/systemd/logind.conf  I have it set to HandlePowerKey=ignore, however this doesn't make much of difference regardless whether it is set to ignore, poweroff or anything else. The power button will send the computer to sleep each time when pressed, and xbindkeys isnt unable to detect it no matter what.

Because it is right above the backspace this was frustrating to say the least, therefore I managed to disable it from dconf, however like I said, even if I enable it again it will simply put the laptop to sleep once pressed and xbindkeys wont detect it.

If you meant something else that I missed, please I'd like you to explain it.

Thanks

Last edited by Latrina (2014-07-05 01:55:31)


Sun Netra T1 DC200  (x6 cluster) OpenBSD 5.4; Sun Ultra 5 OpenBSD 5.4; Futro S500 FreeBSD 10.0; Chromebook c720 ArchLinux; etc

Offline

#4 2014-07-05 02:01:23

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] xbindkeys unable to detect power on button

I believe the cinnamon power manager registers itself with systemd/logind and takes over the power button configuration. I guess you should look somewhere in the cinnamonn settings.
You can always use acpid to react to the acpi events, but only use it if all other options don't work.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2014-07-05 02:10:18

Latrina
Member
From: Italy - Mexico
Registered: 2014-07-02
Posts: 44

Re: [SOLVED] xbindkeys unable to detect power on button

progandy wrote:

I believe the cinnamon power manager registers itself with systemd/logind and takes over the power button configuration. I guess you should look somewhere in the cinnamonn settings.
You can always use acpid to react to the acpi events, but only use it if all other options don't work.

Hey thanks for the info. I am definitely going to look into that tomorrow morning and update the thread.

So far this is really the only thing that I haven't gotten to work the way I want on this bad boy.


Sun Netra T1 DC200  (x6 cluster) OpenBSD 5.4; Sun Ultra 5 OpenBSD 5.4; Futro S500 FreeBSD 10.0; Chromebook c720 ArchLinux; etc

Offline

#6 2014-07-07 04:20:13

Latrina
Member
From: Italy - Mexico
Registered: 2014-07-02
Posts: 44

Re: [SOLVED] xbindkeys unable to detect power on button

*progandy you were totally right when u have said the cinnamon takes the power conf away, in fact I just needed to change it to interactive in dconf and it works now, no acpid required.

Thanks


Sun Netra T1 DC200  (x6 cluster) OpenBSD 5.4; Sun Ultra 5 OpenBSD 5.4; Futro S500 FreeBSD 10.0; Chromebook c720 ArchLinux; etc

Offline

Board footer

Powered by FluxBB