LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2016, 12:34 PM   #1
masavini
Member
 
Registered: Jun 2008
Posts: 271

Rep: Reputation: 6
help having xbindkeys working at the login screen...


hi,
i installed linux mint (17.3 - cinnamon edition) on an intel nuc and use it as media player...
during installation i encrypted the home folder for better privacy.
i also installed lirc to control the pc with an ir remote, and it perfectly works.

the final step is try to login using the tv remote.
i installed xdotool and created a script to type the pwd chars and "enter". the script is in /usr/local/bin, so it is readable before login (with the home folder still encrypted).
then i installed xbindkeys and set up a tv remote shortcut to call the xdotool script and enter the password.

at this point, i can't have xbindkeys working at the login screen.
i tried and add it to crontab of both regular and root users with:
Code:
@reboot /usr/bin/xbindkeys -f /etc/xbindkeys
but i guess it tries to start too early, when X is not set yet.

so i tried and mess with /etc/init/mdm.conf, but no result...

do you have any suggestion?

Last edited by masavini; 05-17-2016 at 12:56 PM.
 
Old 05-17-2016, 01:04 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Try
Code:
/usr/bin/xbindkeys -f /etc/xbindkeys
in /etc/rc.local ?

Just like you see it.
 
Old 05-17-2016, 01:18 PM   #3
masavini
Member
 
Registered: Jun 2008
Posts: 271

Original Poster
Rep: Reputation: 6
just done... does not work at the login screen nor after the login (if i type the shortcut in a text editor, i can't see the password).
if i run xbindkeys after the login, i can see the password typed in the text editor on shortcut press...
 
Old 05-17-2016, 01:32 PM   #4
masavini
Member
 
Registered: Jun 2008
Posts: 271

Original Poster
Rep: Reputation: 6
i tried and hook xbindkeys into /etc/mdm/PreSession/Default: the shortcut won't work at the login screen, but will work after the login.
 
Old 05-17-2016, 03:00 PM   #5
masavini
Member
 
Registered: Jun 2008
Posts: 271

Original Poster
Rep: Reputation: 6
bingo!

found the right hook in /etc/mdm/Init/Default: just added
Code:
DISPLAY=:0 /usr/bin/xbindkeys -f /etc/xbindkeys
at the end of the file, before "exit 0"...
now the shortcut works at the login screen, as well!

Last edited by masavini; 05-17-2016 at 03:16 PM.
 
Old 05-17-2016, 03:13 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Good job and Well done!
 
  


Reply

Tags
xbindkeys


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VGA display only working in login screen tomasdepomas Linux - Hardware 1 09-09-2015 03:43 AM
Mouse not working after login screen Ubuntu 12.04 9sp7ky3 Linux - Hardware 0 07-19-2012 01:21 PM
Xbindkeys not working right xmrkite Linux - Software 3 01-20-2012 11:45 AM
screensaver not working at login screen cpv204 Fedora 1 12-14-2003 11:39 AM
Backspace not working at login screen bspicer Linux - General 2 04-11-2002 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration