WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #15 on: March 11, 2018, 03:05:32 PM »
~/.xsession  is exec'ed by  startx . So every time the desktop starts.
I wonder if it's caused by the X server has not been started completely and if we can check if it has.
The sleep command always seems kind of a cheap compromise for me in those cases as it may bring in unnecessary delays or be too short depending on the hardware.
Download a copy and keep it handy: Core book ;)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #16 on: March 11, 2018, 04:17:54 PM »
Hi Misalf
... I wonder if it's caused by the X server has not been started completely and if we can check if it has. ...
I thought that's what the  waitforX  call in  .xsession  was for.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #17 on: March 11, 2018, 05:06:09 PM »
Well, I'm just speculating without knowledge about X.
And I don't know what  waitforX  actually does (can't find the source offhand and not sure I could even make sense of it). If it reports true if X is running it may still be too soon for  xsetroot  to be able to set the wallpaper while X hasn't completely initialized.
Just fumbling about in the dark.
Download a copy and keep it handy: Core book ;)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #18 on: March 11, 2018, 05:52:54 PM »
Hi Misalf
The source is available here:
http://distro.ibiblio.org/tinycorelinux/2.x/release/src/waitforX.c
Basically it tries to retrieve the current display. It will continue to try 50 times over the course of 10 seconds. If it succeeds, it
returns 0. If it fails, it returns 1.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #19 on: March 11, 2018, 06:25:38 PM »
Thanks for digging that out.
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #20 on: March 12, 2018, 02:22:25 AM »
It does indeed wait for X to be ready, and at that point everything, including setting wallpapers, should work. Thus I believe it's a -nv driver bug, given other drivers do work.
The only barriers that can stop you are the ones you create yourself.

Offline dspence

  • Newbie
  • *
  • Posts: 25
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #21 on: March 12, 2018, 02:14:59 PM »
I am also seeing this, on TC8, every one out of maybe 10 reboots, and I have Intel graphics, not Nvidia.

Offline Uncle Warthog

  • Newbie
  • *
  • Posts: 8
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #22 on: March 12, 2018, 02:23:55 PM »
I'm also seeing this on various systems with Intel video.  I haven't tested it on Nvidia but have seen it once or twice on ATI/AMD video as well.  It's happened with every version since TC 8.0 including the current 9.0 but nothing before that seems to have the problem.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #23 on: March 12, 2018, 06:09:47 PM »
I have seen it, only a few times, before 8.x (I'm still on 7.x) but unfortunately can't tell on what hardware or on what exact version of tinycore. However, the question for me is, while the wallpaper certainly doesn't kill my workflow, could it potentially be an issue that might affect other things (e.g. ~/.X.d).
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: TC 8.0 no wallpaper after boot (sometimes)
« Reply #24 on: March 13, 2018, 04:22:38 AM »
Okay, thanks for the confirmations.
The only barriers that can stop you are the ones you create yourself.