Hi All

This problem has been occupying me on or off for weeks.
What the object of the exercise is:
To start the BBB in console and use a .service file to start Xorg and my 
applications
without starting openbox or a Window Manager.

The environment:
Beaglebone Black Rev:c
Debian 9 Image 2018-10-07
Console only no gui.
Then installed Xorg ,openbox

Created a smartplug.service file in /lib/systemd/system
which contains the following.
-------------------------------
[Unit]
Description=Starts SmartPlug
[email protected]

[Service]
Type=simple
ExecStart=/usr/bin/xinit /home/debian/.xinitrc

[Install]
[email protected]
-------------------------------
Then edited the.xinitrc file in /home/debian
which contains the following.
-------------------------------
#!/bin/sh

sudo -u debian /usr/bin/xscreensaver &

sleep 60    #if any lower my app will fail (Allegro4)

sudo -u debian /home/debian/SmartPlug

sudo -u debian openbox-session
-------------------------------
When booting the xscreensaver splash screen shows up and stays active in 
the background.
In fact with 1 minute inactive time the screensaver already activates 
before the mouse can be used.
So, I sleep for 60 seconds.
The mouse cursor is inactive for at least 56 seconds, so if I run my 
application
before that time, it gets to some unknown point where it fails and exits.
I have tried to run the debugger to detect the point where it fails, BUT 
when the
debugger is on the screen, the mouse is not available yet and by the time 
it is, the problem is gone.

I have the same problem with Deb10 image, although the time to wait is less.
Have read many posts about "update the kernel" to solve slow boot, but I 
would assume
that the latest images have this kernel patch already included.

So although this installation will only boot up once and stay up for 
months, I would still like to solve this problem.
Have also tried to see the systemd-bootchart, but as it stops at about 20 
seconds it does not show the culprit.

So, I am now officially out of my depth.

Would appreciate any suggestions towards solving this.
Regards

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/cb38fbfb-2604-44e2-b2de-2505c3d305e0o%40googlegroups.com.

Reply via email to