WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC 8.0 no wallpaper after boot (sometimes)  (Read 2841 times)

Offline thane

  • Hero Member
  • *****
  • Posts: 637
TC 8.0 no wallpaper after boot (sometimes)
« on: April 14, 2017, 08:37:59 AM »
I'm having an intermittent issue in TC 8.0 with there being no wallpaper after boot. Wbar is there but the rest of the screen is black. If I go to the Control Panel/Wallpaper and select the jpg, it works fine. Maybe some sort of timing issue? There don't appear to be any other problems associated with it.

I'll be away from TC for a few days so no rush. Thanks.

Offline Uncle Warthog

  • WikiUser
  • *
  • Posts: 8
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #1 on: April 14, 2017, 10:37:35 AM »
I'm seeing the same thing on my end with the same fix.


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9879
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #2 on: April 15, 2017, 01:05:31 AM »
I booted TC 8.0 in Qemu 10 times, every time the core logo showed. Try to redirect the messages into a file in /tmp (in .setbackground, add >/tmp/bg.log 2>&1 at the end).
The only barriers that can stop you are the ones you create yourself.

Offline thane

  • Hero Member
  • *****
  • Posts: 637
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #3 on: December 26, 2017, 10:27:55 AM »
<bump>

I've had a couple recurrences of this, but it's very infrequent, maybe once every 100 boots at most. I haven't been able to capture any info on it in the log. However a possible clue is that I get the same screen if opt/background is pointing to a non-existent file (i.e. you set opt/background to a file and then delete it).

Offline thane

  • Hero Member
  • *****
  • Posts: 637
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #4 on: February 28, 2018, 08:49:18 PM »
<bump 2>

After upgrading to TC 9.0, there is consistently no wallpaper after boot. Control Panel/Wallpaper works fine. Was there a change to .setbackground or .xsession that might account for this? I've seen this in some earlier upgrades but IIRC it hasn't been a factor recently. Note that what I did was an actual upgrade (installed TC from CD to existing USB partition, then rebooted and updated extensions). Everything else seems to work right. Suggestions?

Thane

< edit: since this is now occurring in 9.0, I guess the thread can be renamed or I can start a new one... >
« Last Edit: February 28, 2018, 08:51:14 PM by thane »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10191
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #5 on: February 28, 2018, 09:49:33 PM »
No, there were no changes to .setbackground or .xsession in tc-8.x/9.x.

Offline thane

  • Hero Member
  • *****
  • Posts: 637
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #6 on: February 28, 2018, 10:40:01 PM »
I did some more fiddling and it appears to be related to Xorg. When I removed Xorg and rebooted with just Xvesa the background was set, although the display was distorted because Xvesa doesn't have any settings that match my monitor. I'll keep checking. Thanks.

Thane

<edit> When I deleted the xf86-video-nv extension (which contains the correct drivers for my monitor) and rebooted, the background was set. When I reloaded the extension and rebooted the background was again black. Maybe try moving the entry for the extension around in the onboot list?
« Last Edit: February 28, 2018, 10:55:57 PM by thane »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9879
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #7 on: March 01, 2018, 11:09:02 AM »
Hm, so -nv related, and now it's consistent. Please try to grab the errors from .setbackground, redirect to some file in /tmp.
The only barriers that can stop you are the ones you create yourself.

Offline thane

  • Hero Member
  • *****
  • Posts: 637
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #8 on: March 01, 2018, 09:29:37 PM »
#!/bin/sh
hsetroot -full /opt/backgrounds/seattle_4.jpg >/tmp/bg.log 2>&1
[ $(which wbar.sh) ] && wbar.sh

tmp/bg.log shows:

Segmentation fault

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9879
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #9 on: March 02, 2018, 01:19:29 AM »
Can you build it with debug symbols, and try to get a core dump? "ulimit -c unlimited" allows core dumps.
The only barriers that can stop you are the ones you create yourself.

Offline thane

  • Hero Member
  • *****
  • Posts: 637
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #10 on: March 05, 2018, 10:36:12 PM »
I haven't been able to generate a core dump so far. The problem appears only on boot. This is in dmesg:

hsetroot[5610]: segfault at 88 ip 08049cb4 sp bf8c0670 error 4 in hsetroot[8048000+4000]

edit: Probably no longer relevant, but there is a long-ago thread about a similar issue

http://forum.tinycorelinux.net/index.php?topic=12988.0

« Last Edit: March 05, 2018, 10:41:37 PM by thane »

Offline thane

  • Hero Member
  • *****
  • Posts: 637
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #11 on: March 10, 2018, 10:10:22 AM »
A solution that appears to work (at least for a couple of tries):

I put "sleep 1" in /home/tc/.setbackground.sh just before the hsetroot command and the wallpaper now appears after boot. This reinforces my earlier impression that the occasional problems I had in TC 8.x and consistently in 9.0 were a timing issue. As for why it took me so long to act on that impression, I can only say "duh"...

Will let you know if this solution works reliably.

Thane
« Last Edit: March 10, 2018, 10:35:51 AM by thane »

Offline thane

  • Hero Member
  • *****
  • Posts: 637
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #12 on: March 10, 2018, 01:56:43 PM »
Hmm, looks like the change to .setbackground.sh is preserved between boots, but ControlPanel/Wallpaper/Install resets it...

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1703
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #13 on: March 11, 2018, 06:28:15 AM »
Maybe in  ~/.xsession  something like
Code: [Select]
[ -x $HOME/.setbackground ] && { sleep 1 ; $HOME/.setbackground ; } &
Download a copy and keep it handy: Core book ;)

Offline thane

  • Hero Member
  • *****
  • Posts: 637
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #14 on: March 11, 2018, 01:55:57 PM »
Thanks Misalf, that works. I assume .xsession is only executed on boot? That seems to be where the problem was since setting the background from the control panel always worked. What you get for using 8 year old hardware I guess...