1

I'm trying to execute xbindkeys -f /etc/xbindkeysrc command on the start up. I've put this in my rc.local including another command :

#!/bin/bash
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
xbindkeys -f /etc/xbindkeysrc
exit 0

But then i find that xbindkeys command didn't get executed.

I've checked /var/log/messages and found this line :

rc.local[1194]: /etc/rc.d/rc.local: line 4:  1203 Segmentation fault      (core dumped) xbindkeys -f /etc/xbindkeysrc

Could you tell me please, what does segmentation fault mean ? and how to avoid it ?

2

1 Answer 1

2

You can't run xbindkeys in the /etc/rc.local script because the X11 server isn't running yet. You should put commands that require X11 to be running in this file instead, $HOME/.xinitrc.

Don't worry if this file doesn't exist, simply make it and add this line to it:

Here's some background info on xinitrc:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .