force start x on boot

Build/modify/repair equipment and improve systems performance by yourself

force start x on boot

Postby charsi » 29 Jul 2017, 08:29

Hi

Is there any way to force a 'startx' command on boot even when no displays are connected?

I've got some hotkeys configured (via xbindkeys) to control a relay that powers my hifi system. This is working perfectly. I have a flirc IR receiver connected which sends the keystrokes when i press certain buttons on the tv remote.

But as xbindkeys needs x running I have to manually login via ssh and do 'startx' everytime the rpi boots. Any way to automate this?
charsi
 
Posts: 2
Joined: 29 Jul 2017, 08:23

Re: force start x on boot

Postby hondagx35 » 29 Jul 2017, 23:16

Hi charsi,

on the newer images you only have to enable the local browser option from the settings page.

Or you can modify rune_SY_wrk on the older images.
https://github.com/RuneAudio/RuneUI/blob/master/command/rune_SY_wrk#L272

Frank
User avatar
hondagx35
 
Posts: 3023
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: force start x on boot

Postby charsi » 30 Jul 2017, 02:10

Ah I didn't see this option at all earlier. It was actually turned on by default. But since I didn't have a screen connected rune was not loading x.

I got another solution working instead. Namely triggerhappy daemon. Had to install it from source but it does do exactly what I want and without needing to start x.
charsi
 
Posts: 2
Joined: 29 Jul 2017, 08:23

support RuneAudio Donate with PayPal


Return to DIY and tweaks

Who is online

Users browsing this forum: No registered users and 1 guest