Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Xsession: unable to launch [...]" after slpashscreen #464

Closed
BobRubeus opened this issue Apr 20, 2023 · 15 comments
Closed

"Xsession: unable to launch [...]" after slpashscreen #464

BobRubeus opened this issue Apr 20, 2023 · 15 comments

Comments

@BobRubeus
Copy link

BobRubeus commented Apr 20, 2023

Hi !

I tried to install the last stable version of fullpageos from the Raspberry Pi Imager,
But each time, after every steps of the first boot I got this message :

Xsession: unable to launch "/home/pi/scripts/start_gui" X session ---
"/home/pi/scripts/start_gui" not found; falling back to default session.

I still have acces to others users (ctrl+alt+F2).

I have this message even if I modify or not the files on the boot partition.

I tried to install à classic version of Raspbian OS from Raspberry Pi Imager and everything work fine.

Any ideas ?
Thanks by advance ! :)

@BobRubeus
Copy link
Author

I just tried your lastest version available one Rasperry Pi Imager (Nightly) and I have the same issue.

@BobRubeus
Copy link
Author

BobRubeus commented Apr 20, 2023

I found a other solution,
A more logical one.

I downloaded your .zip file and write the image withe an other software,
Everything work.

I don't know why Raspberry Pi Imager doesn't work.
(on every MicroSD card -old and brand new-, and many different RaspPi)

If you have any ideas, that would be great.

Have a nice day !

@BobRubeus
Copy link
Author

Ok I found where the problem com from,
I try to change the Username and of course the file "start_gui" cannot be found because the user pi don't longer exist.
Maybe you have a solution to change the path way to reach this file ?

@redfive2012
Copy link

I solved it by creating a symbolic link in /home:
ln -s /home/<real user> /home/pi
Then I rebooted. It ran the start_gui script, went dark for a minute or 2, then rebooted, and after another couple minutes it loaded my page.

@guysoft
Copy link
Owner

guysoft commented May 18, 2023

I guess we can move the script paths there to a new location outside the user folder, and that should solve it.

@BobRubeus
Copy link
Author

Thanks, I will try !
I don't have a lot of time right now, that can take a long time, by I don't forget you !

@ElAmarok
Copy link

ElAmarok commented Feb 26, 2024

Hi, i have the exact same problem.
my pi (hostname and user) is named hmi2
in folder /boot the fullpageos.txt:

http://IP_OF_MY_RASPBERRY:8123/lovelace/default_view

in the folder /home/hmi2/scripts the start_gui:
`
#!/bin/bash

Stop the screen from turning off when idle.

DISABLE_POWER_MANAGEMENT=yes

Rotate screen if needed, see 'xrandr -h' for options.

DISPLAY_ORIENTATION=normal

if ["${DISPLAY_ORIENTATION}" != 'normal'];
then
xrandr --orientation ${DISPLAY_ORIENTATION}
fi

if ["${DISABLE_POWER_MANAGEMENT}" == 'yes'];
then
xset s off # don't activate screensaver
xset -dpms # disable DPMS (Energy Star) features.
xset s noblank # don't blank the video device
fi

matchbox-window-manager &

/home/hmi2/scripts/run_onepageos

`
in the folder /home/hmi2/scripts the run_onepageos:

`
#!/bin/bash

while true
do
if [ $(curl -sL -w "%{http_code}\n" "$(/home/hmi2/scripts/get_url)" -o /dev/null) == "200" ] || grep -q disabled "/boot/check_for_httpd" ; then
xdotool mousemove 9000 9000
/home/hmi2/scripts/start_chromium_browser
fi
sleep 1
done
`

Does anyone see whats wrong here?
I already read the hint :"I guess we can move the script paths there to a new location outside the user folder, and that should solve it."
But i ont know what that means exactly and how to do that.

@guysoft
Copy link
Owner

guysoft commented Feb 26, 2024

Please try the latest nightly and update if this fixes your problem

@ElAmarok
Copy link

i installed now via Raspbery Installer the Nightly 2024-02-23.

  1. No more "Webpage can be changed from /boot/fullpageos.txt"
    File doesn't exist. Shall i make one?
  2. VNC Viewer doesn't work. Via raspi-config enabled. No connection. In the last build it worked like this.

But at least i have now a Screen with:
P_20240226_135222

Means i need a Keyboard?

Repository owner deleted a comment from guyshe-jfrog Feb 26, 2024
@guysoft
Copy link
Owner

guysoft commented Feb 26, 2024

@marsmaennchen Just had a though - did you set the username in rpi imager to anything other than "pi"?
Might be a bug there.

@ElAmarok
Copy link

Exactly, is It still not possible? So i try again without any Changes.

@guysoft
Copy link
Owner

guysoft commented Feb 26, 2024

Yep confirmed, that is why its doing that. Trying to fix that too

@ElAmarok
Copy link

Now it works. It takes an unusually long time (about 5 to 7 min) to boot for the first time, but after that it works.

Repository owner deleted a comment from guyshe-jfrog Feb 28, 2024
@guysoft
Copy link
Owner

guysoft commented Feb 28, 2024

It does take longer on first boot, because it generates ssh keys and such. It also reboots, so you might be counting that.
I think its around 5 mins. 7 sounds like its taking longer than usual. But if it works it works. You are welcome to send optimizations PR :)

@guysoft
Copy link
Owner

guysoft commented Mar 25, 2024

Good news - fixed in nightly
You can now set your own user name in rpi-imager and it works.

@guysoft guysoft closed this as completed Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants