colloqi / piSignage

Digital Signage Player Software for Raspberry Pi, more details at
http://pisignage.com
576 stars 249 forks source link

! Important: loginscreen after ~30min -> piSignage not usable anymore! #252

Open Quietscher opened 4 months ago

Quietscher commented 4 months ago

autologout Morning! After about 30 min, the greeter appears and is overlaid on top of piSignage. Therefore, the Signage is not usable anymore.

System:

More information: It seems to be the same problem as in ISSUE, but the issue's naming is misleading. We tried to solve the issue by ourselves but couldn't fix it. We found out:

Resources we found, but that couldn't solve the problem:



Please let me know if other information is required or if you found a fix.

Quietscher commented 4 months ago

These are the processes that run when the login screen appears

root     21804  0.0  0.1  29532  6272 ?        Sl   16:08   0:00 lightdm --session-child 18 21
lightdm  21891  0.0  0.2  16184  8704 ?        Ss   16:08   0:00 /lib/systemd/systemd --user
lightdm  21892  0.0  0.0  36304  3896 ?        S    16:08   0:00 (sd-pam)
lightdm  21911  0.0  0.1  48276  6144 ?        Ssl  16:08   0:00 /usr/bin/pipewire
lightdm  21912  0.0  0.3 106032 14392 ?        S<sl 16:08   0:00 /usr/bin/pulseaudio --daemonize=no --log-target=journal
lightdm  21913  0.1  4.0 384564 164864 ?       Ssl  16:08   0:00 /usr/bin/wayfire -c /usr/share/greeter.ini
lightdm  21918  0.0  0.0   7392  3712 ?        Ss   16:08   0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
lightdm  21973  0.0  0.0   2140  1152 ?        S    16:08   0:00 /bin/sh -c /usr/sbin/pi-greeter
lightdm  21974  0.2  3.9 268988 162700 ?       Sl   16:08   0:00 /usr/sbin/pi-greeter
lightdm  21982  0.0  0.1  44004  6272 ?        Ssl  16:08   0:00 /usr/libexec/gvfsd
lightdm  21987  0.0  0.1  56472  5632 ?        Sl   16:08   0:00 /usr/libexec/gvfsd-fuse /run/user/106/gvfs -f
root     22005  0.0  0.1  11040  4736 ?        S    16:08   0:00 lightdm --session-child 11 15
Quietscher commented 4 months ago

Is there any new information on this issue yet?

mano1979 commented 4 months ago

Is there any new information on this issue yet?

Have you burned the image to the sd card with pi imager? If so, did you use the extra settings to add wifi and ssh credentials while burning the image?

I did that too and had to log in each time the pi booted. But after doing a fresh install, (download the image again because the already present image is now corrupted), the pi logs in automatically.

Quietscher commented 4 months ago

Hey @mano1979 👋 No we used Balena Etcher, but I don't think that's the problem. We don't have any issues with ssh, wifi or login, but rather the raspberry / piSignage decides to logout after about 30min.

Quietscher commented 4 months ago

I even wrote a script that simulates user input via pressing keys and moving the mouse. The tool is called ydotool. But it does not work either

Quietscher commented 4 months ago

@mano1979 do you have the newest piSignage version running? And do you get the logout screen after a certain time?

Quietscher commented 4 months ago

Okay new Info: It does not seem to be a issue of inactivity:

in both cases the login screen appears after 30 min.

colloqi commented 4 months ago

Hi

We have observed when weblinks are used session getting closed and hence it goes back to login screen as bookworm has 2 users account (pi & root). We are actively monitoring the issue and working. Sometime the issue appears when you aplly the following commands (first one is to bring the OS up to date abd second one is to indicate HDMI is always connected)

Can you try if these help you?

sudo apt update && sudo apt -y full-upgrade & sudo sed -i 's/$/ vc4.force_hotplug=1/' /boot/firmware/cmdline.txt

Quietscher commented 4 months ago

I already tried > sudo apt update && sudo apt -y full-upgrade & I will try the 2cnd command now

Quietscher commented 4 months ago
Bildschirmfoto 2024-03-25 um 11 13 12

When using

sudo apt update && sudo apt -y full-upgrade & sudo sed -i 's/$/ vc4.force_hotplug=1/' /boot/firmware/cmdline.txt

The content is displayed outside of the monitor and the monitor only shows "piSignage"

Quietscher commented 4 months ago

And when i do sudo sed -i 's/$/ _vc4.forcehotplug=0/' /boot/firmware/cmdline.txt the login screen still appears after 30min, but it displays my pages correctly

colloqi commented 4 months ago

It needs reboot after the command, if it still persists, till we solve, can you use 5.1.0-legacy if it is Pi 4?

Quietscher commented 4 months ago

Yes i did reboot it in between. I have a pi 5 with v5.1.1

Quietscher commented 4 months ago
Bildschirmfoto 2024-03-25 um 11 13 12

When using

sudo apt update && sudo apt -y full-upgrade & sudo sed -i 's/$/ vc4.force_hotplug=1/' /boot/firmware/cmdline.txt

The content is displayed outside of the monitor and the monitor only shows "piSignage"

Is there a fix for this? This seems to work against the login screen, but as i wrote, the display does not display my content but piSignage

Quietscher commented 4 months ago

Ah nope my bad, id did not work either

Quietscher commented 4 months ago

Okay new Info: It does not seem to be a issue of inactivity:

  • a local script to simulate activity was running without effect
  • real input over a connected mouse also had no effect

in both cases the login screen appears after 30 min.

I wonder why and where this comes from...

Mkragholm commented 4 months ago

This is very similar to the issue I had where it needed a password on every reboot. That issue is solved in Issue #246 - give that a shot.

Quietscher commented 4 months ago

Thanks for the info, but that did not help. I tried it already

Quietscher commented 4 months ago

I don't get the sign in screen on reboot, but after 30min

stormvansoldt commented 4 months ago

These are the processes that run when the login screen appears

root     21804  0.0  0.1  29532  6272 ?        Sl   16:08   0:00 lightdm --session-child 18 21

I'm really curious where this process is being generated from. Maybe check the crontab?

Does lightdm have any useful messages in /var/log?

Quietscher commented 3 months ago

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log [+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=863 [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf [+0.00s] DEBUG: Registered seat module local [+0.00s] DEBUG: Registered seat module xremote [+0.00s] DEBUG: Registered seat module unity [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager [+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3) [+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ [+0.01s] DEBUG: Monitoring logind for seats [+0.01s] DEBUG: New seat added from logind: seat0 [+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:* [+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no [+0.01s] DEBUG: Seat seat0: Starting [+0.01s] DEBUG: Seat seat0: Creating user session [+0.01s] DEBUG: Loading users from org.freedesktop.Accounts [+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added [+0.32s] DEBUG: Seat seat0: Creating display server of type wayland [+0.32s] DEBUG: Seat seat0: Plymouth is running on VT 1, but this is less than the configured minimum of 7 so not replacing it [+0.32s] DEBUG: Quitting Plymouth [+0.38s] DEBUG: Using VT 7 [+0.38s] DEBUG: Launching process 997: /usr/share/dispsetup.sh [+0.39s] DEBUG: Process 997 exited with return value 0 [+0.39s] DEBUG: Seat seat0: Exit status of /usr/share/dispsetup.sh: 0 [+0.39s] DEBUG: Seat seat0: Display server ready, starting session authentication [+0.39s] DEBUG: Session pid=1000: Started with service 'lightdm-autologin', username 'pi' [+0.39s] DEBUG: Acquired bus name org.freedesktop.DisplayManager [+0.39s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0 [+0.42s] DEBUG: Session pid=1000: Authentication complete with return value 0: Success [+0.42s] DEBUG: Seat seat0: Session authenticated, running command [+0.42s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0 [+0.42s] DEBUG: Session pid=1000: Running command /etc/X11/Xsession /usr/bin/wayfire-pi [+0.42s] DEBUG: Creating shared data directory /var/lib/lightdm/data/pi [+0.42s] DEBUG: Session pid=1000: Logging to .xsession-errors [+0.78s] DEBUG: Activating VT 7 [+0.80s] DEBUG: Activating login1 session 1 [+0.80s] DEBUG: Seat seat0 changes active session to 1 [+0.80s] DEBUG: Session 1 is already active [+2191.81s] DEBUG: Session pid=1000: Exited with return value 255 [+2191.82s] DEBUG: Seat seat0: Session stopped [+2191.82s] DEBUG: Seat seat0: Stopping display server, no sessions require it [+2191.82s] DEBUG: Seat seat0: Display server stopped [+2191.82s] DEBUG: Seat seat0: Active display server stopped, starting greeter [+2191.82s] DEBUG: Seat seat0: Creating greeter session [+2192.13s] DEBUG: Seat seat0: Creating display server of type wayland [+2192.13s] DEBUG: Using VT 8 [+2192.13s] DEBUG: Launching process 22405: /usr/share/dispsetup.sh [+2192.14s] DEBUG: Process 22405 exited with return value 0 [+2192.14s] DEBUG: Seat seat0: Exit status of /usr/share/dispsetup.sh: 0 [+2192.14s] DEBUG: Seat seat0: Display server ready, starting session authentication [+2192.14s] DEBUG: Session pid=22408: Started with service 'lightdm-greeter', username 'lightdm' [+2192.14s] DEBUG: Releasing VT 7 [+2192.24s] DEBUG: Session pid=22408: Authentication complete with return value 0: Success [+2192.24s] DEBUG: Seat seat0: Session authenticated, running command [+2192.24s] DEBUG: Session pid=22408: Running command /usr/bin/wayfire-pi -c /usr/share/greeter.ini [+2192.24s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm [+2192.24s] DEBUG: Session pid=22408: Logging to /var/log/lightdm/seat0-greeter.log [+2192.50s] DEBUG: Activating VT 8 [+2192.51s] DEBUG: Activating login1 session c1 [+2192.55s] DEBUG: Seat seat0 changes active session to c1 [+2192.55s] DEBUG: Session c1 is already active [+2193.65s] DEBUG: Greeter connected version=1.26.0 api=1 resettable=false [+2194.05s] DEBUG: Greeter start authentication for pi [+2194.05s] DEBUG: Session pid=22622: Started with service 'lightdm', username 'pi' [+2194.05s] DEBUG: Session pid=22622: Got 1 message(s) from PAM [+2194.05s] DEBUG: Prompt greeter with 1 message(s)

Quietscher commented 3 months ago

This is in the forever out log, when the greeter appears

2024-04-02T08:19:59: (chromium-browser:21847): Gtk-WARNING : 08:19:59.379: Theme parsing error: gtk.css:5:116: 'height' is not a valid property name 2024-04-02T08:19:59: 2024-04-02T08:19:59: (chromium-browser:21847): Gtk-WARNING : 08:19:59.379: Theme parsing error: gtk.css:5:142: 'max-height' is not a valid property name 2024-04-02T08:19:59: [21847:21847:0402/081959.475262:ERROR:policy_logger.cc(157)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the --enable-chrome-browser-cloud-management command line flag to enable it if you are not using the official Google Chrome build. 2024-04-02T08:19:59: 2024-04-02T08:19:59: DevTools listening on ws://127.0.0.1:46383/devtools/browser/6d9f1c5f-bfb3-40ba-a717-caa1fbeb6594 2024-04-02T08:19:59: [21847:21977:0402/081959.769976:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files 2024-04-02T08:19:59: [21847:21977:0402/081959.771155:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files 2024-04-02T08:19:59: [21847:21977:0402/081959.771600:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files 2024-04-02T08:19:59: close object 1: Invalid argument 2024-04-02T08:19:59: close object 2: Invalid argument 2024-04-02T08:19:59: close object 3: Invalid argument 2024-04-02T08:19:59: close object 4: Invalid argument 2024-04-02T08:19:59: close object 5: Invalid argument 2024-04-02T08:19:59: close object 6: Invalid argument 2024-04-02T08:20:03: close object 1: Invalid argument 2024-04-02T08:20:03: close object 2: Invalid argument 2024-04-02T08:20:03: close object 3: Invalid argument 2024-04-02T08:20:04: close object 4: Invalid argument 2024-04-02T08:20:04: close object 5: Invalid argument 2024-04-02T08:20:04: close object 6: Invalid argument 2024-04-02T08:20:19: puppeteer close event for http://localhost/mywebsite: undefined 2024-04-02T08:20:19: Browser stopped with code 1 and signal null 2024-04-02T08:20:19: [22033:22033:0402/082019.501816:ERROR:wayland_connection.cc(196)] Failed to connect to Wayland display: Connection refused (111) 2024-04-02T08:20:19: [22033:22033:0402/082019.501884:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform 2024-04-02T08:20:19: [22033:22033:0402/082019.501899:ERROR:env.cc(257)] The platform failed to initialize. Exiting. 2024-04-02T08:20:19: Puppeteer launch exception Error: Failed to launch the browser process! undefined 2024-04-02T08:20:19: [22033:22033:0402/082019.501816:ERROR:wayland_connection.cc(196)] Failed to connect to Wayland display: Connection refused (111) 2024-04-02T08:20:19: [22033:22033:0402/082019.501884:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform 2024-04-02T08:20:19: [22033:22033:0402/082019.501899:ERROR:env.cc(257)] The platform failed to initialize. Exiting. 2024-04-02T08:20:19: 2024-04-02T08:20:19: 2024-04-02T08:20:19: TROUBLESHOOTING: https://pptr.dev/troubleshooting 2024-04-02T08:20:19: 2024-04-02T08:20:19: *** puppeteer launch error, not proceeding

stormvansoldt commented 3 months ago

Thanks for that output, I have a few PiSignage devices on the latest 5.X version and I haven't been able to re-create the issue.

What does your playlist look like/what type of content does it contain?

Quietscher commented 3 months ago

It's just some webpages that are served on a locally running nginx. It is a compiled Vue project with routing.

stormvansoldt commented 3 months ago

EDIT: It's been about an hour and the sign is still going strong. Maybe give this a try EDIT 2: Two hours, still coming along fine. I also found another config to change that's a little less hack-y, but @Quietscher I'm curious to hear your results if you get a chance to try this.

This is a REALLY stupid workaround and might not even solve the core issue, but here's what I'm testing right now:

sudo sed -i '/^autostart0/ s/./#&/' /etc/wayfire/greeter.ini
sudo reboot now

Basically just disabling the greeter altogether. I already confirmed the player still boots normally with this change and currently have it cycling through a few selfhosted web pages. I'll update once I hit the 30-minute timer

AbhijithBn commented 3 months ago

Hi @Quietscher

We are actively working on this issue.

Can you try the following?

1) In the file /etc/lightdm/lightdm.conf, search for the following lines, uncomment it and change the values accordingly

greeter-user=pi
pam-greeter-service=lightdm-autologin

This should autologin pi user and also prevent Chrome from throwing Invalid user/auth errors.

2) In the file /etc/wayfire/greeter.ini, comment the line

#autostart0 = /usr/sbin/pi-greeter

This should prevent the greeter UI from showing up.

Please let us know if this solves the issue. We will be testing the same too.

Thank you for all your previous debug logs and patience.

Quietscher commented 3 months ago

Ok I'll first try @AbhijithBn approach, i will let you know about the results. Afterwards if the problem still occurs i will try your approach @stormvansoldt. Thanks for now!

Quietscher commented 3 months ago

Also btw, can you add an option to set the cursor position? at the moment it is centered on the screen (but invisible) and therefore it triggers a hover effect on my website that i am showing, that should not occur. Or is there an option to move it after startup (e.g. to a screen corner)

Quietscher commented 3 months ago

Ok with @AbhijithBn Solution the screen now just turns black after 30min

Quietscher commented 3 months ago

ah okay @stormvansoldt solution is the same as @AbhijithBn solution:

autostart0 = /usr/sbin/pi-greeter

I am sorry but it does not work as intended. the screensaver might be gone, but now the screen is just black by itself

Quietscher commented 3 months ago

This is the log [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log [+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=865 [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf [+0.00s] DEBUG: [Seat:*] contains unknown option greeter-user* [+0.00s] DEBUG: Registered seat module local [+0.00s] DEBUG: Registered seat module xremote [+0.00s] DEBUG: Registered seat module unity [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager [+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3) [+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ [+0.01s] DEBUG: Monitoring logind for seats [+0.01s] DEBUG: New seat added from logind: seat0 [+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat: [+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no [+0.01s] DEBUG: Seat seat0: Starting [+0.01s] DEBUG: Seat seat0: Creating user session [+0.01s] DEBUG: Loading users from org.freedesktop.Accounts [+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added [+0.35s] DEBUG: Seat seat0: Creating display server of type wayland [+0.35s] DEBUG: Seat seat0: Plymouth is running on VT 1, but this is less than the configured minimum of 7 so not replacing it [+0.35s] DEBUG: Quitting Plymouth [+0.43s] DEBUG: Using VT 7 [+0.43s] DEBUG: Launching process 971: /usr/share/dispsetup.sh [+0.43s] DEBUG: Process 971 exited with return value 0 [+0.43s] DEBUG: Seat seat0: Exit status of /usr/share/dispsetup.sh: 0 [+0.43s] DEBUG: Seat seat0: Display server ready, starting session authentication [+0.43s] DEBUG: Session pid=973: Started with service 'lightdm-autologin', username 'pi' [+0.43s] DEBUG: Acquired bus name org.freedesktop.DisplayManager [+0.43s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0 [+0.46s] DEBUG: Session pid=973: Authentication complete with return value 0: Success [+0.46s] DEBUG: Seat seat0: Session authenticated, running command [+0.46s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0 [+0.46s] DEBUG: Session pid=973: Running command /etc/X11/Xsession /usr/bin/wayfire-pi [+0.46s] DEBUG: Creating shared data directory /var/lib/lightdm/data/pi [+0.46s] DEBUG: Session pid=973: Logging to .xsession-errors [+0.88s] DEBUG: Activating VT 7 [+0.90s] DEBUG: Activating login1 session 1 [+0.90s] DEBUG: Seat seat0 changes active session to 1 [+0.90s] DEBUG: Session 1 is already active [+2188.79s] DEBUG: Session pid=973: Exited with return value 255 [+2188.79s] DEBUG: Seat seat0: Session stopped [+2188.79s] DEBUG: Seat seat0: Stopping display server, no sessions require it [+2188.79s] DEBUG: Seat seat0: Display server stopped [+2188.79s] DEBUG: Seat seat0: Active display server stopped, starting greeter [+2188.79s] DEBUG: Seat seat0: Creating greeter session [+2189.09s] DEBUG: Seat seat0: Creating display server of type wayland [+2189.09s] DEBUG: Using VT 8 [+2189.09s] DEBUG: Launching process 21709: /usr/share/dispsetup.sh [+2189.09s] DEBUG: Process 21709 exited with return value 0 [+2189.09s] DEBUG: Seat seat0: Exit status of /usr/share/dispsetup.sh: 0 [+2189.09s] DEBUG: Seat seat0: Display server ready, starting session authentication [+2189.09s] DEBUG: Session pid=21711: Started with service 'lightdm-autologin', username 'lightdm' [+2189.09s] DEBUG: Releasing VT 7 [+2189.22s] DEBUG: Session pid=21711: Authentication complete with return value 0: Success [+2189.22s] DEBUG: Seat seat0: Session authenticated, running command [+2189.22s] DEBUG: Session pid=21711: Running command /usr/bin/wayfire-pi -c /usr/share/greeter.ini** [+2189.22s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm [+2189.22s] DEBUG: Session pid=21711: Logging to /var/log/lightdm/seat0-greeter.log

→ the seat0-greeter.log log is empty

[+2189.54s] DEBUG: Activating VT 8 [+2189.55s] DEBUG: Activating login1 session 6 [+2189.57s] DEBUG: Seat seat0 changes active session to 6 [+2189.57s] DEBUG: Session 6 is already active

AbhijithBn commented 3 months ago

If the lightdm crashes, it should automatically restart pisignage player without showing the login screen.

Quietscher commented 3 months ago

I dont know if it crashed. The screen is just black but the cursor is there when a mouse is connected and i can move it

colloqi commented 3 months ago

Looks like user is not changed to pi here

greeter-user=pi

as per this line

[+2189.09s] DEBUG: Session pid=21711: Started with service 'lightdm-autologin', username 'lightdm'

Quietscher commented 3 months ago

yes it says: [+0.00s] DEBUG: [Seat:*] contains unknown option greeter-user

Quietscher commented 3 months ago
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
# dbus-service = True if LightDM provides a D-Bus service to control it
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
#backup-logs=true
#dbus-service=true

#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (local, xremote, unity)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-backend = X backend to use (mir)
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
# fallback-test = Script to run to check if hardware can handle Wayland - should return 1 if so
# fallback-session = Session to launch if fallback-test returns 0
# fallback-greeter = Greeter session to launch if fallback-test returns 0
#
[Seat:*]
#type=local
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
pam-greeter-service=lightdm-autologin
greeter-user=pi
#xserver-backend=
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
greeter-session=pi-greeter-wayfire
greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
user-session=LXDE-pi-wayfire
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
display-setup-script=/usr/share/dispsetup.sh
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
autologin-user=pi
autologin-user-timeout=0
#autologin-in-background=false
autologin-session=LXDE-pi-wayfire
#exit-on-failure=false
fallback-test=/usr/bin/xfallback.sh
fallback-session=LXDE-pi-x
fallback-greeter=pi-greeter

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn.  Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=8

This is the current lightdm config

AbhijithBn commented 3 months ago

Screenshot 2024-04-03 at 12 32 19 PM

Should be modified under [LightDm] not [Seat:*]

colloqi commented 3 months ago

autologin-user=pi

Quietscher commented 3 months ago

ah okay, ill do that

Quietscher commented 3 months ago

Ok now after 30min: My pages are still shown but: It does not apply the 1080p settings and my screen is 4k, so its now only covering 1/4 of the screen (the top left corner). But it should scale the 1080p content up to 4k, as it does on a fresh boot of the piSignage

Quietscher commented 3 months ago

4000000067077ff7

AbhijithBn commented 3 months ago

Got it. We are working on this. Thank you

Quietscher commented 3 months ago

Updates: It is a cycle: after 30min it is displayed only in the top left corner as 1/4 of the screen size after the next 30 min it is displayed as it should then it repeats.

AbhijithBn commented 3 months ago

Can you add this code to the /usr/share/greeter.ini file?

[output]
[output:HDMI-A-1]
mode = 1920x1080
transform = normal

Your file should look like this

[input-device:10-0038 generic ft5x06 (79)]
output = DSI-1

[input-device:6-0038 generic ft5x06 (79)]
output = DSI-1

[input-device:4-0038 generic ft5x06 (79)]
output = DSI-2

[input-device:10-0038 generic ft5x06 (00)]
output = DSI-1

[input-device:6-0038 generic ft5x06 (00)]
output = DSI-1

[input-device:4-0038 generic ft5x06 (00)]
output = DSI-2

[input]
xkb_options=
xkb_model=pc105
xkb_layout=us
xkb_variant=

[output]
[output:HDMI-A-1]
mode = 1920x1080
transform = normal
Quietscher commented 3 months ago

ok!

AbhijithBn commented 3 months ago

Additionally to remove the cursor, you can modify the /etc/wayfire/greeter.ini. You can include the hide-cursor plugin under [core] section.

plugins = autostart-static pixdecor winshadows hide-cursor
plugins_nogl = autostart-static pixdecor hide-cursor
Quietscher commented 3 months ago

Additionally to remove the cursor, you can modify the /etc/wayfire/greeter.ini. You can include the hide-cursor plugin under [core] section.

plugins = autostart-static pixdecor winshadows hide-cursor
plugins_nogl = autostart-static pixdecor hide-cursor

i can try this later, i hope it does not trigger hover effects. Is there a possibility to just move it via default to a corner? e.g. top left?

AbhijithBn commented 3 months ago

Yes, you can try it later. No it does not trigger hover effects. Currently when the piSignage player starts playback the mouse cursor is hidden and we would like to maintain that consistency.

Quietscher commented 3 months ago

Yes, you can try it later. No it does not trigger hover effects. Currently when the piSignage player starts playback the mouse cursor is hidden and we would like to maintain that consistency.

Ah i understand. I will try it

Quietscher commented 3 months ago

Can you add this code to the /usr/share/greeter.ini file?

[output]
[output:HDMI-A-1]
mode = 1920x1080
transform = normal

Your file should look like this

[input-device:10-0038 generic ft5x06 (79)]
output = DSI-1

[input-device:6-0038 generic ft5x06 (79)]
output = DSI-1

[input-device:4-0038 generic ft5x06 (79)]
output = DSI-2

[input-device:10-0038 generic ft5x06 (00)]
output = DSI-1

[input-device:6-0038 generic ft5x06 (00)]
output = DSI-1

[input-device:4-0038 generic ft5x06 (00)]
output = DSI-2

[input]
xkb_options=
xkb_model=pc105
xkb_layout=us
xkb_variant=

[output]
[output:HDMI-A-1]
mode = 1920x1080
transform = normal

No I am sorry, it did not help