Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

How to activate CTRL-ALT-BACKSPACE
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
How to activate CTRL-ALT-BACKSPACE
28th Feb, 2013, 05:00 AM
Post: #1
hugocoolens Offline
Registered
Posts: 5
Joined: Feb 2013
Reputation: 0
How to activate CTRL-ALT-BACKSPACE
What I miss on my rpi with xbian is response to ctrl-alt-backspace.
I tried to use dpkg-reconfigure keyboard-configuration but unfortunately
the usual option which lets you configure ctrl-alt-backspace is not presented. Does someone here now how to do it?
The reason I want it is for those times I did not take note of the ip-address and the rpi hangs, the only thing I can do then is remove the power but this can lead to file system corruption, ctrl-alt-back space could give me the choice to properly halt the system without damage.

thanks in advance
hugo
Find all posts by this user
Quote this message in a reply
28th Feb, 2013, 05:26 AM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to activate CTRL-ALT-BACKSPACE
How should keyboard interaction work if the RPi hangs?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
28th Feb, 2013, 06:09 AM
Post: #3
hugocoolens Offline
Registered
Posts: 5
Joined: Feb 2013
Reputation: 0
RE: How to activate CTRL-ALT-BACKSPACE
(28th Feb, 2013 05:26 AM)CurlyMo Wrote:  How should keyboard interaction work if the RPi hangs?
When a linux system hangs, depending on how bad the situation is two things you sometimes can do is: log in remotely but then you need to know what ip-number the system has or stop the gui via ctrl-alt-backspace and halt the system from the command prompt, I suppose the rpi is not different concerning this matter.

regards,
hugo
Find all posts by this user
Quote this message in a reply
28th Feb, 2013, 06:19 AM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to activate CTRL-ALT-BACKSPACE
I believe Raspbian did attach key combinations with a program called triggerhappy, maybe you should look at that. Let us know when you found it.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
28th Feb, 2013, 10:19 PM
Post: #5
hugocoolens Offline
Registered
Posts: 5
Joined: Feb 2013
Reputation: 0
RE: How to activate CTRL-ALT-BACKSPACE
(28th Feb, 2013 06:19 AM)CurlyMo Wrote:  I believe Raspbian did attach key combinations with a program called triggerhappy, maybe you should look at that. Let us know when you found it.

I tried first to edit /etc/default/keyboard with the following line:
XKBOPTIONS="terminate:ctrl_alt_bksp"
unfortunately this didn't work

then I installed:
dpkg -i triggerhappy_0.3.4-2_armhf

however I don't know how to make triggerhappy use ctrl-alt-bksp

someone here any idea how?

thanks in advance
hugo
Find all posts by this user
Quote this message in a reply
28th Feb, 2013, 10:23 PM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to activate CTRL-ALT-BACKSPACE
This is how they do it in raspi-config:
https://github.com/asb/raspi-config/blob/master/raspi-config#L277

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
1st Mar, 2013, 04:59 AM
Post: #7
hugocoolens Offline
Registered
Posts: 5
Joined: Feb 2013
Reputation: 0
RE: How to activate CTRL-ALT-BACKSPACE
(28th Feb, 2013 10:23 PM)CurlyMo Wrote:  This is how they do it in raspi-config:
https://github.com/asb/raspi-config/blob/master/raspi-config#L277

I suppose you are pointing to this line:
thd --dump /dev/input/event* | grep -q "LEFTSHIFT\|RIGHTSHIFT"

unfortunately I don't know how to make the system recognize
ctrl-alt-bksp from this info :-(

hugo
Find all posts by this user
Quote this message in a reply
1st Mar, 2013, 05:02 AM
Post: #8
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to activate CTRL-ALT-BACKSPACE
My knowledge of triggerhappy is as much as yours. I only knew it was used in that file. Just do some research and experimentation.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
1st Mar, 2013, 04:57 PM
Post: #9
hugocoolens Offline
Registered
Posts: 5
Joined: Feb 2013
Reputation: 0
RE: How to activate CTRL-ALT-BACKSPACE
(1st Mar, 2013 05:02 AM)CurlyMo Wrote:  My knowledge of triggerhappy is as much as yours. I only knew it was used in that file. Just do some research and experimentation.

I tried /etc/init.d/triggerhappy start
then looked what would ctrl-alt-bksp would produce using thd --dump /dev/input/event* but nothing comes out of it unfortunately...

regards,
hugo
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 15th May, 2025, 07:34 PM Powered By MyBB, © 2002-2025 MyBB Group.