I have compiled OpenTTD on my raspberry pi. When I run the executable, the program launches without any errors. After an hour, I managed to get the sound working using another thread on this forum.
However, when I switch to my friend's account (sudo is accessible to that account w/o password FYI), the music unexpectedly stops working. Any ideas how to fix this?
Raspberry Pi Audio Only Works for Pi User
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 3
- Joined: 30 Apr 2018 15:11
Re: Raspberry Pi Audio Only Works for Pi User
Don't know about Pi in particular, but on most Linux systems the user must be a member of the "audio" group in order to get sound.StellarDoor5319 wrote:I have compiled OpenTTD on my raspberry pi. When I run the executable, the program launches without any errors. After an hour, I managed to get the sound working using another thread on this forum.
However, when I switch to my friend's account (sudo is accessible to that account w/o password FYI), the music unexpectedly stops working. Any ideas how to fix this?
-
- Engineer
- Posts: 3
- Joined: 30 Apr 2018 15:11
Re: Raspberry Pi Audio Only Works for Pi User
The user is a member of all the groups that the default "pi" user is in, including "audio".
Re: Raspberry Pi Audio Only Works for Pi User
Likely something related to music doesn't have the correct ownership and/or access rights, for example the music files themselves?
Being able to use sudo without password is not significant by the way, the system does not switch to a different user to resolve access problems by itself. (Which is a good thing imho, making sure everything has the right owner, group, and access rights is a far better solution.)
Being able to use sudo without password is not significant by the way, the system does not switch to a different user to resolve access problems by itself. (Which is a good thing imho, making sure everything has the right owner, group, and access rights is a far better solution.)
Being a retired OpenTTD developer does not mean I know what I am doing.
-
- Engineer
- Posts: 3
- Joined: 30 Apr 2018 15:11
Re: Raspberry Pi Audio Only Works for Pi User
What permissions should I use for the files? I noticed that a separate config file and content-download folder are placed into the user's home directory - so surely the user should own them?Alberth wrote:Likely something related to music doesn't have the correct ownership and/or access rights, for example the music files themselves?
Being able to use sudo without password is not significant by the way, the system does not switch to a different user to resolve access problems by itself. (Which is a good thing imho, making sure everything has the right owner, group, and access rights is a far better solution.)
Re: Raspberry Pi Audio Only Works for Pi User
That seems a good idea indeed.
The program looks for files at several places, depending on how and where you install things. You may want to read the README file, which explains in details how that works.
The program looks for files at several places, depending on how and where you install things. You may want to read the README file, which explains in details how that works.
Being a retired OpenTTD developer does not mean I know what I am doing.
Who is online
Users browsing this forum: No registered users and 24 guests