Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: No more display after in-place update
#11
(09-09-2023, 05:34 PM)TheOldPresbyope Wrote:
Quote:It assumes that only one userid exists on the system and thus simply uses the first entry in the output of ls /home/

I'm going to make a wild guess that the OP's player has a /home/pi directory (for one reason or another) and that the default username he chose (in rpi-imager or elsewise) sorts higher than "pi".

Actually, "tux" is higher than "pi"... Thing is, how did eventually the folder "pi" get there, assuming he set the username through the installer.
Reply
#12
(09-09-2023, 03:41 PM)TheOldPresbyope Wrote: Interesting. Not sure, then, where the OP's system is going crosswise. I suppose I can try once again to repro, this time with username other than pi.

@romain - when/where did you change the username?

Regards,
Kent

I changed the username in rpi-imager Kent
Reply
#13
(09-11-2023, 08:38 AM)romain Wrote:
(09-09-2023, 03:41 PM)TheOldPresbyope Wrote: Interesting. Not sure, then, where the OP's system is going crosswise. I suppose I can try once again to repro, this time with username other than pi.

@romain - when/where did you change the username?

Regards,
Kent

I changed the username in rpi-imager Kent

Aha. I was about to say that's fine and dandy but then I remember my grandmother telling me "the proof of the pudding is in the eatiing" so I went ahead and finished the test I started yesterday.

1. flash moOde 8.3.5 to a uSD card using rpi-imager and setting the default username to moody in the process.

Booted the resulting moOde player which comes up with only one subdirectory in /home, namely /home/moody, as I expected

2. performed an inplace update of moOde 8.3.5 to moOde 8.3.6.

Rebooted the player which now comes up with *two* subdirectories


Code:
moody@moode:~ $ ls -l /home
total 8
drwxr-xr-x 5 moody moody 4096 Sep 11 11:11 moody
drwxr-xr-x 2 root  root  4096 Sep 11 11:08 pi


This still works with local display because moody < pi but....

@Tim Curtis I'm on the way out the door but where did /home/pi come from?

Regards,
Kent
Reply
#14
Is there anything in /home/pi ?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#15
Home again.

To anwser my own question, I downloaded the moode-player .deb file and asked dpkg-deb to list its contents


Code:
moody@moode:~ $ dpkg-deb -c moode-player_8.3.6-1moode1_all.deb
...
drwxr-xr-x 0/0               0 2023-09-05 13:50 ./home/
drwxr-xr-x 0/0               0 2023-09-05 13:50 ./home/pi/
-rwxr-xr-x 0/0            1218 2023-09-05 13:50 ./home/pi/.xinitrc
-rwxr-xr-x 0/0            4681 2023-09-05 13:50 ./home/pi/.dircolors
-rwxr-xr-x 0/0            1388 2023-04-06 12:40 ./home/pi/piano.sh
...


and, yes, those files are now present in both /home/moody and /home/pi. /home/moody contains a few more, of course, because that's my home directory as user "moody".


Regards,
Kent
Reply
#16
(09-11-2023, 08:37 PM)TheOldPresbyope Wrote: Home again.

To anwser my own question, I downloaded the moode-player .deb file and asked dpkg-deb to list its contents


Code:
moody@moode:~ $ dpkg-deb -c moode-player_8.3.6-1moode1_all.deb
...
drwxr-xr-x 0/0               0 2023-09-05 13:50 ./home/
drwxr-xr-x 0/0               0 2023-09-05 13:50 ./home/pi/
-rwxr-xr-x 0/0            1218 2023-09-05 13:50 ./home/pi/.xinitrc
-rwxr-xr-x 0/0            4681 2023-09-05 13:50 ./home/pi/.dircolors
-rwxr-xr-x 0/0            1388 2023-04-06 12:40 ./home/pi/piano.sh
...

Bingo.
More or less... :-)
Reply
#17
(09-11-2023, 08:37 PM)TheOldPresbyope Wrote: Home again.

To anwser my own question, I downloaded the moode-player .deb file and asked dpkg-deb to list its contents


Code:
moody@moode:~ $ dpkg-deb -c moode-player_8.3.6-1moode1_all.deb
...
drwxr-xr-x 0/0               0 2023-09-05 13:50 ./home/
drwxr-xr-x 0/0               0 2023-09-05 13:50 ./home/pi/
-rwxr-xr-x 0/0            1218 2023-09-05 13:50 ./home/pi/.xinitrc
-rwxr-xr-x 0/0            4681 2023-09-05 13:50 ./home/pi/.dircolors
-rwxr-xr-x 0/0            1388 2023-04-06 12:40 ./home/pi/piano.sh
...


and, yes, those files are now present in both /home/moody and /home/pi. /home/moody contains a few more, of course, because that's my home directory as user "moody".


Regards,
Kent

Indeed, when the ISO image is built or an in-place update is performed the moode-player package install will create /home/pi and its contents. This is not a problem when a fresh image is prepped using Pi Imager because the imager first-boot script will rename the 'pi' subdirectory to whatever the user chooses as userid.

I think this can be addressed in the package postinstall.sh script in the on_upgrade() section.
I'll add to the TODO list.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#18
@romain @TheOldPresbyope @Tim Curtis I have the same problem i think. I tried to connect a HDMI cable to my LG OLED (via a microHDMI to HDMI adapter) and I get a blank screen. I have the HDMI port and local display turned on in settings. I have an I2S HAT installed for audio out, not sure if that is causing issues. The startup log is below. I see 'pi' as the userID whereas I have a different username. Any suggestions here to get the local display working?



Code:
20230921 191237 worker: --
20230921 191237 worker: -- Start moOde 8 series
20230921 191237 worker: --
20230921 191237 worker: Successfully daemonized
20230921 191237 worker: Waiting for Linux startup...
20230921 191249 worker: Linux startup complete
20230921 191249 worker: Boot config backed up
20230921 191252 worker: File check (OK)
20230921 191253 worker: Session vacuumed
20230921 191253 worker: Session loaded
20230921 191253 worker: Debug logging (OFF)
20230921 191253 worker: Reduced system logging (OFF)
20230921 191253 worker: --
20230921 191253 worker: -- Audio debug
20230921 191253 worker: --
20230921 191253 worker: ALSA cards: (0:sndrpirpidac | 1:empty | 2:empty | 3:empty
20230921 191253 worker: MPD config: (0:Denafrips Pontus R2R DAC (I2S) | mixer:(none) | card:0)
20230921 191253 worker: ALSA mixer actual (none)
20230921 191253 worker: ALSA volume (none)
20230921 191253 worker: --
20230921 191253 worker: -- System
20230921 191253 worker: --
20230921 191254 worker: Host      (moode)
20230921 191254 worker: Hardware  (Pi-4B 1.2 4GB)
20230921 191254 worker: moOde     (8.3.6 2023-09-05)
20230921 191254 worker: RaspiOS   (11.7)
20230921 191254 worker: Kernel    (6.1.21-v8+ #1642)
20230921 191254 worker: Procarch  (aarch64, 64-bit)
20230921 191254 worker: MPD ver   (0.23.12)
20230921 191254 worker: CPU gov   (ondemand)
20230921 191254 worker: Userid    (pi)
20230921 191254 worker: Homedir   (/home/pi)
20230921 191254 worker: Timezone  (America/Los_Angeles)
20230921 191254 worker: Keyboard  (us)
20230921 191255 worker: USB boot  (enabled)
20230921 191255 worker: File sys  (expanded)
20230921 191255 worker: HDMI port (On)
20230921 191255 worker: Sys LED0  (On)
20230921 191255 worker: Sys LED1  (On)
20230921 191255 worker: --
20230921 191255 worker: -- Network
20230921 191255 worker: --
20230921 191255 worker: eth0 adapter exists
20230921 191255 worker: eth0 address check (Off)
20230921 191255 worker: eth0 address not assigned
20230921 191255 worker: wlan0 adapter exists
20230921 191255 worker: wlan0 country (US)
20230921 191255 worker: wlan0 configured SSID (VINOVASANTH)
20230921 191255 worker: wlan0 SSID alternates (None)
20230921 191255 worker: wlan0 router mode (Off)
20230921 191255 worker: wlan0 address check (up to 90 secs)
20230921 191255 worker: wlan0 connected to SSID (VINOVASANTH)
20230921 191255 worker: wlan0 power save (Disabled)
20230921 191255 worker: IP addr (192.168.2.215)
20230921 191255 worker: Netmask (255.255.255.0)
20230921 191255 worker: Gateway (192.168.2.1)
20230921 191255 worker: Pri DNS (192.168.2.1)
20230921 191255 worker: Domain  ()
20230921 191255 worker: --
20230921 191255 worker: -- Software update
20230921 191255 worker: --
20230921 191255 worker: Automatic check (Off)
20230921 191255 worker: --
20230921 191255 worker: -- File sharing
20230921 191255 worker: --
20230921 191257 worker: SMB file sharing (On)
20230921 191257 worker: NFS file sharing (On)
20230921 191257 worker: --
20230921 191257 worker: -- Audio config
20230921 191257 worker: --
20230921 191257 worker: MPD conf updated
20230921 191257 worker: ALSA card number (0)
20230921 191257 worker: MPD audio output (Denafrips Pontus R2R DAC (I2S))
20230921 191257 worker: Audio formats (S16_LE, S24_LE)
20230921 191257 worker: ALSA mixer name (none)
20230921 191257 worker: MPD mixer type (fixed 0dB)
20230921 191257 worker: Hdwr volume controller not detected
20230921 191257 worker: ALSA output mode (Direct)
20230921 191257 worker: ALSA loopback (Off)
20230921 191257 worker: Renderer active flags (reset)
20230921 191257 worker: CamillaDSP configuration (off)
20230921 191257 worker: --
20230921 191257 worker: -- MPD startup
20230921 191257 worker: --
20230921 191258 worker: MPD started
20230921 191258 worker: MPD accepting connections
20230921 191258 worker: MPD output 1 ALSA Default (On)
20230921 191258 worker: MPD output 2 ALSA Bluetooth (Off)
20230921 191258 worker: MPD output 3 HTTP Server (Off)
20230921 191258 worker: MPD crossfade (off)
20230921 191258 worker: MPD ignore CUE files (yes)
20230921 191258 worker: MPD camilladsp volume sync (Off)
20230921 191258 worker: MPD camilladsp volume range (60 dB)
20230921 191258 worker: --
20230921 191258 worker: -- Music sources
20230921 191258 worker: --
20230921 191258 worker: USB sources
20230921 191258 worker: No drives found
20230921 191258 worker: NAS sources
20230921 191258 worker: Synology
20230921 191258 worker: Mount all submitted
20230921 191258 worker: --
20230921 191258 worker: -- Feature availability
20230921 191258 worker: --
20230921 191258 worker: Input select (available)
20230921 191258 worker: Input (MPD)
20230921 191258 worker: Output (Denafrips Pontus R2R DAC (I2S))
20230921 191258 worker: Bluetooth (available)
20230921 191259 worker: AirPlay renderer (available: started)
20230921 191259 worker: Spotify renderer (available)
20230921 191259 worker: Squeezelite (available)
20230921 191259 worker: RoonBridge renderer (not installed)
20230921 191259 worker: Multiroom sender (available)
20230921 191259 worker: Multiroom receiver (available)
20230921 191259 worker: UPnP renderer (available: started)
20230921 191259 worker: DLNA server (available: started)
20230921 191259 worker: GPIO button handler (available)
20230921 191259 worker: Stream recorder (n/a)
20230921 191259 worker: HTTPS-Only mode (n/a)
20230921 191259 worker: --
20230921 191259 worker: -- Other
20230921 191259 worker: --
20230921 191259 worker: USB volume knob (Off)
20230921 191259 worker: USB auto-mounter (udisks-glue)
20230921 191259 worker: Saved MPD vol level (0)
20230921 191259 worker: Preamp volume level (0)
20230921 191259 worker: MPD volume level (0) restored
20230921 191259 worker: ALSA volume level (None)
20230921 191259 worker: Auto-play (Off)
20230921 191259 worker: LocalUI (On)
20230921 191259 worker: Automatic CoverView (Off)
20230921 191259 worker: On-screen keyboard (Off)
20230921 191259 worker: Library scope (all)
20230921 191259 worker: Library active search (None)
20230921 191259 worker: View reset to (Playback)
20230921 191259 worker: Maintenance interval (360 minutes)
20230921 191259 worker: Screen saver activation (Never)
20230921 191259 worker: Session permissions (OK)
20230921 191259 worker: --
20230921 191259 worker: -- Startup complete
Reply
#19
Prolly the same issue.

What is the output of the commands below?

Code:
ls -l /home

ls -al /home/pi
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#20
(09-22-2023, 10:57 AM)Tim Curtis Wrote: Prolly the same issue.

What is the output of the commands below?

Code:
ls -l /home

ls -al /home/pi



vasanth@moode:~ $ ls -l /home                                                                                                                                                                                  
drwxr-xr-x 2 root    root    4096 Sep 21 18:43 pi
drwxr-xr-x 2 vasanth vasanth 4096 Jun  8 14:59 vasanth


vasanth@moode:~ $ ls -al /home/pi
total 24                                                                                                                                                                                      
drwxr-xr-x 2 root root 4096 Sep 21 18:43 .
drwxr-xr-x 4 root root 4096 Aug 27 19:26 ..
-rwxr-xr-x 1 root root 4681 Sep  5 10:50 .dircolors
-rwxr-xr-x 1 root root 1388 Apr  6 09:40 piano.sh
-rwxr-xr-x 1 root root 1218 Sep  5 10:50 .xinitrc
Reply


Forum Jump: