2

I have built a new image on a RPi3B+ with Noobs using the latest Raspbian which I believe is named Buster. I uninstalled libreoffice (for space) and have installed various python libraries and the applications that they depend on, (things like openCV and tensorflow). I removed and imaged the SD card and when I put it back in and rebooted the menu bar flashes a few times and then disappears. This leaves me with a blank screen with just the wastebasket displayed and the default background photo. I am trying to get the menu bar back.

I have googled this problem and it seems common, but none of the fixes have worked. Here is what I have tried:

I have already tried rebuilding and this is the second time this has happened with a new install of Buster. The first time the menu bar disappeared when I tried to access the audio menu option.

VNC is not enabled but SSH is. I dont think this is the issue as posts on the web have only mentions vnc as the issue.

Raspbian plugins are referenced as a cause, but I have not installed any Raspbian plugins.

As per some suggestions I used Cntrl-Alt-F6 to get into a terminal and tried deleting ~/.config/lxpanel and then a reboot. This seems to have recreated the folder structure lxpanel but there are no files in it. Which seems odd.

To test what the folder lxpanel should look like I created a new user named test and assigned it to the audio and video groups. That user can now successfully run startx and see the menu. If I compare the ~/.config/lxpanel folder structure for pi and test they seem identical...no files at all found there but a structure of ~/.config/lxpanel/LXDE-pi/panels. (It seems strange to me that there is a folder LXDE-pi for the user test, but I guess the reference to pi here must not be to the username).

Some suggestions indicated this issue is related to access to audio (and it is interesting that the menu on a previous image disappeared when I tried to access audio options. So I removed pi from the audio and video groups and added back but that didnt work.

I need the pi user working as various code needs to run as that user. Any ideas how to get the menu bar back for my pi user?

2
  • It is unclear what you actually did, or what your question is. "created a new user named test and assigned it to the audio and video groups" how? What does groups show? What does "I removed pi from these groups" mean?
    – Milliways
    Commented Jul 14, 2019 at 1:08
  • Don't answer your question in the question. Please cut and paste the Update 17/7/2019 to an answer and accept it after two days. Only this will finish the question and it will not pop up again for years.
    – Ingo
    Commented Feb 1, 2020 at 12:17

2 Answers 2

0

DO NOT use NOOBS if you are concerned about space (it WASTES 1.3GB - which is only used once).

Again, if you are concerned about space, install Raspbian Buster with desktop and add additional recommended software you require.

The rest of your question is unclear, but you would be better to start from a suitable base.

For your information the following is a script I use to create a new user on my Pi. This creates a new user, with full permissions and a default desktop.

#!/bin/bash
# script to create Pi user
if [ $# -eq 0 ] ; then
    USR='newuser'
else
    USR=$1
fi

echo "This script creates a newuser and copies groups and .bashrc from user Pi"
echo "The newuser has full permissions, including sudo (but requires password for sudo)"
sudo adduser $USR
# copy groups from user pi:-
    for GROUP in $(groups pi | sed 's/.*:\spi//'); do sudo adduser $USR $GROUP; done
sudo cp /home/pi/.bashrc /home/$USR/.bashrc
sudo chown $USR:$USR /home/$USR/.bashrc
3
  • Apologies if the question was not clear. I have edited the text to try to make it clearer. The issue is not one of space...but thanks for the tips. Nor is the issue one of adding users. The issue is that the menu bar has disappeared for the default user of 'pi'. This answer does not address that. Commented Jul 14, 2019 at 5:23
  • "The issue is that the menu bar has disappeared for the default user of 'pi'. This answer does not address that. " Neither does your question.
    – Milliways
    Commented Jul 14, 2019 at 8:42
  • As I said apologies if the question was not clear. Previously the title of this question was "Menu bar flashes then goes". That might have been ambiguous. I have changed it to "Menu bar flashes then disappears". Surely that outlines the problem clearly now. By the way....I have installed Raspbian for the 3rd time, from the image rather than NOOBS. Worked fine for a while but problem reoccurred after installing software and a reboot. (Which software? Various python utilities like pyaudio & openCV). Commented Jul 14, 2019 at 9:12
0

Update 17/7/2019

I found that the issue is the .asoundrc file that I setup for the pi user, to define the default ALSA devices for input and output. The .asoundrc definition I used to use for previous versions of Raspbian is:

pcm.usb
{
    type hw
    card 1
}
pcm.internal
{
    type hw
    card 0
}

pcm.!default {
    type asym
    playback.pcm {
        type plug
        slave.pcm "internal"
    }
    capture.pcm {
        type plug
        slave.pcm "usb"
    }
}
ctl.!default {
    type asym
    playback.pcm {
        type plug
        slave.pcm "internal"
    }
    capture.pcm {
        type plug
        slave.pcm "usb"
    }
}    

After making this file blank I have resolved the problem (I assume deleting would also work). Thankfully it seems my Python app is defaulting to the correct devices after some basic testing.

So what has happened with ALSA config in Buster? Is the use of .asoundrc no longer required or supported?

1
  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year.
    – Ingo
    Commented Feb 8, 2020 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.