You are not logged in.
My autostart script, located at ~/.config/openbox/autostart, is shown below:
#
# These things are run when an Openbox X Session is started.
# You may place a similar script in $HOME/.config/openbox/autostart
# to run user-specific things.
#
tint2 &
sh ~/.fehbg &
numlockx &
(sleep 30s && conky) &My .xinitrc is as follows:
exec openbox-session When openbox starts, everything goes smoothly. Once the 30s have past, any open programs, including ones not run in the autostart, crash. Conky also fails to open, but it seems to be conky trying to run that is causing the crash.
That being said, after the crash is I run
~/.config/openbox/autostart everything starts up and runs perfectly. I have searched, but after a day of messing with this, still no solutions.
Last edited by w_bowman (2013-05-15 13:19:16)
Offline
Then let's do some footwork. Find out if it only crashes from the autostart script. Comment the line in the Autostart and see if you can run conky after, say, 5 minutes without killing the system manually. Make sure you read and copy the error messages in the terminal.
Offline
So after restarting with conky commented out of the autostart, no issues. I waited for about 5 minutes and ran conky, and it started with no problems as well.
Offline
Okay, this is good news I think. Let's try and find out what's going on. Can you run conky from the autostart again, but logging its output? Like (sleep 30s && conky > ~/conkylog) &.
EDIT: And while we're at it, could you post your fehbg script? Maybe this is the culprit.
Last edited by Awebb (2013-05-08 23:38:20)
Offline
Ok, I logged it's output to conkylog, but the file remains empty. The following is the fehbg script. I am stumped as to why it won't work. Also, once again, rerunning the autostart script after conky crashes, everything runs fine.
feh --bg-scale '/home/wesley/documents/LapArchLogo.png'Last edited by w_bowman (2013-05-09 12:44:37)
Offline
EDIT: wow - sorry, I really misread this. Nevermind this noise.
Last edited by Trilby (2013-05-09 12:53:20)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Keep your shirt on, Trilby :-)
I asked him to post the feh script. "It" refers to conky at the autostart script, not the feh script. Just a bad reference at this point of the text.
Now let's remove that feh script from the autostart, add conky and try it again, w_bowman. You should basically do this with every autostart entry. However, chances are, that none of them is responsible. Try anyway, it's the fastest solution.
Next step: Is everything started, when X is up, that is needed by conky? Are all all systemd services started? Try running "systemd-analyze blame" exactly the moment X is started. If it complains, that the boot process is not finished, then it might be, that conky tries to access something not available yet. Don't forget to install the opt-depends for systemd, so the analyzer works.
Offline
Hmm, strange. After removing the fehbg script, I restarted and nothing crashed. I tried a second time, and then it did crash. I changed my .xinitrc to
1 (systemd-analyze blame > ~/sysAnalyze) &
2 exec openbox-session which gave me this output:
1 4.471s wicd.service
2 1.436s systemd-logind.service
3 569ms systemd-vconsole-setup.service
4 490ms systemd-udev-trigger.service
5 483ms dev-hugepages.mount
6 475ms systemd-remount-fs.service
7 473ms sys-kernel-config.mount
8 453ms systemd-static-nodes.service
9 446ms dev-mqueue.mount
10 440ms sys-kernel-debug.mount
11 363ms tmp.mount
12 259ms systemd-journal-flush.service
13 216ms systemd-fsck@dev-disk-by\x2duuid-1292\x2d1C73.service
14 153ms systemd-udevd.service
15 147ms systemd-sysctl.service
16 145ms systemd-random-seed-load.service
17 68ms boot-efi.mount
18 36ms systemd-user-sessions.service
19 32ms systemd-tmpfiles-setup.service
20 30ms alsa-restore.service EDIT: Rebooted again, removing the system-analyze from the .xinitrc, and still without fehbg conky crashed.
EDIT: Still haven't figured this out. Not really sure why conky would crash all open programs when run in the autostart, but not when I run the autostart (or conky itself for that matter) outside of startx.
Last edited by w_bowman (2013-05-10 17:14:10)
Offline
I have fixed it. Turns out that I was using a program that required root privledges, and when I had previously used this .conkyrc I had set it so that it didn't need the root password to run in the sudoers file. I removed that program (hddtemp) from my .conkyrc, and now everything runs smoothly.
Offline